aix: default to DWARF 4.
[official-gcc.git] / libphobos / configure
blob1c32a552d40be0ca8309d3ee59745930638294ba
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 libphobos_srcdir
704 libphobos_builddir
705 get_gcc_base_ver
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 OBJDUMP
714 LN_S
716 ac_ct_DUMPBIN
717 DUMPBIN
719 FGREP
721 LIBTOOL
722 CFLAGS_FOR_BUILD
723 CC_FOR_BUILD
725 DCFG_ENABLE_CET
726 CET_DFLAGS
727 CET_FLAGS
728 RANLIB
729 MAINT
730 MAINTAINER_MODE_FALSE
731 MAINTAINER_MODE_TRUE
732 GDCFLAGS
734 CCASFLAGS
735 CCAS
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 EGREP
764 GREP
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
773 target_os
774 target_vendor
775 target_cpu
776 target
777 host_os
778 host_vendor
779 host_cpu
780 host
781 build_os
782 build_vendor
783 build_cpu
784 build
785 multi_basedir
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files='DRTSTUFF_SPEC'
825 ac_user_opts='
826 enable_option_checking
827 enable_multilib
828 enable_silent_rules
829 enable_maintainer_mode
830 enable_cet
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_gnu_ld
836 enable_libtool_lock
837 with_gcc_major_version_only
838 enable_werror
839 with_libatomic
840 with_libbacktrace
841 with_target_system_zlib
842 with_cross_host
843 enable_version_specific_runtime_libs
844 with_toolexeclibdir
845 enable_libphobos
846 with_libphobos_druntime_only
847 enable_libphobos_checking
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP'
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
908 ac_prev=
909 ac_dashdash=
910 for ac_option
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
929 ac_dashdash=yes ;;
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
948 --config-cache | -C)
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 esac
1266 done
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1350 /^X\(\/\/\)$/{
1351 s//\1/
1354 /^X\(\/\).*/{
1355 s//\1/
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1363 else
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1453 cat <<\_ACEOF
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of package-unused version-unused:";;
1470 esac
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-multilib build many library versions (default)
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-cet enable Intel CET in target libraries [default=auto]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-werror turns on -Werror [default=no]
1490 --enable-version-specific-runtime-libs
1491 Specify that runtime libraries should be installed
1492 in a compiler-specific directory
1493 --enable-libphobos Enable libphobos
1494 --enable-libphobos-checking[=LIST]
1495 enable expensive run-time checks. With LIST, enable
1496 only specific categories of checks. Categories are:
1497 yes,no,all,none,release. Flags are: assert or other
1498 strings
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-gcc-major-version-only
1507 use only GCC major number in filesystem paths
1508 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1509 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1510 auto)
1511 --with-target-system-zlib={yes,no,auto}
1512 use installed libz (default: no)
1513 --with-cross-host=HOST configuring with a cross compiler
1514 --with-toolexeclibdir=DIR
1515 install libraries built with a cross compiler within
1517 --with-libphobos-druntime-only={yes,no,auto}
1518 build only the druntime library (default: auto)
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 CCAS assembler compiler command (defaults to CC)
1530 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1531 GDC D compiler command
1532 GDCFLAGS D compiler flags
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 package-unused configure version-unused
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=1
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_cpp
1689 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692 # the include files in INCLUDES and setting the cache variable VAR
1693 # accordingly.
1694 ac_fn_c_check_header_mongrel ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if eval \${$3+:} false; then :
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 else
1707 # Is the header compilable?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709 $as_echo_n "checking $2 usability... " >&6; }
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_header_compiler=yes
1717 else
1718 ac_header_compiler=no
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722 $as_echo "$ac_header_compiler" >&6; }
1724 # Is the header present?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726 $as_echo_n "checking $2 presence... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_cpp "$LINENO"; then :
1732 ac_header_preproc=yes
1733 else
1734 ac_header_preproc=no
1736 rm -f conftest.err conftest.i conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738 $as_echo "$ac_header_preproc" >&6; }
1740 # So? What about this header?
1741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1742 yes:no: )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 no:yes:* )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1752 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1756 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 esac
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 eval "$3=\$ac_header_compiler"
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_mongrel
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_c_try_run
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_header_compile
1849 # ac_fn_d_try_compile LINENO
1850 # --------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_d_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_d_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_d_try_compile
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1931 } # ac_fn_c_try_link
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1961 #undef $2
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1978 main ()
1980 return $2 ();
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval \${$4+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 static $2 ac_aggr;
2019 if (ac_aggr.$3)
2020 return 0;
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static $2 ac_aggr;
2035 if (sizeof ac_aggr.$3)
2036 return 0;
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 eval "$4=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_member
2057 # ac_fn_d_try_link LINENO
2058 # -----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_d_try_link ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext conftest$ac_exeext
2064 if { { ac_try="$ac_link"
2065 case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_link") 2>conftest.err
2072 ac_status=$?
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_d_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest$ac_exeext && {
2083 test "$cross_compiling" = yes ||
2084 test -x conftest$ac_exeext
2085 }; then :
2086 ac_retval=0
2087 else
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2091 ac_retval=1
2093 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2094 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2095 # interfere with the next link command; also delete a directory that is
2096 # left behind by Apple's compiler. We do this before executing the actions.
2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_d_try_link
2102 cat >config.log <<_ACEOF
2103 This file contains any messages produced by compilers while
2104 running configure, to aid debugging if configure makes a mistake.
2106 It was created by package-unused $as_me version-unused, which was
2107 generated by GNU Autoconf 2.69. Invocation command line was
2109 $ $0 $@
2111 _ACEOF
2112 exec 5>>config.log
2114 cat <<_ASUNAME
2115 ## --------- ##
2116 ## Platform. ##
2117 ## --------- ##
2119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136 _ASUNAME
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 $as_echo "PATH: $as_dir"
2144 done
2145 IFS=$as_save_IFS
2147 } >&5
2149 cat >&5 <<_ACEOF
2152 ## ----------- ##
2153 ## Core tests. ##
2154 ## ----------- ##
2156 _ACEOF
2159 # Keep a trace of the command line.
2160 # Strip out --no-create and --no-recursion so they do not pile up.
2161 # Strip out --silent because we don't want to record it for future runs.
2162 # Also quote any args containing shell meta-characters.
2163 # Make two passes to allow for proper duplicate-argument suppression.
2164 ac_configure_args=
2165 ac_configure_args0=
2166 ac_configure_args1=
2167 ac_must_keep_next=false
2168 for ac_pass in 1 2
2170 for ac_arg
2172 case $ac_arg in
2173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175 | -silent | --silent | --silen | --sile | --sil)
2176 continue ;;
2177 *\'*)
2178 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 esac
2180 case $ac_pass in
2181 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 as_fn_append ac_configure_args1 " '$ac_arg'"
2184 if test $ac_must_keep_next = true; then
2185 ac_must_keep_next=false # Got value, back to normal.
2186 else
2187 case $ac_arg in
2188 *=* | --config-cache | -C | -disable-* | --disable-* \
2189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191 | -with-* | --with-* | -without-* | --without-* | --x)
2192 case "$ac_configure_args0 " in
2193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194 esac
2196 -* ) ac_must_keep_next=true ;;
2197 esac
2199 as_fn_append ac_configure_args " '$ac_arg'"
2201 esac
2202 done
2203 done
2204 { ac_configure_args0=; unset ac_configure_args0;}
2205 { ac_configure_args1=; unset ac_configure_args1;}
2207 # When interrupted or exit'd, cleanup temporary files, and complete
2208 # config.log. We remove comments because anyway the quotes in there
2209 # would cause problems or look ugly.
2210 # WARNING: Use '\'' to represent an apostrophe within the trap.
2211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212 trap 'exit_status=$?
2213 # Save into config.log some information that might help in debugging.
2215 echo
2217 $as_echo "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2220 echo
2221 # The following way of writing the cache mishandles newlines in values,
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in #(
2226 *${as_nl}*)
2227 case $ac_var in #(
2228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230 esac
2231 case $ac_var in #(
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2235 esac ;;
2236 esac
2237 done
2238 (set) 2>&1 |
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2241 sed -n \
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244 ;; #(
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2248 esac |
2249 sort
2251 echo
2253 $as_echo "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2256 echo
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
2267 if test -n "$ac_subst_files"; then
2268 $as_echo "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2271 echo
2272 for ac_var in $ac_subst_files
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2283 if test -s confdefs.h; then
2284 $as_echo "## ----------- ##
2285 ## confdefs.h. ##
2286 ## ----------- ##"
2287 echo
2288 cat confdefs.h
2289 echo
2291 test "$ac_signal" != 0 &&
2292 $as_echo "$as_me: caught signal $ac_signal"
2293 $as_echo "$as_me: exit $exit_status"
2294 } >&5
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 exit $exit_status
2299 for ac_signal in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2301 done
2302 ac_signal=0
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest* confdefs.h
2307 $as_echo "/* confdefs.h */" > confdefs.h
2309 # Predefined preprocessor variables.
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_NAME "$PACKAGE_NAME"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_STRING "$PACKAGE_STRING"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_URL "$PACKAGE_URL"
2333 _ACEOF
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2338 ac_site_file1=NONE
2339 ac_site_file2=NONE
2340 if test -n "$CONFIG_SITE"; then
2341 # We do not want a PATH search for config.site.
2342 case $CONFIG_SITE in #((
2343 -*) ac_site_file1=./$CONFIG_SITE;;
2344 */*) ac_site_file1=$CONFIG_SITE;;
2345 *) ac_site_file1=./$CONFIG_SITE;;
2346 esac
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2350 else
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE && continue
2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2361 . "$ac_site_file" \
2362 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $? "failed to load site script $ac_site_file
2365 See \`config.log' for more details" "$LINENO" 5; }
2367 done
2369 if test -r "$cache_file"; then
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2375 case $cache_file in
2376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
2378 esac
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2383 >$cache_file
2386 # Check that the precious variables saved in the cache have kept the same
2387 # value.
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2395 set,)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,set)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,);;
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 fi;;
2423 esac
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2426 case $ac_new_val in
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2429 esac
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433 esac
2435 done
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 ac_config_headers="$ac_config_headers config.h"
2461 # Default to --enable-multilib
2462 # Check whether --enable-multilib was given.
2463 if test "${enable_multilib+set}" = set; then :
2464 enableval=$enable_multilib; case "$enableval" in
2465 yes) multilib=yes ;;
2466 no) multilib=no ;;
2467 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2468 esac
2469 else
2470 multilib=yes
2474 # We may get other options which we leave undocumented:
2475 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2476 # See config-ml.in if you want the gory details.
2478 if test "$srcdir" = "."; then
2479 if test "$with_target_subdir" != "."; then
2480 multi_basedir="$srcdir/$with_multisrctop../.."
2481 else
2482 multi_basedir="$srcdir/$with_multisrctop.."
2484 else
2485 multi_basedir="$srcdir/.."
2489 # Even if the default multilib is not a cross compilation,
2490 # it may be that some of the other multilibs are.
2491 if test $cross_compiling = no && test $multilib = yes \
2492 && test "x${with_multisubdir}" != x ; then
2493 cross_compiling=maybe
2496 ac_config_commands="$ac_config_commands default-1"
2498 ac_aux_dir=
2499 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2500 if test -f "$ac_dir/install-sh"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/install-sh -c"
2503 break
2504 elif 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/shtool"; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/shtool install -c"
2511 break
2513 done
2514 if test -z "$ac_aux_dir"; then
2515 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2518 # These three variables are undocumented and unsupported,
2519 # and are intended to be withdrawn in a future Autoconf release.
2520 # They can cause serious problems if a builder's source tree is in a directory
2521 # whose full name contains unusual characters.
2522 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2523 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2524 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2527 # Make sure we can run config.sub.
2528 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2529 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2532 $as_echo_n "checking build system type... " >&6; }
2533 if ${ac_cv_build+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 ac_build_alias=$build_alias
2537 test "x$ac_build_alias" = x &&
2538 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2539 test "x$ac_build_alias" = x &&
2540 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2541 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2546 $as_echo "$ac_cv_build" >&6; }
2547 case $ac_cv_build in
2548 *-*-*) ;;
2549 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2550 esac
2551 build=$ac_cv_build
2552 ac_save_IFS=$IFS; IFS='-'
2553 set x $ac_cv_build
2554 shift
2555 build_cpu=$1
2556 build_vendor=$2
2557 shift; shift
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2560 build_os=$*
2561 IFS=$ac_save_IFS
2562 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2566 $as_echo_n "checking host system type... " >&6; }
2567 if ${ac_cv_host+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test "x$host_alias" = x; then
2571 ac_cv_host=$ac_cv_build
2572 else
2573 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2579 $as_echo "$ac_cv_host" >&6; }
2580 case $ac_cv_host in
2581 *-*-*) ;;
2582 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2583 esac
2584 host=$ac_cv_host
2585 ac_save_IFS=$IFS; IFS='-'
2586 set x $ac_cv_host
2587 shift
2588 host_cpu=$1
2589 host_vendor=$2
2590 shift; shift
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2593 host_os=$*
2594 IFS=$ac_save_IFS
2595 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2599 $as_echo_n "checking target system type... " >&6; }
2600 if ${ac_cv_target+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test "x$target_alias" = x; then
2604 ac_cv_target=$ac_cv_host
2605 else
2606 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2612 $as_echo "$ac_cv_target" >&6; }
2613 case $ac_cv_target in
2614 *-*-*) ;;
2615 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2616 esac
2617 target=$ac_cv_target
2618 ac_save_IFS=$IFS; IFS='-'
2619 set x $ac_cv_target
2620 shift
2621 target_cpu=$1
2622 target_vendor=$2
2623 shift; shift
2624 # Remember, the first character of IFS is used to create $*,
2625 # except with old shells:
2626 target_os=$*
2627 IFS=$ac_save_IFS
2628 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2631 # The aliases save the names the user supplied, while $host etc.
2632 # will get canonicalized.
2633 test -n "$target_alias" &&
2634 test "$program_prefix$program_suffix$program_transform_name" = \
2635 NONENONEs,x,x, &&
2636 program_prefix=${target_alias}-
2638 # Expand $ac_aux_dir to an absolute path.
2639 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_CC+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2670 IFS=$as_save_IFS
2674 CC=$ac_cv_prog_CC
2675 if test -n "$CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2677 $as_echo "$CC" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2685 if test -z "$ac_cv_prog_CC"; then
2686 ac_ct_CC=$CC
2687 # Extract the first word of "gcc", so it can be a program name with args.
2688 set dummy gcc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$ac_ct_CC"; then
2695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_CC="gcc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2708 done
2709 done
2710 IFS=$as_save_IFS
2714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717 $as_echo "$ac_ct_CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2723 if test "x$ac_ct_CC" = x; then
2724 CC=""
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727 yes:)
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732 CC=$ac_ct_CC
2734 else
2735 CC="$ac_cv_prog_CC"
2738 if test -z "$CC"; then
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}cc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="${ac_tool_prefix}cc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_CC+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 ac_prog_rejected=no
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2799 ac_prog_rejected=yes
2800 continue
2802 ac_cv_prog_CC="cc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2810 if test $ac_prog_rejected = yes; then
2811 # We found a bogon in the path, so make sure we never use it.
2812 set dummy $ac_cv_prog_CC
2813 shift
2814 if test $# != 0; then
2815 # We chose a different compiler from the bogus one.
2816 # However, it has the same basename, so the bogon will be chosen
2817 # first if we set CC to just the basename; use the full file name.
2818 shift
2819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 $as_echo "$CC" >&6; }
2828 else
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog in cl.exe
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$CC" && break
2877 done
2879 if test -z "$CC"; then
2880 ac_ct_CC=$CC
2881 for ac_prog in cl.exe
2883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy $ac_prog; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC="$ac_prog"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2913 $as_echo "$ac_ct_CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2920 test -n "$ac_ct_CC" && break
2921 done
2923 if test "x$ac_ct_CC" = x; then
2924 CC=""
2925 else
2926 case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned=yes ;;
2931 esac
2932 CC=$ac_ct_CC
2939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $? "no acceptable C compiler found in \$PATH
2942 See \`config.log' for more details" "$LINENO" 5; }
2944 # Provide some information about the compiler.
2945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2946 set X $ac_compile
2947 ac_compiler=$2
2948 for ac_option in --version -v -V -qversion; do
2949 { { ac_try="$ac_compiler $ac_option >&5"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2957 ac_status=$?
2958 if test -s conftest.err; then
2959 sed '10a\
2960 ... rest of stderr output deleted ...
2961 10q' conftest.err >conftest.er1
2962 cat conftest.er1 >&5
2964 rm -f conftest.er1 conftest.err
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }
2967 done
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2973 main ()
2977 return 0;
2979 _ACEOF
2980 ac_clean_files_save=$ac_clean_files
2981 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2982 # Try to create an executable without -o first, disregard a.out.
2983 # It will help us diagnose broken compilers, and finding out an intuition
2984 # of exeext.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2986 $as_echo_n "checking whether the C compiler works... " >&6; }
2987 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2989 # The possible output files:
2990 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2992 ac_rmfiles=
2993 for ac_file in $ac_files
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2998 esac
2999 done
3000 rm -f $ac_rmfiles
3002 if { { ac_try="$ac_link_default"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_link_default") 2>&5
3010 ac_status=$?
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }; then :
3013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3014 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3015 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3016 # so that the user can short-circuit this test for compilers unknown to
3017 # Autoconf.
3018 for ac_file in $ac_files ''
3020 test -f "$ac_file" || continue
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3024 [ab].out )
3025 # We found the default executable, but exeext='' is most
3026 # certainly right.
3027 break;;
3028 *.* )
3029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3030 then :; else
3031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 # We set ac_cv_exeext here because the later test for it is not
3034 # safe: cross compilers may not add the suffix if given an `-o'
3035 # argument, so we may need to know it at that point already.
3036 # Even if this section looks crufty: it has the advantage of
3037 # actually working.
3038 break;;
3040 break;;
3041 esac
3042 done
3043 test "$ac_cv_exeext" = no && ac_cv_exeext=
3045 else
3046 ac_file=''
3048 if test -z "$ac_file"; then :
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error 77 "C compiler cannot create executables
3057 See \`config.log' for more details" "$LINENO" 5; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060 $as_echo "yes" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3063 $as_echo_n "checking for C compiler default output file name... " >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3065 $as_echo "$ac_file" >&6; }
3066 ac_exeext=$ac_cv_exeext
3068 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3069 ac_clean_files=$ac_clean_files_save
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3071 $as_echo_n "checking for suffix of executables... " >&6; }
3072 if { { ac_try="$ac_link"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3084 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3085 # work properly (i.e., refer to `conftest.exe'), while it won't with
3086 # `rm'.
3087 for ac_file in conftest.exe conftest conftest.*; do
3088 test -f "$ac_file" || continue
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092 break;;
3093 * ) break;;
3094 esac
3095 done
3096 else
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details" "$LINENO" 5; }
3102 rm -f conftest conftest$ac_cv_exeext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3104 $as_echo "$ac_cv_exeext" >&6; }
3106 rm -f conftest.$ac_ext
3107 EXEEXT=$ac_cv_exeext
3108 ac_exeext=$EXEEXT
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111 #include <stdio.h>
3113 main ()
3115 FILE *f = fopen ("conftest.out", "w");
3116 return ferror (f) || fclose (f) != 0;
3119 return 0;
3121 _ACEOF
3122 ac_clean_files="$ac_clean_files conftest.out"
3123 # Check that the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3126 $as_echo_n "checking whether we are cross compiling... " >&6; }
3127 if test "$cross_compiling" != yes; then
3128 { { ac_try="$ac_link"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_link") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }
3139 if { ac_try='./conftest$ac_cv_exeext'
3140 { { case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; }; then
3150 cross_compiling=no
3151 else
3152 if test "$cross_compiling" = maybe; then
3153 cross_compiling=yes
3154 else
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "cannot run C compiled programs.
3158 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details" "$LINENO" 5; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3164 $as_echo "$cross_compiling" >&6; }
3166 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3167 ac_clean_files=$ac_clean_files_save
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3169 $as_echo_n "checking for suffix of object files... " >&6; }
3170 if ${ac_cv_objext+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3177 main ()
3181 return 0;
3183 _ACEOF
3184 rm -f conftest.o conftest.obj
3185 if { { ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compile") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
3196 for ac_file in conftest.o conftest.obj conftest.*; do
3197 test -f "$ac_file" || continue;
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details" "$LINENO" 5; }
3213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3216 $as_echo "$ac_cv_objext" >&6; }
3217 OBJEXT=$ac_cv_objext
3218 ac_objext=$OBJEXT
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3220 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3221 if ${ac_cv_c_compiler_gnu+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3228 main ()
3230 #ifndef __GNUC__
3231 choke me
3232 #endif
3235 return 0;
3237 _ACEOF
3238 if ac_fn_c_try_compile "$LINENO"; then :
3239 ac_compiler_gnu=yes
3240 else
3241 ac_compiler_gnu=no
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3248 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249 if test $ac_compiler_gnu = yes; then
3250 GCC=yes
3251 else
3252 GCC=
3254 ac_test_CFLAGS=${CFLAGS+set}
3255 ac_save_CFLAGS=$CFLAGS
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3257 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3258 if ${ac_cv_prog_cc_g+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 ac_save_c_werror_flag=$ac_c_werror_flag
3262 ac_c_werror_flag=yes
3263 ac_cv_prog_cc_g=no
3264 CFLAGS="-g"
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3269 main ()
3273 return 0;
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_cv_prog_cc_g=yes
3278 else
3279 CFLAGS=""
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3293 else
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3300 main ()
3304 return 0;
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308 ac_cv_prog_cc_g=yes
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3318 $as_echo "$ac_cv_prog_cc_g" >&6; }
3319 if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3323 CFLAGS="-g -O2"
3324 else
3325 CFLAGS="-g"
3327 else
3328 if test "$GCC" = yes; then
3329 CFLAGS="-O2"
3330 else
3331 CFLAGS=
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3335 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3336 if ${ac_cv_prog_cc_c89+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 ac_cv_prog_cc_c89=no
3340 ac_save_CC=$CC
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343 #include <stdarg.h>
3344 #include <stdio.h>
3345 struct stat;
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3350 char **p;
3351 int i;
3353 return p[i];
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3357 char *s;
3358 va_list v;
3359 va_start (v,p);
3360 s = g (p, va_arg (v,int));
3361 va_end (v);
3362 return s;
3365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3366 function prototypes and stuff, but not '\xHH' hex character constants.
3367 These don't provoke an error unfortunately, instead are silently treated
3368 as 'x'. The following induces an error, until -std is added to get
3369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3370 array size at least. It's necessary to write '\x00'==0 to get something
3371 that's true only with -std. */
3372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3375 inside strings and character constants. */
3376 #define FOO(x) 'x'
3377 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379 int test (int i, double x);
3380 struct s1 {int (*f) (int a);};
3381 struct s2 {int (*f) (double a);};
3382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3383 int argc;
3384 char **argv;
3386 main ()
3388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3390 return 0;
3392 _ACEOF
3393 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3396 CC="$ac_save_CC $ac_arg"
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_prog_cc_c89=$ac_arg
3400 rm -f core conftest.err conftest.$ac_objext
3401 test "x$ac_cv_prog_cc_c89" != "xno" && break
3402 done
3403 rm -f conftest.$ac_ext
3404 CC=$ac_save_CC
3407 # AC_CACHE_VAL
3408 case "x$ac_cv_prog_cc_c89" in
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3411 $as_echo "none needed" >&6; } ;;
3412 xno)
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3414 $as_echo "unsupported" >&6; } ;;
3416 CC="$CC $ac_cv_prog_cc_c89"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3418 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3419 esac
3420 if test "x$ac_cv_prog_cc_c89" != xno; then :
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3436 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3437 if ${am_cv_prog_cc_c_o+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3444 main ()
3448 return 0;
3450 _ACEOF
3451 # Make sure it works both with $CC and with simple cc.
3452 # Following AC_PROG_CC_C_O, we do the test twice because some
3453 # compilers refuse to overwrite an existing .o file with -o,
3454 # though they will create one.
3455 am_cv_prog_cc_c_o=yes
3456 for am_i in 1 2; do
3457 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3458 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } \
3462 && test -f conftest2.$ac_objext; then
3463 : OK
3464 else
3465 am_cv_prog_cc_c_o=no
3466 break
3468 done
3469 rm -f core conftest*
3470 unset am_i
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3473 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3474 if test "$am_cv_prog_cc_c_o" != yes; then
3475 # Losing compiler, so override with the script.
3476 # FIXME: It is wrong to rewrite CC.
3477 # But if we don't then we get into trouble of one sort or another.
3478 # A longer-term fix would be to have automake use am__CC in this case,
3479 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3480 CC="$am_aux_dir/compile $CC"
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3496 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3497 # On Suns, sometimes $CPP names a directory.
3498 if test -n "$CPP" && test -d "$CPP"; then
3499 CPP=
3501 if test -z "$CPP"; then
3502 if ${ac_cv_prog_CPP+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 # Double quotes because CPP needs to be expanded
3506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3508 ac_preproc_ok=false
3509 for ac_c_preproc_warn_flag in '' yes
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #ifdef __STDC__
3520 # include <limits.h>
3521 #else
3522 # include <assert.h>
3523 #endif
3524 Syntax error
3525 _ACEOF
3526 if ac_fn_c_try_cpp "$LINENO"; then :
3528 else
3529 # Broken: fails on valid input.
3530 continue
3532 rm -f conftest.err conftest.i conftest.$ac_ext
3534 # OK, works on sane cases. Now check whether nonexistent headers
3535 # can be detected and how.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #include <ac_nonexistent.h>
3539 _ACEOF
3540 if ac_fn_c_try_cpp "$LINENO"; then :
3541 # Broken: success on invalid input.
3542 continue
3543 else
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3548 rm -f conftest.err conftest.i conftest.$ac_ext
3550 done
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.i conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then :
3554 break
3557 done
3558 ac_cv_prog_CPP=$CPP
3561 CPP=$ac_cv_prog_CPP
3562 else
3563 ac_cv_prog_CPP=$CPP
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3566 $as_echo "$CPP" >&6; }
3567 ac_preproc_ok=false
3568 for ac_c_preproc_warn_flag in '' yes
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #ifdef __STDC__
3579 # include <limits.h>
3580 #else
3581 # include <assert.h>
3582 #endif
3583 Syntax error
3584 _ACEOF
3585 if ac_fn_c_try_cpp "$LINENO"; then :
3587 else
3588 # Broken: fails on valid input.
3589 continue
3591 rm -f conftest.err conftest.i conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3598 _ACEOF
3599 if ac_fn_c_try_cpp "$LINENO"; then :
3600 # Broken: success on invalid input.
3601 continue
3602 else
3603 # Passes both tests.
3604 ac_preproc_ok=:
3605 break
3607 rm -f conftest.err conftest.i conftest.$ac_ext
3609 done
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.i conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then :
3614 else
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3618 See \`config.log' for more details" "$LINENO" 5; }
3621 ac_ext=c
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3630 if ${ac_cv_path_GREP+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -z "$GREP"; then
3634 ac_path_GREP_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in grep ggrep; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644 as_fn_executable_p "$ac_path_GREP" || continue
3645 # Check for GNU ac_path_GREP and select it if it is found.
3646 # Check for GNU $ac_path_GREP
3647 case `"$ac_path_GREP" --version 2>&1` in
3648 *GNU*)
3649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3651 ac_count=0
3652 $as_echo_n 0123456789 >"conftest.in"
3653 while :
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 $as_echo 'GREP' >> "conftest.nl"
3659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 as_fn_arith $ac_count + 1 && ac_count=$as_val
3662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_GREP="$ac_path_GREP"
3665 ac_path_GREP_max=$ac_count
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3669 done
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 esac
3673 $ac_path_GREP_found && break 3
3674 done
3675 done
3676 done
3677 IFS=$as_save_IFS
3678 if test -z "$ac_cv_path_GREP"; then
3679 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3681 else
3682 ac_cv_path_GREP=$GREP
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3687 $as_echo "$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3692 $as_echo_n "checking for egrep... " >&6; }
3693 if ${ac_cv_path_EGREP+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3698 else
3699 if test -z "$EGREP"; then
3700 ac_path_EGREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in egrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710 as_fn_executable_p "$ac_path_EGREP" || continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
3712 # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3714 *GNU*)
3715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3717 ac_count=0
3718 $as_echo_n 0123456789 >"conftest.in"
3719 while :
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 $as_echo 'EGREP' >> "conftest.nl"
3725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 as_fn_arith $ac_count + 1 && ac_count=$as_val
3728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_EGREP="$ac_path_EGREP"
3731 ac_path_EGREP_max=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3735 done
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 esac
3739 $ac_path_EGREP_found && break 3
3740 done
3741 done
3742 done
3743 IFS=$as_save_IFS
3744 if test -z "$ac_cv_path_EGREP"; then
3745 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3747 else
3748 ac_cv_path_EGREP=$EGREP
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3754 $as_echo "$ac_cv_path_EGREP" >&6; }
3755 EGREP="$ac_cv_path_EGREP"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3759 $as_echo_n "checking for ANSI C header files... " >&6; }
3760 if ${ac_cv_header_stdc+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <stdlib.h>
3766 #include <stdarg.h>
3767 #include <string.h>
3768 #include <float.h>
3771 main ()
3775 return 0;
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_header_stdc=yes
3780 else
3781 ac_cv_header_stdc=no
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 if test $ac_cv_header_stdc = yes; then
3786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <string.h>
3791 _ACEOF
3792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 $EGREP "memchr" >/dev/null 2>&1; then :
3795 else
3796 ac_cv_header_stdc=no
3798 rm -f conftest*
3802 if test $ac_cv_header_stdc = yes; then
3803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806 #include <stdlib.h>
3808 _ACEOF
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "free" >/dev/null 2>&1; then :
3812 else
3813 ac_cv_header_stdc=no
3815 rm -f conftest*
3819 if test $ac_cv_header_stdc = yes; then
3820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821 if test "$cross_compiling" = yes; then :
3823 else
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <ctype.h>
3827 #include <stdlib.h>
3828 #if ((' ' & 0x0FF) == 0x020)
3829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831 #else
3832 # define ISLOWER(c) \
3833 (('a' <= (c) && (c) <= 'i') \
3834 || ('j' <= (c) && (c) <= 'r') \
3835 || ('s' <= (c) && (c) <= 'z'))
3836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3837 #endif
3839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3841 main ()
3843 int i;
3844 for (i = 0; i < 256; i++)
3845 if (XOR (islower (i), ISLOWER (i))
3846 || toupper (i) != TOUPPER (i))
3847 return 2;
3848 return 0;
3850 _ACEOF
3851 if ac_fn_c_try_run "$LINENO"; then :
3853 else
3854 ac_cv_header_stdc=no
3856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3857 conftest.$ac_objext conftest.beam conftest.$ac_ext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3863 $as_echo "$ac_cv_header_stdc" >&6; }
3864 if test $ac_cv_header_stdc = yes; then
3866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3870 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3871 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3872 inttypes.h stdint.h unistd.h
3873 do :
3874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3875 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3878 cat >>confdefs.h <<_ACEOF
3879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880 _ACEOF
3884 done
3888 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3889 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3890 MINIX=yes
3891 else
3892 MINIX=
3896 if test "$MINIX" = yes; then
3898 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3904 $as_echo "#define _MINIX 1" >>confdefs.h
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3910 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3911 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3917 # define __EXTENSIONS__ 1
3918 $ac_includes_default
3920 main ()
3924 return 0;
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_safe_to_define___extensions__=yes
3929 else
3930 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3939 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3941 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3945 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3949 target_alias=${target_alias-$target}
3952 # 1.11.1: Require that version of automake.
3953 # foreign: Don't require README, INSTALL, NEWS, etc.
3954 # no-define: Don't define PACKAGE and VERSION.
3955 # no-dependencies: Don't generate automatic dependencies.
3956 # (because it breaks when using bootstrap-lean, since some of the
3957 # headers are gone at "make install" time).
3958 # subdir-objects: Build objects in sub-directories.
3959 # -Wall: Issue all automake warnings.
3960 # -Wno-portability: Don't warn about constructs supported by GNU make.
3961 # (because GCC requires GNU make anyhow).
3962 # -Wno-override: Overrides used in testsuite.
3963 am__api_version='1.15'
3965 # Find a good install program. We prefer a C program (faster),
3966 # so one script is as good as another. But avoid the broken or
3967 # incompatible versions:
3968 # SysV /etc/install, /usr/sbin/install
3969 # SunOS /usr/etc/install
3970 # IRIX /sbin/install
3971 # AIX /bin/install
3972 # AmigaOS /C/install, which installs bootblocks on floppy discs
3973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3976 # OS/2's system install, which has a completely different semantic
3977 # ./install, which can be erroneously created by make from ./install.sh.
3978 # Reject install programs that cannot install multiple files.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3980 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3981 if test -z "$INSTALL"; then
3982 if ${ac_cv_path_install+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 # Account for people who put trailing slashes in PATH elements.
3991 case $as_dir/ in #((
3992 ./ | .// | /[cC]/* | \
3993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3994 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3995 /usr/ucb/* ) ;;
3997 # OSF1 and SCO ODT 3.0 have their own names for install.
3998 # Don't use installbsd from OSF since it installs stuff as root
3999 # by default.
4000 for ac_prog in ginstall scoinst install; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4003 if test $ac_prog = install &&
4004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4005 # AIX install. It has an incompatible calling convention.
4007 elif test $ac_prog = install &&
4008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009 # program-specific install script used by HP pwplus--don't use.
4011 else
4012 rm -rf conftest.one conftest.two conftest.dir
4013 echo one > conftest.one
4014 echo two > conftest.two
4015 mkdir conftest.dir
4016 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4017 test -s conftest.one && test -s conftest.two &&
4018 test -s conftest.dir/conftest.one &&
4019 test -s conftest.dir/conftest.two
4020 then
4021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4022 break 3
4026 done
4027 done
4029 esac
4031 done
4032 IFS=$as_save_IFS
4034 rm -rf conftest.one conftest.two conftest.dir
4037 if test "${ac_cv_path_install+set}" = set; then
4038 INSTALL=$ac_cv_path_install
4039 else
4040 # As a last resort, use the slow shell script. Don't cache a
4041 # value for INSTALL within a source directory, because that will
4042 # break other packages using the cache if that directory is
4043 # removed, or if the value is a relative name.
4044 INSTALL=$ac_install_sh
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4048 $as_echo "$INSTALL" >&6; }
4050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4051 # It thinks the first close brace ends the variable substitution.
4052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4059 $as_echo_n "checking whether build environment is sane... " >&6; }
4060 # Reject unsafe characters in $srcdir or the absolute working directory
4061 # name. Accept space and tab only in the latter.
4062 am_lf='
4064 case `pwd` in
4065 *[\\\"\#\$\&\'\`$am_lf]*)
4066 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4067 esac
4068 case $srcdir in
4069 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4070 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4071 esac
4073 # Do 'set' in a subshell so we don't clobber the current shell's
4074 # arguments. Must try -L first in case configure is actually a
4075 # symlink; some systems play weird games with the mod time of symlinks
4076 # (eg FreeBSD returns the mod time of the symlink's containing
4077 # directory).
4078 if (
4079 am_has_slept=no
4080 for am_try in 1 2; do
4081 echo "timestamp, slept: $am_has_slept" > conftest.file
4082 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4083 if test "$*" = "X"; then
4084 # -L didn't work.
4085 set X `ls -t "$srcdir/configure" conftest.file`
4087 if test "$*" != "X $srcdir/configure conftest.file" \
4088 && test "$*" != "X conftest.file $srcdir/configure"; then
4090 # If neither matched, then we have a broken ls. This can happen
4091 # if, for instance, CONFIG_SHELL is bash and it inherits a
4092 # broken ls alias from the environment. This has actually
4093 # happened. Such a system could not be considered "sane".
4094 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4095 alias in your environment" "$LINENO" 5
4097 if test "$2" = conftest.file || test $am_try -eq 2; then
4098 break
4100 # Just in case.
4101 sleep 1
4102 am_has_slept=yes
4103 done
4104 test "$2" = conftest.file
4106 then
4107 # Ok.
4109 else
4110 as_fn_error $? "newly created file is older than distributed files!
4111 Check your system clock" "$LINENO" 5
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 # If we didn't sleep, we still need to ensure time stamps of config.status and
4116 # generated files are strictly newer.
4117 am_sleep_pid=
4118 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4119 ( sleep 1 ) &
4120 am_sleep_pid=$!
4123 rm -f conftest.file
4125 test "$program_prefix" != NONE &&
4126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4127 # Use a double $ so make ignores it.
4128 test "$program_suffix" != NONE &&
4129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4130 # Double any \ or $.
4131 # By default was `s,x,x', remove it if useless.
4132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4135 if test x"${MISSING+set}" != xset; then
4136 case $am_aux_dir in
4137 *\ * | *\ *)
4138 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4140 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4141 esac
4143 # Use eval to expand $SHELL
4144 if eval "$MISSING --is-lightweight"; then
4145 am_missing_run="$MISSING "
4146 else
4147 am_missing_run=
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4149 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4152 if test x"${install_sh+set}" != xset; then
4153 case $am_aux_dir in
4154 *\ * | *\ *)
4155 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4157 install_sh="\${SHELL} $am_aux_dir/install-sh"
4158 esac
4161 # Installed binaries are usually stripped using 'strip' when the user
4162 # run "make install-strip". However 'strip' might not be the right
4163 # tool to use in cross-compilation environments, therefore Automake
4164 # will honor the 'STRIP' environment variable to overrule this program.
4165 if test "$cross_compiling" != no; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}strip; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_STRIP+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$STRIP"; then
4175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 STRIP=$ac_cv_prog_STRIP
4195 if test -n "$STRIP"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4197 $as_echo "$STRIP" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$ac_cv_prog_STRIP"; then
4206 ac_ct_STRIP=$STRIP
4207 # Extract the first word of "strip", so it can be a program name with args.
4208 set dummy strip; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$ac_ct_STRIP"; then
4215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_ac_ct_STRIP="strip"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4235 if test -n "$ac_ct_STRIP"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4237 $as_echo "$ac_ct_STRIP" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4243 if test "x$ac_ct_STRIP" = x; then
4244 STRIP=":"
4245 else
4246 case $cross_compiling:$ac_tool_warned in
4247 yes:)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned=yes ;;
4251 esac
4252 STRIP=$ac_ct_STRIP
4254 else
4255 STRIP="$ac_cv_prog_STRIP"
4259 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4262 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4263 if test -z "$MKDIR_P"; then
4264 if ${ac_cv_path_mkdir+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in mkdir gmkdir; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4275 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4276 'mkdir (GNU coreutils) '* | \
4277 'mkdir (coreutils) '* | \
4278 'mkdir (fileutils) '4.1*)
4279 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4280 break 3;;
4281 esac
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 test -d ./--version && rmdir ./--version
4290 if test "${ac_cv_path_mkdir+set}" = set; then
4291 MKDIR_P="$ac_cv_path_mkdir -p"
4292 else
4293 # As a last resort, use the slow shell script. Don't cache a
4294 # value for MKDIR_P within a source directory, because that will
4295 # break other packages using the cache if that directory is
4296 # removed, or if the value is a relative name.
4297 MKDIR_P="$ac_install_sh -d"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4301 $as_echo "$MKDIR_P" >&6; }
4303 for ac_prog in gawk mawk nawk awk
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_AWK+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$AWK"; then
4313 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_AWK="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 AWK=$ac_cv_prog_AWK
4333 if test -n "$AWK"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4335 $as_echo "$AWK" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$AWK" && break
4343 done
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4346 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4347 set x ${MAKE-make}
4348 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4349 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 cat >conftest.make <<\_ACEOF
4353 SHELL = /bin/sh
4354 all:
4355 @echo '@@@%%%=$(MAKE)=@@@%%%'
4356 _ACEOF
4357 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4358 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4359 *@@@%%%=?*=@@@%%%*)
4360 eval ac_cv_prog_make_${ac_make}_set=yes;;
4362 eval ac_cv_prog_make_${ac_make}_set=no;;
4363 esac
4364 rm -f conftest.make
4366 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4369 SET_MAKE=
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 SET_MAKE="MAKE=${MAKE-make}"
4376 rm -rf .tst 2>/dev/null
4377 mkdir .tst 2>/dev/null
4378 if test -d .tst; then
4379 am__leading_dot=.
4380 else
4381 am__leading_dot=_
4383 rmdir .tst 2>/dev/null
4385 # Check whether --enable-silent-rules was given.
4386 if test "${enable_silent_rules+set}" = set; then :
4387 enableval=$enable_silent_rules;
4390 case $enable_silent_rules in # (((
4391 yes) AM_DEFAULT_VERBOSITY=0;;
4392 no) AM_DEFAULT_VERBOSITY=1;;
4393 *) AM_DEFAULT_VERBOSITY=1;;
4394 esac
4395 am_make=${MAKE-make}
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4398 if ${am_cv_make_support_nested_variables+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if $as_echo 'TRUE=$(BAR$(V))
4402 BAR0=false
4403 BAR1=true
4405 am__doit:
4406 @$(TRUE)
4407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4408 am_cv_make_support_nested_variables=yes
4409 else
4410 am_cv_make_support_nested_variables=no
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4415 if test $am_cv_make_support_nested_variables = yes; then
4416 AM_V='$(V)'
4417 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4418 else
4419 AM_V=$AM_DEFAULT_VERBOSITY
4420 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4422 AM_BACKSLASH='\'
4424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4425 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4426 # is not polluted with repeated "-I."
4427 am__isrc=' -I$(srcdir)'
4428 # test to see if srcdir already configured
4429 if test -f $srcdir/config.status; then
4430 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4434 # test whether we have cygpath
4435 if test -z "$CYGPATH_W"; then
4436 if (cygpath --version) >/dev/null 2>/dev/null; then
4437 CYGPATH_W='cygpath -w'
4438 else
4439 CYGPATH_W=echo
4444 # Define the identity of the package.
4445 PACKAGE='libphobos'
4446 VERSION='version-unused'
4449 # Some tools Automake needs.
4451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4465 # For better backward compatibility. To be removed once Automake 1.9.x
4466 # dies out for good. For more background, see:
4467 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4468 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4469 mkdir_p='$(MKDIR_P)'
4471 # We need awk for the "check" target (and possibly the TAP driver). The
4472 # system "awk" is bad on some platforms.
4473 # Always define AMTAR for backward compatibility. Yes, it's still used
4474 # in the wild :-( We should find a proper way to deprecate it ...
4475 AMTAR='$${TAR-tar}'
4478 # We'll loop over all known methods to create a tar archive until one works.
4479 _am_tools='gnutar pax cpio none'
4481 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4488 # POSIX will say in a future version that running "rm -f" with no argument
4489 # is OK; and we want to be able to make that assumption in our Makefile
4490 # recipes. So use an aggressive probe to check that the usage we want is
4491 # actually supported "in the wild" to an acceptable degree.
4492 # See automake bug#10828.
4493 # To make any issue more visible, cause the running configure to be aborted
4494 # by default if the 'rm' program in use doesn't match our expectations; the
4495 # user can still override this though.
4496 if rm -f && rm -fr && rm -rf; then : OK; else
4497 cat >&2 <<'END'
4498 Oops!
4500 Your 'rm' program seems unable to run without file operands specified
4501 on the command line, even when the '-f' option is present. This is contrary
4502 to the behaviour of most rm programs out there, and not conforming with
4503 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4505 Please tell bug-automake@gnu.org about your system, including the value
4506 of your $PATH and any error possibly output before this message. This
4507 can help us improve future automake versions.
4510 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4511 echo 'Configuration will proceed anyway, since you have set the' >&2
4512 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4513 echo >&2
4514 else
4515 cat >&2 <<'END'
4516 Aborting the configuration process, to ensure you take notice of the issue.
4518 You can download and install GNU coreutils to get an 'rm' implementation
4519 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4521 If you want to complete the configuration process using your problematic
4522 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4523 to "yes", and re-run configure.
4526 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4533 # By default we simply use the C compiler to build assembly code.
4535 test "${CCAS+set}" = set || CCAS=$CC
4536 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_CC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 CC=$ac_cv_prog_CC
4574 if test -n "$CC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 $as_echo "$CC" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4584 if test -z "$ac_cv_prog_CC"; then
4585 ac_ct_CC=$CC
4586 # Extract the first word of "gcc", so it can be a program name with args.
4587 set dummy gcc; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_ac_ct_CC="gcc"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614 if test -n "$ac_ct_CC"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4616 $as_echo "$ac_ct_CC" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4622 if test "x$ac_ct_CC" = x; then
4623 CC=""
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631 CC=$ac_ct_CC
4633 else
4634 CC="$ac_cv_prog_CC"
4637 if test -z "$CC"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}cc; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_CC+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC="${ac_tool_prefix}cc"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4678 if test -z "$CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680 set dummy cc; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_CC+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 else
4689 ac_prog_rejected=no
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4699 continue
4701 ac_cv_prog_CC="cc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4709 if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_CC
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set CC to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4723 CC=$ac_cv_prog_CC
4724 if test -n "$CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726 $as_echo "$CC" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4734 if test -z "$CC"; then
4735 if test -n "$ac_tool_prefix"; then
4736 for ac_prog in cl.exe
4738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_CC+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4765 CC=$ac_cv_prog_CC
4766 if test -n "$CC"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4768 $as_echo "$CC" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4775 test -n "$CC" && break
4776 done
4778 if test -z "$CC"; then
4779 ac_ct_CC=$CC
4780 for ac_prog in cl.exe
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$ac_ct_CC"; then
4790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_ac_ct_CC="$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4810 if test -n "$ac_ct_CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4812 $as_echo "$ac_ct_CC" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$ac_ct_CC" && break
4820 done
4822 if test "x$ac_ct_CC" = x; then
4823 CC=""
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826 yes:)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned=yes ;;
4830 esac
4831 CC=$ac_ct_CC
4838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 as_fn_error $? "no acceptable C compiler found in \$PATH
4841 See \`config.log' for more details" "$LINENO" 5; }
4843 # Provide some information about the compiler.
4844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4845 set X $ac_compile
4846 ac_compiler=$2
4847 for ac_option in --version -v -V -qversion; do
4848 { { ac_try="$ac_compiler $ac_option >&5"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4854 $as_echo "$ac_try_echo"; } >&5
4855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4856 ac_status=$?
4857 if test -s conftest.err; then
4858 sed '10a\
4859 ... rest of stderr output deleted ...
4860 10q' conftest.err >conftest.er1
4861 cat conftest.er1 >&5
4863 rm -f conftest.er1 conftest.err
4864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }
4866 done
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4870 if ${ac_cv_c_compiler_gnu+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4877 main ()
4879 #ifndef __GNUC__
4880 choke me
4881 #endif
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_compiler_gnu=yes
4889 else
4890 ac_compiler_gnu=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4898 if test $ac_compiler_gnu = yes; then
4899 GCC=yes
4900 else
4901 GCC=
4903 ac_test_CFLAGS=${CFLAGS+set}
4904 ac_save_CFLAGS=$CFLAGS
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4907 if ${ac_cv_prog_cc_g+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 ac_save_c_werror_flag=$ac_c_werror_flag
4911 ac_c_werror_flag=yes
4912 ac_cv_prog_cc_g=no
4913 CFLAGS="-g"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4918 main ()
4922 return 0;
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 ac_cv_prog_cc_g=yes
4927 else
4928 CFLAGS=""
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4933 main ()
4937 return 0;
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4942 else
4943 ac_c_werror_flag=$ac_save_c_werror_flag
4944 CFLAGS="-g"
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4949 main ()
4953 return 0;
4955 _ACEOF
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 ac_cv_prog_cc_g=yes
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4972 CFLAGS="-g -O2"
4973 else
4974 CFLAGS="-g"
4976 else
4977 if test "$GCC" = yes; then
4978 CFLAGS="-O2"
4979 else
4980 CFLAGS=
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if ${ac_cv_prog_cc_c89+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_cv_prog_cc_c89=no
4989 ac_save_CC=$CC
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdarg.h>
4993 #include <stdio.h>
4994 struct stat;
4995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4996 struct buf { int x; };
4997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4998 static char *e (p, i)
4999 char **p;
5000 int i;
5002 return p[i];
5004 static char *f (char * (*g) (char **, int), char **p, ...)
5006 char *s;
5007 va_list v;
5008 va_start (v,p);
5009 s = g (p, va_arg (v,int));
5010 va_end (v);
5011 return s;
5014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5015 function prototypes and stuff, but not '\xHH' hex character constants.
5016 These don't provoke an error unfortunately, instead are silently treated
5017 as 'x'. The following induces an error, until -std is added to get
5018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5019 array size at least. It's necessary to write '\x00'==0 to get something
5020 that's true only with -std. */
5021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5024 inside strings and character constants. */
5025 #define FOO(x) 'x'
5026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5028 int test (int i, double x);
5029 struct s1 {int (*f) (int a);};
5030 struct s2 {int (*f) (double a);};
5031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5032 int argc;
5033 char **argv;
5035 main ()
5037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5039 return 0;
5041 _ACEOF
5042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5045 CC="$ac_save_CC $ac_arg"
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_cv_prog_cc_c89=$ac_arg
5049 rm -f core conftest.err conftest.$ac_objext
5050 test "x$ac_cv_prog_cc_c89" != "xno" && break
5051 done
5052 rm -f conftest.$ac_ext
5053 CC=$ac_save_CC
5056 # AC_CACHE_VAL
5057 case "x$ac_cv_prog_cc_c89" in
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5060 $as_echo "none needed" >&6; } ;;
5061 xno)
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5063 $as_echo "unsupported" >&6; } ;;
5065 CC="$CC $ac_cv_prog_cc_c89"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5068 esac
5069 if test "x$ac_cv_prog_cc_c89" != xno; then :
5073 ac_ext=c
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5085 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5086 if ${am_cv_prog_cc_c_o+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5093 main ()
5097 return 0;
5099 _ACEOF
5100 # Make sure it works both with $CC and with simple cc.
5101 # Following AC_PROG_CC_C_O, we do the test twice because some
5102 # compilers refuse to overwrite an existing .o file with -o,
5103 # though they will create one.
5104 am_cv_prog_cc_c_o=yes
5105 for am_i in 1 2; do
5106 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5107 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } \
5111 && test -f conftest2.$ac_objext; then
5112 : OK
5113 else
5114 am_cv_prog_cc_c_o=no
5115 break
5117 done
5118 rm -f core conftest*
5119 unset am_i
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5122 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5123 if test "$am_cv_prog_cc_c_o" != yes; then
5124 # Losing compiler, so override with the script.
5125 # FIXME: It is wrong to rewrite CC.
5126 # But if we don't then we get into trouble of one sort or another.
5127 # A longer-term fix would be to have automake use am__CC in this case,
5128 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5129 CC="$am_aux_dir/compile $CC"
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 ac_ext=d
5139 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5140 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=yes
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_GDC+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$GDC"; then
5151 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 GDC=$ac_cv_prog_GDC
5171 if test -n "$GDC"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5173 $as_echo "$GDC" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_GDC"; then
5182 ac_ct_GDC=$GDC
5183 # Extract the first word of "gdc", so it can be a program name with args.
5184 set dummy gdc; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_GDC"; then
5191 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_GDC="gdc"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5211 if test -n "$ac_ct_GDC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5213 $as_echo "$ac_ct_GDC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_GDC" = x; then
5220 GDC=""
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228 GDC=$ac_ct_GDC
5230 else
5231 GDC="$ac_cv_prog_GDC"
5234 if test -z "$GDC"; then
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_GDC+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$GDC"; then
5244 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 GDC=$ac_cv_prog_GDC
5264 if test -n "$GDC"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5266 $as_echo "$GDC" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5275 if test -z "$GDC"; then
5276 # Extract the first word of "gdc", so it can be a program name with args.
5277 set dummy gdc; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_GDC+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$GDC"; then
5284 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5285 else
5286 ac_prog_rejected=no
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5295 ac_prog_rejected=yes
5296 continue
5298 ac_cv_prog_GDC="gdc"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5306 if test $ac_prog_rejected = yes; then
5307 # We found a bogon in the path, so make sure we never use it.
5308 set dummy $ac_cv_prog_GDC
5309 shift
5310 if test $# != 0; then
5311 # We chose a different compiler from the bogus one.
5312 # However, it has the same basename, so the bogon will be chosen
5313 # first if we set GDC to just the basename; use the full file name.
5314 shift
5315 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5320 GDC=$ac_cv_prog_GDC
5321 if test -n "$GDC"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5323 $as_echo "$GDC" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5333 # Provide some information about the compiler.
5334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5335 set X $ac_compile
5336 ac_compiler=$2
5337 { { ac_try="$ac_compiler --version >&5"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5343 $as_echo "$ac_try_echo"; } >&5
5344 (eval "$ac_compiler --version >&5") 2>conftest.err
5345 ac_status=$?
5346 if test -s conftest.err; then
5347 sed '10a\
5348 ... rest of stderr output deleted ...
5349 10q' conftest.err >conftest.er1
5350 cat conftest.er1 >&5
5352 rm -f conftest.er1 conftest.err
5353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5354 test $ac_status = 0; }
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5363 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5364 if ${phobos_cv_abs_srcdir+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5370 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5371 if test -d "$phobos_cv_abs_srcdir"; then :
5373 else
5374 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5380 gdc_save_DFLAGS=$GDCFLAGS
5381 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5383 ac_ext=d
5384 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5385 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=yes
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5389 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5390 cat > conftest.$ac_ext <<_ACEOF
5391 module mod;
5394 extern(C) int main() {
5395 return 0;
5397 _ACEOF
5398 if ac_fn_d_try_compile "$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 GDCFLAGS=$gdc_save_DFLAGS
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5423 # Check whether --enable-maintainer-mode was given.
5424 if test "${enable_maintainer_mode+set}" = set; then :
5425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5426 else
5427 USE_MAINTAINER_MODE=no
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5432 if test $USE_MAINTAINER_MODE = yes; then
5433 MAINTAINER_MODE_TRUE=
5434 MAINTAINER_MODE_FALSE='#'
5435 else
5436 MAINTAINER_MODE_TRUE='#'
5437 MAINTAINER_MODE_FALSE=
5440 MAINT=$MAINTAINER_MODE_TRUE
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_RANLIB+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$RANLIB"; then
5452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5467 IFS=$as_save_IFS
5471 RANLIB=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483 ac_ct_RANLIB=$RANLIB
5484 # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$ac_ct_RANLIB"; then
5492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_ac_ct_RANLIB="ranlib"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_ct_RANLIB" = x; then
5521 RANLIB=":"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 RANLIB=$ac_ct_RANLIB
5531 else
5532 RANLIB="$ac_cv_prog_RANLIB"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5537 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5538 set x ${MAKE-make}
5539 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5540 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 cat >conftest.make <<\_ACEOF
5544 SHELL = /bin/sh
5545 all:
5546 @echo '@@@%%%=$(MAKE)=@@@%%%'
5547 _ACEOF
5548 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5549 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5550 *@@@%%%=?*=@@@%%%*)
5551 eval ac_cv_prog_make_${ac_make}_set=yes;;
5553 eval ac_cv_prog_make_${ac_make}_set=no;;
5554 esac
5555 rm -f conftest.make
5557 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5559 $as_echo "yes" >&6; }
5560 SET_MAKE=
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 SET_MAKE="MAKE=${MAKE-make}"
5568 # Add CET specific flags if CET is enabled
5569 # Check whether --enable-cet was given.
5570 if test "${enable_cet+set}" = set; then :
5571 enableval=$enable_cet;
5572 case "$enableval" in
5573 yes|no|auto) ;;
5574 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5575 esac
5577 else
5578 enable_cet=auto
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5583 $as_echo_n "checking for CET support... " >&6; }
5585 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5586 case "$host" in
5587 i[34567]86-*-linux* | x86_64-*-linux*)
5588 case "$enable_cet" in
5589 auto)
5590 # Check if target supports multi-byte NOPs
5591 # and if compiler and assembler support CET insn.
5592 cet_save_CFLAGS="$CFLAGS"
5593 CFLAGS="$CFLAGS -fcf-protection"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5598 main ()
5601 #if !defined(__SSE2__)
5602 #error target does not support multi-byte NOPs
5603 #else
5604 asm ("setssbsy");
5605 #endif
5608 return 0;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"; then :
5612 enable_cet=yes
5613 else
5614 enable_cet=no
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 CFLAGS="$cet_save_CFLAGS"
5619 yes)
5620 # Check if assembler supports CET.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5625 main ()
5627 asm ("setssbsy");
5629 return 0;
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5634 else
5635 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 esac
5642 enable_cet=no
5644 esac
5645 if test x$enable_cet = xyes; then
5646 CET_FLAGS="-fcf-protection -mshstk"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 # To ensure that runtime code for CET is compiled in, add in D version flags.
5656 if test x$enable_cet = xyes; then :
5658 CET_DFLAGS="$CET_FLAGS -fversion=CET"
5659 DCFG_ENABLE_CET=true
5661 else
5663 CET_DFLAGS=
5664 DCFG_ENABLE_CET=false
5670 # This should be inherited in the recursive make, but ensure it is defined.
5671 test "$AR" || AR=ar
5674 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5678 # Enable libtool
5679 case `pwd` in
5680 *\ * | *\ *)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5682 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5683 esac
5687 macro_version='2.2.7a'
5688 macro_revision='1.3134'
5702 ltmain="$ac_aux_dir/ltmain.sh"
5704 # Backslashify metacharacters that are still active within
5705 # double-quoted strings.
5706 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5708 # Same as above, but do not quote variable references.
5709 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5711 # Sed substitution to delay expansion of an escaped shell variable in a
5712 # double_quote_subst'ed string.
5713 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5715 # Sed substitution to delay expansion of an escaped single quote.
5716 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5718 # Sed substitution to avoid accidental globbing in evaled expressions
5719 no_glob_subst='s/\*/\\\*/g'
5721 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5723 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5726 $as_echo_n "checking how to print strings... " >&6; }
5727 # Test print first, because it will be a builtin if present.
5728 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5729 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5730 ECHO='print -r --'
5731 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5732 ECHO='printf %s\n'
5733 else
5734 # Use this function as a fallback that always works.
5735 func_fallback_echo ()
5737 eval 'cat <<_LTECHO_EOF
5739 _LTECHO_EOF'
5741 ECHO='func_fallback_echo'
5744 # func_echo_all arg...
5745 # Invoke $ECHO with all args, space-separated.
5746 func_echo_all ()
5748 $ECHO ""
5751 case "$ECHO" in
5752 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5753 $as_echo "printf" >&6; } ;;
5754 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5755 $as_echo "print -r" >&6; } ;;
5756 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5757 $as_echo "cat" >&6; } ;;
5758 esac
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5774 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5775 if ${ac_cv_path_SED+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5779 for ac_i in 1 2 3 4 5 6 7; do
5780 ac_script="$ac_script$as_nl$ac_script"
5781 done
5782 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5783 { ac_script=; unset ac_script;}
5784 if test -z "$SED"; then
5785 ac_path_SED_found=false
5786 # Loop through the user's path and test for each of PROGNAME-LIST
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_prog in sed gsed; do
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5795 as_fn_executable_p "$ac_path_SED" || continue
5796 # Check for GNU ac_path_SED and select it if it is found.
5797 # Check for GNU $ac_path_SED
5798 case `"$ac_path_SED" --version 2>&1` in
5799 *GNU*)
5800 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5802 ac_count=0
5803 $as_echo_n 0123456789 >"conftest.in"
5804 while :
5806 cat "conftest.in" "conftest.in" >"conftest.tmp"
5807 mv "conftest.tmp" "conftest.in"
5808 cp "conftest.in" "conftest.nl"
5809 $as_echo '' >> "conftest.nl"
5810 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5812 as_fn_arith $ac_count + 1 && ac_count=$as_val
5813 if test $ac_count -gt ${ac_path_SED_max-0}; then
5814 # Best one so far, save it but keep looking for a better one
5815 ac_cv_path_SED="$ac_path_SED"
5816 ac_path_SED_max=$ac_count
5818 # 10*(2^10) chars as input seems more than enough
5819 test $ac_count -gt 10 && break
5820 done
5821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 esac
5824 $ac_path_SED_found && break 3
5825 done
5826 done
5827 done
5828 IFS=$as_save_IFS
5829 if test -z "$ac_cv_path_SED"; then
5830 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5832 else
5833 ac_cv_path_SED=$SED
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5838 $as_echo "$ac_cv_path_SED" >&6; }
5839 SED="$ac_cv_path_SED"
5840 rm -f conftest.sed
5842 test -z "$SED" && SED=sed
5843 Xsed="$SED -e 1s/^X//"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 $as_echo_n "checking for fgrep... " >&6; }
5857 if ${ac_cv_path_FGREP+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5861 then ac_cv_path_FGREP="$GREP -F"
5862 else
5863 if test -z "$FGREP"; then
5864 ac_path_FGREP_found=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_prog in fgrep; do
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5874 as_fn_executable_p "$ac_path_FGREP" || continue
5875 # Check for GNU ac_path_FGREP and select it if it is found.
5876 # Check for GNU $ac_path_FGREP
5877 case `"$ac_path_FGREP" --version 2>&1` in
5878 *GNU*)
5879 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5881 ac_count=0
5882 $as_echo_n 0123456789 >"conftest.in"
5883 while :
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'FGREP' >> "conftest.nl"
5889 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891 as_fn_arith $ac_count + 1 && ac_count=$as_val
5892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_FGREP="$ac_path_FGREP"
5895 ac_path_FGREP_max=$ac_count
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5899 done
5900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5901 esac
5903 $ac_path_FGREP_found && break 3
5904 done
5905 done
5906 done
5907 IFS=$as_save_IFS
5908 if test -z "$ac_cv_path_FGREP"; then
5909 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 else
5912 ac_cv_path_FGREP=$FGREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5918 $as_echo "$ac_cv_path_FGREP" >&6; }
5919 FGREP="$ac_cv_path_FGREP"
5922 test -z "$GREP" && GREP=grep
5942 # Check whether --with-gnu-ld was given.
5943 if test "${with_gnu_ld+set}" = set; then :
5944 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5945 else
5946 with_gnu_ld=no
5949 ac_prog=ld
5950 if test "$GCC" = yes; then
5951 # Check if gcc -print-prog-name=ld gives a path.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5953 $as_echo_n "checking for ld used by $CC... " >&6; }
5954 case $host in
5955 *-*-mingw*)
5956 # gcc leaves a trailing carriage return which upsets mingw
5957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5960 esac
5961 case $ac_prog in
5962 # Accept absolute paths.
5963 [\\/]* | ?:[\\/]*)
5964 re_direlt='/[^/][^/]*/\.\./'
5965 # Canonicalize the pathname of ld
5966 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5967 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5968 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5969 done
5970 test -z "$LD" && LD="$ac_prog"
5973 # If it fails, then pretend we aren't using GCC.
5974 ac_prog=ld
5977 # If it is relative, then search for the first ld in PATH.
5978 with_gnu_ld=unknown
5980 esac
5981 elif test "$with_gnu_ld" = yes; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5983 $as_echo_n "checking for GNU ld... " >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5986 $as_echo_n "checking for non-GNU ld... " >&6; }
5988 if ${lt_cv_path_LD+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -z "$LD"; then
5992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993 for ac_dir in $PATH; do
5994 IFS="$lt_save_ifs"
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5997 lt_cv_path_LD="$ac_dir/$ac_prog"
5998 # Check to see if the program is GNU ld. I'd rather use --version,
5999 # but apparently some variants of GNU ld only accept -v.
6000 # Break only if it was the GNU/non-GNU ld that we prefer.
6001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6002 *GNU* | *'with BFD'*)
6003 test "$with_gnu_ld" != no && break
6006 test "$with_gnu_ld" != yes && break
6008 esac
6010 done
6011 IFS="$lt_save_ifs"
6012 else
6013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6017 LD="$lt_cv_path_LD"
6018 if test -n "$LD"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6020 $as_echo "$LD" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6025 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6028 if ${lt_cv_prog_gnu_ld+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6032 case `$LD -v 2>&1 </dev/null` in
6033 *GNU* | *'with BFD'*)
6034 lt_cv_prog_gnu_ld=yes
6037 lt_cv_prog_gnu_ld=no
6039 esac
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6043 with_gnu_ld=$lt_cv_prog_gnu_ld
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6055 if ${lt_cv_path_NM+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$NM"; then
6059 # Let the user override the test.
6060 lt_cv_path_NM="$NM"
6061 else
6062 lt_nm_to_check="${ac_tool_prefix}nm"
6063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6064 lt_nm_to_check="$lt_nm_to_check nm"
6066 for lt_tmp_nm in $lt_nm_to_check; do
6067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6069 IFS="$lt_save_ifs"
6070 test -z "$ac_dir" && ac_dir=.
6071 tmp_nm="$ac_dir/$lt_tmp_nm"
6072 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6073 # Check to see if the nm accepts a BSD-compat flag.
6074 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6075 # nm: unknown option "B" ignored
6076 # Tru64's nm complains that /dev/null is an invalid object file
6077 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6078 */dev/null* | *'Invalid file or object type'*)
6079 lt_cv_path_NM="$tmp_nm -B"
6080 break
6083 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6084 */dev/null*)
6085 lt_cv_path_NM="$tmp_nm -p"
6086 break
6089 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6090 continue # so that we can try to find one that supports BSD flags
6092 esac
6094 esac
6096 done
6097 IFS="$lt_save_ifs"
6098 done
6099 : ${lt_cv_path_NM=no}
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6103 $as_echo "$lt_cv_path_NM" >&6; }
6104 if test "$lt_cv_path_NM" != "no"; then
6105 NM="$lt_cv_path_NM"
6106 else
6107 # Didn't find any BSD compatible name lister, look for dumpbin.
6108 if test -n "$DUMPBIN"; then :
6109 # Let the user override the test.
6110 else
6111 if test -n "$ac_tool_prefix"; then
6112 for ac_prog in dumpbin "link -dump"
6114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_DUMPBIN+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$DUMPBIN"; then
6122 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 DUMPBIN=$ac_cv_prog_DUMPBIN
6142 if test -n "$DUMPBIN"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144 $as_echo "$DUMPBIN" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6151 test -n "$DUMPBIN" && break
6152 done
6154 if test -z "$DUMPBIN"; then
6155 ac_ct_DUMPBIN=$DUMPBIN
6156 for ac_prog in dumpbin "link -dump"
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_DUMPBIN"; then
6166 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6186 if test -n "$ac_ct_DUMPBIN"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6188 $as_echo "$ac_ct_DUMPBIN" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$ac_ct_DUMPBIN" && break
6196 done
6198 if test "x$ac_ct_DUMPBIN" = x; then
6199 DUMPBIN=":"
6200 else
6201 case $cross_compiling:$ac_tool_warned in
6202 yes:)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6206 esac
6207 DUMPBIN=$ac_ct_DUMPBIN
6211 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6212 *COFF*)
6213 DUMPBIN="$DUMPBIN -symbols"
6216 DUMPBIN=:
6218 esac
6221 if test "$DUMPBIN" != ":"; then
6222 NM="$DUMPBIN"
6225 test -z "$NM" && NM=nm
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6233 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6234 if ${lt_cv_nm_interface+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 lt_cv_nm_interface="BSD nm"
6238 echo "int some_variable = 0;" > conftest.$ac_ext
6239 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6240 (eval "$ac_compile" 2>conftest.err)
6241 cat conftest.err >&5
6242 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6244 cat conftest.err >&5
6245 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6246 cat conftest.out >&5
6247 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6248 lt_cv_nm_interface="MS dumpbin"
6250 rm -f conftest*
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6253 $as_echo "$lt_cv_nm_interface" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6256 $as_echo_n "checking whether ln -s works... " >&6; }
6257 LN_S=$as_ln_s
6258 if test "$LN_S" = "ln -s"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260 $as_echo "yes" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6263 $as_echo "no, using $LN_S" >&6; }
6266 # find the maximum length of command line arguments
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6269 if ${lt_cv_sys_max_cmd_len+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6273 teststring="ABCD"
6275 case $build_os in
6276 msdosdjgpp*)
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6284 gnu*)
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len=-1;
6291 cygwin* | mingw* | cegcc*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len=8192;
6302 mint*)
6303 # On MiNT this can take a long time and run out of memory.
6304 lt_cv_sys_max_cmd_len=8192;
6307 amigaos*)
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len=8192;
6313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin/sysctl; then
6316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr/sbin/sysctl; then
6318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6319 else
6320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 interix*)
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len=196608
6332 osf*)
6333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6335 # nice to cause kernel panics so lets avoid the loop below.
6336 # First set a reasonable default.
6337 lt_cv_sys_max_cmd_len=16384
6339 if test -x /sbin/sysconfig; then
6340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6342 esac
6345 sco3.2v5*)
6346 lt_cv_sys_max_cmd_len=102400
6348 sysv5* | sco5v6* | sysv4.2uw2*)
6349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6350 if test -n "$kargmax"; then
6351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6352 else
6353 lt_cv_sys_max_cmd_len=32768
6357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6358 if test -n "$lt_cv_sys_max_cmd_len"; then
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6361 else
6362 # Make teststring a little bigger before we do anything with it.
6363 # a 1K string should be a reasonable start.
6364 for i in 1 2 3 4 5 6 7 8 ; do
6365 teststring=$teststring$teststring
6366 done
6367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 # If test is not a shell built-in, we'll probably end up computing a
6369 # maximum length that is only half of the actual maximum length, but
6370 # we can't tell.
6371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6372 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6373 test $i != 17 # 1/2 MB should be enough
6375 i=`expr $i + 1`
6376 teststring=$teststring$teststring
6377 done
6378 # Only check the string length outside the loop.
6379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6380 teststring=
6381 # Add a significant safety factor because C++ compilers can tack on
6382 # massive amounts of additional arguments before passing them to the
6383 # linker. It appears as though 1/2 is a usable value.
6384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6387 esac
6391 if test -n $lt_cv_sys_max_cmd_len ; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6396 $as_echo "none" >&6; }
6398 max_cmd_len=$lt_cv_sys_max_cmd_len
6405 : ${CP="cp -f"}
6406 : ${MV="mv -f"}
6407 : ${RM="rm -f"}
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6411 # Try some XSI features
6412 xsi_shell=no
6413 ( _lt_dummy="a/b/c"
6414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6415 = c,a/b,, \
6416 && eval 'test $(( 1 + 1 )) -eq 2 \
6417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6418 && xsi_shell=yes
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6420 $as_echo "$xsi_shell" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6425 lt_shell_append=no
6426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6427 >/dev/null 2>&1 \
6428 && lt_shell_append=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6430 $as_echo "$lt_shell_append" >&6; }
6433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6434 lt_unset=unset
6435 else
6436 lt_unset=false
6443 # test EBCDIC or ASCII
6444 case `echo X|tr X '\101'` in
6445 A) # ASCII based system
6446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6447 lt_SP2NL='tr \040 \012'
6448 lt_NL2SP='tr \015\012 \040\040'
6450 *) # EBCDIC based system
6451 lt_SP2NL='tr \100 \n'
6452 lt_NL2SP='tr \r\n \100\100'
6454 esac
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6466 if ${lt_cv_ld_reload_flag+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 lt_cv_ld_reload_flag='-r'
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6473 reload_flag=$lt_cv_ld_reload_flag
6474 case $reload_flag in
6475 "" | " "*) ;;
6476 *) reload_flag=" $reload_flag" ;;
6477 esac
6478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6479 case $host_os in
6480 darwin*)
6481 if test "$GCC" = yes; then
6482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6483 else
6484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6487 esac
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_OBJDUMP+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 if test -n "$OBJDUMP"; then
6506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6519 done
6520 done
6521 IFS=$as_save_IFS
6525 OBJDUMP=$ac_cv_prog_OBJDUMP
6526 if test -n "$OBJDUMP"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6528 $as_echo "$OBJDUMP" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_OBJDUMP"; then
6537 ac_ct_OBJDUMP=$OBJDUMP
6538 # Extract the first word of "objdump", so it can be a program name with args.
6539 set dummy objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$ac_ct_OBJDUMP"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6566 if test -n "$ac_ct_OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6568 $as_echo "$ac_ct_OBJDUMP" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_OBJDUMP" = x; then
6575 OBJDUMP="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583 OBJDUMP=$ac_ct_OBJDUMP
6585 else
6586 OBJDUMP="$ac_cv_prog_OBJDUMP"
6589 test -z "$OBJDUMP" && OBJDUMP=objdump
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6601 if ${lt_cv_deplibs_check_method+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 lt_cv_file_magic_cmd='$MAGIC_CMD'
6605 lt_cv_file_magic_test_file=
6606 lt_cv_deplibs_check_method='unknown'
6607 # Need to set the preceding variable on all platforms that support
6608 # interlibrary dependencies.
6609 # 'none' -- dependencies not supported.
6610 # `unknown' -- same as none, but documents that we really don't know.
6611 # 'pass_all' -- all dependencies passed with no checks.
6612 # 'test_compile' -- check by making test program.
6613 # 'file_magic [[regex]]' -- check by looking for files in library path
6614 # which responds to the $file_magic_cmd with a given extended regex.
6615 # If you have `file' or equivalent on your system and you're not sure
6616 # whether `pass_all' will *always* work, you probably want this one.
6618 case $host_os in
6619 aix[4-9]*)
6620 lt_cv_deplibs_check_method=pass_all
6623 beos*)
6624 lt_cv_deplibs_check_method=pass_all
6627 bsdi[45]*)
6628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6629 lt_cv_file_magic_cmd='/usr/bin/file -L'
6630 lt_cv_file_magic_test_file=/shlib/libc.so
6633 cygwin*)
6634 # func_win32_libid is a shell function defined in ltmain.sh
6635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636 lt_cv_file_magic_cmd='func_win32_libid'
6639 mingw* | pw32*)
6640 # Base MSYS/MinGW do not provide the 'file' command needed by
6641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6642 # unless we find 'file', for example because we are cross-compiling.
6643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6646 lt_cv_file_magic_cmd='func_win32_libid'
6647 else
6648 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6653 cegcc*)
6654 # use the weaker test based on 'objdump'. See mingw*.
6655 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6659 darwin* | rhapsody*)
6660 lt_cv_deplibs_check_method=pass_all
6663 freebsd* | dragonfly*)
6664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6665 case $host_cpu in
6666 i*86 )
6667 # Not sure whether the presence of OpenBSD here was a mistake.
6668 # Let's accept both of them until this is cleared up.
6669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6670 lt_cv_file_magic_cmd=/usr/bin/file
6671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6673 esac
6674 else
6675 lt_cv_deplibs_check_method=pass_all
6679 gnu*)
6680 lt_cv_deplibs_check_method=pass_all
6683 haiku*)
6684 lt_cv_deplibs_check_method=pass_all
6687 hpux10.20* | hpux11*)
6688 lt_cv_file_magic_cmd=/usr/bin/file
6689 case $host_cpu in
6690 ia64*)
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6694 hppa*64*)
6695 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]'
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6702 esac
6705 interix[3-9]*)
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6710 irix5* | irix6* | nonstopux*)
6711 case $LD in
6712 *-32|*"-32 ") libmagic=32-bit;;
6713 *-n32|*"-n32 ") libmagic=N32;;
6714 *-64|*"-64 ") libmagic=64-bit;;
6715 *) libmagic=never-match;;
6716 esac
6717 lt_cv_deplibs_check_method=pass_all
6720 # This must be Linux ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6722 lt_cv_deplibs_check_method=pass_all
6725 netbsd*)
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6728 else
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6733 newos6*)
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6739 *nto* | *qnx*)
6740 lt_cv_deplibs_check_method=pass_all
6743 openbsd*)
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6746 else
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 osf3* | osf4* | osf5*)
6752 lt_cv_deplibs_check_method=pass_all
6755 rdos*)
6756 lt_cv_deplibs_check_method=pass_all
6759 solaris*)
6760 lt_cv_deplibs_check_method=pass_all
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764 lt_cv_deplibs_check_method=pass_all
6767 sysv4 | sysv4.3*)
6768 case $host_vendor in
6769 motorola)
6770 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]'
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6773 ncr)
6774 lt_cv_deplibs_check_method=pass_all
6776 sequent)
6777 lt_cv_file_magic_cmd='/bin/file'
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6780 sni)
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6783 lt_cv_file_magic_test_file=/lib/libc.so
6785 siemens)
6786 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6791 esac
6794 tpf*)
6795 lt_cv_deplibs_check_method=pass_all
6797 esac
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6802 file_magic_cmd=$lt_cv_file_magic_cmd
6803 deplibs_check_method=$lt_cv_deplibs_check_method
6804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}ar; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_AR+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$AR"; then
6826 ac_cv_prog_AR="$AR" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_AR="${ac_tool_prefix}ar"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6845 AR=$ac_cv_prog_AR
6846 if test -n "$AR"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6848 $as_echo "$AR" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6856 if test -z "$ac_cv_prog_AR"; then
6857 ac_ct_AR=$AR
6858 # Extract the first word of "ar", so it can be a program name with args.
6859 set dummy ar; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_AR"; then
6866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_AR="ar"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6886 if test -n "$ac_ct_AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6888 $as_echo "$ac_ct_AR" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6894 if test "x$ac_ct_AR" = x; then
6895 AR="false"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 AR=$ac_ct_AR
6905 else
6906 AR="$ac_cv_prog_AR"
6909 test -z "$AR" && AR=ar
6910 test -z "$AR_FLAGS" && AR_FLAGS=cru
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}strip; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_STRIP+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$STRIP"; then
6931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6950 STRIP=$ac_cv_prog_STRIP
6951 if test -n "$STRIP"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6953 $as_echo "$STRIP" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6961 if test -z "$ac_cv_prog_STRIP"; then
6962 ac_ct_STRIP=$STRIP
6963 # Extract the first word of "strip", so it can be a program name with args.
6964 set dummy strip; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$ac_ct_STRIP"; then
6971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_ac_ct_STRIP="strip"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6984 done
6985 done
6986 IFS=$as_save_IFS
6990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6991 if test -n "$ac_ct_STRIP"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6993 $as_echo "$ac_ct_STRIP" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6999 if test "x$ac_ct_STRIP" = x; then
7000 STRIP=":"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 STRIP=$ac_ct_STRIP
7010 else
7011 STRIP="$ac_cv_prog_STRIP"
7014 test -z "$STRIP" && STRIP=:
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_RANLIB+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$RANLIB"; then
7030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7043 done
7044 done
7045 IFS=$as_save_IFS
7049 RANLIB=$ac_cv_prog_RANLIB
7050 if test -n "$RANLIB"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7052 $as_echo "$RANLIB" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7060 if test -z "$ac_cv_prog_RANLIB"; then
7061 ac_ct_RANLIB=$RANLIB
7062 # Extract the first word of "ranlib", so it can be a program name with args.
7063 set dummy ranlib; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_RANLIB"; then
7070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_RANLIB="ranlib"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7090 if test -n "$ac_ct_RANLIB"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7092 $as_echo "$ac_ct_RANLIB" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7098 if test "x$ac_ct_RANLIB" = x; then
7099 RANLIB=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 RANLIB=$ac_ct_RANLIB
7109 else
7110 RANLIB="$ac_cv_prog_RANLIB"
7113 test -z "$RANLIB" && RANLIB=:
7120 # Determine commands to create old-style static archives.
7121 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7122 old_postinstall_cmds='chmod 644 $oldlib'
7123 old_postuninstall_cmds=
7125 if test -n "$RANLIB"; then
7126 case $host_os in
7127 openbsd*)
7128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7133 esac
7134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7137 case $host_os in
7138 darwin*)
7139 lock_old_archive_extraction=yes ;;
7141 lock_old_archive_extraction=no ;;
7142 esac
7182 # If no C compiler was specified, use CC.
7183 LTCC=${LTCC-"$CC"}
7185 # If no C compiler flags were specified, use CFLAGS.
7186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7188 # Allow CC to be a program name with arguments.
7189 compiler=$CC
7192 # Check for command to grab the raw symbol name followed by C symbol from nm.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7194 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7195 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7199 # These are sane defaults that work on at least a few old systems.
7200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7202 # Character class describing NM global symbol codes.
7203 symcode='[BCDEGRST]'
7205 # Regexp to match symbols that can be accessed directly from C.
7206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7208 # Define system-specific variables.
7209 case $host_os in
7210 aix*)
7211 symcode='[BCDT]'
7213 cygwin* | mingw* | pw32* | cegcc*)
7214 symcode='[ABCDGISTW]'
7216 hpux*)
7217 if test "$host_cpu" = ia64; then
7218 symcode='[ABCDEGRST]'
7221 irix* | nonstopux*)
7222 symcode='[BCDEGRST]'
7224 osf*)
7225 symcode='[BCDEGQRST]'
7227 solaris*)
7228 symcode='[BDRT]'
7230 sco3.2v5*)
7231 symcode='[DT]'
7233 sysv4.2uw2*)
7234 symcode='[DT]'
7236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7237 symcode='[ABDT]'
7239 sysv4)
7240 symcode='[DFNSTU]'
7242 esac
7244 # If we're using GNU nm, then use its standard symbol codes.
7245 case `$NM -V 2>&1` in
7246 *GNU* | *'with BFD'*)
7247 symcode='[ABCDGIRSTW]' ;;
7248 esac
7250 # Transform an extracted symbol line into a proper C declaration.
7251 # Some systems (esp. on ia64) link data and code symbols differently,
7252 # so use this general approach.
7253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7255 # Transform an extracted symbol line into symbol name and symbol address
7256 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7257 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'"
7259 # Handle CRLF in mingw tool chain
7260 opt_cr=
7261 case $build_os in
7262 mingw*)
7263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7265 esac
7267 # Try without a prefix underscore, then with it.
7268 for ac_symprfx in "" "_"; do
7270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7271 symxfrm="\\1 $ac_symprfx\\2 \\2"
7273 # Write the raw and C identifiers.
7274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7275 # Fake it for dumpbin and say T for any non-static function
7276 # and D for any global variable.
7277 # Also find C++ and __fastcall symbols from MSVC++,
7278 # which start with @ or ?.
7279 lt_cv_sys_global_symbol_pipe="$AWK '"\
7280 " {last_section=section; section=\$ 3};"\
7281 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7282 " \$ 0!~/External *\|/{next};"\
7283 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7284 " {if(hide[section]) next};"\
7285 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7286 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7287 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7288 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7289 " ' prfx=^$ac_symprfx"
7290 else
7291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294 # Check to see that the pipe works correctly.
7295 pipe_works=no
7297 rm -f conftest*
7298 cat > conftest.$ac_ext <<_LT_EOF
7299 #ifdef __cplusplus
7300 extern "C" {
7301 #endif
7302 char nm_test_var;
7303 void nm_test_func(void);
7304 void nm_test_func(void){}
7305 #ifdef __cplusplus
7307 #endif
7308 int main(){nm_test_var='a';nm_test_func();return(0);}
7309 _LT_EOF
7311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312 (eval $ac_compile) 2>&5
7313 ac_status=$?
7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; }; then
7316 # Now try to grab the symbols.
7317 nlist=conftest.nm
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7319 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7320 ac_status=$?
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; } && test -s "$nlist"; then
7323 # Try sorting and uniquifying the output.
7324 if sort "$nlist" | uniq > "$nlist"T; then
7325 mv -f "$nlist"T "$nlist"
7326 else
7327 rm -f "$nlist"T
7330 # Make sure that we snagged all the symbols we need.
7331 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7332 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7333 cat <<_LT_EOF > conftest.$ac_ext
7334 #ifdef __cplusplus
7335 extern "C" {
7336 #endif
7338 _LT_EOF
7339 # Now generate the symbol file.
7340 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7342 cat <<_LT_EOF >> conftest.$ac_ext
7344 /* The mapping between symbol names and symbols. */
7345 const struct {
7346 const char *name;
7347 void *address;
7349 lt__PROGRAM__LTX_preloaded_symbols[] =
7351 { "@PROGRAM@", (void *) 0 },
7352 _LT_EOF
7353 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7354 cat <<\_LT_EOF >> conftest.$ac_ext
7355 {0, (void *) 0}
7358 /* This works around a problem in FreeBSD linker */
7359 #ifdef FREEBSD_WORKAROUND
7360 static const void *lt_preloaded_setup() {
7361 return lt__PROGRAM__LTX_preloaded_symbols;
7363 #endif
7365 #ifdef __cplusplus
7367 #endif
7368 _LT_EOF
7369 # Now try linking the two files.
7370 mv conftest.$ac_objext conftstm.$ac_objext
7371 lt_save_LIBS="$LIBS"
7372 lt_save_CFLAGS="$CFLAGS"
7373 LIBS="conftstm.$ac_objext"
7374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7376 (eval $ac_link) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7380 pipe_works=yes
7382 LIBS="$lt_save_LIBS"
7383 CFLAGS="$lt_save_CFLAGS"
7384 else
7385 echo "cannot find nm_test_func in $nlist" >&5
7387 else
7388 echo "cannot find nm_test_var in $nlist" >&5
7390 else
7391 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7393 else
7394 echo "$progname: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7397 rm -rf conftest* conftst*
7399 # Do not use the global_symbol_pipe unless it works.
7400 if test "$pipe_works" = yes; then
7401 break
7402 else
7403 lt_cv_sys_global_symbol_pipe=
7405 done
7409 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7410 lt_cv_sys_global_symbol_to_cdecl=
7412 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7414 $as_echo "failed" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7417 $as_echo "ok" >&6; }
7441 # Check whether --enable-libtool-lock was given.
7442 if test "${enable_libtool_lock+set}" = set; then :
7443 enableval=$enable_libtool_lock;
7446 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7448 # Some flags need to be propagated to the compiler or linker for good
7449 # libtool support.
7450 case $host in
7451 ia64-*-hpux*)
7452 # Find out which ABI we are using.
7453 echo 'int i;' > conftest.$ac_ext
7454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455 (eval $ac_compile) 2>&5
7456 ac_status=$?
7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; }; then
7459 case `/usr/bin/file conftest.$ac_objext` in
7460 *ELF-32*)
7461 HPUX_IA64_MODE="32"
7463 *ELF-64*)
7464 HPUX_IA64_MODE="64"
7466 esac
7468 rm -rf conftest*
7470 *-*-irix6*)
7471 # Find out which ABI we are using.
7472 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474 (eval $ac_compile) 2>&5
7475 ac_status=$?
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477 test $ac_status = 0; }; then
7478 if test "$lt_cv_prog_gnu_ld" = yes; then
7479 case `/usr/bin/file conftest.$ac_objext` in
7480 *32-bit*)
7481 LD="${LD-ld} -melf32bsmip"
7483 *N32*)
7484 LD="${LD-ld} -melf32bmipn32"
7486 *64-bit*)
7487 LD="${LD-ld} -melf64bmip"
7489 esac
7490 else
7491 case `/usr/bin/file conftest.$ac_objext` in
7492 *32-bit*)
7493 LD="${LD-ld} -32"
7495 *N32*)
7496 LD="${LD-ld} -n32"
7498 *64-bit*)
7499 LD="${LD-ld} -64"
7501 esac
7504 rm -rf conftest*
7507 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7508 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.o` in
7517 *32-bit*)
7518 case $host in
7519 x86_64-*kfreebsd*-gnu)
7520 LD="${LD-ld} -m elf_i386_fbsd"
7522 x86_64-*linux*)
7523 case `/usr/bin/file conftest.o` in
7524 *x86-64*)
7525 LD="${LD-ld} -m elf32_x86_64"
7528 LD="${LD-ld} -m elf_i386"
7530 esac
7532 powerpc64le-*linux*)
7533 LD="${LD-ld} -m elf32lppclinux"
7535 powerpc64-*linux*)
7536 LD="${LD-ld} -m elf32ppclinux"
7538 s390x-*linux*)
7539 LD="${LD-ld} -m elf_s390"
7541 sparc64-*linux*)
7542 LD="${LD-ld} -m elf32_sparc"
7544 esac
7546 *64-bit*)
7547 case $host in
7548 x86_64-*kfreebsd*-gnu)
7549 LD="${LD-ld} -m elf_x86_64_fbsd"
7551 x86_64-*linux*)
7552 LD="${LD-ld} -m elf_x86_64"
7554 powerpcle-*linux*)
7555 LD="${LD-ld} -m elf64lppc"
7557 powerpc-*linux*)
7558 LD="${LD-ld} -m elf64ppc"
7560 s390*-*linux*|s390*-*tpf*)
7561 LD="${LD-ld} -m elf64_s390"
7563 sparc*-*linux*)
7564 LD="${LD-ld} -m elf64_sparc"
7566 esac
7568 esac
7570 rm -rf conftest*
7573 *-*-sco3.2v5*)
7574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7575 SAVE_CFLAGS="$CFLAGS"
7576 CFLAGS="$CFLAGS -belf"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7578 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7579 if ${lt_cv_cc_needs_belf+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7592 main ()
7596 return 0;
7598 _ACEOF
7599 if ac_fn_c_try_link "$LINENO"; then :
7600 lt_cv_cc_needs_belf=yes
7601 else
7602 lt_cv_cc_needs_belf=no
7604 rm -f core conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606 ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7617 CFLAGS="$SAVE_CFLAGS"
7620 sparc*-*solaris*)
7621 # Find out which ABI we are using.
7622 echo 'int i;' > conftest.$ac_ext
7623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7627 test $ac_status = 0; }; then
7628 case `/usr/bin/file conftest.o` in
7629 *64-bit*)
7630 case $lt_cv_prog_gnu_ld in
7631 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7633 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7634 LD="${LD-ld} -64"
7637 esac
7639 esac
7641 rm -rf conftest*
7643 esac
7645 need_locks="$enable_libtool_lock"
7648 case $host_os in
7649 rhapsody* | darwin*)
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$DSYMUTIL"; then
7659 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7679 if test -n "$DSYMUTIL"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7681 $as_echo "$DSYMUTIL" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7689 if test -z "$ac_cv_prog_DSYMUTIL"; then
7690 ac_ct_DSYMUTIL=$DSYMUTIL
7691 # Extract the first word of "dsymutil", so it can be a program name with args.
7692 set dummy dsymutil; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$ac_ct_DSYMUTIL"; then
7699 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7712 done
7713 done
7714 IFS=$as_save_IFS
7718 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7719 if test -n "$ac_ct_DSYMUTIL"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7721 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7727 if test "x$ac_ct_DSYMUTIL" = x; then
7728 DSYMUTIL=":"
7729 else
7730 case $cross_compiling:$ac_tool_warned in
7731 yes:)
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734 ac_tool_warned=yes ;;
7735 esac
7736 DSYMUTIL=$ac_ct_DSYMUTIL
7738 else
7739 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7742 if test -n "$ac_tool_prefix"; then
7743 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7744 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_NMEDIT+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$NMEDIT"; then
7751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7770 NMEDIT=$ac_cv_prog_NMEDIT
7771 if test -n "$NMEDIT"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7773 $as_echo "$NMEDIT" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7781 if test -z "$ac_cv_prog_NMEDIT"; then
7782 ac_ct_NMEDIT=$NMEDIT
7783 # Extract the first word of "nmedit", so it can be a program name with args.
7784 set dummy nmedit; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$ac_ct_NMEDIT"; then
7791 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7810 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7811 if test -n "$ac_ct_NMEDIT"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7813 $as_echo "$ac_ct_NMEDIT" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 if test "x$ac_ct_NMEDIT" = x; then
7820 NMEDIT=":"
7821 else
7822 case $cross_compiling:$ac_tool_warned in
7823 yes:)
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826 ac_tool_warned=yes ;;
7827 esac
7828 NMEDIT=$ac_ct_NMEDIT
7830 else
7831 NMEDIT="$ac_cv_prog_NMEDIT"
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_LIPO+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$LIPO"; then
7843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 LIPO=$ac_cv_prog_LIPO
7863 if test -n "$LIPO"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7865 $as_echo "$LIPO" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test -z "$ac_cv_prog_LIPO"; then
7874 ac_ct_LIPO=$LIPO
7875 # Extract the first word of "lipo", so it can be a program name with args.
7876 set dummy lipo; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$ac_ct_LIPO"; then
7883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_LIPO="lipo"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7903 if test -n "$ac_ct_LIPO"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7905 $as_echo "$ac_ct_LIPO" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 if test "x$ac_ct_LIPO" = x; then
7912 LIPO=":"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920 LIPO=$ac_ct_LIPO
7922 else
7923 LIPO="$ac_cv_prog_LIPO"
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}otool; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_OTOOL+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$OTOOL"; then
7935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7948 done
7949 done
7950 IFS=$as_save_IFS
7954 OTOOL=$ac_cv_prog_OTOOL
7955 if test -n "$OTOOL"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7957 $as_echo "$OTOOL" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7965 if test -z "$ac_cv_prog_OTOOL"; then
7966 ac_ct_OTOOL=$OTOOL
7967 # Extract the first word of "otool", so it can be a program name with args.
7968 set dummy otool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$ac_ct_OTOOL"; then
7975 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_OTOOL="otool"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7994 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7995 if test -n "$ac_ct_OTOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7997 $as_echo "$ac_ct_OTOOL" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8003 if test "x$ac_ct_OTOOL" = x; then
8004 OTOOL=":"
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012 OTOOL=$ac_ct_OTOOL
8014 else
8015 OTOOL="$ac_cv_prog_OTOOL"
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_OTOOL64+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 if test -n "$OTOOL64"; then
8027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8040 done
8041 done
8042 IFS=$as_save_IFS
8046 OTOOL64=$ac_cv_prog_OTOOL64
8047 if test -n "$OTOOL64"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8049 $as_echo "$OTOOL64" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8057 if test -z "$ac_cv_prog_OTOOL64"; then
8058 ac_ct_OTOOL64=$OTOOL64
8059 # Extract the first word of "otool64", so it can be a program name with args.
8060 set dummy otool64; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$ac_ct_OTOOL64"; then
8067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_OTOOL64="otool64"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8086 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8087 if test -n "$ac_ct_OTOOL64"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8089 $as_echo "$ac_ct_OTOOL64" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8095 if test "x$ac_ct_OTOOL64" = x; then
8096 OTOOL64=":"
8097 else
8098 case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104 OTOOL64=$ac_ct_OTOOL64
8106 else
8107 OTOOL64="$ac_cv_prog_OTOOL64"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8137 $as_echo_n "checking for -single_module linker flag... " >&6; }
8138 if ${lt_cv_apple_cc_single_mod+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 lt_cv_apple_cc_single_mod=no
8142 if test -z "${LT_MULTI_MODULE}"; then
8143 # By default we will add the -single_module flag. You can override
8144 # by either setting the environment variable LT_MULTI_MODULE
8145 # non-empty at configure time, or by adding -multi_module to the
8146 # link flags.
8147 rm -rf libconftest.dylib*
8148 echo "int foo(void){return 1;}" > conftest.c
8149 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8150 -dynamiclib -Wl,-single_module conftest.c" >&5
8151 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8152 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8153 _lt_result=$?
8154 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8155 lt_cv_apple_cc_single_mod=yes
8156 else
8157 cat conftest.err >&5
8159 rm -rf libconftest.dylib*
8160 rm -f conftest.*
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8164 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8166 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8167 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 lt_cv_ld_exported_symbols_list=no
8171 save_LDFLAGS=$LDFLAGS
8172 echo "_main" > conftest.sym
8173 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8178 main ()
8182 return 0;
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"; then :
8186 lt_cv_ld_exported_symbols_list=yes
8187 else
8188 lt_cv_ld_exported_symbols_list=no
8190 rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 LDFLAGS="$save_LDFLAGS"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8196 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8198 $as_echo_n "checking for -force_load linker flag... " >&6; }
8199 if ${lt_cv_ld_force_load+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 lt_cv_ld_force_load=no
8203 cat > conftest.c << _LT_EOF
8204 int forced_loaded() { return 2;}
8205 _LT_EOF
8206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8208 echo "$AR cru libconftest.a conftest.o" >&5
8209 $AR cru libconftest.a conftest.o 2>&5
8210 cat > conftest.c << _LT_EOF
8211 int main() { return 0;}
8212 _LT_EOF
8213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8215 _lt_result=$?
8216 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8217 lt_cv_ld_force_load=yes
8218 else
8219 cat conftest.err >&5
8221 rm -f conftest.err libconftest.a conftest conftest.c
8222 rm -rf conftest.dSYM
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8226 $as_echo "$lt_cv_ld_force_load" >&6; }
8227 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8228 # build without first building modern cctools / linker.
8229 case $host_cpu-$host_os in
8230 *-rhapsody* | *-darwin1.[012])
8231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8232 *-darwin1.*)
8233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8234 *-darwin*)
8235 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8236 # deployment target is forced to an earlier version.
8237 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8238 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8240 10.[012][,.]*)
8241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8245 esac
8247 esac
8248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8249 _lt_dar_single_mod='$single_module'
8251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8253 else
8254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8256 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8257 _lt_dsymutil='~$DSYMUTIL $lib || :'
8258 else
8259 _lt_dsymutil=
8262 esac
8264 for ac_header in dlfcn.h
8265 do :
8266 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8268 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DLFCN_H 1
8271 _ACEOF
8275 done
8281 # Set options
8282 enable_dlopen=yes
8287 enable_win32_dll=no
8290 # Check whether --enable-shared was given.
8291 if test "${enable_shared+set}" = set; then :
8292 enableval=$enable_shared; p=${PACKAGE-default}
8293 case $enableval in
8294 yes) enable_shared=yes ;;
8295 no) enable_shared=no ;;
8297 enable_shared=no
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for pkg in $enableval; do
8301 IFS="$lt_save_ifs"
8302 if test "X$pkg" = "X$p"; then
8303 enable_shared=yes
8305 done
8306 IFS="$lt_save_ifs"
8308 esac
8309 else
8310 enable_shared=yes
8321 # Check whether --enable-static was given.
8322 if test "${enable_static+set}" = set; then :
8323 enableval=$enable_static; p=${PACKAGE-default}
8324 case $enableval in
8325 yes) enable_static=yes ;;
8326 no) enable_static=no ;;
8328 enable_static=no
8329 # Look at the argument we got. We use all the common list separators.
8330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8331 for pkg in $enableval; do
8332 IFS="$lt_save_ifs"
8333 if test "X$pkg" = "X$p"; then
8334 enable_static=yes
8336 done
8337 IFS="$lt_save_ifs"
8339 esac
8340 else
8341 enable_static=yes
8353 # Check whether --with-pic was given.
8354 if test "${with_pic+set}" = set; then :
8355 withval=$with_pic; pic_mode="$withval"
8356 else
8357 pic_mode=default
8361 test -z "$pic_mode" && pic_mode=default
8369 # Check whether --enable-fast-install was given.
8370 if test "${enable_fast_install+set}" = set; then :
8371 enableval=$enable_fast_install; p=${PACKAGE-default}
8372 case $enableval in
8373 yes) enable_fast_install=yes ;;
8374 no) enable_fast_install=no ;;
8376 enable_fast_install=no
8377 # Look at the argument we got. We use all the common list separators.
8378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8379 for pkg in $enableval; do
8380 IFS="$lt_save_ifs"
8381 if test "X$pkg" = "X$p"; then
8382 enable_fast_install=yes
8384 done
8385 IFS="$lt_save_ifs"
8387 esac
8388 else
8389 enable_fast_install=yes
8402 # This can be used to rebuild libtool when needed
8403 LIBTOOL_DEPS="$ltmain"
8405 # Always use our own libtool.
8406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8433 test -z "$LN_S" && LN_S="ln -s"
8448 if test -n "${ZSH_VERSION+set}" ; then
8449 setopt NO_GLOB_SUBST
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8453 $as_echo_n "checking for objdir... " >&6; }
8454 if ${lt_cv_objdir+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 rm -f .libs 2>/dev/null
8458 mkdir .libs 2>/dev/null
8459 if test -d .libs; then
8460 lt_cv_objdir=.libs
8461 else
8462 # MS-DOS does not allow filenames that begin with a dot.
8463 lt_cv_objdir=_libs
8465 rmdir .libs 2>/dev/null
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8468 $as_echo "$lt_cv_objdir" >&6; }
8469 objdir=$lt_cv_objdir
8475 cat >>confdefs.h <<_ACEOF
8476 #define LT_OBJDIR "$lt_cv_objdir/"
8477 _ACEOF
8482 case $host_os in
8483 aix3*)
8484 # AIX sometimes has problems with the GCC collect2 program. For some
8485 # reason, if we set the COLLECT_NAMES environment variable, the problems
8486 # vanish in a puff of smoke.
8487 if test "X${COLLECT_NAMES+set}" != Xset; then
8488 COLLECT_NAMES=
8489 export COLLECT_NAMES
8492 esac
8494 # Global variables:
8495 ofile=libtool
8496 can_build_shared=yes
8498 # All known linkers require a `.a' archive for static linking (except MSVC,
8499 # which needs '.lib').
8500 libext=a
8502 with_gnu_ld="$lt_cv_prog_gnu_ld"
8504 old_CC="$CC"
8505 old_CFLAGS="$CFLAGS"
8507 # Set sane defaults for various variables
8508 test -z "$CC" && CC=cc
8509 test -z "$LTCC" && LTCC=$CC
8510 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8511 test -z "$LD" && LD=ld
8512 test -z "$ac_objext" && ac_objext=o
8514 for cc_temp in $compiler""; do
8515 case $cc_temp in
8516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8518 \-*) ;;
8519 *) break;;
8520 esac
8521 done
8522 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8525 # Only perform the check for file, if the check method requires it
8526 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8527 case $deplibs_check_method in
8528 file_magic*)
8529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8531 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8532 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 case $MAGIC_CMD in
8536 [\\/*] | ?:[\\/]*)
8537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8540 lt_save_MAGIC_CMD="$MAGIC_CMD"
8541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8543 for ac_dir in $ac_dummy; do
8544 IFS="$lt_save_ifs"
8545 test -z "$ac_dir" && ac_dir=.
8546 if test -f $ac_dir/${ac_tool_prefix}file; then
8547 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8548 if test -n "$file_magic_test_file"; then
8549 case $deplibs_check_method in
8550 "file_magic "*)
8551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8554 $EGREP "$file_magic_regex" > /dev/null; then
8556 else
8557 cat <<_LT_EOF 1>&2
8559 *** Warning: the command libtool uses to detect shared libraries,
8560 *** $file_magic_cmd, produces output that libtool cannot recognize.
8561 *** The result is that libtool may fail to recognize shared libraries
8562 *** as such. This will affect the creation of libtool libraries that
8563 *** depend on shared libraries, but programs linked with such libtool
8564 *** libraries will work regardless of this problem. Nevertheless, you
8565 *** may want to report the problem to your system manager and/or to
8566 *** bug-libtool@gnu.org
8568 _LT_EOF
8569 fi ;;
8570 esac
8572 break
8574 done
8575 IFS="$lt_save_ifs"
8576 MAGIC_CMD="$lt_save_MAGIC_CMD"
8578 esac
8581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8582 if test -n "$MAGIC_CMD"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8584 $as_echo "$MAGIC_CMD" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8594 if test -z "$lt_cv_path_MAGIC_CMD"; then
8595 if test -n "$ac_tool_prefix"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8597 $as_echo_n "checking for file... " >&6; }
8598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 case $MAGIC_CMD in
8602 [\\/*] | ?:[\\/]*)
8603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8606 lt_save_MAGIC_CMD="$MAGIC_CMD"
8607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8609 for ac_dir in $ac_dummy; do
8610 IFS="$lt_save_ifs"
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/file; then
8613 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8614 if test -n "$file_magic_test_file"; then
8615 case $deplibs_check_method in
8616 "file_magic "*)
8617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8620 $EGREP "$file_magic_regex" > /dev/null; then
8622 else
8623 cat <<_LT_EOF 1>&2
8625 *** Warning: the command libtool uses to detect shared libraries,
8626 *** $file_magic_cmd, produces output that libtool cannot recognize.
8627 *** The result is that libtool may fail to recognize shared libraries
8628 *** as such. This will affect the creation of libtool libraries that
8629 *** depend on shared libraries, but programs linked with such libtool
8630 *** libraries will work regardless of this problem. Nevertheless, you
8631 *** may want to report the problem to your system manager and/or to
8632 *** bug-libtool@gnu.org
8634 _LT_EOF
8635 fi ;;
8636 esac
8638 break
8640 done
8641 IFS="$lt_save_ifs"
8642 MAGIC_CMD="$lt_save_MAGIC_CMD"
8644 esac
8647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8648 if test -n "$MAGIC_CMD"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8650 $as_echo "$MAGIC_CMD" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8657 else
8658 MAGIC_CMD=:
8664 esac
8666 # Use C for the default configuration in the libtool script
8668 lt_save_CC="$CC"
8669 ac_ext=c
8670 ac_cpp='$CPP $CPPFLAGS'
8671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8676 # Source file extension for C test sources.
8677 ac_ext=c
8679 # Object file extension for compiled C test sources.
8680 objext=o
8681 objext=$objext
8683 # Code to be used in simple compile tests
8684 lt_simple_compile_test_code="int some_variable = 0;"
8686 # Code to be used in simple link tests
8687 lt_simple_link_test_code='int main(){return(0);}'
8695 # If no C compiler was specified, use CC.
8696 LTCC=${LTCC-"$CC"}
8698 # If no C compiler flags were specified, use CFLAGS.
8699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8701 # Allow CC to be a program name with arguments.
8702 compiler=$CC
8704 # Save the default compiler, since it gets overwritten when the other
8705 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8706 compiler_DEFAULT=$CC
8708 # save warnings/boilerplate of simple test code
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_compiler_boilerplate=`cat conftest.err`
8713 $RM conftest*
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8718 _lt_linker_boilerplate=`cat conftest.err`
8719 $RM -r conftest*
8722 ## CAVEAT EMPTOR:
8723 ## There is no encapsulation within the following macros, do not change
8724 ## the running order or otherwise move them around unless you know exactly
8725 ## what you are doing...
8726 if test -n "$compiler"; then
8728 lt_prog_compiler_no_builtin_flag=
8730 if test "$GCC" = yes; then
8731 case $cc_basename in
8732 nvcc*)
8733 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8735 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8736 esac
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8739 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8740 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 lt_cv_prog_compiler_rtti_exceptions=no
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="-fno-rtti -fno-exceptions"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 # The option is referenced via a variable to avoid confusing sed.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>conftest.err)
8758 ac_status=$?
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 if (exit $ac_status) && test -s "$ac_outfile"; then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings other than the usual output.
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_rtti_exceptions=yes
8770 $RM conftest*
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8774 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8776 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8777 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8778 else
8789 lt_prog_compiler_wl=
8790 lt_prog_compiler_pic=
8791 lt_prog_compiler_static=
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8794 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8796 if test "$GCC" = yes; then
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_static='-static'
8800 case $host_os in
8801 aix*)
8802 # All AIX code is PIC.
8803 if test "$host_cpu" = ia64; then
8804 # AIX 5 now supports IA64 processor
8805 lt_prog_compiler_static='-Bstatic'
8807 lt_prog_compiler_pic='-fPIC'
8810 amigaos*)
8811 case $host_cpu in
8812 powerpc)
8813 # see comment about AmigaOS4 .so support
8814 lt_prog_compiler_pic='-fPIC'
8816 m68k)
8817 # FIXME: we need at least 68020 code to build shared libraries, but
8818 # adding the `-m68020' flag to GCC prevents building anything better,
8819 # like `-m68040'.
8820 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8822 esac
8825 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8826 # PIC is the default for these OSes.
8829 mingw* | cygwin* | pw32* | os2* | cegcc*)
8830 # This hack is so that the source file can tell whether it is being
8831 # built for inclusion in a dll (and should export symbols for example).
8832 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8833 # (--disable-auto-import) libraries
8834 lt_prog_compiler_pic='-DDLL_EXPORT'
8837 darwin* | rhapsody*)
8838 # PIC is the default on this platform
8839 # Common symbols not allowed in MH_DYLIB files
8840 lt_prog_compiler_pic='-fno-common'
8843 haiku*)
8844 # PIC is the default for Haiku.
8845 # The "-static" flag exists, but is broken.
8846 lt_prog_compiler_static=
8849 hpux*)
8850 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8851 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8852 # sets the default TLS model and affects inlining.
8853 case $host_cpu in
8854 hppa*64*)
8855 # +Z the default
8858 lt_prog_compiler_pic='-fPIC'
8860 esac
8863 interix[3-9]*)
8864 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8865 # Instead, we relocate shared libraries at runtime.
8868 msdosdjgpp*)
8869 # Just because we use GCC doesn't mean we suddenly get shared libraries
8870 # on systems that don't support them.
8871 lt_prog_compiler_can_build_shared=no
8872 enable_shared=no
8875 *nto* | *qnx*)
8876 # QNX uses GNU C++, but need to define -shared option too, otherwise
8877 # it will coredump.
8878 lt_prog_compiler_pic='-fPIC -shared'
8881 sysv4*MP*)
8882 if test -d /usr/nec; then
8883 lt_prog_compiler_pic=-Kconform_pic
8888 lt_prog_compiler_pic='-fPIC'
8890 esac
8892 case $cc_basename in
8893 nvcc*) # Cuda Compiler Driver 2.2
8894 lt_prog_compiler_wl='-Xlinker '
8895 lt_prog_compiler_pic='-Xcompiler -fPIC'
8897 esac
8898 else
8899 # PORTME Check for flag to pass linker flags through the system compiler.
8900 case $host_os in
8901 aix*)
8902 lt_prog_compiler_wl='-Wl,'
8903 if test "$host_cpu" = ia64; then
8904 # AIX 5 now supports IA64 processor
8905 lt_prog_compiler_static='-Bstatic'
8906 else
8907 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8911 mingw* | cygwin* | pw32* | os2* | cegcc*)
8912 # This hack is so that the source file can tell whether it is being
8913 # built for inclusion in a dll (and should export symbols for example).
8914 lt_prog_compiler_pic='-DDLL_EXPORT'
8917 hpux9* | hpux10* | hpux11*)
8918 lt_prog_compiler_wl='-Wl,'
8919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8920 # not for PA HP-UX.
8921 case $host_cpu in
8922 hppa*64*|ia64*)
8923 # +Z the default
8926 lt_prog_compiler_pic='+Z'
8928 esac
8929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8930 lt_prog_compiler_static='${wl}-a ${wl}archive'
8933 irix5* | irix6* | nonstopux*)
8934 lt_prog_compiler_wl='-Wl,'
8935 # PIC (with -KPIC) is the default.
8936 lt_prog_compiler_static='-non_shared'
8939 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8940 case $cc_basename in
8941 # old Intel for x86_64 which still supported -KPIC.
8942 ecc*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-static'
8947 # icc used to be incompatible with GCC.
8948 # ICC 10 doesn't accept -KPIC any more.
8949 icc* | ifort*)
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-fPIC'
8952 lt_prog_compiler_static='-static'
8954 # Lahey Fortran 8.1.
8955 lf95*)
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='--shared'
8958 lt_prog_compiler_static='--static'
8960 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8961 # Portland Group compilers (*not* the Pentium gcc compiler,
8962 # which looks to be a dead project)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-fpic'
8965 lt_prog_compiler_static='-Bstatic'
8967 ccc*)
8968 lt_prog_compiler_wl='-Wl,'
8969 # All Alpha code is PIC.
8970 lt_prog_compiler_static='-non_shared'
8972 xl* | bgxl* | bgf* | mpixl*)
8973 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-qpic'
8976 lt_prog_compiler_static='-qstaticlink'
8979 case `$CC -V 2>&1 | sed 5q` in
8980 *Sun\ F* | *Sun*Fortran*)
8981 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8982 lt_prog_compiler_pic='-KPIC'
8983 lt_prog_compiler_static='-Bstatic'
8984 lt_prog_compiler_wl=''
8986 *Sun\ C*)
8987 # Sun C 5.9
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 lt_prog_compiler_wl='-Wl,'
8992 esac
8994 esac
8997 newsos6)
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9002 *nto* | *qnx*)
9003 # QNX uses GNU C++, but need to define -shared option too, otherwise
9004 # it will coredump.
9005 lt_prog_compiler_pic='-fPIC -shared'
9008 osf3* | osf4* | osf5*)
9009 lt_prog_compiler_wl='-Wl,'
9010 # All OSF/1 code is PIC.
9011 lt_prog_compiler_static='-non_shared'
9014 rdos*)
9015 lt_prog_compiler_static='-non_shared'
9018 solaris*)
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 case $cc_basename in
9022 f77* | f90* | f95*)
9023 lt_prog_compiler_wl='-Qoption ld ';;
9025 lt_prog_compiler_wl='-Wl,';;
9026 esac
9029 sunos4*)
9030 lt_prog_compiler_wl='-Qoption ld '
9031 lt_prog_compiler_pic='-PIC'
9032 lt_prog_compiler_static='-Bstatic'
9035 sysv4 | sysv4.2uw2* | sysv4.3*)
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9041 sysv4*MP*)
9042 if test -d /usr/nec ;then
9043 lt_prog_compiler_pic='-Kconform_pic'
9044 lt_prog_compiler_static='-Bstatic'
9048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-Bstatic'
9054 unicos*)
9055 lt_prog_compiler_wl='-Wl,'
9056 lt_prog_compiler_can_build_shared=no
9059 uts4*)
9060 lt_prog_compiler_pic='-pic'
9061 lt_prog_compiler_static='-Bstatic'
9065 lt_prog_compiler_can_build_shared=no
9067 esac
9070 case $host_os in
9071 # For platforms which do not support PIC, -DPIC is meaningless:
9072 *djgpp*)
9073 lt_prog_compiler_pic=
9076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9078 esac
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9080 $as_echo "$lt_prog_compiler_pic" >&6; }
9088 # Check to make sure the PIC flag actually works.
9090 if test -n "$lt_prog_compiler_pic"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9092 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9093 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 lt_cv_prog_compiler_pic_works=no
9097 ac_outfile=conftest.$ac_objext
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 # The option is referenced via a variable to avoid confusing sed.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
9109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9110 (eval "$lt_compile" 2>conftest.err)
9111 ac_status=$?
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 if (exit $ac_status) && test -s "$ac_outfile"; then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings other than the usual output.
9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_pic_works=yes
9123 $RM conftest*
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9127 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9129 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9130 case $lt_prog_compiler_pic in
9131 "" | " "*) ;;
9132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9133 esac
9134 else
9135 lt_prog_compiler_pic=
9136 lt_prog_compiler_can_build_shared=no
9147 # Check to make sure the static flag actually works.
9149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9152 if ${lt_cv_prog_compiler_static_works+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 lt_cv_prog_compiler_static_works=no
9156 save_LDFLAGS="$LDFLAGS"
9157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160 # The linker can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 if test -s conftest.err; then
9163 # Append any errors to the config.log.
9164 cat conftest.err 1>&5
9165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_static_works=yes
9170 else
9171 lt_cv_prog_compiler_static_works=yes
9174 $RM -r conftest*
9175 LDFLAGS="$save_LDFLAGS"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9183 else
9184 lt_prog_compiler_static=
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9195 if ${lt_cv_prog_compiler_c_o+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 lt_cv_prog_compiler_c_o=no
9199 $RM -r conftest 2>/dev/null
9200 mkdir conftest
9201 cd conftest
9202 mkdir out
9203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9205 lt_compiler_flag="-o out/conftest2.$ac_objext"
9206 # Insert the option either (1) after the last *FLAGS variable, or
9207 # (2) before a word containing "conftest.", or (3) at the end.
9208 # Note that $ac_compile itself does not contain backslashes and begins
9209 # with a dollar sign (not a hyphen), so the echo should work correctly.
9210 lt_compile=`echo "$ac_compile" | $SED \
9211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213 -e 's:$: $lt_compiler_flag:'`
9214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215 (eval "$lt_compile" 2>out/conftest.err)
9216 ac_status=$?
9217 cat out/conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9220 then
9221 # The compiler can only warn and ignore the option if not recognized
9222 # So say no if there are warnings
9223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9226 lt_cv_prog_compiler_c_o=yes
9229 chmod u+w . 2>&5
9230 $RM conftest*
9231 # SGI C++ compiler will create directory out/ii_files/ for
9232 # template instantiation
9233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9234 $RM out/* && rmdir out
9235 cd ..
9236 $RM -r conftest
9237 $RM conftest*
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9250 if ${lt_cv_prog_compiler_c_o+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 lt_cv_prog_compiler_c_o=no
9254 $RM -r conftest 2>/dev/null
9255 mkdir conftest
9256 cd conftest
9257 mkdir out
9258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260 lt_compiler_flag="-o out/conftest2.$ac_objext"
9261 # Insert the option either (1) after the last *FLAGS variable, or
9262 # (2) before a word containing "conftest.", or (3) at the end.
9263 # Note that $ac_compile itself does not contain backslashes and begins
9264 # with a dollar sign (not a hyphen), so the echo should work correctly.
9265 lt_compile=`echo "$ac_compile" | $SED \
9266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268 -e 's:$: $lt_compiler_flag:'`
9269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270 (eval "$lt_compile" 2>out/conftest.err)
9271 ac_status=$?
9272 cat out/conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275 then
9276 # The compiler can only warn and ignore the option if not recognized
9277 # So say no if there are warnings
9278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_c_o=yes
9284 chmod u+w . 2>&5
9285 $RM conftest*
9286 # SGI C++ compiler will create directory out/ii_files/ for
9287 # template instantiation
9288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289 $RM out/* && rmdir out
9290 cd ..
9291 $RM -r conftest
9292 $RM conftest*
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9301 hard_links="nottested"
9302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9303 # do not overwrite the value of need_locks provided by the user
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9305 $as_echo_n "checking if we can lock with hard links... " >&6; }
9306 hard_links=yes
9307 $RM conftest*
9308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9309 touch conftest.a
9310 ln conftest.a conftest.b 2>&5 || hard_links=no
9311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9313 $as_echo "$hard_links" >&6; }
9314 if test "$hard_links" = no; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9317 need_locks=warn
9319 else
9320 need_locks=no
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9331 runpath_var=
9332 allow_undefined_flag=
9333 always_export_symbols=no
9334 archive_cmds=
9335 archive_expsym_cmds=
9336 compiler_needs_object=no
9337 enable_shared_with_static_runtimes=no
9338 export_dynamic_flag_spec=
9339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9340 hardcode_automatic=no
9341 hardcode_direct=no
9342 hardcode_direct_absolute=no
9343 hardcode_libdir_flag_spec=
9344 hardcode_libdir_flag_spec_ld=
9345 hardcode_libdir_separator=
9346 hardcode_minus_L=no
9347 hardcode_shlibpath_var=unsupported
9348 inherit_rpath=no
9349 link_all_deplibs=unknown
9350 module_cmds=
9351 module_expsym_cmds=
9352 old_archive_from_new_cmds=
9353 old_archive_from_expsyms_cmds=
9354 thread_safe_flag_spec=
9355 whole_archive_flag_spec=
9356 # include_expsyms should be a list of space-separated symbols to be *always*
9357 # included in the symbol list
9358 include_expsyms=
9359 # exclude_expsyms can be an extended regexp of symbols to exclude
9360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9362 # as well as any symbol that contains `d'.
9363 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9365 # platforms (ab)use it in PIC code, but their linkers get confused if
9366 # the symbol is explicitly referenced. Since portable code cannot
9367 # rely on this symbol name, it's probably fine to never include it in
9368 # preloaded symbol tables.
9369 # Exclude shared library initialization/finalization symbols.
9370 extract_expsyms_cmds=
9372 case $host_os in
9373 cygwin* | mingw* | pw32* | cegcc*)
9374 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9375 # When not using gcc, we currently assume that we are using
9376 # Microsoft Visual C++.
9377 if test "$GCC" != yes; then
9378 with_gnu_ld=no
9381 interix*)
9382 # we just hope/assume this is gcc and not c89 (= MSVC++)
9383 with_gnu_ld=yes
9385 openbsd*)
9386 with_gnu_ld=no
9388 esac
9390 ld_shlibs=yes
9392 # On some targets, GNU ld is compatible enough with the native linker
9393 # that we're better off using the native interface for both.
9394 lt_use_gnu_ld_interface=no
9395 if test "$with_gnu_ld" = yes; then
9396 case $host_os in
9397 aix*)
9398 # The AIX port of GNU ld has always aspired to compatibility
9399 # with the native linker. However, as the warning in the GNU ld
9400 # block says, versions before 2.19.5* couldn't really create working
9401 # shared libraries, regardless of the interface used.
9402 case `$LD -v 2>&1` in
9403 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9404 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9405 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9407 lt_use_gnu_ld_interface=yes
9409 esac
9412 lt_use_gnu_ld_interface=yes
9414 esac
9417 if test "$lt_use_gnu_ld_interface" = yes; then
9418 # If archive_cmds runs LD, not CC, wlarc should be empty
9419 wlarc='${wl}'
9421 # Set some defaults for GNU ld with shared library support. These
9422 # are reset later if shared libraries are not supported. Putting them
9423 # here allows them to be overridden if necessary.
9424 runpath_var=LD_RUN_PATH
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 export_dynamic_flag_spec='${wl}--export-dynamic'
9427 # ancient GNU ld didn't support --whole-archive et. al.
9428 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9429 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9430 else
9431 whole_archive_flag_spec=
9433 supports_anon_versioning=no
9434 case `$LD -v 2>&1` in
9435 *GNU\ gold*) supports_anon_versioning=yes ;;
9436 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9439 *\ 2.11.*) ;; # other 2.11 versions
9440 *) supports_anon_versioning=yes ;;
9441 esac
9443 # See if GNU ld supports shared libraries.
9444 case $host_os in
9445 aix[3-9]*)
9446 # On AIX/PPC, the GNU linker is very broken
9447 if test "$host_cpu" != ia64; then
9448 ld_shlibs=no
9449 cat <<_LT_EOF 1>&2
9451 *** Warning: the GNU linker, at least up to release 2.19, is reported
9452 *** to be unable to reliably create shared libraries on AIX.
9453 *** Therefore, libtool is disabling shared libraries support. If you
9454 *** really care for shared libraries, you may want to install binutils
9455 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9456 *** You will then need to restart the configuration process.
9458 _LT_EOF
9462 amigaos*)
9463 case $host_cpu in
9464 powerpc)
9465 # see comment about AmigaOS4 .so support
9466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467 archive_expsym_cmds=''
9469 m68k)
9470 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)'
9471 hardcode_libdir_flag_spec='-L$libdir'
9472 hardcode_minus_L=yes
9474 esac
9477 beos*)
9478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 allow_undefined_flag=unsupported
9480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9481 # support --undefined. This deserves some investigation. FIXME
9482 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 else
9484 ld_shlibs=no
9488 cygwin* | mingw* | pw32* | cegcc*)
9489 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9490 # as there is no search path for DLLs.
9491 hardcode_libdir_flag_spec='-L$libdir'
9492 export_dynamic_flag_spec='${wl}--export-all-symbols'
9493 allow_undefined_flag=unsupported
9494 always_export_symbols=no
9495 enable_shared_with_static_runtimes=yes
9496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9498 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9500 # If the export-symbols file already is a .def file (1st line
9501 # is EXPORTS), use it as is; otherwise, prepend...
9502 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9503 cp $export_symbols $output_objdir/$soname.def;
9504 else
9505 echo EXPORTS > $output_objdir/$soname.def;
9506 cat $export_symbols >> $output_objdir/$soname.def;
9508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9509 else
9510 ld_shlibs=no
9514 haiku*)
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 link_all_deplibs=yes
9519 interix[3-9]*)
9520 hardcode_direct=no
9521 hardcode_shlibpath_var=no
9522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9523 export_dynamic_flag_spec='${wl}-E'
9524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9525 # Instead, shared libraries are loaded at an image base (0x10000000 by
9526 # default) and relocated if they conflict, which is a slow very memory
9527 # consuming and fragmenting process. To avoid this, we pick a random,
9528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9531 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'
9534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9535 tmp_diet=no
9536 if test "$host_os" = linux-dietlibc; then
9537 case $cc_basename in
9538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9539 esac
9541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9542 && test "$tmp_diet" = no
9543 then
9544 tmp_addflag=' $pic_flag'
9545 tmp_sharedflag='-shared'
9546 case $cc_basename,$host_cpu in
9547 pgcc*) # Portland Group C compiler
9548 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'
9549 tmp_addflag=' $pic_flag'
9551 pgf77* | pgf90* | pgf95* | pgfortran*)
9552 # Portland Group f77 and f90 compilers
9553 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'
9554 tmp_addflag=' $pic_flag -Mnomain' ;;
9555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9556 tmp_addflag=' -i_dynamic' ;;
9557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9558 tmp_addflag=' -i_dynamic -nofor_main' ;;
9559 ifc* | ifort*) # Intel Fortran compiler
9560 tmp_addflag=' -nofor_main' ;;
9561 lf95*) # Lahey Fortran 8.1
9562 whole_archive_flag_spec=
9563 tmp_sharedflag='--shared' ;;
9564 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9565 tmp_sharedflag='-qmkshrobj'
9566 tmp_addflag= ;;
9567 nvcc*) # Cuda Compiler Driver 2.2
9568 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'
9569 compiler_needs_object=yes
9571 esac
9572 case `$CC -V 2>&1 | sed 5q` in
9573 *Sun\ C*) # Sun C 5.9
9574 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'
9575 compiler_needs_object=yes
9576 tmp_sharedflag='-G' ;;
9577 *Sun\ F*) # Sun Fortran 8.3
9578 tmp_sharedflag='-G' ;;
9579 esac
9580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 if test "x$supports_anon_versioning" = xyes; then
9583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9585 echo "local: *; };" >> $output_objdir/$libname.ver~
9586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9589 case $cc_basename in
9590 xlf* | bgf* | bgxlf* | mpixlf*)
9591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9593 hardcode_libdir_flag_spec=
9594 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9595 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9596 if test "x$supports_anon_versioning" = xyes; then
9597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9599 echo "local: *; };" >> $output_objdir/$libname.ver~
9600 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9603 esac
9604 else
9605 ld_shlibs=no
9609 netbsd*)
9610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9612 wlarc=
9613 else
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9619 solaris*)
9620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9621 ld_shlibs=no
9622 cat <<_LT_EOF 1>&2
9624 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9625 *** create shared libraries on Solaris systems. Therefore, libtool
9626 *** is disabling shared libraries support. We urge you to upgrade GNU
9627 *** binutils to release 2.9.1 or newer. Another option is to modify
9628 *** your PATH or compiler configuration so that the native linker is
9629 *** used, and then restart.
9631 _LT_EOF
9632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 else
9636 ld_shlibs=no
9640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9641 case `$LD -v 2>&1` in
9642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9643 ld_shlibs=no
9644 cat <<_LT_EOF 1>&2
9646 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9647 *** reliably create shared libraries on SCO systems. Therefore, libtool
9648 *** is disabling shared libraries support. We urge you to upgrade GNU
9649 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9650 *** your PATH or compiler configuration so that the native linker is
9651 *** used, and then restart.
9653 _LT_EOF
9656 # For security reasons, it is highly recommended that you always
9657 # use absolute paths for naming shared libraries, and exclude the
9658 # DT_RUNPATH tag from executables and libraries. But doing so
9659 # requires that you compile everything twice, which is a pain.
9660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9664 else
9665 ld_shlibs=no
9668 esac
9671 sunos4*)
9672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9673 wlarc=
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682 else
9683 ld_shlibs=no
9686 esac
9688 if test "$ld_shlibs" = no; then
9689 runpath_var=
9690 hardcode_libdir_flag_spec=
9691 export_dynamic_flag_spec=
9692 whole_archive_flag_spec=
9694 else
9695 # PORTME fill in a description of your system's linker (not GNU ld)
9696 case $host_os in
9697 aix3*)
9698 allow_undefined_flag=unsupported
9699 always_export_symbols=yes
9700 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'
9701 # Note: this linker hardcodes the directories in LIBPATH if there
9702 # are no directories specified by -L.
9703 hardcode_minus_L=yes
9704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9705 # Neither direct hardcoding nor static linking is supported with a
9706 # broken collect2.
9707 hardcode_direct=unsupported
9711 aix[4-9]*)
9712 if test "$host_cpu" = ia64; then
9713 # On IA64, the linker does run time linking by default, so we don't
9714 # have to do anything special.
9715 aix_use_runtimelinking=no
9716 exp_sym_flag='-Bexport'
9717 no_entry_flag=""
9718 else
9719 # If we're using GNU nm, then we don't want the "-C" option.
9720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9721 # Also, AIX nm treats weak defined symbols like other global
9722 # defined symbols, whereas GNU nm marks them as "W".
9723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9724 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'
9725 else
9726 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'
9728 aix_use_runtimelinking=no
9730 # Test if we are trying to use run time linking or normal
9731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9732 # need to do runtime linking.
9733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9734 for ld_flag in $LDFLAGS; do
9735 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9736 aix_use_runtimelinking=yes
9737 break
9739 done
9741 esac
9743 exp_sym_flag='-bexport'
9744 no_entry_flag='-bnoentry'
9747 # When large executables or shared objects are built, AIX ld can
9748 # have problems creating the table of contents. If linking a library
9749 # or program results in "error TOC overflow" add -mminimal-toc to
9750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9753 archive_cmds=''
9754 hardcode_direct=yes
9755 hardcode_direct_absolute=yes
9756 hardcode_libdir_separator=':'
9757 link_all_deplibs=yes
9758 file_list_spec='${wl}-f,'
9760 if test "$GCC" = yes; then
9761 case $host_os in aix4.[012]|aix4.[012].*)
9762 # We only want to do this on AIX 4.2 and lower, the check
9763 # below for broken collect2 doesn't work under 4.3+
9764 collect2name=`${CC} -print-prog-name=collect2`
9765 if test -f "$collect2name" &&
9766 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9767 then
9768 # We have reworked collect2
9770 else
9771 # We have old collect2
9772 hardcode_direct=unsupported
9773 # It fails to find uninstalled libraries when the uninstalled
9774 # path is not listed in the libpath. Setting hardcode_minus_L
9775 # to unsupported forces relinking
9776 hardcode_minus_L=yes
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_libdir_separator=
9781 esac
9782 shared_flag='-shared'
9783 if test "$aix_use_runtimelinking" = yes; then
9784 shared_flag="$shared_flag "'${wl}-G'
9786 else
9787 # not using gcc
9788 if test "$host_cpu" = ia64; then
9789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9790 # chokes on -Wl,-G. The following line is correct:
9791 shared_flag='-G'
9792 else
9793 if test "$aix_use_runtimelinking" = yes; then
9794 shared_flag='${wl}-G'
9795 else
9796 shared_flag='${wl}-bM:SRE'
9801 export_dynamic_flag_spec='${wl}-bexpall'
9802 # It seems that -bexpall does not export symbols beginning with
9803 # underscore (_), so it is better to generate a list of symbols to export.
9804 always_export_symbols=yes
9805 if test "$aix_use_runtimelinking" = yes; then
9806 # Warning - without using the other runtime loading flags (-brtl),
9807 # -berok will link without error, but may produce a broken library.
9808 allow_undefined_flag='-berok'
9809 # Determine the default libpath from the value encoded in an
9810 # empty executable.
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9815 main ()
9819 return 0;
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"; then :
9824 lt_aix_libpath_sed='
9825 /Import File Strings/,/^$/ {
9826 /^0/ {
9827 s/^0 *\(.*\)$/\1/
9831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9832 # Check for a 64-bit object if we didn't find anything.
9833 if test -z "$aix_libpath"; then
9834 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9842 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"
9843 else
9844 if test "$host_cpu" = ia64; then
9845 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9846 allow_undefined_flag="-z nodefs"
9847 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"
9848 else
9849 # Determine the default libpath from the value encoded in an
9850 # empty executable.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9855 main ()
9859 return 0;
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9864 lt_aix_libpath_sed='
9865 /Import File Strings/,/^$/ {
9866 /^0/ {
9867 s/^0 *\(.*\)$/\1/
9871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872 # Check for a 64-bit object if we didn't find anything.
9873 if test -z "$aix_libpath"; then
9874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9882 # Warning - without using the other run time loading flags,
9883 # -berok will link without error, but may produce a broken library.
9884 no_undefined_flag=' ${wl}-bernotok'
9885 allow_undefined_flag=' ${wl}-berok'
9886 if test "$with_gnu_ld" = yes; then
9887 # We only use this code for GNU lds that support --whole-archive.
9888 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9889 else
9890 # Exported symbols can be pulled into shared objects from archives
9891 whole_archive_flag_spec='$convenience'
9893 archive_cmds_need_lc=yes
9894 # This is similar to how AIX traditionally builds its shared libraries.
9895 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'
9900 amigaos*)
9901 case $host_cpu in
9902 powerpc)
9903 # see comment about AmigaOS4 .so support
9904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds=''
9907 m68k)
9908 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)'
9909 hardcode_libdir_flag_spec='-L$libdir'
9910 hardcode_minus_L=yes
9912 esac
9915 bsdi[45]*)
9916 export_dynamic_flag_spec=-rdynamic
9919 cygwin* | mingw* | pw32* | cegcc*)
9920 # When not using gcc, we currently assume that we are using
9921 # Microsoft Visual C++.
9922 # hardcode_libdir_flag_spec is actually meaningless, as there is
9923 # no search path for DLLs.
9924 hardcode_libdir_flag_spec=' '
9925 allow_undefined_flag=unsupported
9926 # Tell ltmain to make .lib files, not .a files.
9927 libext=lib
9928 # Tell ltmain to make .dll files, not .so files.
9929 shrext_cmds=".dll"
9930 # FIXME: Setting linknames here is a bad hack.
9931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9932 # The linker will automatically build a .lib file if we build a DLL.
9933 old_archive_from_new_cmds='true'
9934 # FIXME: Should let the user specify the lib program.
9935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9936 fix_srcfile_path='`cygpath -w "$srcfile"`'
9937 enable_shared_with_static_runtimes=yes
9940 darwin* | rhapsody*)
9943 archive_cmds_need_lc=no
9944 hardcode_direct=no
9945 hardcode_automatic=yes
9946 hardcode_shlibpath_var=unsupported
9947 if test "$lt_cv_ld_force_load" = "yes"; then
9948 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\"`'
9949 else
9950 whole_archive_flag_spec=''
9952 link_all_deplibs=yes
9953 allow_undefined_flag="$_lt_dar_allow_undefined"
9954 case $cc_basename in
9955 ifort*) _lt_dar_can_shared=yes ;;
9956 *) _lt_dar_can_shared=$GCC ;;
9957 esac
9958 if test "$_lt_dar_can_shared" = "yes"; then
9959 output_verbose_link_cmd=func_echo_all
9960 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9961 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9962 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}"
9963 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}"
9965 else
9966 ld_shlibs=no
9971 dgux*)
9972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_shlibpath_var=no
9977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9978 # support. Future versions do this automatically, but an explicit c++rt0.o
9979 # does not break anything, and helps significantly (at the cost of a little
9980 # extra space).
9981 freebsd2.2*)
9982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9983 hardcode_libdir_flag_spec='-R$libdir'
9984 hardcode_direct=yes
9985 hardcode_shlibpath_var=no
9988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9989 freebsd2.*)
9990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=yes
9992 hardcode_minus_L=yes
9993 hardcode_shlibpath_var=no
9996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9997 freebsd* | dragonfly*)
9998 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9999 hardcode_libdir_flag_spec='-R$libdir'
10000 hardcode_direct=yes
10001 hardcode_shlibpath_var=no
10004 hpux9*)
10005 if test "$GCC" = yes; then
10006 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'
10007 else
10008 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'
10010 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10011 hardcode_libdir_separator=:
10012 hardcode_direct=yes
10014 # hardcode_minus_L: Not really in the search PATH,
10015 # but as the default location of the library.
10016 hardcode_minus_L=yes
10017 export_dynamic_flag_spec='${wl}-E'
10020 hpux10*)
10021 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10026 if test "$with_gnu_ld" = no; then
10027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10028 hardcode_libdir_flag_spec_ld='+b $libdir'
10029 hardcode_libdir_separator=:
10030 hardcode_direct=yes
10031 hardcode_direct_absolute=yes
10032 export_dynamic_flag_spec='${wl}-E'
10033 # hardcode_minus_L: Not really in the search PATH,
10034 # but as the default location of the library.
10035 hardcode_minus_L=yes
10039 hpux11*)
10040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10041 case $host_cpu in
10042 hppa*64*)
10043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045 ia64*)
10046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10051 esac
10052 else
10053 case $host_cpu in
10054 hppa*64*)
10055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057 ia64*)
10058 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10062 # Older versions of the 11.00 compiler do not understand -b yet
10063 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10065 $as_echo_n "checking if $CC understands -b... " >&6; }
10066 if ${lt_cv_prog_compiler__b+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 lt_cv_prog_compiler__b=no
10070 save_LDFLAGS="$LDFLAGS"
10071 LDFLAGS="$LDFLAGS -b"
10072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10074 # The linker can only warn and ignore the option if not recognized
10075 # So say no if there are warnings
10076 if test -s conftest.err; then
10077 # Append any errors to the config.log.
10078 cat conftest.err 1>&5
10079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081 if diff conftest.exp conftest.er2 >/dev/null; then
10082 lt_cv_prog_compiler__b=yes
10084 else
10085 lt_cv_prog_compiler__b=yes
10088 $RM -r conftest*
10089 LDFLAGS="$save_LDFLAGS"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10093 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10095 if test x"$lt_cv_prog_compiler__b" = xyes; then
10096 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10102 esac
10104 if test "$with_gnu_ld" = no; then
10105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10106 hardcode_libdir_separator=:
10108 case $host_cpu in
10109 hppa*64*|ia64*)
10110 hardcode_direct=no
10111 hardcode_shlibpath_var=no
10114 hardcode_direct=yes
10115 hardcode_direct_absolute=yes
10116 export_dynamic_flag_spec='${wl}-E'
10118 # hardcode_minus_L: Not really in the search PATH,
10119 # but as the default location of the library.
10120 hardcode_minus_L=yes
10122 esac
10126 irix5* | irix6* | nonstopux*)
10127 if test "$GCC" = yes; then
10128 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'
10129 # Try to use the -exported_symbol ld option, if it does not
10130 # work, assume that -exports_file does not work either and
10131 # implicitly export all symbols.
10132 save_LDFLAGS="$LDFLAGS"
10133 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int foo(void) {}
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 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'
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LDFLAGS="$save_LDFLAGS"
10145 else
10146 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'
10147 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'
10149 archive_cmds_need_lc='no'
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 hardcode_libdir_separator=:
10152 inherit_rpath=yes
10153 link_all_deplibs=yes
10156 netbsd*)
10157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10159 else
10160 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10162 hardcode_libdir_flag_spec='-R$libdir'
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10167 newsos6)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_direct=yes
10170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171 hardcode_libdir_separator=:
10172 hardcode_shlibpath_var=no
10175 *nto* | *qnx*)
10178 openbsd*)
10179 if test -f /usr/libexec/ld.so; then
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10182 hardcode_direct_absolute=yes
10183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10187 export_dynamic_flag_spec='${wl}-E'
10188 else
10189 case $host_os in
10190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_libdir_flag_spec='-R$libdir'
10195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10198 esac
10200 else
10201 ld_shlibs=no
10205 os2*)
10206 hardcode_libdir_flag_spec='-L$libdir'
10207 hardcode_minus_L=yes
10208 allow_undefined_flag=unsupported
10209 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'
10210 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10213 osf3*)
10214 if test "$GCC" = yes; then
10215 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10216 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'
10217 else
10218 allow_undefined_flag=' -expect_unresolved \*'
10219 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'
10221 archive_cmds_need_lc='no'
10222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10223 hardcode_libdir_separator=:
10226 osf4* | osf5*) # as osf3* with the addition of -msym flag
10227 if test "$GCC" = yes; then
10228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10229 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'
10230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10231 else
10232 allow_undefined_flag=' -expect_unresolved \*'
10233 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'
10234 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~
10235 $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'
10237 # Both c and cxx compiler support -rpath directly
10238 hardcode_libdir_flag_spec='-rpath $libdir'
10240 archive_cmds_need_lc='no'
10241 hardcode_libdir_separator=:
10244 solaris*)
10245 no_undefined_flag=' -z defs'
10246 if test "$GCC" = yes; then
10247 wlarc='${wl}'
10248 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10251 else
10252 case `$CC -V 2>&1` in
10253 *"Compilers 5.0"*)
10254 wlarc=''
10255 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10260 wlarc='${wl}'
10261 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10263 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10265 esac
10267 hardcode_libdir_flag_spec='-R$libdir'
10268 hardcode_shlibpath_var=no
10269 case $host_os in
10270 solaris2.[0-5] | solaris2.[0-5].*) ;;
10272 # The compiler driver will combine and reorder linker options,
10273 # but understands `-z linker_flag'. GCC discards it without `$wl',
10274 # but is careful enough not to reorder.
10275 # Supported since Solaris 2.6 (maybe 2.5.1?)
10276 if test "$GCC" = yes; then
10277 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10278 else
10279 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10282 esac
10283 link_all_deplibs=yes
10286 sunos4*)
10287 if test "x$host_vendor" = xsequent; then
10288 # Use $CC to link under sequent, because it throws in some extra .o
10289 # files that make .init and .fini sections work.
10290 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10291 else
10292 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_direct=yes
10296 hardcode_minus_L=yes
10297 hardcode_shlibpath_var=no
10300 sysv4)
10301 case $host_vendor in
10302 sni)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes # is this really true???
10306 siemens)
10307 ## LD is ld it makes a PLAMLIB
10308 ## CC just makes a GrossModule.
10309 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10310 reload_cmds='$CC -r -o $output$reload_objs'
10311 hardcode_direct=no
10313 motorola)
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10317 esac
10318 runpath_var='LD_RUN_PATH'
10319 hardcode_shlibpath_var=no
10322 sysv4.3*)
10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 hardcode_shlibpath_var=no
10325 export_dynamic_flag_spec='-Bexport'
10328 sysv4*MP*)
10329 if test -d /usr/nec; then
10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_shlibpath_var=no
10332 runpath_var=LD_RUN_PATH
10333 hardcode_runpath_var=yes
10334 ld_shlibs=yes
10338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10339 no_undefined_flag='${wl}-z,text'
10340 archive_cmds_need_lc=no
10341 hardcode_shlibpath_var=no
10342 runpath_var='LD_RUN_PATH'
10344 if test "$GCC" = yes; then
10345 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 else
10348 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 sysv5* | sco3.2v5* | sco5v6*)
10354 # Note: We can NOT use -z defs as we might desire, because we do not
10355 # link with -lc, and that would cause any symbols used from libc to
10356 # always be unresolved, which means just about no library would
10357 # ever link correctly. If we're not using GNU ld we use -z text
10358 # though, which does catch some bad symbols but isn't as heavy-handed
10359 # as -z defs.
10360 no_undefined_flag='${wl}-z,text'
10361 allow_undefined_flag='${wl}-z,nodefs'
10362 archive_cmds_need_lc=no
10363 hardcode_shlibpath_var=no
10364 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10365 hardcode_libdir_separator=':'
10366 link_all_deplibs=yes
10367 export_dynamic_flag_spec='${wl}-Bexport'
10368 runpath_var='LD_RUN_PATH'
10370 if test "$GCC" = yes; then
10371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 else
10374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 uts4*)
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_libdir_flag_spec='-L$libdir'
10382 hardcode_shlibpath_var=no
10386 ld_shlibs=no
10388 esac
10390 if test x$host_vendor = xsni; then
10391 case $host in
10392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10393 export_dynamic_flag_spec='${wl}-Blargedynsym'
10395 esac
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10400 $as_echo "$ld_shlibs" >&6; }
10401 test "$ld_shlibs" = no && can_build_shared=no
10403 with_gnu_ld=$with_gnu_ld
10420 # Do we need to explicitly link libc?
10422 case "x$archive_cmds_need_lc" in
10423 x|xyes)
10424 # Assume -lc should be added
10425 archive_cmds_need_lc=yes
10427 if test "$enable_shared" = yes && test "$GCC" = yes; then
10428 case $archive_cmds in
10429 *'~'*)
10430 # FIXME: we may have to deal with multi-command sequences.
10432 '$CC '*)
10433 # Test whether the compiler implicitly links with -lc since on some
10434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10435 # to ld, don't add -lc before -lgcc.
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10437 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10438 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 $RM conftest*
10442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10445 (eval $ac_compile) 2>&5
10446 ac_status=$?
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; } 2>conftest.err; then
10449 soname=conftest
10450 lib=conftest
10451 libobjs=conftest.$ac_objext
10452 deplibs=
10453 wl=$lt_prog_compiler_wl
10454 pic_flag=$lt_prog_compiler_pic
10455 compiler_flags=-v
10456 linker_flags=-v
10457 verstring=
10458 output_objdir=.
10459 libname=conftest
10460 lt_save_allow_undefined_flag=$allow_undefined_flag
10461 allow_undefined_flag=
10462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10463 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10464 ac_status=$?
10465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10466 test $ac_status = 0; }
10467 then
10468 lt_cv_archive_cmds_need_lc=no
10469 else
10470 lt_cv_archive_cmds_need_lc=yes
10472 allow_undefined_flag=$lt_save_allow_undefined_flag
10473 else
10474 cat conftest.err 1>&5
10476 $RM conftest*
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10480 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10481 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10483 esac
10486 esac
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10647 if test "$GCC" = yes; then
10648 case $host_os in
10649 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10650 *) lt_awk_arg="/^libraries:/" ;;
10651 esac
10652 case $host_os in
10653 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10654 *) lt_sed_strip_eq="s,=/,/,g" ;;
10655 esac
10656 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10657 case $lt_search_path_spec in
10658 *\;*)
10659 # if the path contains ";" then we assume it to be the separator
10660 # otherwise default to the standard path separator (i.e. ":") - it is
10661 # assumed that no part of a normal pathname contains ";" but that should
10662 # okay in the real world where ";" in dirpaths is itself problematic.
10663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10668 esac
10669 # Ok, now we have the path, separated by spaces, we can step through it
10670 # and add multilib dir if necessary.
10671 lt_tmp_lt_search_path_spec=
10672 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10673 for lt_sys_path in $lt_search_path_spec; do
10674 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10675 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10676 else
10677 test -d "$lt_sys_path" && \
10678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10680 done
10681 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10682 BEGIN {RS=" "; FS="/|\n";} {
10683 lt_foo="";
10684 lt_count=0;
10685 for (lt_i = NF; lt_i > 0; lt_i--) {
10686 if ($lt_i != "" && $lt_i != ".") {
10687 if ($lt_i == "..") {
10688 lt_count++;
10689 } else {
10690 if (lt_count == 0) {
10691 lt_foo="/" $lt_i lt_foo;
10692 } else {
10693 lt_count--;
10698 if (lt_foo != "") { lt_freq[lt_foo]++; }
10699 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10701 # AWK program above erroneously prepends '/' to C:/dos/paths
10702 # for these hosts.
10703 case $host_os in
10704 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10705 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10706 esac
10707 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10708 else
10709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10711 library_names_spec=
10712 libname_spec='lib$name'
10713 soname_spec=
10714 shrext_cmds=".so"
10715 postinstall_cmds=
10716 postuninstall_cmds=
10717 finish_cmds=
10718 finish_eval=
10719 shlibpath_var=
10720 shlibpath_overrides_runpath=unknown
10721 version_type=none
10722 dynamic_linker="$host_os ld.so"
10723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10724 need_lib_prefix=unknown
10725 hardcode_into_libs=no
10727 # when you set need_version to no, make sure it does not cause -set_version
10728 # flags to be left without arguments
10729 need_version=unknown
10731 case $host_os in
10732 aix3*)
10733 version_type=linux
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10735 shlibpath_var=LIBPATH
10737 # AIX 3 has no versioning support, so we append a major version to the name.
10738 soname_spec='${libname}${release}${shared_ext}$major'
10741 aix[4-9]*)
10742 version_type=linux
10743 need_lib_prefix=no
10744 need_version=no
10745 hardcode_into_libs=yes
10746 if test "$host_cpu" = ia64; then
10747 # AIX 5 supports IA64
10748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 else
10751 # With GCC up to 2.95.x, collect2 would create an import file
10752 # for dependence libraries. The import file would start with
10753 # the line `#! .'. This would cause the generated library to
10754 # depend on `.', always an invalid library. This was fixed in
10755 # development snapshots of GCC prior to 3.0.
10756 case $host_os in
10757 aix4 | aix4.[01] | aix4.[01].*)
10758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10759 echo ' yes '
10760 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10762 else
10763 can_build_shared=no
10766 esac
10767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10768 # soname into executable. Probably we can add versioning support to
10769 # collect2, so additional links can be useful in future.
10770 if test "$aix_use_runtimelinking" = yes; then
10771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10772 # instead of lib<name>.a to let people know that these are not
10773 # typical AIX shared libraries.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 else
10776 # We preserve .a as extension for shared libraries through AIX4.2
10777 # and later when we are not doing run time linking.
10778 library_names_spec='${libname}${release}.a $libname.a'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LIBPATH
10785 amigaos*)
10786 case $host_cpu in
10787 powerpc)
10788 # Since July 2007 AmigaOS4 officially supports .so libraries.
10789 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 m68k)
10793 library_names_spec='$libname.ixlibrary $libname.a'
10794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795 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'
10797 esac
10800 beos*)
10801 library_names_spec='${libname}${shared_ext}'
10802 dynamic_linker="$host_os ld.so"
10803 shlibpath_var=LIBRARY_PATH
10806 bsdi[45]*)
10807 version_type=linux
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10815 # the default ld.so.conf also contains /usr/contrib/lib and
10816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10817 # libtool to hard-code these into programs
10820 cygwin* | mingw* | pw32* | cegcc*)
10821 version_type=windows
10822 shrext_cmds=".dll"
10823 need_version=no
10824 need_lib_prefix=no
10826 case $GCC,$host_os in
10827 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10828 library_names_spec='$libname.dll.a'
10829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10830 postinstall_cmds='base_file=`basename \${file}`~
10831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10832 dldir=$destdir/`dirname \$dlpath`~
10833 test -d \$dldir || mkdir -p \$dldir~
10834 $install_prog $dir/$dlname \$dldir/$dlname~
10835 chmod a+x \$dldir/$dlname~
10836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840 dlpath=$dir/\$dldll~
10841 $RM \$dlpath'
10842 shlibpath_overrides_runpath=yes
10844 case $host_os in
10845 cygwin*)
10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10851 mingw* | cegcc*)
10852 # MinGW DLLs use traditional 'lib' prefix
10853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855 pw32*)
10856 # pw32 DLLs use 'pw' prefix rather than 'lib'
10857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10859 esac
10863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10865 esac
10866 dynamic_linker='Win32 ld.exe'
10867 # FIXME: first we should search . and the directory the executable is in
10868 shlibpath_var=PATH
10871 darwin* | rhapsody*)
10872 dynamic_linker="$host_os dyld"
10873 version_type=darwin
10874 need_lib_prefix=no
10875 need_version=no
10876 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10877 soname_spec='${libname}${release}${major}$shared_ext'
10878 shlibpath_overrides_runpath=yes
10879 shlibpath_var=DYLD_LIBRARY_PATH
10880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10886 dgux*)
10887 version_type=linux
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
10895 freebsd* | dragonfly*)
10896 # DragonFly does not have aout. When/if they implement a new
10897 # versioning mechanism, adjust this.
10898 if test -x /usr/bin/objformat; then
10899 objformat=`/usr/bin/objformat`
10900 else
10901 case $host_os in
10902 freebsd[23].*) objformat=aout ;;
10903 *) objformat=elf ;;
10904 esac
10906 version_type=freebsd-$objformat
10907 case $version_type in
10908 freebsd-elf*)
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 need_version=no
10911 need_lib_prefix=no
10913 freebsd-*)
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10915 need_version=yes
10917 esac
10918 shlibpath_var=LD_LIBRARY_PATH
10919 case $host_os in
10920 freebsd2.*)
10921 shlibpath_overrides_runpath=yes
10923 freebsd3.[01]* | freebsdelf3.[01]*)
10924 shlibpath_overrides_runpath=yes
10925 hardcode_into_libs=yes
10927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10929 shlibpath_overrides_runpath=no
10930 hardcode_into_libs=yes
10932 *) # from 4.6 on, and DragonFly
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10936 esac
10939 haiku*)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 dynamic_linker="$host_os runtime_loader"
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 shlibpath_var=LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10948 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10949 hardcode_into_libs=yes
10952 hpux9* | hpux10* | hpux11*)
10953 # Give a soname corresponding to the major version so that dld.sl refuses to
10954 # link against other versions.
10955 version_type=sunos
10956 need_lib_prefix=no
10957 need_version=no
10958 case $host_cpu in
10959 ia64*)
10960 shrext_cmds='.so'
10961 hardcode_into_libs=yes
10962 dynamic_linker="$host_os dld.so"
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 if test "X$HPUX_IA64_MODE" = X32; then
10968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10969 else
10970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10974 hppa*64*)
10975 shrext_cmds='.sl'
10976 hardcode_into_libs=yes
10977 dynamic_linker="$host_os dld.sl"
10978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986 shrext_cmds='.sl'
10987 dynamic_linker="$host_os dld.sl"
10988 shlibpath_var=SHLIB_PATH
10989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10993 esac
10994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10995 postinstall_cmds='chmod 555 $lib'
10996 # or fails outright, so override atomically:
10997 install_override_mode=555
11000 interix[3-9]*)
11001 version_type=linux
11002 need_lib_prefix=no
11003 need_version=no
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=no
11009 hardcode_into_libs=yes
11012 irix5* | irix6* | nonstopux*)
11013 case $host_os in
11014 nonstopux*) version_type=nonstopux ;;
11016 if test "$lt_cv_prog_gnu_ld" = yes; then
11017 version_type=linux
11018 else
11019 version_type=irix
11020 fi ;;
11021 esac
11022 need_lib_prefix=no
11023 need_version=no
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11026 case $host_os in
11027 irix5* | nonstopux*)
11028 libsuff= shlibsuff=
11031 case $LD in # libtool.m4 will add one of these switches to LD
11032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11033 libsuff= shlibsuff= libmagic=32-bit;;
11034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11035 libsuff=32 shlibsuff=N32 libmagic=N32;;
11036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11038 *) libsuff= shlibsuff= libmagic=never-match;;
11039 esac
11041 esac
11042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11043 shlibpath_overrides_runpath=no
11044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11046 hardcode_into_libs=yes
11049 # No shared lib support for Linux oldld, aout, or coff.
11050 linux*oldld* | linux*aout* | linux*coff*)
11051 dynamic_linker=no
11054 # This must be Linux ELF.
11056 # uclinux* changes (here and below) have been submitted to the libtool
11057 # project, but have not yet been accepted: they are GCC-local changes
11058 # for the time being. (See
11059 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11060 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11061 version_type=linux
11062 need_lib_prefix=no
11063 need_version=no
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=no
11070 # Some binutils ld are patched to set DT_RUNPATH
11071 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 lt_cv_shlibpath_overrides_runpath=no
11075 save_LDFLAGS=$LDFLAGS
11076 save_libdir=$libdir
11077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11083 main ()
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11092 lt_cv_shlibpath_overrides_runpath=yes
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LDFLAGS=$save_LDFLAGS
11098 libdir=$save_libdir
11102 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11104 # This implies no fast_install, which is unacceptable.
11105 # Some rework will be needed to allow for fast_install
11106 # before this can be enabled.
11107 hardcode_into_libs=yes
11109 # Append ld.so.conf contents to the search path
11110 if test -f /etc/ld.so.conf; then
11111 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' ' '`
11112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11115 # We used to test for /lib/ld.so.1 and disable shared libraries on
11116 # powerpc, because MkLinux only supported shared libraries with the
11117 # GNU dynamic linker. Since this was broken with cross compilers,
11118 # most powerpc-linux boxes support dynamic linking these days and
11119 # people can always --disable-shared, the test was removed, and we
11120 # assume the GNU/Linux dynamic linker is in use.
11121 dynamic_linker='GNU/Linux ld.so'
11124 netbsd*)
11125 version_type=sunos
11126 need_lib_prefix=no
11127 need_version=no
11128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131 dynamic_linker='NetBSD (a.out) ld.so'
11132 else
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 dynamic_linker='NetBSD ld.elf_so'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 hardcode_into_libs=yes
11142 newsos6)
11143 version_type=linux
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath=yes
11149 *nto* | *qnx*)
11150 version_type=qnx
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=no
11157 hardcode_into_libs=yes
11158 dynamic_linker='ldqnx.so'
11161 openbsd*)
11162 version_type=sunos
11163 sys_lib_dlsearch_path_spec="/usr/lib"
11164 need_lib_prefix=no
11165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11166 case $host_os in
11167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11168 *) need_version=no ;;
11169 esac
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11174 case $host_os in
11175 openbsd2.[89] | openbsd2.[89].*)
11176 shlibpath_overrides_runpath=no
11179 shlibpath_overrides_runpath=yes
11181 esac
11182 else
11183 shlibpath_overrides_runpath=yes
11187 os2*)
11188 libname_spec='$name'
11189 shrext_cmds=".dll"
11190 need_lib_prefix=no
11191 library_names_spec='$libname${shared_ext} $libname.a'
11192 dynamic_linker='OS/2 ld.exe'
11193 shlibpath_var=LIBPATH
11196 osf3* | osf4* | osf5*)
11197 version_type=osf
11198 need_lib_prefix=no
11199 need_version=no
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11207 rdos*)
11208 dynamic_linker=no
11211 solaris*)
11212 version_type=linux
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=yes
11219 hardcode_into_libs=yes
11220 # ldd complains unless libraries are executable
11221 postinstall_cmds='chmod +x $lib'
11224 sunos4*)
11225 version_type=sunos
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=yes
11230 if test "$with_gnu_ld" = yes; then
11231 need_lib_prefix=no
11233 need_version=yes
11236 sysv4 | sysv4.3*)
11237 version_type=linux
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 case $host_vendor in
11242 sni)
11243 shlibpath_overrides_runpath=no
11244 need_lib_prefix=no
11245 runpath_var=LD_RUN_PATH
11247 siemens)
11248 need_lib_prefix=no
11250 motorola)
11251 need_lib_prefix=no
11252 need_version=no
11253 shlibpath_overrides_runpath=no
11254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11256 esac
11259 sysv4*MP*)
11260 if test -d /usr/nec ;then
11261 version_type=linux
11262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11263 soname_spec='$libname${shared_ext}.$major'
11264 shlibpath_var=LD_LIBRARY_PATH
11268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11269 version_type=freebsd-elf
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11277 if test "$with_gnu_ld" = yes; then
11278 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11279 else
11280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11281 case $host_os in
11282 sco3.2v5*)
11283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11285 esac
11287 sys_lib_dlsearch_path_spec='/usr/lib'
11290 tpf*)
11291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=no
11298 hardcode_into_libs=yes
11301 uts4*)
11302 version_type=linux
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11309 dynamic_linker=no
11311 esac
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11313 $as_echo "$dynamic_linker" >&6; }
11314 test "$dynamic_linker" = no && can_build_shared=no
11316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11317 if test "$GCC" = yes; then
11318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11325 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11421 hardcode_action=
11422 if test -n "$hardcode_libdir_flag_spec" ||
11423 test -n "$runpath_var" ||
11424 test "X$hardcode_automatic" = "Xyes" ; then
11426 # We can hardcode non-existent directories.
11427 if test "$hardcode_direct" != no &&
11428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11429 # have to relink, otherwise we might link with an installed library
11430 # when we should be linking with a yet-to-be-installed one
11431 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11432 test "$hardcode_minus_L" != no; then
11433 # Linking always hardcodes the temporary library directory.
11434 hardcode_action=relink
11435 else
11436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11437 hardcode_action=immediate
11439 else
11440 # We cannot hardcode anything, or else we can only hardcode existing
11441 # directories.
11442 hardcode_action=unsupported
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11445 $as_echo "$hardcode_action" >&6; }
11447 if test "$hardcode_action" = relink ||
11448 test "$inherit_rpath" = yes; then
11449 # Fast installation is not supported
11450 enable_fast_install=no
11451 elif test "$shlibpath_overrides_runpath" = yes ||
11452 test "$enable_shared" = no; then
11453 # Fast installation is not necessary
11454 enable_fast_install=needless
11462 if test "x$enable_dlopen" != xyes; then
11463 enable_dlopen=unknown
11464 enable_dlopen_self=unknown
11465 enable_dlopen_self_static=unknown
11466 else
11467 lt_cv_dlopen=no
11468 lt_cv_dlopen_libs=
11470 case $host_os in
11471 beos*)
11472 lt_cv_dlopen="load_add_on"
11473 lt_cv_dlopen_libs=
11474 lt_cv_dlopen_self=yes
11477 mingw* | pw32* | cegcc*)
11478 lt_cv_dlopen="LoadLibrary"
11479 lt_cv_dlopen_libs=
11482 cygwin*)
11483 lt_cv_dlopen="dlopen"
11484 lt_cv_dlopen_libs=
11487 darwin*)
11488 # if libdl is installed we need to link against it
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if ${ac_cv_lib_dl_dlopen+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldl $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char dlopen ();
11507 main ()
11509 return dlopen ();
11511 return 0;
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_dl_dlopen=yes
11516 else
11517 ac_cv_lib_dl_dlopen=no
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11525 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11527 else
11529 lt_cv_dlopen="dyld"
11530 lt_cv_dlopen_libs=
11531 lt_cv_dlopen_self=yes
11538 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11539 if test "x$ac_cv_func_shl_load" = xyes; then :
11540 lt_cv_dlopen="shl_load"
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11544 if ${ac_cv_lib_dld_shl_load+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldld $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char shl_load ();
11560 main ()
11562 return shl_load ();
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dld_shl_load=yes
11569 else
11570 ac_cv_lib_dld_shl_load=no
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11578 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11580 else
11581 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11582 if test "x$ac_cv_func_dlopen" = xyes; then :
11583 lt_cv_dlopen="dlopen"
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11587 if ${ac_cv_lib_dl_dlopen+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-ldl $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char dlopen ();
11603 main ()
11605 return dlopen ();
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611 ac_cv_lib_dl_dlopen=yes
11612 else
11613 ac_cv_lib_dl_dlopen=no
11615 rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11621 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11625 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11626 if ${ac_cv_lib_svld_dlopen+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lsvld $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11642 main ()
11644 return dlopen ();
11646 return 0;
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_svld_dlopen=yes
11651 else
11652 ac_cv_lib_svld_dlopen=no
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11659 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11660 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11664 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11665 if ${ac_cv_lib_dld_dld_link+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-ldld $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char dld_link ();
11681 main ()
11683 return dld_link ();
11685 return 0;
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_lib_dld_dld_link=yes
11690 else
11691 ac_cv_lib_dld_dld_link=no
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11699 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11719 esac
11721 if test "x$lt_cv_dlopen" != xno; then
11722 enable_dlopen=yes
11723 else
11724 enable_dlopen=no
11727 case $lt_cv_dlopen in
11728 dlopen)
11729 save_CPPFLAGS="$CPPFLAGS"
11730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11732 save_LDFLAGS="$LDFLAGS"
11733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11735 save_LIBS="$LIBS"
11736 LIBS="$lt_cv_dlopen_libs $LIBS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11740 if ${lt_cv_dlopen_self+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test "$cross_compiling" = yes; then :
11744 lt_cv_dlopen_self=cross
11745 else
11746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747 lt_status=$lt_dlunknown
11748 cat > conftest.$ac_ext <<_LT_EOF
11749 #line 11759 "configure"
11750 #include "confdefs.h"
11752 #if HAVE_DLFCN_H
11753 #include <dlfcn.h>
11754 #endif
11756 #include <stdio.h>
11758 #ifdef RTLD_GLOBAL
11759 # define LT_DLGLOBAL RTLD_GLOBAL
11760 #else
11761 # ifdef DL_GLOBAL
11762 # define LT_DLGLOBAL DL_GLOBAL
11763 # else
11764 # define LT_DLGLOBAL 0
11765 # endif
11766 #endif
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769 find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11771 # ifdef RTLD_LAZY
11772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11773 # else
11774 # ifdef DL_LAZY
11775 # define LT_DLLAZY_OR_NOW DL_LAZY
11776 # else
11777 # ifdef RTLD_NOW
11778 # define LT_DLLAZY_OR_NOW RTLD_NOW
11779 # else
11780 # ifdef DL_NOW
11781 # define LT_DLLAZY_OR_NOW DL_NOW
11782 # else
11783 # define LT_DLLAZY_OR_NOW 0
11784 # endif
11785 # endif
11786 # endif
11787 # endif
11788 #endif
11790 /* When -fvisbility=hidden is used, assume the code has been annotated
11791 correspondingly for the symbols needed. */
11792 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11793 void fnord () __attribute__((visibility("default")));
11794 #endif
11796 void fnord () { int i=42; }
11797 int main ()
11799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11800 int status = $lt_dlunknown;
11802 if (self)
11804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11805 else
11807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11808 else puts (dlerror ());
11810 /* dlclose (self); */
11812 else
11813 puts (dlerror ());
11815 return status;
11817 _LT_EOF
11818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11819 (eval $ac_link) 2>&5
11820 ac_status=$?
11821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11823 (./conftest; exit; ) >&5 2>/dev/null
11824 lt_status=$?
11825 case x$lt_status in
11826 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11827 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11828 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11829 esac
11830 else :
11831 # compilation failed
11832 lt_cv_dlopen_self=no
11835 rm -fr conftest*
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11840 $as_echo "$lt_cv_dlopen_self" >&6; }
11842 if test "x$lt_cv_dlopen_self" = xyes; then
11843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11845 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11846 if ${lt_cv_dlopen_self_static+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 if test "$cross_compiling" = yes; then :
11850 lt_cv_dlopen_self_static=cross
11851 else
11852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11853 lt_status=$lt_dlunknown
11854 cat > conftest.$ac_ext <<_LT_EOF
11855 #line 11865 "configure"
11856 #include "confdefs.h"
11858 #if HAVE_DLFCN_H
11859 #include <dlfcn.h>
11860 #endif
11862 #include <stdio.h>
11864 #ifdef RTLD_GLOBAL
11865 # define LT_DLGLOBAL RTLD_GLOBAL
11866 #else
11867 # ifdef DL_GLOBAL
11868 # define LT_DLGLOBAL DL_GLOBAL
11869 # else
11870 # define LT_DLGLOBAL 0
11871 # endif
11872 #endif
11874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11875 find out it does not work in some platform. */
11876 #ifndef LT_DLLAZY_OR_NOW
11877 # ifdef RTLD_LAZY
11878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11879 # else
11880 # ifdef DL_LAZY
11881 # define LT_DLLAZY_OR_NOW DL_LAZY
11882 # else
11883 # ifdef RTLD_NOW
11884 # define LT_DLLAZY_OR_NOW RTLD_NOW
11885 # else
11886 # ifdef DL_NOW
11887 # define LT_DLLAZY_OR_NOW DL_NOW
11888 # else
11889 # define LT_DLLAZY_OR_NOW 0
11890 # endif
11891 # endif
11892 # endif
11893 # endif
11894 #endif
11896 /* When -fvisbility=hidden is used, assume the code has been annotated
11897 correspondingly for the symbols needed. */
11898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11899 void fnord () __attribute__((visibility("default")));
11900 #endif
11902 void fnord () { int i=42; }
11903 int main ()
11905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906 int status = $lt_dlunknown;
11908 if (self)
11910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11911 else
11913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11914 else puts (dlerror ());
11916 /* dlclose (self); */
11918 else
11919 puts (dlerror ());
11921 return status;
11923 _LT_EOF
11924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925 (eval $ac_link) 2>&5
11926 ac_status=$?
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11929 (./conftest; exit; ) >&5 2>/dev/null
11930 lt_status=$?
11931 case x$lt_status in
11932 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11933 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11934 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11935 esac
11936 else :
11937 # compilation failed
11938 lt_cv_dlopen_self_static=no
11941 rm -fr conftest*
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11946 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11949 CPPFLAGS="$save_CPPFLAGS"
11950 LDFLAGS="$save_LDFLAGS"
11951 LIBS="$save_LIBS"
11953 esac
11955 case $lt_cv_dlopen_self in
11956 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11957 *) enable_dlopen_self=unknown ;;
11958 esac
11960 case $lt_cv_dlopen_self_static in
11961 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11962 *) enable_dlopen_self_static=unknown ;;
11963 esac
11982 striplib=
11983 old_striplib=
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11985 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11986 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11987 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11988 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990 $as_echo "yes" >&6; }
11991 else
11992 # FIXME - insert some real tests, host_os isn't really good enough
11993 case $host_os in
11994 darwin*)
11995 if test -n "$STRIP" ; then
11996 striplib="$STRIP -x"
11997 old_striplib="$STRIP -S"
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12009 esac
12023 # Report which library types will actually be built
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12027 $as_echo "$can_build_shared" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12030 $as_echo_n "checking whether to build shared libraries... " >&6; }
12031 test "$can_build_shared" = "no" && enable_shared=no
12033 # On AIX, shared libraries and static libraries use the same namespace, and
12034 # are all built from PIC.
12035 case $host_os in
12036 aix3*)
12037 test "$enable_shared" = yes && enable_static=no
12038 if test -n "$RANLIB"; then
12039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12040 postinstall_cmds='$RANLIB $lib'
12044 aix[4-9]*)
12045 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12046 test "$enable_shared" = yes && enable_static=no
12049 esac
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12051 $as_echo "$enable_shared" >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12054 $as_echo_n "checking whether to build static libraries... " >&6; }
12055 # Make sure either enable_shared or enable_static is yes.
12056 test "$enable_shared" = yes || enable_static=yes
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12058 $as_echo "$enable_static" >&6; }
12064 ac_ext=c
12065 ac_cpp='$CPP $CPPFLAGS'
12066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070 CC="$lt_save_CC"
12084 ac_config_commands="$ac_config_commands libtool"
12089 # Only expand once:
12095 gdc_save_DFLAGS=$GDCFLAGS
12096 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12099 # Source file extension for D test sources.
12100 ac_ext=d
12102 # Object file extension for compiled D test sources.
12103 objext=o
12104 objext_D=$objext
12106 # Code to be used in simple compile tests
12107 lt_simple_compile_test_code="\
12108 module object;
12109 shared int some_variable = 0;
12112 # Code to be used in simple link tests
12113 lt_simple_link_test_code="\
12114 module object;
12115 extern(C) int main() { return 0; }
12118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12125 # If no C compiler was specified, use CC.
12126 LTCC=${LTCC-"$CC"}
12128 # If no C compiler flags were specified, use CFLAGS.
12129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12131 # Allow CC to be a program name with arguments.
12132 compiler=$CC
12135 # save warnings/boilerplate of simple test code
12136 ac_outfile=conftest.$ac_objext
12137 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12138 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12139 _lt_compiler_boilerplate=`cat conftest.err`
12140 $RM conftest*
12142 ac_outfile=conftest.$ac_objext
12143 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12144 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12145 _lt_linker_boilerplate=`cat conftest.err`
12146 $RM -r conftest*
12149 # Allow CC to be a program name with arguments.
12150 lt_save_CC=$CC
12151 lt_save_CFLAGS=$CFLAGS
12152 lt_save_GCC=$GCC
12153 GCC=yes
12154 CC=${GDC-"gdc"}
12155 CFLAGS=$GDCFLAGS
12156 compiler=$CC
12157 compiler_D=$CC
12158 LD_D=$CC
12159 for cc_temp in $compiler""; do
12160 case $cc_temp in
12161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12163 \-*) ;;
12164 *) break;;
12165 esac
12166 done
12167 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12170 # GDC did not exist at the time GCC didn't implicitly link libc in.
12171 archive_cmds_need_lc_D=no
12173 old_archive_cmds_D=$old_archive_cmds
12174 reload_flag_D=$reload_flag
12175 reload_cmds_D=$reload_cmds
12177 ## CAVEAT EMPTOR:
12178 ## There is no encapsulation within the following macros, do not change
12179 ## the running order or otherwise move them around unless you know exactly
12180 ## what you are doing...
12181 if test -n "$compiler"; then
12183 lt_prog_compiler_no_builtin_flag_D=
12185 if test "$GCC" = yes; then
12186 case $cc_basename in
12187 nvcc*)
12188 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12190 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12191 esac
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12195 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 lt_cv_prog_compiler_rtti_exceptions=no
12199 ac_outfile=conftest.$ac_objext
12200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12201 lt_compiler_flag="-fno-rtti -fno-exceptions"
12202 # Insert the option either (1) after the last *FLAGS variable, or
12203 # (2) before a word containing "conftest.", or (3) at the end.
12204 # Note that $ac_compile itself does not contain backslashes and begins
12205 # with a dollar sign (not a hyphen), so the echo should work correctly.
12206 # The option is referenced via a variable to avoid confusing sed.
12207 lt_compile=`echo "$ac_compile" | $SED \
12208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12210 -e 's:$: $lt_compiler_flag:'`
12211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12212 (eval "$lt_compile" 2>conftest.err)
12213 ac_status=$?
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 if (exit $ac_status) && test -s "$ac_outfile"; then
12217 # The compiler can only warn and ignore the option if not recognized
12218 # So say no if there are warnings other than the usual output.
12219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12222 lt_cv_prog_compiler_rtti_exceptions=yes
12225 $RM conftest*
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12232 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12233 else
12241 lt_prog_compiler_wl_D=
12242 lt_prog_compiler_pic_D=
12243 lt_prog_compiler_static_D=
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12246 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12248 if test "$GCC" = yes; then
12249 lt_prog_compiler_wl_D='-Wl,'
12250 lt_prog_compiler_static_D='-static'
12252 case $host_os in
12253 aix*)
12254 # All AIX code is PIC.
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 now supports IA64 processor
12257 lt_prog_compiler_static_D='-Bstatic'
12259 lt_prog_compiler_pic_D='-fPIC'
12262 amigaos*)
12263 case $host_cpu in
12264 powerpc)
12265 # see comment about AmigaOS4 .so support
12266 lt_prog_compiler_pic_D='-fPIC'
12268 m68k)
12269 # FIXME: we need at least 68020 code to build shared libraries, but
12270 # adding the `-m68020' flag to GCC prevents building anything better,
12271 # like `-m68040'.
12272 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12274 esac
12277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12278 # PIC is the default for these OSes.
12281 mingw* | cygwin* | pw32* | os2* | cegcc*)
12282 # This hack is so that the source file can tell whether it is being
12283 # built for inclusion in a dll (and should export symbols for example).
12284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12285 # (--disable-auto-import) libraries
12286 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12289 darwin* | rhapsody*)
12290 # PIC is the default on this platform
12291 # Common symbols not allowed in MH_DYLIB files
12292 lt_prog_compiler_pic_D='-fno-common'
12295 haiku*)
12296 # PIC is the default for Haiku.
12297 # The "-static" flag exists, but is broken.
12298 lt_prog_compiler_static_D=
12301 hpux*)
12302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12304 # sets the default TLS model and affects inlining.
12305 case $host_cpu in
12306 hppa*64*)
12307 # +Z the default
12310 lt_prog_compiler_pic_D='-fPIC'
12312 esac
12315 interix[3-9]*)
12316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12317 # Instead, we relocate shared libraries at runtime.
12320 msdosdjgpp*)
12321 # Just because we use GCC doesn't mean we suddenly get shared libraries
12322 # on systems that don't support them.
12323 lt_prog_compiler_can_build_shared_D=no
12324 enable_shared=no
12327 *nto* | *qnx*)
12328 # QNX uses GNU C++, but need to define -shared option too, otherwise
12329 # it will coredump.
12330 lt_prog_compiler_pic_D='-fPIC -shared'
12333 sysv4*MP*)
12334 if test -d /usr/nec; then
12335 lt_prog_compiler_pic_D=-Kconform_pic
12340 lt_prog_compiler_pic_D='-fPIC'
12342 esac
12344 case $cc_basename in
12345 nvcc*) # Cuda Compiler Driver 2.2
12346 lt_prog_compiler_wl_D='-Xlinker '
12347 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12349 esac
12350 else
12351 # PORTME Check for flag to pass linker flags through the system compiler.
12352 case $host_os in
12353 aix*)
12354 lt_prog_compiler_wl_D='-Wl,'
12355 if test "$host_cpu" = ia64; then
12356 # AIX 5 now supports IA64 processor
12357 lt_prog_compiler_static_D='-Bstatic'
12358 else
12359 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12363 mingw* | cygwin* | pw32* | os2* | cegcc*)
12364 # This hack is so that the source file can tell whether it is being
12365 # built for inclusion in a dll (and should export symbols for example).
12366 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12369 hpux9* | hpux10* | hpux11*)
12370 lt_prog_compiler_wl_D='-Wl,'
12371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12372 # not for PA HP-UX.
12373 case $host_cpu in
12374 hppa*64*|ia64*)
12375 # +Z the default
12378 lt_prog_compiler_pic_D='+Z'
12380 esac
12381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12382 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12385 irix5* | irix6* | nonstopux*)
12386 lt_prog_compiler_wl_D='-Wl,'
12387 # PIC (with -KPIC) is the default.
12388 lt_prog_compiler_static_D='-non_shared'
12391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12392 case $cc_basename in
12393 # old Intel for x86_64 which still supported -KPIC.
12394 ecc*)
12395 lt_prog_compiler_wl_D='-Wl,'
12396 lt_prog_compiler_pic_D='-KPIC'
12397 lt_prog_compiler_static_D='-static'
12399 # icc used to be incompatible with GCC.
12400 # ICC 10 doesn't accept -KPIC any more.
12401 icc* | ifort*)
12402 lt_prog_compiler_wl_D='-Wl,'
12403 lt_prog_compiler_pic_D='-fPIC'
12404 lt_prog_compiler_static_D='-static'
12406 # Lahey Fortran 8.1.
12407 lf95*)
12408 lt_prog_compiler_wl_D='-Wl,'
12409 lt_prog_compiler_pic_D='--shared'
12410 lt_prog_compiler_static_D='--static'
12412 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12413 # Portland Group compilers (*not* the Pentium gcc compiler,
12414 # which looks to be a dead project)
12415 lt_prog_compiler_wl_D='-Wl,'
12416 lt_prog_compiler_pic_D='-fpic'
12417 lt_prog_compiler_static_D='-Bstatic'
12419 ccc*)
12420 lt_prog_compiler_wl_D='-Wl,'
12421 # All Alpha code is PIC.
12422 lt_prog_compiler_static_D='-non_shared'
12424 xl* | bgxl* | bgf* | mpixl*)
12425 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12426 lt_prog_compiler_wl_D='-Wl,'
12427 lt_prog_compiler_pic_D='-qpic'
12428 lt_prog_compiler_static_D='-qstaticlink'
12431 case `$CC -V 2>&1 | sed 5q` in
12432 *Sun\ F* | *Sun*Fortran*)
12433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12434 lt_prog_compiler_pic_D='-KPIC'
12435 lt_prog_compiler_static_D='-Bstatic'
12436 lt_prog_compiler_wl_D=''
12438 *Sun\ C*)
12439 # Sun C 5.9
12440 lt_prog_compiler_pic_D='-KPIC'
12441 lt_prog_compiler_static_D='-Bstatic'
12442 lt_prog_compiler_wl_D='-Wl,'
12444 esac
12446 esac
12449 newsos6)
12450 lt_prog_compiler_pic_D='-KPIC'
12451 lt_prog_compiler_static_D='-Bstatic'
12454 *nto* | *qnx*)
12455 # QNX uses GNU C++, but need to define -shared option too, otherwise
12456 # it will coredump.
12457 lt_prog_compiler_pic_D='-fPIC -shared'
12460 osf3* | osf4* | osf5*)
12461 lt_prog_compiler_wl_D='-Wl,'
12462 # All OSF/1 code is PIC.
12463 lt_prog_compiler_static_D='-non_shared'
12466 rdos*)
12467 lt_prog_compiler_static_D='-non_shared'
12470 solaris*)
12471 lt_prog_compiler_pic_D='-KPIC'
12472 lt_prog_compiler_static_D='-Bstatic'
12473 case $cc_basename in
12474 f77* | f90* | f95*)
12475 lt_prog_compiler_wl_D='-Qoption ld ';;
12477 lt_prog_compiler_wl_D='-Wl,';;
12478 esac
12481 sunos4*)
12482 lt_prog_compiler_wl_D='-Qoption ld '
12483 lt_prog_compiler_pic_D='-PIC'
12484 lt_prog_compiler_static_D='-Bstatic'
12487 sysv4 | sysv4.2uw2* | sysv4.3*)
12488 lt_prog_compiler_wl_D='-Wl,'
12489 lt_prog_compiler_pic_D='-KPIC'
12490 lt_prog_compiler_static_D='-Bstatic'
12493 sysv4*MP*)
12494 if test -d /usr/nec ;then
12495 lt_prog_compiler_pic_D='-Kconform_pic'
12496 lt_prog_compiler_static_D='-Bstatic'
12500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12501 lt_prog_compiler_wl_D='-Wl,'
12502 lt_prog_compiler_pic_D='-KPIC'
12503 lt_prog_compiler_static_D='-Bstatic'
12506 unicos*)
12507 lt_prog_compiler_wl_D='-Wl,'
12508 lt_prog_compiler_can_build_shared_D=no
12511 uts4*)
12512 lt_prog_compiler_pic_D='-pic'
12513 lt_prog_compiler_static_D='-Bstatic'
12517 lt_prog_compiler_can_build_shared_D=no
12519 esac
12522 case $host_os in
12523 # For platforms which do not support PIC, -DPIC is meaningless:
12524 *djgpp*)
12525 lt_prog_compiler_pic_D=
12528 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12530 esac
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12532 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12537 # Check to make sure the PIC flag actually works.
12539 if test -n "$lt_prog_compiler_pic_D"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12542 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 lt_cv_prog_compiler_pic_works_D=no
12546 ac_outfile=conftest.$ac_objext
12547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12548 lt_compiler_flag="$lt_prog_compiler_pic_D"
12549 # Insert the option either (1) after the last *FLAGS variable, or
12550 # (2) before a word containing "conftest.", or (3) at the end.
12551 # Note that $ac_compile itself does not contain backslashes and begins
12552 # with a dollar sign (not a hyphen), so the echo should work correctly.
12553 # The option is referenced via a variable to avoid confusing sed.
12554 lt_compile=`echo "$ac_compile" | $SED \
12555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12557 -e 's:$: $lt_compiler_flag:'`
12558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12559 (eval "$lt_compile" 2>conftest.err)
12560 ac_status=$?
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 if (exit $ac_status) && test -s "$ac_outfile"; then
12564 # The compiler can only warn and ignore the option if not recognized
12565 # So say no if there are warnings other than the usual output.
12566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12569 lt_cv_prog_compiler_pic_works_D=yes
12572 $RM conftest*
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12576 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12578 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12579 case $lt_prog_compiler_pic_D in
12580 "" | " "*) ;;
12581 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12582 esac
12583 else
12584 lt_prog_compiler_pic_D=
12585 lt_prog_compiler_can_build_shared_D=no
12593 # Check to make sure the static flag actually works.
12595 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12598 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 lt_cv_prog_compiler_static_works_D=no
12602 save_LDFLAGS="$LDFLAGS"
12603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12606 # The linker can only warn and ignore the option if not recognized
12607 # So say no if there are warnings
12608 if test -s conftest.err; then
12609 # Append any errors to the config.log.
12610 cat conftest.err 1>&5
12611 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12613 if diff conftest.exp conftest.er2 >/dev/null; then
12614 lt_cv_prog_compiler_static_works_D=yes
12616 else
12617 lt_cv_prog_compiler_static_works_D=yes
12620 $RM -r conftest*
12621 LDFLAGS="$save_LDFLAGS"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12625 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12627 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12629 else
12630 lt_prog_compiler_static_D=
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12638 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 lt_cv_prog_compiler_c_o_D=no
12642 $RM -r conftest 2>/dev/null
12643 mkdir conftest
12644 cd conftest
12645 mkdir out
12646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12648 lt_compiler_flag="-o out/conftest2.$ac_objext"
12649 # Insert the option either (1) after the last *FLAGS variable, or
12650 # (2) before a word containing "conftest.", or (3) at the end.
12651 # Note that $ac_compile itself does not contain backslashes and begins
12652 # with a dollar sign (not a hyphen), so the echo should work correctly.
12653 lt_compile=`echo "$ac_compile" | $SED \
12654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12656 -e 's:$: $lt_compiler_flag:'`
12657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12658 (eval "$lt_compile" 2>out/conftest.err)
12659 ac_status=$?
12660 cat out/conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12663 then
12664 # The compiler can only warn and ignore the option if not recognized
12665 # So say no if there are warnings
12666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12669 lt_cv_prog_compiler_c_o_D=yes
12672 chmod u+w . 2>&5
12673 $RM conftest*
12674 # SGI C++ compiler will create directory out/ii_files/ for
12675 # template instantiation
12676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12677 $RM out/* && rmdir out
12678 cd ..
12679 $RM -r conftest
12680 $RM conftest*
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12684 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12690 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 lt_cv_prog_compiler_c_o_D=no
12694 $RM -r conftest 2>/dev/null
12695 mkdir conftest
12696 cd conftest
12697 mkdir out
12698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12700 lt_compiler_flag="-o out/conftest2.$ac_objext"
12701 # Insert the option either (1) after the last *FLAGS variable, or
12702 # (2) before a word containing "conftest.", or (3) at the end.
12703 # Note that $ac_compile itself does not contain backslashes and begins
12704 # with a dollar sign (not a hyphen), so the echo should work correctly.
12705 lt_compile=`echo "$ac_compile" | $SED \
12706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12708 -e 's:$: $lt_compiler_flag:'`
12709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12710 (eval "$lt_compile" 2>out/conftest.err)
12711 ac_status=$?
12712 cat out/conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12715 then
12716 # The compiler can only warn and ignore the option if not recognized
12717 # So say no if there are warnings
12718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12721 lt_cv_prog_compiler_c_o_D=yes
12724 chmod u+w . 2>&5
12725 $RM conftest*
12726 # SGI C++ compiler will create directory out/ii_files/ for
12727 # template instantiation
12728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12729 $RM out/* && rmdir out
12730 cd ..
12731 $RM -r conftest
12732 $RM conftest*
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12736 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12741 hard_links="nottested"
12742 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12743 # do not overwrite the value of need_locks provided by the user
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12745 $as_echo_n "checking if we can lock with hard links... " >&6; }
12746 hard_links=yes
12747 $RM conftest*
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 touch conftest.a
12750 ln conftest.a conftest.b 2>&5 || hard_links=no
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12753 $as_echo "$hard_links" >&6; }
12754 if test "$hard_links" = no; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757 need_locks=warn
12759 else
12760 need_locks=no
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12768 runpath_var=
12769 allow_undefined_flag_D=
12770 always_export_symbols_D=no
12771 archive_cmds_D=
12772 archive_expsym_cmds_D=
12773 compiler_needs_object_D=no
12774 enable_shared_with_static_runtimes_D=no
12775 export_dynamic_flag_spec_D=
12776 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12777 hardcode_automatic_D=no
12778 hardcode_direct_D=no
12779 hardcode_direct_absolute_D=no
12780 hardcode_libdir_flag_spec_D=
12781 hardcode_libdir_flag_spec_ld_D=
12782 hardcode_libdir_separator_D=
12783 hardcode_minus_L_D=no
12784 hardcode_shlibpath_var_D=unsupported
12785 inherit_rpath_D=no
12786 link_all_deplibs_D=unknown
12787 module_cmds_D=
12788 module_expsym_cmds_D=
12789 old_archive_from_new_cmds_D=
12790 old_archive_from_expsyms_cmds_D=
12791 thread_safe_flag_spec_D=
12792 whole_archive_flag_spec_D=
12793 # include_expsyms should be a list of space-separated symbols to be *always*
12794 # included in the symbol list
12795 include_expsyms_D=
12796 # exclude_expsyms can be an extended regexp of symbols to exclude
12797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12799 # as well as any symbol that contains `d'.
12800 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12802 # platforms (ab)use it in PIC code, but their linkers get confused if
12803 # the symbol is explicitly referenced. Since portable code cannot
12804 # rely on this symbol name, it's probably fine to never include it in
12805 # preloaded symbol tables.
12806 # Exclude shared library initialization/finalization symbols.
12807 extract_expsyms_cmds=
12809 case $host_os in
12810 cygwin* | mingw* | pw32* | cegcc*)
12811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12812 # When not using gcc, we currently assume that we are using
12813 # Microsoft Visual C++.
12814 if test "$GCC" != yes; then
12815 with_gnu_ld=no
12818 interix*)
12819 # we just hope/assume this is gcc and not c89 (= MSVC++)
12820 with_gnu_ld=yes
12822 openbsd*)
12823 with_gnu_ld=no
12825 esac
12827 ld_shlibs_D=yes
12829 # On some targets, GNU ld is compatible enough with the native linker
12830 # that we're better off using the native interface for both.
12831 lt_use_gnu_ld_interface=no
12832 if test "$with_gnu_ld" = yes; then
12833 case $host_os in
12834 aix*)
12835 # The AIX port of GNU ld has always aspired to compatibility
12836 # with the native linker. However, as the warning in the GNU ld
12837 # block says, versions before 2.19.5* couldn't really create working
12838 # shared libraries, regardless of the interface used.
12839 case `$LD -v 2>&1` in
12840 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12841 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12842 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12844 lt_use_gnu_ld_interface=yes
12846 esac
12849 lt_use_gnu_ld_interface=yes
12851 esac
12854 if test "$lt_use_gnu_ld_interface" = yes; then
12855 # If archive_cmds runs LD, not CC, wlarc should be empty
12856 wlarc='${wl}'
12858 # Set some defaults for GNU ld with shared library support. These
12859 # are reset later if shared libraries are not supported. Putting them
12860 # here allows them to be overridden if necessary.
12861 runpath_var=LD_RUN_PATH
12862 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12863 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12864 # ancient GNU ld didn't support --whole-archive et. al.
12865 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12866 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12867 else
12868 whole_archive_flag_spec_D=
12870 supports_anon_versioning=no
12871 case `$LD -v 2>&1` in
12872 *GNU\ gold*) supports_anon_versioning=yes ;;
12873 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12874 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12875 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12876 *\ 2.11.*) ;; # other 2.11 versions
12877 *) supports_anon_versioning=yes ;;
12878 esac
12880 # See if GNU ld supports shared libraries.
12881 case $host_os in
12882 aix[3-9]*)
12883 # On AIX/PPC, the GNU linker is very broken
12884 if test "$host_cpu" != ia64; then
12885 ld_shlibs_D=no
12886 cat <<_LT_EOF 1>&2
12888 *** Warning: the GNU linker, at least up to release 2.19, is reported
12889 *** to be unable to reliably create shared libraries on AIX.
12890 *** Therefore, libtool is disabling shared libraries support. If you
12891 *** really care for shared libraries, you may want to install binutils
12892 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12893 *** You will then need to restart the configuration process.
12895 _LT_EOF
12899 amigaos*)
12900 case $host_cpu in
12901 powerpc)
12902 # see comment about AmigaOS4 .so support
12903 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 archive_expsym_cmds_D=''
12906 m68k)
12907 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)'
12908 hardcode_libdir_flag_spec_D='-L$libdir'
12909 hardcode_minus_L_D=yes
12911 esac
12914 beos*)
12915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12916 allow_undefined_flag_D=unsupported
12917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12918 # support --undefined. This deserves some investigation. FIXME
12919 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 else
12921 ld_shlibs_D=no
12925 cygwin* | mingw* | pw32* | cegcc*)
12926 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12927 # as there is no search path for DLLs.
12928 hardcode_libdir_flag_spec_D='-L$libdir'
12929 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12930 allow_undefined_flag_D=unsupported
12931 always_export_symbols_D=no
12932 enable_shared_with_static_runtimes_D=yes
12933 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12935 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12936 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12937 # If the export-symbols file already is a .def file (1st line
12938 # is EXPORTS), use it as is; otherwise, prepend...
12939 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12940 cp $export_symbols $output_objdir/$soname.def;
12941 else
12942 echo EXPORTS > $output_objdir/$soname.def;
12943 cat $export_symbols >> $output_objdir/$soname.def;
12945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12946 else
12947 ld_shlibs_D=no
12951 haiku*)
12952 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953 link_all_deplibs_D=yes
12956 interix[3-9]*)
12957 hardcode_direct_D=no
12958 hardcode_shlibpath_var_D=no
12959 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12960 export_dynamic_flag_spec_D='${wl}-E'
12961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12962 # Instead, shared libraries are loaded at an image base (0x10000000 by
12963 # default) and relocated if they conflict, which is a slow very memory
12964 # consuming and fragmenting process. To avoid this, we pick a random,
12965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12967 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'
12968 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'
12971 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12972 tmp_diet=no
12973 if test "$host_os" = linux-dietlibc; then
12974 case $cc_basename in
12975 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12976 esac
12978 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12979 && test "$tmp_diet" = no
12980 then
12981 tmp_addflag=' $pic_flag'
12982 tmp_sharedflag='-shared'
12983 case $cc_basename,$host_cpu in
12984 pgcc*) # Portland Group C compiler
12985 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'
12986 tmp_addflag=' $pic_flag'
12988 pgf77* | pgf90* | pgf95* | pgfortran*)
12989 # Portland Group f77 and f90 compilers
12990 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'
12991 tmp_addflag=' $pic_flag -Mnomain' ;;
12992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12993 tmp_addflag=' -i_dynamic' ;;
12994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12995 tmp_addflag=' -i_dynamic -nofor_main' ;;
12996 ifc* | ifort*) # Intel Fortran compiler
12997 tmp_addflag=' -nofor_main' ;;
12998 lf95*) # Lahey Fortran 8.1
12999 whole_archive_flag_spec_D=
13000 tmp_sharedflag='--shared' ;;
13001 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13002 tmp_sharedflag='-qmkshrobj'
13003 tmp_addflag= ;;
13004 nvcc*) # Cuda Compiler Driver 2.2
13005 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'
13006 compiler_needs_object_D=yes
13008 esac
13009 case `$CC -V 2>&1 | sed 5q` in
13010 *Sun\ C*) # Sun C 5.9
13011 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'
13012 compiler_needs_object_D=yes
13013 tmp_sharedflag='-G' ;;
13014 *Sun\ F*) # Sun Fortran 8.3
13015 tmp_sharedflag='-G' ;;
13016 esac
13017 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 if test "x$supports_anon_versioning" = xyes; then
13020 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13022 echo "local: *; };" >> $output_objdir/$libname.ver~
13023 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13026 case $cc_basename in
13027 xlf* | bgf* | bgxlf* | mpixlf*)
13028 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13029 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13030 hardcode_libdir_flag_spec_D=
13031 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13032 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13033 if test "x$supports_anon_versioning" = xyes; then
13034 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13036 echo "local: *; };" >> $output_objdir/$libname.ver~
13037 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13040 esac
13041 else
13042 ld_shlibs_D=no
13046 netbsd*)
13047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13048 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13049 wlarc=
13050 else
13051 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13052 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13056 solaris*)
13057 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13058 ld_shlibs_D=no
13059 cat <<_LT_EOF 1>&2
13061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13062 *** create shared libraries on Solaris systems. Therefore, libtool
13063 *** is disabling shared libraries support. We urge you to upgrade GNU
13064 *** binutils to release 2.9.1 or newer. Another option is to modify
13065 *** your PATH or compiler configuration so that the native linker is
13066 *** used, and then restart.
13068 _LT_EOF
13069 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13070 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13072 else
13073 ld_shlibs_D=no
13077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13078 case `$LD -v 2>&1` in
13079 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13080 ld_shlibs_D=no
13081 cat <<_LT_EOF 1>&2
13083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13084 *** reliably create shared libraries on SCO systems. Therefore, libtool
13085 *** is disabling shared libraries support. We urge you to upgrade GNU
13086 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13087 *** your PATH or compiler configuration so that the native linker is
13088 *** used, and then restart.
13090 _LT_EOF
13093 # For security reasons, it is highly recommended that you always
13094 # use absolute paths for naming shared libraries, and exclude the
13095 # DT_RUNPATH tag from executables and libraries. But doing so
13096 # requires that you compile everything twice, which is a pain.
13097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13098 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13099 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13100 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13101 else
13102 ld_shlibs_D=no
13105 esac
13108 sunos4*)
13109 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13110 wlarc=
13111 hardcode_direct_D=yes
13112 hardcode_shlibpath_var_D=no
13116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13117 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13119 else
13120 ld_shlibs_D=no
13123 esac
13125 if test "$ld_shlibs_D" = no; then
13126 runpath_var=
13127 hardcode_libdir_flag_spec_D=
13128 export_dynamic_flag_spec_D=
13129 whole_archive_flag_spec_D=
13131 else
13132 # PORTME fill in a description of your system's linker (not GNU ld)
13133 case $host_os in
13134 aix3*)
13135 allow_undefined_flag_D=unsupported
13136 always_export_symbols_D=yes
13137 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'
13138 # Note: this linker hardcodes the directories in LIBPATH if there
13139 # are no directories specified by -L.
13140 hardcode_minus_L_D=yes
13141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13142 # Neither direct hardcoding nor static linking is supported with a
13143 # broken collect2.
13144 hardcode_direct_D=unsupported
13148 aix[4-9]*)
13149 if test "$host_cpu" = ia64; then
13150 # On IA64, the linker does run time linking by default, so we don't
13151 # have to do anything special.
13152 aix_use_runtimelinking=no
13153 exp_sym_flag='-Bexport'
13154 no_entry_flag=""
13155 else
13156 # If we're using GNU nm, then we don't want the "-C" option.
13157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13158 # Also, AIX nm treats weak defined symbols like other global
13159 # defined symbols, whereas GNU nm marks them as "W".
13160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13161 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'
13162 else
13163 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'
13165 aix_use_runtimelinking=no
13167 # Test if we are trying to use run time linking or normal
13168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13169 # need to do runtime linking.
13170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13171 for ld_flag in $LDFLAGS; do
13172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13173 aix_use_runtimelinking=yes
13174 break
13176 done
13178 esac
13180 exp_sym_flag='-bexport'
13181 no_entry_flag='-bnoentry'
13184 # When large executables or shared objects are built, AIX ld can
13185 # have problems creating the table of contents. If linking a library
13186 # or program results in "error TOC overflow" add -mminimal-toc to
13187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13190 archive_cmds_D=''
13191 hardcode_direct_D=yes
13192 hardcode_direct_absolute_D=yes
13193 hardcode_libdir_separator_D=':'
13194 link_all_deplibs_D=yes
13195 file_list_spec_D='${wl}-f,'
13197 if test "$GCC" = yes; then
13198 case $host_os in aix4.[012]|aix4.[012].*)
13199 # We only want to do this on AIX 4.2 and lower, the check
13200 # below for broken collect2 doesn't work under 4.3+
13201 collect2name=`${CC} -print-prog-name=collect2`
13202 if test -f "$collect2name" &&
13203 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13204 then
13205 # We have reworked collect2
13207 else
13208 # We have old collect2
13209 hardcode_direct_D=unsupported
13210 # It fails to find uninstalled libraries when the uninstalled
13211 # path is not listed in the libpath. Setting hardcode_minus_L
13212 # to unsupported forces relinking
13213 hardcode_minus_L_D=yes
13214 hardcode_libdir_flag_spec_D='-L$libdir'
13215 hardcode_libdir_separator_D=
13218 esac
13219 shared_flag='-shared'
13220 if test "$aix_use_runtimelinking" = yes; then
13221 shared_flag="$shared_flag "'${wl}-G'
13223 else
13224 # not using gcc
13225 if test "$host_cpu" = ia64; then
13226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13227 # chokes on -Wl,-G. The following line is correct:
13228 shared_flag='-G'
13229 else
13230 if test "$aix_use_runtimelinking" = yes; then
13231 shared_flag='${wl}-G'
13232 else
13233 shared_flag='${wl}-bM:SRE'
13238 export_dynamic_flag_spec_D='${wl}-bexpall'
13239 # It seems that -bexpall does not export symbols beginning with
13240 # underscore (_), so it is better to generate a list of symbols to export.
13241 always_export_symbols_D=yes
13242 if test "$aix_use_runtimelinking" = yes; then
13243 # Warning - without using the other runtime loading flags (-brtl),
13244 # -berok will link without error, but may produce a broken library.
13245 allow_undefined_flag_D='-berok'
13246 # Determine the default libpath from the value encoded in an
13247 # empty executable.
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13252 main ()
13256 return 0;
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13261 lt_aix_libpath_sed='
13262 /Import File Strings/,/^$/ {
13263 /^0/ {
13264 s/^0 *\(.*\)$/\1/
13268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13269 # Check for a 64-bit object if we didn't find anything.
13270 if test -z "$aix_libpath"; then
13271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13278 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13279 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"
13280 else
13281 if test "$host_cpu" = ia64; then
13282 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13283 allow_undefined_flag_D="-z nodefs"
13284 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"
13285 else
13286 # Determine the default libpath from the value encoded in an
13287 # empty executable.
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13292 main ()
13296 return 0;
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13301 lt_aix_libpath_sed='
13302 /Import File Strings/,/^$/ {
13303 /^0/ {
13304 s/^0 *\(.*\)$/\1/
13308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13309 # Check for a 64-bit object if we didn't find anything.
13310 if test -z "$aix_libpath"; then
13311 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13318 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13319 # Warning - without using the other run time loading flags,
13320 # -berok will link without error, but may produce a broken library.
13321 no_undefined_flag_D=' ${wl}-bernotok'
13322 allow_undefined_flag_D=' ${wl}-berok'
13323 if test "$with_gnu_ld" = yes; then
13324 # We only use this code for GNU lds that support --whole-archive.
13325 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13326 else
13327 # Exported symbols can be pulled into shared objects from archives
13328 whole_archive_flag_spec_D='$convenience'
13330 archive_cmds_need_lc_D=yes
13331 # This is similar to how AIX traditionally builds its shared libraries.
13332 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'
13337 amigaos*)
13338 case $host_cpu in
13339 powerpc)
13340 # see comment about AmigaOS4 .so support
13341 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds_D=''
13344 m68k)
13345 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)'
13346 hardcode_libdir_flag_spec_D='-L$libdir'
13347 hardcode_minus_L_D=yes
13349 esac
13352 bsdi[45]*)
13353 export_dynamic_flag_spec_D=-rdynamic
13356 cygwin* | mingw* | pw32* | cegcc*)
13357 # When not using gcc, we currently assume that we are using
13358 # Microsoft Visual C++.
13359 # hardcode_libdir_flag_spec is actually meaningless, as there is
13360 # no search path for DLLs.
13361 hardcode_libdir_flag_spec_D=' '
13362 allow_undefined_flag_D=unsupported
13363 # Tell ltmain to make .lib files, not .a files.
13364 libext=lib
13365 # Tell ltmain to make .dll files, not .so files.
13366 shrext_cmds=".dll"
13367 # FIXME: Setting linknames here is a bad hack.
13368 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13369 # The linker will automatically build a .lib file if we build a DLL.
13370 old_archive_from_new_cmds_D='true'
13371 # FIXME: Should let the user specify the lib program.
13372 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13373 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13374 enable_shared_with_static_runtimes_D=yes
13377 darwin* | rhapsody*)
13380 archive_cmds_need_lc_D=no
13381 hardcode_direct_D=no
13382 hardcode_automatic_D=yes
13383 hardcode_shlibpath_var_D=unsupported
13384 if test "$lt_cv_ld_force_load" = "yes"; then
13385 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\"`'
13386 else
13387 whole_archive_flag_spec_D=''
13389 link_all_deplibs_D=yes
13390 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13391 case $cc_basename in
13392 ifort*) _lt_dar_can_shared=yes ;;
13393 *) _lt_dar_can_shared=$GCC ;;
13394 esac
13395 if test "$_lt_dar_can_shared" = "yes"; then
13396 output_verbose_link_cmd=func_echo_all
13397 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}"
13398 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13399 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}"
13400 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}"
13402 else
13403 ld_shlibs_D=no
13408 dgux*)
13409 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410 hardcode_libdir_flag_spec_D='-L$libdir'
13411 hardcode_shlibpath_var_D=no
13414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13415 # support. Future versions do this automatically, but an explicit c++rt0.o
13416 # does not break anything, and helps significantly (at the cost of a little
13417 # extra space).
13418 freebsd2.2*)
13419 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13420 hardcode_libdir_flag_spec_D='-R$libdir'
13421 hardcode_direct_D=yes
13422 hardcode_shlibpath_var_D=no
13425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13426 freebsd2.*)
13427 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_D=yes
13429 hardcode_minus_L_D=yes
13430 hardcode_shlibpath_var_D=no
13433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13434 freebsd* | dragonfly*)
13435 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13436 hardcode_libdir_flag_spec_D='-R$libdir'
13437 hardcode_direct_D=yes
13438 hardcode_shlibpath_var_D=no
13441 hpux9*)
13442 if test "$GCC" = yes; then
13443 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'
13444 else
13445 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'
13447 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13448 hardcode_libdir_separator_D=:
13449 hardcode_direct_D=yes
13451 # hardcode_minus_L: Not really in the search PATH,
13452 # but as the default location of the library.
13453 hardcode_minus_L_D=yes
13454 export_dynamic_flag_spec_D='${wl}-E'
13457 hpux10*)
13458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13459 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13460 else
13461 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13463 if test "$with_gnu_ld" = no; then
13464 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13465 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13466 hardcode_libdir_separator_D=:
13467 hardcode_direct_D=yes
13468 hardcode_direct_absolute_D=yes
13469 export_dynamic_flag_spec_D='${wl}-E'
13470 # hardcode_minus_L: Not really in the search PATH,
13471 # but as the default location of the library.
13472 hardcode_minus_L_D=yes
13476 hpux11*)
13477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13478 case $host_cpu in
13479 hppa*64*)
13480 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13482 ia64*)
13483 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13488 esac
13489 else
13490 case $host_cpu in
13491 hppa*64*)
13492 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13494 ia64*)
13495 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13500 esac
13502 if test "$with_gnu_ld" = no; then
13503 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13504 hardcode_libdir_separator_D=:
13506 case $host_cpu in
13507 hppa*64*|ia64*)
13508 hardcode_direct_D=no
13509 hardcode_shlibpath_var_D=no
13512 hardcode_direct_D=yes
13513 hardcode_direct_absolute_D=yes
13514 export_dynamic_flag_spec_D='${wl}-E'
13516 # hardcode_minus_L: Not really in the search PATH,
13517 # but as the default location of the library.
13518 hardcode_minus_L_D=yes
13520 esac
13524 irix5* | irix6* | nonstopux*)
13525 if test "$GCC" = yes; then
13526 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'
13527 # Try to use the -exported_symbol ld option, if it does not
13528 # work, assume that -exports_file does not work either and
13529 # implicitly export all symbols.
13530 save_LDFLAGS="$LDFLAGS"
13531 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 int foo(void) {}
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 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'
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LDFLAGS="$save_LDFLAGS"
13543 else
13544 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'
13545 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'
13547 archive_cmds_need_lc_D='no'
13548 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13549 hardcode_libdir_separator_D=:
13550 inherit_rpath_D=yes
13551 link_all_deplibs_D=yes
13554 netbsd*)
13555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13556 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13557 else
13558 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13560 hardcode_libdir_flag_spec_D='-R$libdir'
13561 hardcode_direct_D=yes
13562 hardcode_shlibpath_var_D=no
13565 newsos6)
13566 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13567 hardcode_direct_D=yes
13568 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13569 hardcode_libdir_separator_D=:
13570 hardcode_shlibpath_var_D=no
13573 *nto* | *qnx*)
13576 openbsd*)
13577 if test -f /usr/libexec/ld.so; then
13578 hardcode_direct_D=yes
13579 hardcode_shlibpath_var_D=no
13580 hardcode_direct_absolute_D=yes
13581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13582 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13584 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13585 export_dynamic_flag_spec_D='${wl}-E'
13586 else
13587 case $host_os in
13588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13589 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_libdir_flag_spec_D='-R$libdir'
13593 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13594 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13596 esac
13598 else
13599 ld_shlibs_D=no
13603 os2*)
13604 hardcode_libdir_flag_spec_D='-L$libdir'
13605 hardcode_minus_L_D=yes
13606 allow_undefined_flag_D=unsupported
13607 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'
13608 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13611 osf3*)
13612 if test "$GCC" = yes; then
13613 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13614 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'
13615 else
13616 allow_undefined_flag_D=' -expect_unresolved \*'
13617 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'
13619 archive_cmds_need_lc_D='no'
13620 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13621 hardcode_libdir_separator_D=:
13624 osf4* | osf5*) # as osf3* with the addition of -msym flag
13625 if test "$GCC" = yes; then
13626 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13627 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'
13628 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13629 else
13630 allow_undefined_flag_D=' -expect_unresolved \*'
13631 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'
13632 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~
13633 $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'
13635 # Both c and cxx compiler support -rpath directly
13636 hardcode_libdir_flag_spec_D='-rpath $libdir'
13638 archive_cmds_need_lc_D='no'
13639 hardcode_libdir_separator_D=:
13642 solaris*)
13643 no_undefined_flag_D=' -z defs'
13644 if test "$GCC" = yes; then
13645 wlarc='${wl}'
13646 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13648 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13649 else
13650 case `$CC -V 2>&1` in
13651 *"Compilers 5.0"*)
13652 wlarc=''
13653 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13654 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13658 wlarc='${wl}'
13659 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13661 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13663 esac
13665 hardcode_libdir_flag_spec_D='-R$libdir'
13666 hardcode_shlibpath_var_D=no
13667 case $host_os in
13668 solaris2.[0-5] | solaris2.[0-5].*) ;;
13670 # The compiler driver will combine and reorder linker options,
13671 # but understands `-z linker_flag'. GCC discards it without `$wl',
13672 # but is careful enough not to reorder.
13673 # Supported since Solaris 2.6 (maybe 2.5.1?)
13674 if test "$GCC" = yes; then
13675 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13676 else
13677 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13680 esac
13681 link_all_deplibs_D=yes
13684 sunos4*)
13685 if test "x$host_vendor" = xsequent; then
13686 # Use $CC to link under sequent, because it throws in some extra .o
13687 # files that make .init and .fini sections work.
13688 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13689 else
13690 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13692 hardcode_libdir_flag_spec_D='-L$libdir'
13693 hardcode_direct_D=yes
13694 hardcode_minus_L_D=yes
13695 hardcode_shlibpath_var_D=no
13698 sysv4)
13699 case $host_vendor in
13700 sni)
13701 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct_D=yes # is this really true???
13704 siemens)
13705 ## LD is ld it makes a PLAMLIB
13706 ## CC just makes a GrossModule.
13707 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13708 reload_cmds_D='$CC -r -o $output$reload_objs'
13709 hardcode_direct_D=no
13711 motorola)
13712 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13713 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13715 esac
13716 runpath_var='LD_RUN_PATH'
13717 hardcode_shlibpath_var_D=no
13720 sysv4.3*)
13721 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13722 hardcode_shlibpath_var_D=no
13723 export_dynamic_flag_spec_D='-Bexport'
13726 sysv4*MP*)
13727 if test -d /usr/nec; then
13728 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13729 hardcode_shlibpath_var_D=no
13730 runpath_var=LD_RUN_PATH
13731 hardcode_runpath_var=yes
13732 ld_shlibs_D=yes
13736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13737 no_undefined_flag_D='${wl}-z,text'
13738 archive_cmds_need_lc_D=no
13739 hardcode_shlibpath_var_D=no
13740 runpath_var='LD_RUN_PATH'
13742 if test "$GCC" = yes; then
13743 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 else
13746 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 sysv5* | sco3.2v5* | sco5v6*)
13752 # Note: We can NOT use -z defs as we might desire, because we do not
13753 # link with -lc, and that would cause any symbols used from libc to
13754 # always be unresolved, which means just about no library would
13755 # ever link correctly. If we're not using GNU ld we use -z text
13756 # though, which does catch some bad symbols but isn't as heavy-handed
13757 # as -z defs.
13758 no_undefined_flag_D='${wl}-z,text'
13759 allow_undefined_flag_D='${wl}-z,nodefs'
13760 archive_cmds_need_lc_D=no
13761 hardcode_shlibpath_var_D=no
13762 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13763 hardcode_libdir_separator_D=':'
13764 link_all_deplibs_D=yes
13765 export_dynamic_flag_spec_D='${wl}-Bexport'
13766 runpath_var='LD_RUN_PATH'
13768 if test "$GCC" = yes; then
13769 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 else
13772 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 uts4*)
13778 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_libdir_flag_spec_D='-L$libdir'
13780 hardcode_shlibpath_var_D=no
13784 ld_shlibs_D=no
13786 esac
13788 if test x$host_vendor = xsni; then
13789 case $host in
13790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13791 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13793 esac
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13798 $as_echo "$ld_shlibs_D" >&6; }
13799 test "$ld_shlibs_D" = no && can_build_shared=no
13801 with_gnu_ld_D=$with_gnu_ld
13809 # Do we need to explicitly link libc?
13811 case "x$archive_cmds_need_lc_D" in
13812 x|xyes)
13813 # Assume -lc should be added
13814 archive_cmds_need_lc_D=yes
13816 if test "$enable_shared" = yes && test "$GCC" = yes; then
13817 case $archive_cmds_D in
13818 *'~'*)
13819 # FIXME: we may have to deal with multi-command sequences.
13821 '$CC '*)
13822 # Test whether the compiler implicitly links with -lc since on some
13823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13824 # to ld, don't add -lc before -lgcc.
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13827 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 $RM conftest*
13831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; } 2>conftest.err; then
13838 soname=conftest
13839 lib=conftest
13840 libobjs=conftest.$ac_objext
13841 deplibs=
13842 wl=$lt_prog_compiler_wl_D
13843 pic_flag=$lt_prog_compiler_pic_D
13844 compiler_flags=-v
13845 linker_flags=-v
13846 verstring=
13847 output_objdir=.
13848 libname=conftest
13849 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13850 allow_undefined_flag_D=
13851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13852 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13853 ac_status=$?
13854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13855 test $ac_status = 0; }
13856 then
13857 lt_cv_archive_cmds_need_lc_D=no
13858 else
13859 lt_cv_archive_cmds_need_lc_D=yes
13861 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13862 else
13863 cat conftest.err 1>&5
13865 $RM conftest*
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13869 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13870 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13872 esac
13875 esac
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13942 hardcode_action_D=
13943 if test -n "$hardcode_libdir_flag_spec_D" ||
13944 test -n "$runpath_var_D" ||
13945 test "X$hardcode_automatic_D" = "Xyes" ; then
13947 # We can hardcode non-existent directories.
13948 if test "$hardcode_direct_D" != no &&
13949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13950 # have to relink, otherwise we might link with an installed library
13951 # when we should be linking with a yet-to-be-installed one
13952 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13953 test "$hardcode_minus_L_D" != no; then
13954 # Linking always hardcodes the temporary library directory.
13955 hardcode_action_D=relink
13956 else
13957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13958 hardcode_action_D=immediate
13960 else
13961 # We cannot hardcode anything, or else we can only hardcode existing
13962 # directories.
13963 hardcode_action_D=unsupported
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13966 $as_echo "$hardcode_action_D" >&6; }
13968 if test "$hardcode_action_D" = relink ||
13969 test "$inherit_rpath_D" = yes; then
13970 # Fast installation is not supported
13971 enable_fast_install=no
13972 elif test "$shlibpath_overrides_runpath" = yes ||
13973 test "$enable_shared" = no; then
13974 # Fast installation is not necessary
13975 enable_fast_install=needless
13986 ac_ext=c
13987 ac_cpp='$CPP $CPPFLAGS'
13988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13993 GCC=$lt_save_GCC
13994 CC=$lt_save_CC
13995 CFLAGS=$lt_save_CFLAGS
13997 GDCFLAGS=$gdc_save_DFLAGS
14000 # libtool variables for Phobos shared and position-independent compiles.
14002 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14003 # creating shared objects. Default: -fversion=Shared.
14005 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14006 # creating position-independent objects. This varies with the target
14007 # hardware and operating system, but is often: -fPIC.
14009 # The distinction between pic and shared compilation flags is not present in
14010 # libtool, and so we make it here. How it is handled is that in shared
14011 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14012 # ensure that conditional compilation of shared runtime code is compiled in.
14013 # The original PIC flags are then used in the compilation of every object.
14015 # Why are objects destined for libgphobos.a compiled with -fPIC?
14016 # Because -fPIC is not harmful to use for objects destined for static
14017 # libraries. In addition, using -fPIC will allow the use of static
14018 # libgphobos.a in the creation of other D shared libraries.
14019 if test "$enable_shared" = yes; then
14020 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14021 phobos_compiler_shared_flag="-fversion=Shared"
14022 else
14023 phobos_compiler_pic_flag=
14024 phobos_compiler_shared_flag=
14029 # Override the libtool's pic_flag and pic_mode.
14030 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14031 # NB: this impacts --with-pic and --without-pic.
14032 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14033 pic_mode='default'
14035 # Determine what GCC version number to use in filesystem paths.
14037 get_gcc_base_ver="cat"
14039 # Check whether --with-gcc-major-version-only was given.
14040 if test "${with_gcc_major_version_only+set}" = set; then :
14041 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14042 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14050 # libphobos/libdruntime specific options and feature detection
14052 # These need to be absolute paths, yet at the same time need to
14053 # canonicalize only relative paths, because then amd will not unmount
14054 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14055 libphobos_builddir=`${PWDCMD-pwd}`
14056 case $srcdir in
14057 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14058 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14059 esac
14064 if test ${multilib} = yes; then
14065 multilib_arg="--enable-multilib"
14066 else
14067 multilib_arg=
14071 # Check whether --enable-werror was given.
14072 if test "${enable_werror+set}" = set; then :
14073 enableval=$enable_werror;
14076 WERROR_FLAG=""
14077 if test "x$enable_werror" = "xyes"; then
14078 WERROR_FLAG="-Werror"
14082 druntime_target_cpu_parsed=""
14083 case "$target_cpu" in
14084 aarch64*)
14085 druntime_target_cpu_parsed="aarch64"
14087 arm*) druntime_target_cpu_parsed="arm"
14089 mips*) druntime_target_cpu_parsed="mips"
14091 powerpc*)
14092 druntime_target_cpu_parsed="powerpc"
14094 i[34567]86|x86_64)
14095 druntime_target_cpu_parsed="x86"
14097 s390x)
14098 druntime_target_cpu_parsed="s390x"
14100 s390)
14101 druntime_target_cpu_parsed="s390"
14103 esac
14104 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14105 DRUNTIME_CPU_AARCH64_TRUE=
14106 DRUNTIME_CPU_AARCH64_FALSE='#'
14107 else
14108 DRUNTIME_CPU_AARCH64_TRUE='#'
14109 DRUNTIME_CPU_AARCH64_FALSE=
14112 if test "$druntime_target_cpu_parsed" = "arm"; then
14113 DRUNTIME_CPU_ARM_TRUE=
14114 DRUNTIME_CPU_ARM_FALSE='#'
14115 else
14116 DRUNTIME_CPU_ARM_TRUE='#'
14117 DRUNTIME_CPU_ARM_FALSE=
14120 if test "$druntime_target_cpu_parsed" = "mips"; then
14121 DRUNTIME_CPU_MIPS_TRUE=
14122 DRUNTIME_CPU_MIPS_FALSE='#'
14123 else
14124 DRUNTIME_CPU_MIPS_TRUE='#'
14125 DRUNTIME_CPU_MIPS_FALSE=
14128 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14129 DRUNTIME_CPU_POWERPC_TRUE=
14130 DRUNTIME_CPU_POWERPC_FALSE='#'
14131 else
14132 DRUNTIME_CPU_POWERPC_TRUE='#'
14133 DRUNTIME_CPU_POWERPC_FALSE=
14136 if test "$druntime_target_cpu_parsed" = "x86"; then
14137 DRUNTIME_CPU_X86_TRUE=
14138 DRUNTIME_CPU_X86_FALSE='#'
14139 else
14140 DRUNTIME_CPU_X86_TRUE='#'
14141 DRUNTIME_CPU_X86_FALSE=
14144 if test "$druntime_target_cpu_parsed" = "s390x"; then
14145 DRUNTIME_CPU_SYSTEMZ_TRUE=
14146 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14147 else
14148 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14149 DRUNTIME_CPU_SYSTEMZ_FALSE=
14152 if test "$druntime_target_cpu_parsed" = "s390"; then
14153 DRUNTIME_CPU_S390_TRUE=
14154 DRUNTIME_CPU_S390_FALSE='#'
14155 else
14156 DRUNTIME_CPU_S390_TRUE='#'
14157 DRUNTIME_CPU_S390_FALSE=
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14163 $as_echo_n "checking for target OS... " >&6; }
14164 if ${druntime_cv_target_os+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14170 $as_echo "$druntime_cv_target_os" >&6; }
14171 if test -z "$druntime_cv_target_os"; then :
14172 as_fn_error $? "can't detect target OS" "$LINENO" 5
14178 druntime_target_os_parsed=""
14179 case "$druntime_cv_target_os" in
14180 aix*) druntime_target_os_parsed="aix"
14182 *android*)
14183 druntime_target_os_parsed="android"
14185 darwin*) druntime_target_os_parsed="darwin"
14187 dragonfly*)
14188 druntime_target_os_parsed="dragonflybsd"
14190 freebsd*|k*bsd*-gnu)
14191 druntime_target_os_parsed="freebsd"
14193 openbsd*)
14194 druntime_target_os_parsed="openbsd"
14196 netbsd*)
14197 druntime_target_os_parsed="netbsd"
14199 linux*) druntime_target_os_parsed="linux"
14201 mingw*) druntime_target_os_parsed="mingw"
14203 *solaris*) druntime_target_os_parsed="solaris"
14204 esac
14205 if test "$druntime_target_os_parsed" = "aix"; then
14206 DRUNTIME_OS_AIX_TRUE=
14207 DRUNTIME_OS_AIX_FALSE='#'
14208 else
14209 DRUNTIME_OS_AIX_TRUE='#'
14210 DRUNTIME_OS_AIX_FALSE=
14213 if test "$druntime_target_os_parsed" = "android"; then
14214 DRUNTIME_OS_ANDROID_TRUE=
14215 DRUNTIME_OS_ANDROID_FALSE='#'
14216 else
14217 DRUNTIME_OS_ANDROID_TRUE='#'
14218 DRUNTIME_OS_ANDROID_FALSE=
14221 if test "$druntime_target_os_parsed" = "darwin"; then
14222 DRUNTIME_OS_DARWIN_TRUE=
14223 DRUNTIME_OS_DARWIN_FALSE='#'
14224 else
14225 DRUNTIME_OS_DARWIN_TRUE='#'
14226 DRUNTIME_OS_DARWIN_FALSE=
14229 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14230 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14231 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14232 else
14233 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14234 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14237 if test "$druntime_target_os_parsed" = "freebsd"; then
14238 DRUNTIME_OS_FREEBSD_TRUE=
14239 DRUNTIME_OS_FREEBSD_FALSE='#'
14240 else
14241 DRUNTIME_OS_FREEBSD_TRUE='#'
14242 DRUNTIME_OS_FREEBSD_FALSE=
14245 if test "$druntime_target_os_parsed" = "netbsd"; then
14246 DRUNTIME_OS_NETBSD_TRUE=
14247 DRUNTIME_OS_NETBSD_FALSE='#'
14248 else
14249 DRUNTIME_OS_NETBSD_TRUE='#'
14250 DRUNTIME_OS_NETBSD_FALSE=
14253 if test "$druntime_target_os_parsed" = "openbsd"; then
14254 DRUNTIME_OS_OPENBSD_TRUE=
14255 DRUNTIME_OS_OPENBSD_FALSE='#'
14256 else
14257 DRUNTIME_OS_OPENBSD_TRUE='#'
14258 DRUNTIME_OS_OPENBSD_FALSE=
14261 if test "$druntime_target_os_parsed" = "linux"; then
14262 DRUNTIME_OS_LINUX_TRUE=
14263 DRUNTIME_OS_LINUX_FALSE='#'
14264 else
14265 DRUNTIME_OS_LINUX_TRUE='#'
14266 DRUNTIME_OS_LINUX_FALSE=
14269 if test "$druntime_target_os_parsed" = "mingw"; then
14270 DRUNTIME_OS_MINGW_TRUE=
14271 DRUNTIME_OS_MINGW_FALSE='#'
14272 else
14273 DRUNTIME_OS_MINGW_TRUE='#'
14274 DRUNTIME_OS_MINGW_FALSE=
14277 if test "$druntime_target_os_parsed" = "solaris"; then
14278 DRUNTIME_OS_SOLARIS_TRUE=
14279 DRUNTIME_OS_SOLARIS_FALSE='#'
14280 else
14281 DRUNTIME_OS_SOLARIS_TRUE='#'
14282 DRUNTIME_OS_SOLARIS_FALSE=
14286 druntime_target_posix="no"
14287 case "$druntime_cv_target_os" in
14288 aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
14289 druntime_target_posix="yes"
14291 esac
14292 if test "$druntime_target_posix" = "yes"; then
14293 DRUNTIME_OS_POSIX_TRUE=
14294 DRUNTIME_OS_POSIX_FALSE='#'
14295 else
14296 DRUNTIME_OS_POSIX_TRUE='#'
14297 DRUNTIME_OS_POSIX_FALSE=
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14304 $as_echo_n "checking for thread model used by GDC... " >&6; }
14305 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14307 $as_echo "$d_thread_model" >&6; }
14309 # Map from thread model to thread interface.
14311 case $d_thread_model in
14312 aix) DCFG_THREAD_MODEL="Posix" ;;
14313 lynx) DCFG_THREAD_MODEL="Posix" ;;
14314 posix) DCFG_THREAD_MODEL="Posix" ;;
14315 single) DCFG_THREAD_MODEL="Single" ;;
14316 win32) DCFG_THREAD_MODEL="Win32" ;;
14317 # TODO: These targets need porting.
14318 dce|mipssde|rtems|tpf|vxworks)
14319 DCFG_THREAD_MODEL="Single" ;;
14320 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14321 esac
14326 ac_ext=c
14327 ac_cpp='$CPP $CPPFLAGS'
14328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14333 $as_echo_n "checking for ARM unwinder... " >&6; }
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #include <unwind.h>
14338 main ()
14341 #if __ARM_EABI_UNWINDER__
14342 #error Yes, it is.
14343 #endif
14346 return 0;
14348 _ACEOF
14349 if ac_fn_c_try_compile "$LINENO"; then :
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 DCFG_ARM_EABI_UNWINDER=false
14353 else
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356 DCFG_ARM_EABI_UNWINDER=true
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14361 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14362 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14363 else
14364 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14365 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14368 ac_ext=c
14369 ac_cpp='$CPP $CPPFLAGS'
14370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376 ac_ext=c
14377 ac_cpp='$CPP $CPPFLAGS'
14378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14383 $as_echo_n "checking for minfo section bracketing... " >&6; }
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14387 void* module_info_ptr __attribute__((section ("minfo")));
14388 extern void* __start_minfo __attribute__((visibility ("hidden")));
14389 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14391 int main()
14393 // Never run, just to prevent compiler from optimizing access
14394 return &__start_minfo == &__stop_minfo;
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14400 $as_echo "yes" >&6; }
14401 DCFG_MINFO_BRACKETING=true
14402 else
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 DCFG_MINFO_BRACKETING=false
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14410 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14411 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14412 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14413 else
14414 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14415 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14418 ac_ext=c
14419 ac_cpp='$CPP $CPPFLAGS'
14420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14426 ac_ext=c
14427 ac_cpp='$CPP $CPPFLAGS'
14428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14432 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>
14434 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14435 DCFG_DLPI_TLS_MODID=true
14436 else
14437 DCFG_DLPI_TLS_MODID=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
14449 case $target in
14450 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14451 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14452 # relocs. Work around by disabling TLS transitions. Not necessary
14453 # on 32-bit x86, but cannot be distinguished reliably in specs.
14454 druntime_ld_prog=`$CC -print-prog-name=ld`
14455 druntime_ld_gld=no
14456 druntime_ld_relax_transtls=no
14457 if test -n "$druntime_ld_prog" \
14458 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14459 druntime_ld_gld=yes
14460 else
14461 echo 'int main (void) { return 0; }' > conftest.c
14462 save_LDFLAGS="$LDFLAGS"
14463 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14464 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14465 druntime_ld_relax_transtls=yes
14467 LDFLAGS="$save_LDFLAGS"
14468 rm -f conftest.c conftest
14470 if test "$druntime_ld_relax_transtls" = "yes"; then
14471 OS_LINK_SPEC='-z relax=transtls'
14474 esac
14478 ac_ext=c
14479 ac_cpp='$CPP $CPPFLAGS'
14480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14484 DCFG_HAVE_QSORT_R=false
14485 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14486 if test "x$ac_cv_func_qsort_r" = xyes; then :
14487 DCFG_HAVE_QSORT_R=true
14491 ac_ext=c
14492 ac_cpp='$CPP $CPPFLAGS'
14493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14501 gdc_save_DFLAGS=$GDCFLAGS
14502 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14504 ac_ext=d
14505 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14506 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=yes
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14510 $as_echo_n "checking for library containing malloc... " >&6; }
14511 if ${ac_cv_search_malloc+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 ac_func_search_save_LIBS=$LIBS
14515 cat > conftest.$ac_ext <<_ACEOF
14516 module mod;
14517 extern(C) int malloc();
14519 extern(C) int main() {
14520 malloc(); return 0;
14522 _ACEOF
14523 for ac_lib in '' c; do
14524 if test -z "$ac_lib"; then
14525 ac_res="none required"
14526 else
14527 ac_res=-l$ac_lib
14528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14530 if ac_fn_d_try_link "$LINENO"; then :
14531 ac_cv_search_malloc=$ac_res
14533 rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext
14535 if ${ac_cv_search_malloc+:} false; then :
14536 break
14538 done
14539 if ${ac_cv_search_malloc+:} false; then :
14541 else
14542 ac_cv_search_malloc=no
14544 rm conftest.$ac_ext
14545 LIBS=$ac_func_search_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14548 $as_echo "$ac_cv_search_malloc" >&6; }
14549 ac_res=$ac_cv_search_malloc
14550 if test "$ac_res" != no; then :
14551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14556 $as_echo_n "checking for library containing pthread_create... " >&6; }
14557 if ${ac_cv_search_pthread_create+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 ac_func_search_save_LIBS=$LIBS
14561 cat > conftest.$ac_ext <<_ACEOF
14562 module mod;
14563 extern(C) int pthread_create();
14565 extern(C) int main() {
14566 pthread_create(); return 0;
14568 _ACEOF
14569 for ac_lib in '' pthread; do
14570 if test -z "$ac_lib"; then
14571 ac_res="none required"
14572 else
14573 ac_res=-l$ac_lib
14574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14576 if ac_fn_d_try_link "$LINENO"; then :
14577 ac_cv_search_pthread_create=$ac_res
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext
14581 if ${ac_cv_search_pthread_create+:} false; then :
14582 break
14584 done
14585 if ${ac_cv_search_pthread_create+:} false; then :
14587 else
14588 ac_cv_search_pthread_create=no
14590 rm conftest.$ac_ext
14591 LIBS=$ac_func_search_save_LIBS
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14594 $as_echo "$ac_cv_search_pthread_create" >&6; }
14595 ac_res=$ac_cv_search_pthread_create
14596 if test "$ac_res" != no; then :
14597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14602 $as_echo_n "checking for library containing cosf... " >&6; }
14603 if ${ac_cv_search_cosf+:} false; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 ac_func_search_save_LIBS=$LIBS
14607 cat > conftest.$ac_ext <<_ACEOF
14608 module mod;
14609 extern(C) int cosf();
14611 extern(C) int main() {
14612 cosf(); return 0;
14614 _ACEOF
14615 for ac_lib in '' m; do
14616 if test -z "$ac_lib"; then
14617 ac_res="none required"
14618 else
14619 ac_res=-l$ac_lib
14620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14622 if ac_fn_d_try_link "$LINENO"; then :
14623 ac_cv_search_cosf=$ac_res
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext
14627 if ${ac_cv_search_cosf+:} false; then :
14628 break
14630 done
14631 if ${ac_cv_search_cosf+:} false; then :
14633 else
14634 ac_cv_search_cosf=no
14636 rm conftest.$ac_ext
14637 LIBS=$ac_func_search_save_LIBS
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14640 $as_echo "$ac_cv_search_cosf" >&6; }
14641 ac_res=$ac_cv_search_cosf
14642 if test "$ac_res" != no; then :
14643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14648 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14649 if ${ac_cv_search_clock_gettime+:} false; then :
14650 $as_echo_n "(cached) " >&6
14651 else
14652 ac_func_search_save_LIBS=$LIBS
14653 cat > conftest.$ac_ext <<_ACEOF
14654 module mod;
14655 extern(C) int clock_gettime();
14657 extern(C) int main() {
14658 clock_gettime(); return 0;
14660 _ACEOF
14661 for ac_lib in '' rt; do
14662 if test -z "$ac_lib"; then
14663 ac_res="none required"
14664 else
14665 ac_res=-l$ac_lib
14666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14668 if ac_fn_d_try_link "$LINENO"; then :
14669 ac_cv_search_clock_gettime=$ac_res
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext
14673 if ${ac_cv_search_clock_gettime+:} false; then :
14674 break
14676 done
14677 if ${ac_cv_search_clock_gettime+:} false; then :
14679 else
14680 ac_cv_search_clock_gettime=no
14682 rm conftest.$ac_ext
14683 LIBS=$ac_func_search_save_LIBS
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14686 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14687 ac_res=$ac_cv_search_clock_gettime
14688 if test "$ac_res" != no; then :
14689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14694 # This checks to see if the host supports the compiler-generated builtins
14695 # for atomic operations for various integral sizes. Note, this is intended
14696 # to be an all-or-nothing switch, so all the atomic operations that are
14697 # used should be checked.
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14699 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14700 if ${druntime_cv_atomic_byte+:} false; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14704 cat > conftest.$ac_ext <<_ACEOF
14705 module mod;
14706 import gcc.builtins;
14708 extern(C) int main() {
14710 shared(byte) c1;
14711 byte c2, c3;
14712 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14713 __atomic_load_1(&c1, 5);
14714 __atomic_store_1(&c1, c2, 5);
14715 return 0;
14718 _ACEOF
14719 if ac_fn_d_try_link "$LINENO"; then :
14720 druntime_cv_atomic_byte=yes
14721 else
14722 druntime_cv_atomic_byte=no
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14730 $as_echo "$druntime_cv_atomic_byte" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14733 $as_echo_n "checking for atomic builtins for short... " >&6; }
14734 if ${druntime_cv_atomic_short+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14738 cat > conftest.$ac_ext <<_ACEOF
14739 module mod;
14740 import gcc.builtins;
14742 extern(C) int main() {
14744 shared(short) c1;
14745 short c2, c3;
14746 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14747 __atomic_load_2(&c1, 5);
14748 __atomic_store_2(&c1, c2, 5);
14749 return 0;
14752 _ACEOF
14753 if ac_fn_d_try_link "$LINENO"; then :
14754 druntime_cv_atomic_short=yes
14755 else
14756 druntime_cv_atomic_short=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14764 $as_echo "$druntime_cv_atomic_short" >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14767 $as_echo_n "checking for atomic builtins for int... " >&6; }
14768 if ${druntime_cv_atomic_int+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14772 cat > conftest.$ac_ext <<_ACEOF
14773 module mod;
14774 import gcc.builtins;
14776 extern(C) int main() {
14778 shared(int) c1;
14779 int c2, c3;
14780 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14781 __atomic_load_4(&c1, 5);
14782 __atomic_store_4(&c1, c2, 5);
14783 return 0;
14786 _ACEOF
14787 if ac_fn_d_try_link "$LINENO"; then :
14788 druntime_cv_atomic_int=yes
14789 else
14790 druntime_cv_atomic_int=no
14792 rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14798 $as_echo "$druntime_cv_atomic_int" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14801 $as_echo_n "checking for atomic builtins for long... " >&6; }
14802 if ${druntime_cv_atomic_long+:} false; then :
14803 $as_echo_n "(cached) " >&6
14804 else
14806 cat > conftest.$ac_ext <<_ACEOF
14807 module mod;
14808 import gcc.builtins;
14810 extern(C) int main() {
14812 shared(long) c1;
14813 long c2, c3;
14814 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14815 __atomic_load_8(&c1, 5);
14816 __atomic_store_8(&c1, c2, 5);
14817 return 0;
14820 _ACEOF
14821 if ac_fn_d_try_link "$LINENO"; then :
14822 druntime_cv_atomic_long=yes
14823 else
14824 druntime_cv_atomic_long=no
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14832 $as_echo "$druntime_cv_atomic_long" >&6; }
14834 # Have atomic builtin support if all but the long test above passes.
14835 DCFG_HAVE_ATOMIC_BUILTINS=false
14836 if test "$druntime_cv_atomic_byte" = yes \
14837 && test "$druntime_cv_atomic_short" = yes \
14838 && test "$druntime_cv_atomic_int" = yes; then \
14839 DCFG_HAVE_ATOMIC_BUILTINS=true
14842 # Have 64-bit atomic support if the long test above passes.
14843 DCFG_HAVE_64BIT_ATOMICS=false
14844 if test "$druntime_cv_atomic_long" = yes; then
14845 DCFG_HAVE_64BIT_ATOMICS=true
14851 ac_ext=c
14852 ac_cpp='$CPP $CPPFLAGS'
14853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14858 GDCFLAGS=$gdc_save_DFLAGS
14863 # Check whether --with-libatomic was given.
14864 if test "${with_libatomic+set}" = set; then :
14865 withval=$with_libatomic;
14869 DCFG_HAVE_LIBATOMIC=false
14870 LIBATOMIC=
14871 if test "x$with_libatomic" != "xno"; then :
14873 DCFG_HAVE_LIBATOMIC=true
14874 LIBATOMIC=../../libatomic/libatomic_convenience.la
14876 else
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14879 $as_echo_n "checking for libatomic... " >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14881 $as_echo "disabled" >&6; }
14889 ac_ext=c
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895 BACKTRACE_SUPPORTED=false
14896 BACKTRACE_USES_MALLOC=false
14897 BACKTRACE_SUPPORTS_THREADS=false
14898 LIBBACKTRACE=""
14901 # Check whether --with-libbacktrace was given.
14902 if test "${with_libbacktrace+set}" = set; then :
14903 withval=$with_libbacktrace;
14907 if test "x$with_libbacktrace" != "xno"; then :
14909 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14911 gdc_save_CPPFLAGS=$CPPFLAGS
14912 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14914 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14915 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14916 have_libbacktrace_h=true
14917 else
14918 have_libbacktrace_h=false
14923 if $have_libbacktrace_h; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14925 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 #include <backtrace-supported.h>
14930 #if BACKTRACE_SUPPORTED
14931 FOUND_LIBBACKTRACE_RESULT_GDC
14932 #endif
14934 _ACEOF
14935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14936 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14937 BACKTRACE_SUPPORTED=true
14938 else
14939 BACKTRACE_SUPPORTED=false
14941 rm -f conftest*
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14944 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14947 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14951 #include <backtrace-supported.h>
14952 #if BACKTRACE_USES_MALLOC
14953 FOUND_LIBBACKTRACE_RESULT_GDC
14954 #endif
14956 _ACEOF
14957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14958 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14959 BACKTRACE_USES_MALLOC=true
14960 else
14961 BACKTRACE_USES_MALLOC=false
14963 rm -f conftest*
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14966 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14969 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <backtrace-supported.h>
14974 #if BACKTRACE_SUPPORTS_THREADS
14975 FOUND_LIBBACKTRACE_RESULT_GDC
14976 #endif
14978 _ACEOF
14979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14980 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14981 BACKTRACE_SUPPORTS_THREADS=true
14982 else
14983 BACKTRACE_SUPPORTS_THREADS=false
14985 rm -f conftest*
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14988 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14990 CPPFLAGS=$gdc_save_CPPFLAGS
14992 else
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14995 $as_echo_n "checking for libbacktrace... " >&6; }
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14997 $as_echo "disabled" >&6; }
15005 ac_ext=c
15006 ac_cpp='$CPP $CPPFLAGS'
15007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15013 # Libtool has already checked this, so re-use the inferred dlopen lib.
15014 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15016 LIBS="$LIBS $lt_cv_dlopen_libs"
15021 druntime_check_both=no
15022 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15023 if test "x$ac_cv_func_connect" = xyes; then :
15025 else
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15027 $as_echo_n "checking for connect in -lsocket... " >&6; }
15028 if ${ac_cv_lib_socket_connect+:} false; then :
15029 $as_echo_n "(cached) " >&6
15030 else
15031 ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-lsocket $LIBS"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15036 /* Override any GCC internal prototype to avoid an error.
15037 Use char because int might match the return type of a GCC
15038 builtin and then its argument prototype would still apply. */
15039 #ifdef __cplusplus
15040 extern "C"
15041 #endif
15042 char connect ();
15044 main ()
15046 return connect ();
15048 return 0;
15050 _ACEOF
15051 if ac_fn_c_try_link "$LINENO"; then :
15052 ac_cv_lib_socket_connect=yes
15053 else
15054 ac_cv_lib_socket_connect=no
15056 rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
15058 LIBS=$ac_check_lib_save_LIBS
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15061 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15062 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15063 LIBS="$LIBS -lsocket"
15064 else
15065 druntime_check_both=yes
15070 if test "$druntime_check_both" = "yes"; then
15071 druntime_old_libs=$LIBS
15072 LIBS="$LIBS -lsocket -lnsl"
15073 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15074 if test "x$ac_cv_func_accept" = xyes; then :
15076 else
15077 LIBS=$druntime_old_libs
15081 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15082 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15084 else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15086 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15087 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lnsl $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char gethostbyname ();
15103 main ()
15105 return gethostbyname ();
15107 return 0;
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_lib_nsl_gethostbyname=yes
15112 else
15113 ac_cv_lib_nsl_gethostbyname=no
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15120 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15121 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15122 LIBS="$LIBS -lnsl"
15129 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15130 # "yes" for targets that have 'version = AsmExternal'.
15131 druntime_fiber_asm_external=no
15132 case "$target_cpu" in
15133 aarch64* | \
15134 arm* | \
15135 i[34567]86|x86_64 | \
15136 powerpc)
15137 druntime_fiber_asm_external=yes
15139 esac
15140 if test "$druntime_fiber_asm_external" = no; then
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15142 $as_echo_n "checking for library containing swapcontext... " >&6; }
15143 if ${ac_cv_search_swapcontext+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 ac_func_search_save_LIBS=$LIBS
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15150 /* Override any GCC internal prototype to avoid an error.
15151 Use char because int might match the return type of a GCC
15152 builtin and then its argument prototype would still apply. */
15153 #ifdef __cplusplus
15154 extern "C"
15155 #endif
15156 char swapcontext ();
15158 main ()
15160 return swapcontext ();
15162 return 0;
15164 _ACEOF
15165 for ac_lib in '' c ucontext; do
15166 if test -z "$ac_lib"; then
15167 ac_res="none required"
15168 else
15169 ac_res=-l$ac_lib
15170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15172 if ac_fn_c_try_link "$LINENO"; then :
15173 ac_cv_search_swapcontext=$ac_res
15175 rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext
15177 if ${ac_cv_search_swapcontext+:} false; then :
15178 break
15180 done
15181 if ${ac_cv_search_swapcontext+:} false; then :
15183 else
15184 ac_cv_search_swapcontext=no
15186 rm conftest.$ac_ext
15187 LIBS=$ac_func_search_save_LIBS
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15190 $as_echo "$ac_cv_search_swapcontext" >&6; }
15191 ac_res=$ac_cv_search_swapcontext
15192 if test "$ac_res" != no; then :
15193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15195 else
15196 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15202 ac_ext=c
15203 ac_cpp='$CPP $CPPFLAGS'
15204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208 LIBZ=""
15211 # Check whether --with-target-system-zlib was given.
15212 if test "${with_target_system_zlib+set}" = set; then :
15213 withval=$with_target_system_zlib;
15214 else
15215 with_target_system_zlib=no
15219 case "$with_target_system_zlib" in
15220 yes|no|auto) ;;
15221 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15222 esac
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15225 $as_echo_n "checking for system zlib... " >&6; }
15226 save_LIBS=$LIBS
15227 LIBS="$LIBS -lz"
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <zlib.h>
15232 main ()
15234 gzopen("none", "rb")
15236 return 0;
15238 _ACEOF
15239 if ac_fn_c_try_link "$LINENO"; then :
15241 if test "$cross_compiling" = yes; then :
15242 system_zlib_found=no
15244 else
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15248 #include <zlib.h>
15249 int main() {
15250 gzFile file = gzopen("none", "rb");
15251 return 0;
15254 _ACEOF
15255 if ac_fn_c_try_run "$LINENO"; then :
15256 system_zlib_found=yes
15257 else
15258 system_zlib_found=no
15260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15261 conftest.$ac_objext conftest.beam conftest.$ac_ext
15265 else
15266 system_zlib_found=no
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$save_LIBS
15272 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15274 $as_echo "found" >&6; }
15275 LIBS="$LIBS -lz"
15276 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15277 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15278 else
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15280 $as_echo "just compiled" >&6; }
15281 LIBZ=../../zlib/libz_convenience.la
15285 ac_ext=c
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15296 $as_echo_n "checking D GCC version... " >&6; }
15297 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15299 $as_echo "$gcc_version" >&6; }
15303 # Check whether --with-cross-host was given.
15304 if test "${with_cross_host+set}" = set; then :
15305 withval=$with_cross_host;
15309 libphobos_toolexecdir=no
15310 libphobos_toolexeclibdir=no
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15313 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15314 # Check whether --enable-version-specific-runtime-libs was given.
15315 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15316 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15317 yes) version_specific_libs=yes ;;
15318 no) version_specific_libs=no ;;
15319 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15320 esac
15321 else
15322 version_specific_libs=no
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15326 $as_echo "$version_specific_libs" >&6; }
15329 # Check whether --with-toolexeclibdir was given.
15330 if test "${with_toolexeclibdir+set}" = set; then :
15331 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15335 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15337 esac
15338 else
15339 with_toolexeclibdir=no
15344 # Version-specific runtime libs processing.
15345 if test $version_specific_libs = yes; then
15346 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15347 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15348 else
15349 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15350 # Install a library built with a cross compiler in tooldir, not libdir.
15351 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15352 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15353 case ${with_toolexeclibdir} in
15355 libphobos_toolexeclibdir='${toolexecdir}/lib'
15358 libphobos_toolexeclibdir=${with_toolexeclibdir}
15360 esac
15361 else
15362 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15363 libphobos_toolexeclibdir='${libdir}'
15365 multi_os_directory=`$GDC -print-multi-os-directory`
15366 case $multi_os_directory in
15367 .) ;; # Avoid trailing /.
15368 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15369 esac
15374 # Default case for install directory for D sources files.
15375 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15380 $as_echo_n "checking for --enable-libphobos... " >&6; }
15381 # Check whether --enable-libphobos was given.
15382 if test "${enable_libphobos+set}" = set; then :
15383 enableval=$enable_libphobos;
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15387 $as_echo "$enable_libphobos" >&6; }
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15390 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15392 # Check whether --with-libphobos-druntime-only was given.
15393 if test "${with_libphobos_druntime_only+set}" = set; then :
15394 withval=$with_libphobos_druntime_only;
15395 else
15396 with_libphobos_druntime_only=auto
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15400 $as_echo "$with_libphobos_druntime_only" >&6; }
15402 case "$with_libphobos_druntime_only" in
15403 yes|no|auto) ;;
15404 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15405 esac
15407 # See if supported.
15408 unset LIBPHOBOS_SUPPORTED
15409 unset LIBDRUNTIME_ONLY
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15411 $as_echo_n "checking for host support for libphobos... " >&6; }
15412 . ${srcdir}/configure.tgt
15413 case ${host} in
15414 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15415 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15416 # relatively low linelength limit.
15417 as_prog=`$CC -print-prog-name=as`
15418 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15419 druntime_cv_use_gas=yes;
15420 else
15421 druntime_cv_use_gas=no;
15423 rm -f a.out
15424 if test x$druntime_cv_use_gas = xno; then
15425 LIBPHOBOS_SUPPORTED=no
15427 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15428 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15429 LIBPHOBOS_SUPPORTED=no
15432 esac
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15434 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15436 # Decide if it's usable.
15437 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15438 *:no) use_libphobos=no ;;
15439 *:yes) use_libphobos=yes ;;
15440 yes:*) use_libphobos=yes ;;
15441 *:*) use_libphobos=no ;;
15442 esac
15443 if test x$use_libphobos = xyes; then
15444 ENABLE_LIBPHOBOS_TRUE=
15445 ENABLE_LIBPHOBOS_FALSE='#'
15446 else
15447 ENABLE_LIBPHOBOS_TRUE='#'
15448 ENABLE_LIBPHOBOS_FALSE=
15452 # Decide if only libdruntime should be built.
15453 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15454 *:no) only_libdruntime=no ;;
15455 *:yes) only_libdruntime=yes ;;
15456 yes:*) only_libdruntime=yes ;;
15457 *:*) only_libdruntime=no ;;
15458 esac
15459 if test x$only_libdruntime = xyes; then
15460 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15461 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15462 else
15463 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15464 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15468 # Enable expensive internal checks
15469 # Check whether --enable-libphobos-checking was given.
15470 if test "${enable_libphobos_checking+set}" = set; then :
15471 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15472 else
15473 ac_checking_flags=release
15476 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15477 for check in release $ac_checking_flags
15479 case $check in
15480 # These set all the flags to specific states
15481 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15482 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15483 # These enable particular checks
15484 assert) ASSERT_FLAG="-fassert" ;;
15485 # Accept
15486 *) ;;
15487 esac
15488 done
15489 IFS="$ac_save_IFS"
15490 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15493 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15494 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15495 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15496 else
15497 DRTSTUFF_SPEC=/dev/null
15501 # Add dependencies for libgphobos.spec file
15502 SPEC_PHOBOS_DEPS="$LIBS"
15505 # Libdruntime / phobos soname version
15506 libtool_VERSION=2:0:0
15509 # Set default flags (after DRUNTIME_WERROR!)
15510 if test -z "$GDCFLAGS"; then
15511 GDCFLAGS="-g -O2"
15515 WARN_DFLAGS="-Wall $WERROR_FLAG"
15518 # Sanity check for the cross-compilation case:
15519 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_stdio_h" = xyes; then :
15522 else
15523 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15528 ac_config_files="$ac_config_files Makefile"
15531 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15533 ac_config_files="$ac_config_files src/libgphobos.spec"
15535 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15538 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15539 # that multilib installs will end up installed in the correct place.
15540 # The testsuite needs it for multilib-aware ABI baseline files.
15541 # To work around this not being passed down from config-ml.in ->
15542 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15543 # append it here. Only modify Makefiles that have just been created.
15545 # Also, get rid of this simulated-VPATH thing that automake does.
15546 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15549 cat >confcache <<\_ACEOF
15550 # This file is a shell script that caches the results of configure
15551 # tests run on this system so they can be shared between configure
15552 # scripts and configure runs, see configure's option --config-cache.
15553 # It is not useful on other systems. If it contains results you don't
15554 # want to keep, you may remove or edit it.
15556 # config.status only pays attention to the cache file if you give it
15557 # the --recheck option to rerun configure.
15559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15561 # following values.
15563 _ACEOF
15565 # The following way of writing the cache mishandles newlines in values,
15566 # but we know of no workaround that is simple, portable, and efficient.
15567 # So, we kill variables containing newlines.
15568 # Ultrix sh set writes to stderr and can't be redirected directly,
15569 # and sets the high bit in the cache file unless we assign to the vars.
15571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15572 eval ac_val=\$$ac_var
15573 case $ac_val in #(
15574 *${as_nl}*)
15575 case $ac_var in #(
15576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15578 esac
15579 case $ac_var in #(
15580 _ | IFS | as_nl) ;; #(
15581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15582 *) { eval $ac_var=; unset $ac_var;} ;;
15583 esac ;;
15584 esac
15585 done
15587 (set) 2>&1 |
15588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15589 *${as_nl}ac_space=\ *)
15590 # `set' does not quote correctly, so add quotes: double-quote
15591 # substitution turns \\\\ into \\, and sed turns \\ into \.
15592 sed -n \
15593 "s/'/'\\\\''/g;
15594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15595 ;; #(
15597 # `set' quotes correctly as required by POSIX, so do not add quotes.
15598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15600 esac |
15601 sort
15603 sed '
15604 /^ac_cv_env_/b end
15605 t clear
15606 :clear
15607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15608 t end
15609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15610 :end' >>confcache
15611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15612 if test -w "$cache_file"; then
15613 if test "x$cache_file" != "x/dev/null"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15615 $as_echo "$as_me: updating cache $cache_file" >&6;}
15616 if test ! -f "$cache_file" || test -h "$cache_file"; then
15617 cat confcache >"$cache_file"
15618 else
15619 case $cache_file in #(
15620 */* | ?:*)
15621 mv -f confcache "$cache_file"$$ &&
15622 mv -f "$cache_file"$$ "$cache_file" ;; #(
15624 mv -f confcache "$cache_file" ;;
15625 esac
15628 else
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15633 rm -f confcache
15635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15639 DEFS=-DHAVE_CONFIG_H
15641 ac_libobjs=
15642 ac_ltlibobjs=
15644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15645 # 1. Remove the extension, and $U if already installed.
15646 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15647 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15649 # will be set to the directory where LIBOBJS objects are built.
15650 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15651 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15652 done
15653 LIBOBJS=$ac_libobjs
15655 LTLIBOBJS=$ac_ltlibobjs
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15659 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15660 if test -n "$am_sleep_pid"; then
15661 # Hide warnings about reused PIDs.
15662 wait $am_sleep_pid 2>/dev/null
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15665 $as_echo "done" >&6; }
15666 if test -n "$EXEEXT"; then
15667 am__EXEEXT_TRUE=
15668 am__EXEEXT_FALSE='#'
15669 else
15670 am__EXEEXT_TRUE='#'
15671 am__EXEEXT_FALSE=
15674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15679 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15683 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15687 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15691 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15695 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15699 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15703 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15706 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15707 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15711 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15715 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15719 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15723 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15727 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15731 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15735 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15739 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15743 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15747 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15751 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15755 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15759 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15763 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 : "${CONFIG_STATUS=./config.status}"
15768 ac_write_fail=0
15769 ac_clean_files_save=$ac_clean_files
15770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15773 as_write_fail=0
15774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15775 #! $SHELL
15776 # Generated by $as_me.
15777 # Run this file to recreate the current configuration.
15778 # Compiler output produced by configure, useful for debugging
15779 # configure, is in config.log if it exists.
15781 debug=false
15782 ac_cs_recheck=false
15783 ac_cs_silent=false
15785 SHELL=\${CONFIG_SHELL-$SHELL}
15786 export SHELL
15787 _ASEOF
15788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15789 ## -------------------- ##
15790 ## M4sh Initialization. ##
15791 ## -------------------- ##
15793 # Be more Bourne compatible
15794 DUALCASE=1; export DUALCASE # for MKS sh
15795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15796 emulate sh
15797 NULLCMD=:
15798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15799 # is contrary to our usage. Disable this feature.
15800 alias -g '${1+"$@"}'='"$@"'
15801 setopt NO_GLOB_SUBST
15802 else
15803 case `(set -o) 2>/dev/null` in #(
15804 *posix*) :
15805 set -o posix ;; #(
15806 *) :
15808 esac
15812 as_nl='
15814 export as_nl
15815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15819 # Prefer a ksh shell builtin over an external printf program on Solaris,
15820 # but without wasting forks for bash or zsh.
15821 if test -z "$BASH_VERSION$ZSH_VERSION" \
15822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15823 as_echo='print -r --'
15824 as_echo_n='print -rn --'
15825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15826 as_echo='printf %s\n'
15827 as_echo_n='printf %s'
15828 else
15829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15830 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15831 as_echo_n='/usr/ucb/echo -n'
15832 else
15833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15834 as_echo_n_body='eval
15835 arg=$1;
15836 case $arg in #(
15837 *"$as_nl"*)
15838 expr "X$arg" : "X\\(.*\\)$as_nl";
15839 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15840 esac;
15841 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15843 export as_echo_n_body
15844 as_echo_n='sh -c $as_echo_n_body as_echo'
15846 export as_echo_body
15847 as_echo='sh -c $as_echo_body as_echo'
15850 # The user is always right.
15851 if test "${PATH_SEPARATOR+set}" != set; then
15852 PATH_SEPARATOR=:
15853 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15854 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15855 PATH_SEPARATOR=';'
15860 # IFS
15861 # We need space, tab and new line, in precisely that order. Quoting is
15862 # there to prevent editors from complaining about space-tab.
15863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15864 # splitting by setting IFS to empty value.)
15865 IFS=" "" $as_nl"
15867 # Find who we are. Look in the path if we contain no directory separator.
15868 as_myself=
15869 case $0 in #((
15870 *[\\/]* ) as_myself=$0 ;;
15871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15874 IFS=$as_save_IFS
15875 test -z "$as_dir" && as_dir=.
15876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15877 done
15878 IFS=$as_save_IFS
15881 esac
15882 # We did not find ourselves, most probably we were run as `sh COMMAND'
15883 # in which case we are not to be found in the path.
15884 if test "x$as_myself" = x; then
15885 as_myself=$0
15887 if test ! -f "$as_myself"; then
15888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15889 exit 1
15892 # Unset variables that we do not need and which cause bugs (e.g. in
15893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15894 # suppresses any "Segmentation fault" message there. '((' could
15895 # trigger a bug in pdksh 5.2.14.
15896 for as_var in BASH_ENV ENV MAIL MAILPATH
15897 do eval test x\${$as_var+set} = xset \
15898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15899 done
15900 PS1='$ '
15901 PS2='> '
15902 PS4='+ '
15904 # NLS nuisances.
15905 LC_ALL=C
15906 export LC_ALL
15907 LANGUAGE=C
15908 export LANGUAGE
15910 # CDPATH.
15911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15915 # ----------------------------------------
15916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15918 # script with STATUS, using 1 if that was 0.
15919 as_fn_error ()
15921 as_status=$1; test $as_status -eq 0 && as_status=1
15922 if test "$4"; then
15923 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15926 $as_echo "$as_me: error: $2" >&2
15927 as_fn_exit $as_status
15928 } # as_fn_error
15931 # as_fn_set_status STATUS
15932 # -----------------------
15933 # Set $? to STATUS, without forking.
15934 as_fn_set_status ()
15936 return $1
15937 } # as_fn_set_status
15939 # as_fn_exit STATUS
15940 # -----------------
15941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15942 as_fn_exit ()
15944 set +e
15945 as_fn_set_status $1
15946 exit $1
15947 } # as_fn_exit
15949 # as_fn_unset VAR
15950 # ---------------
15951 # Portably unset VAR.
15952 as_fn_unset ()
15954 { eval $1=; unset $1;}
15956 as_unset=as_fn_unset
15957 # as_fn_append VAR VALUE
15958 # ----------------------
15959 # Append the text in VALUE to the end of the definition contained in VAR. Take
15960 # advantage of any shell optimizations that allow amortized linear growth over
15961 # repeated appends, instead of the typical quadratic growth present in naive
15962 # implementations.
15963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15964 eval 'as_fn_append ()
15966 eval $1+=\$2
15968 else
15969 as_fn_append ()
15971 eval $1=\$$1\$2
15973 fi # as_fn_append
15975 # as_fn_arith ARG...
15976 # ------------------
15977 # Perform arithmetic evaluation on the ARGs, and store the result in the
15978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15979 # must be portable across $(()) and expr.
15980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15981 eval 'as_fn_arith ()
15983 as_val=$(( $* ))
15985 else
15986 as_fn_arith ()
15988 as_val=`expr "$@" || test $? -eq 1`
15990 fi # as_fn_arith
15993 if expr a : '\(a\)' >/dev/null 2>&1 &&
15994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15995 as_expr=expr
15996 else
15997 as_expr=false
16000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16001 as_basename=basename
16002 else
16003 as_basename=false
16006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16007 as_dirname=dirname
16008 else
16009 as_dirname=false
16012 as_me=`$as_basename -- "$0" ||
16013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16014 X"$0" : 'X\(//\)$' \| \
16015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16016 $as_echo X/"$0" |
16017 sed '/^.*\/\([^/][^/]*\)\/*$/{
16018 s//\1/
16021 /^X\/\(\/\/\)$/{
16022 s//\1/
16025 /^X\/\(\/\).*/{
16026 s//\1/
16029 s/.*/./; q'`
16031 # Avoid depending upon Character Ranges.
16032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16035 as_cr_digits='0123456789'
16036 as_cr_alnum=$as_cr_Letters$as_cr_digits
16038 ECHO_C= ECHO_N= ECHO_T=
16039 case `echo -n x` in #(((((
16040 -n*)
16041 case `echo 'xy\c'` in
16042 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16043 xy) ECHO_C='\c';;
16044 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16045 ECHO_T=' ';;
16046 esac;;
16048 ECHO_N='-n';;
16049 esac
16051 rm -f conf$$ conf$$.exe conf$$.file
16052 if test -d conf$$.dir; then
16053 rm -f conf$$.dir/conf$$.file
16054 else
16055 rm -f conf$$.dir
16056 mkdir conf$$.dir 2>/dev/null
16058 if (echo >conf$$.file) 2>/dev/null; then
16059 if ln -s conf$$.file conf$$ 2>/dev/null; then
16060 as_ln_s='ln -s'
16061 # ... but there are two gotchas:
16062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16064 # In both cases, we have to default to `cp -pR'.
16065 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16066 as_ln_s='cp -pR'
16067 elif ln conf$$.file conf$$ 2>/dev/null; then
16068 as_ln_s=ln
16069 else
16070 as_ln_s='cp -pR'
16072 else
16073 as_ln_s='cp -pR'
16075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16076 rmdir conf$$.dir 2>/dev/null
16079 # as_fn_mkdir_p
16080 # -------------
16081 # Create "$as_dir" as a directory, including parents if necessary.
16082 as_fn_mkdir_p ()
16085 case $as_dir in #(
16086 -*) as_dir=./$as_dir;;
16087 esac
16088 test -d "$as_dir" || eval $as_mkdir_p || {
16089 as_dirs=
16090 while :; do
16091 case $as_dir in #(
16092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16093 *) as_qdir=$as_dir;;
16094 esac
16095 as_dirs="'$as_qdir' $as_dirs"
16096 as_dir=`$as_dirname -- "$as_dir" ||
16097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16098 X"$as_dir" : 'X\(//\)[^/]' \| \
16099 X"$as_dir" : 'X\(//\)$' \| \
16100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16101 $as_echo X"$as_dir" |
16102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16103 s//\1/
16106 /^X\(\/\/\)[^/].*/{
16107 s//\1/
16110 /^X\(\/\/\)$/{
16111 s//\1/
16114 /^X\(\/\).*/{
16115 s//\1/
16118 s/.*/./; q'`
16119 test -d "$as_dir" && break
16120 done
16121 test -z "$as_dirs" || eval "mkdir $as_dirs"
16122 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16125 } # as_fn_mkdir_p
16126 if mkdir -p . 2>/dev/null; then
16127 as_mkdir_p='mkdir -p "$as_dir"'
16128 else
16129 test -d ./-p && rmdir ./-p
16130 as_mkdir_p=false
16134 # as_fn_executable_p FILE
16135 # -----------------------
16136 # Test if FILE is an executable regular file.
16137 as_fn_executable_p ()
16139 test -f "$1" && test -x "$1"
16140 } # as_fn_executable_p
16141 as_test_x='test -x'
16142 as_executable_p=as_fn_executable_p
16144 # Sed expression to map a string onto a valid CPP name.
16145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16147 # Sed expression to map a string onto a valid variable name.
16148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16151 exec 6>&1
16152 ## ----------------------------------- ##
16153 ## Main body of $CONFIG_STATUS script. ##
16154 ## ----------------------------------- ##
16155 _ASEOF
16156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159 # Save the log message, to keep $0 and so on meaningful, and to
16160 # report actual input values of CONFIG_FILES etc. instead of their
16161 # values after options handling.
16162 ac_log="
16163 This file was extended by package-unused $as_me version-unused, which was
16164 generated by GNU Autoconf 2.69. Invocation command line was
16166 CONFIG_FILES = $CONFIG_FILES
16167 CONFIG_HEADERS = $CONFIG_HEADERS
16168 CONFIG_LINKS = $CONFIG_LINKS
16169 CONFIG_COMMANDS = $CONFIG_COMMANDS
16170 $ $0 $@
16172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16175 _ACEOF
16177 case $ac_config_files in *"
16178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16179 esac
16181 case $ac_config_headers in *"
16182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16183 esac
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 # Files that config.status was made for.
16188 config_files="$ac_config_files"
16189 config_headers="$ac_config_headers"
16190 config_commands="$ac_config_commands"
16192 _ACEOF
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195 ac_cs_usage="\
16196 \`$as_me' instantiates files and other configuration actions
16197 from templates according to the current configuration. Unless the files
16198 and actions are specified as TAGs, all are instantiated by default.
16200 Usage: $0 [OPTION]... [TAG]...
16202 -h, --help print this help, then exit
16203 -V, --version print version number and configuration settings, then exit
16204 --config print configuration, then exit
16205 -q, --quiet, --silent
16206 do not print progress messages
16207 -d, --debug don't remove temporary files
16208 --recheck update $as_me by reconfiguring in the same conditions
16209 --file=FILE[:TEMPLATE]
16210 instantiate the configuration file FILE
16211 --header=FILE[:TEMPLATE]
16212 instantiate the configuration header FILE
16214 Configuration files:
16215 $config_files
16217 Configuration headers:
16218 $config_headers
16220 Configuration commands:
16221 $config_commands
16223 Report bugs to the package provider."
16225 _ACEOF
16226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16228 ac_cs_version="\\
16229 package-unused config.status version-unused
16230 configured by $0, generated by GNU Autoconf 2.69,
16231 with options \\"\$ac_cs_config\\"
16233 Copyright (C) 2012 Free Software Foundation, Inc.
16234 This config.status script is free software; the Free Software Foundation
16235 gives unlimited permission to copy, distribute and modify it."
16237 ac_pwd='$ac_pwd'
16238 srcdir='$srcdir'
16239 INSTALL='$INSTALL'
16240 MKDIR_P='$MKDIR_P'
16241 AWK='$AWK'
16242 test -n "\$AWK" || AWK=awk
16243 _ACEOF
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16246 # The default lists apply if the user does not specify any file.
16247 ac_need_defaults=:
16248 while test $# != 0
16250 case $1 in
16251 --*=?*)
16252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16254 ac_shift=:
16256 --*=)
16257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16258 ac_optarg=
16259 ac_shift=:
16262 ac_option=$1
16263 ac_optarg=$2
16264 ac_shift=shift
16266 esac
16268 case $ac_option in
16269 # Handling of the options.
16270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16271 ac_cs_recheck=: ;;
16272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16273 $as_echo "$ac_cs_version"; exit ;;
16274 --config | --confi | --conf | --con | --co | --c )
16275 $as_echo "$ac_cs_config"; exit ;;
16276 --debug | --debu | --deb | --de | --d | -d )
16277 debug=: ;;
16278 --file | --fil | --fi | --f )
16279 $ac_shift
16280 case $ac_optarg in
16281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 '') as_fn_error $? "missing file argument" ;;
16283 esac
16284 as_fn_append CONFIG_FILES " '$ac_optarg'"
16285 ac_need_defaults=false;;
16286 --header | --heade | --head | --hea )
16287 $ac_shift
16288 case $ac_optarg in
16289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16290 esac
16291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16292 ac_need_defaults=false;;
16293 --he | --h)
16294 # Conflict between --help and --header
16295 as_fn_error $? "ambiguous option: \`$1'
16296 Try \`$0 --help' for more information.";;
16297 --help | --hel | -h )
16298 $as_echo "$ac_cs_usage"; exit ;;
16299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16301 ac_cs_silent=: ;;
16303 # This is an error.
16304 -*) as_fn_error $? "unrecognized option: \`$1'
16305 Try \`$0 --help' for more information." ;;
16307 *) as_fn_append ac_config_targets " $1"
16308 ac_need_defaults=false ;;
16310 esac
16311 shift
16312 done
16314 ac_configure_extra_args=
16316 if $ac_cs_silent; then
16317 exec 6>/dev/null
16318 ac_configure_extra_args="$ac_configure_extra_args --silent"
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 if \$ac_cs_recheck; then
16324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16325 shift
16326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16327 CONFIG_SHELL='$SHELL'
16328 export CONFIG_SHELL
16329 exec "\$@"
16332 _ACEOF
16333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16334 exec 5>>config.log
16336 echo
16337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16338 ## Running $as_me. ##
16339 _ASBOX
16340 $as_echo "$ac_log"
16341 } >&5
16343 _ACEOF
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16346 # INIT-COMMANDS
16349 srcdir="$srcdir"
16350 host="$host"
16351 target="$target"
16352 with_multisubdir="$with_multisubdir"
16353 with_multisrctop="$with_multisrctop"
16354 with_target_subdir="$with_target_subdir"
16355 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16356 multi_basedir="$multi_basedir"
16357 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16358 CC="$CC"
16359 CXX="$CXX"
16360 GFORTRAN="$GFORTRAN"
16361 GDC="$GDC"
16364 # The HP-UX ksh and POSIX shell print the target directory to stdout
16365 # if CDPATH is set.
16366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16368 sed_quote_subst='$sed_quote_subst'
16369 double_quote_subst='$double_quote_subst'
16370 delay_variable_subst='$delay_variable_subst'
16371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16377 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16378 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16379 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16380 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16381 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16382 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16383 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16384 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16385 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16386 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16387 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16388 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16389 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16390 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16391 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16392 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16393 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16394 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16395 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16396 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16397 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16398 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16401 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16402 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16403 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16404 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16406 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16407 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16408 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16409 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16410 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16411 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16412 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16413 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16414 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16415 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16416 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16419 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"`'
16420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16460 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16461 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16462 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16463 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16464 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16465 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16484 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16491 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16492 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16493 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16494 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16495 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16496 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16499 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16500 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16501 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16502 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16503 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16504 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16505 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16506 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16507 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16508 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16509 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16510 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16511 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16512 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16513 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16514 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16515 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16516 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16517 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16518 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16519 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16520 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16521 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16522 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16523 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16524 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16525 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16526 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16527 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16528 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16529 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16530 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16531 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16532 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16533 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16535 LTCC='$LTCC'
16536 LTCFLAGS='$LTCFLAGS'
16537 compiler='$compiler_DEFAULT'
16539 # A function that is used when there is no print builtin or printf.
16540 func_fallback_echo ()
16542 eval 'cat <<_LTECHO_EOF
16544 _LTECHO_EOF'
16547 # Quote evaled strings.
16548 for var in SHELL \
16549 ECHO \
16550 SED \
16551 GREP \
16552 EGREP \
16553 FGREP \
16554 LD \
16555 NM \
16556 LN_S \
16557 lt_SP2NL \
16558 lt_NL2SP \
16559 reload_flag \
16560 OBJDUMP \
16561 deplibs_check_method \
16562 file_magic_cmd \
16563 AR \
16564 AR_FLAGS \
16565 STRIP \
16566 RANLIB \
16567 CC \
16568 CFLAGS \
16569 compiler \
16570 lt_cv_sys_global_symbol_pipe \
16571 lt_cv_sys_global_symbol_to_cdecl \
16572 lt_cv_sys_global_symbol_to_c_name_address \
16573 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16574 lt_prog_compiler_no_builtin_flag \
16575 lt_prog_compiler_wl \
16576 lt_prog_compiler_pic \
16577 lt_prog_compiler_static \
16578 lt_cv_prog_compiler_c_o \
16579 need_locks \
16580 DSYMUTIL \
16581 NMEDIT \
16582 LIPO \
16583 OTOOL \
16584 OTOOL64 \
16585 shrext_cmds \
16586 export_dynamic_flag_spec \
16587 whole_archive_flag_spec \
16588 compiler_needs_object \
16589 with_gnu_ld \
16590 allow_undefined_flag \
16591 no_undefined_flag \
16592 hardcode_libdir_flag_spec \
16593 hardcode_libdir_flag_spec_ld \
16594 hardcode_libdir_separator \
16595 fix_srcfile_path \
16596 exclude_expsyms \
16597 include_expsyms \
16598 file_list_spec \
16599 variables_saved_for_relink \
16600 libname_spec \
16601 library_names_spec \
16602 soname_spec \
16603 install_override_mode \
16604 finish_eval \
16605 old_striplib \
16606 striplib \
16607 LD_D \
16608 reload_flag_D \
16609 compiler_D \
16610 lt_prog_compiler_no_builtin_flag_D \
16611 lt_prog_compiler_wl_D \
16612 lt_prog_compiler_pic_D \
16613 lt_prog_compiler_static_D \
16614 lt_cv_prog_compiler_c_o_D \
16615 export_dynamic_flag_spec_D \
16616 whole_archive_flag_spec_D \
16617 compiler_needs_object_D \
16618 with_gnu_ld_D \
16619 allow_undefined_flag_D \
16620 no_undefined_flag_D \
16621 hardcode_libdir_flag_spec_D \
16622 hardcode_libdir_flag_spec_ld_D \
16623 hardcode_libdir_separator_D \
16624 fix_srcfile_path_D \
16625 exclude_expsyms_D \
16626 include_expsyms_D \
16627 file_list_spec_D; do
16628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16629 *[\\\\\\\`\\"\\\$]*)
16630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16635 esac
16636 done
16638 # Double-quote double-evaled strings.
16639 for var in reload_cmds \
16640 old_postinstall_cmds \
16641 old_postuninstall_cmds \
16642 old_archive_cmds \
16643 extract_expsyms_cmds \
16644 old_archive_from_new_cmds \
16645 old_archive_from_expsyms_cmds \
16646 archive_cmds \
16647 archive_expsym_cmds \
16648 module_cmds \
16649 module_expsym_cmds \
16650 export_symbols_cmds \
16651 prelink_cmds \
16652 postinstall_cmds \
16653 postuninstall_cmds \
16654 finish_cmds \
16655 sys_lib_search_path_spec \
16656 sys_lib_dlsearch_path_spec \
16657 reload_cmds_D \
16658 old_archive_cmds_D \
16659 old_archive_from_new_cmds_D \
16660 old_archive_from_expsyms_cmds_D \
16661 archive_cmds_D \
16662 archive_expsym_cmds_D \
16663 module_cmds_D \
16664 module_expsym_cmds_D \
16665 export_symbols_cmds_D \
16666 prelink_cmds_D; do
16667 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16668 *[\\\\\\\`\\"\\\$]*)
16669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16674 esac
16675 done
16677 ac_aux_dir='$ac_aux_dir'
16678 xsi_shell='$xsi_shell'
16679 lt_shell_append='$lt_shell_append'
16681 # See if we are running on zsh, and set the options which allow our
16682 # commands through without removal of \ escapes INIT.
16683 if test -n "\${ZSH_VERSION+set}" ; then
16684 setopt NO_GLOB_SUBST
16688 PACKAGE='$PACKAGE'
16689 VERSION='$VERSION'
16690 TIMESTAMP='$TIMESTAMP'
16691 RM='$RM'
16692 ofile='$ofile'
16699 _ACEOF
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16703 # Handling of arguments.
16704 for ac_config_target in $ac_config_targets
16706 case $ac_config_target in
16707 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16708 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16711 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16712 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16713 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16714 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16715 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16716 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16717 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16720 esac
16721 done
16724 # If the user did not use the arguments to specify the items to instantiate,
16725 # then the envvar interface is used. Set only those that are not.
16726 # We use the long form for the default assignment because of an extremely
16727 # bizarre bug on SunOS 4.1.3.
16728 if $ac_need_defaults; then
16729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16734 # Have a temporary directory for convenience. Make it in the build tree
16735 # simply because there is no reason against having it here, and in addition,
16736 # creating and moving files from /tmp can sometimes cause problems.
16737 # Hook for its removal unless debugging.
16738 # Note that there is a small window in which the directory will not be cleaned:
16739 # after its creation but before its name has been assigned to `$tmp'.
16740 $debug ||
16742 tmp= ac_tmp=
16743 trap 'exit_status=$?
16744 : "${ac_tmp:=$tmp}"
16745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16747 trap 'as_fn_exit 1' 1 2 13 15
16749 # Create a (secure) tmp directory for tmp files.
16752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16753 test -d "$tmp"
16754 } ||
16756 tmp=./conf$$-$RANDOM
16757 (umask 077 && mkdir "$tmp")
16758 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16759 ac_tmp=$tmp
16761 # Set up the scripts for CONFIG_FILES section.
16762 # No need to generate them if there are no CONFIG_FILES.
16763 # This happens for instance with `./config.status config.h'.
16764 if test -n "$CONFIG_FILES"; then
16766 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16767 ac_cs_awk_getline=:
16768 ac_cs_awk_pipe_init=
16769 ac_cs_awk_read_file='
16770 while ((getline aline < (F[key])) > 0)
16771 print(aline)
16772 close(F[key])'
16773 ac_cs_awk_pipe_fini=
16774 else
16775 ac_cs_awk_getline=false
16776 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16777 ac_cs_awk_read_file='
16778 print "|#_!!_#|"
16779 print "cat " F[key] " &&"
16780 '$ac_cs_awk_pipe_init
16781 # The final `:' finishes the AND list.
16782 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16784 ac_cr=`echo X | tr X '\015'`
16785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16786 # But we know of no other shell where ac_cr would be empty at this
16787 # point, so we can use a bashism as a fallback.
16788 if test "x$ac_cr" = x; then
16789 eval ac_cr=\$\'\\r\'
16791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16793 ac_cs_awk_cr='\\r'
16794 else
16795 ac_cs_awk_cr=$ac_cr
16798 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16799 _ACEOF
16801 # Create commands to substitute file output variables.
16803 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16804 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16805 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16806 echo "_ACAWK" &&
16807 echo "_ACEOF"
16808 } >conf$$files.sh &&
16809 . ./conf$$files.sh ||
16810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811 rm -f conf$$files.sh
16814 echo "cat >conf$$subs.awk <<_ACEOF" &&
16815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16816 echo "_ACEOF"
16817 } >conf$$subs.sh ||
16818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16820 ac_delim='%!_!# '
16821 for ac_last_try in false false false false false :; do
16822 . ./conf$$subs.sh ||
16823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16826 if test $ac_delim_n = $ac_delim_num; then
16827 break
16828 elif $ac_last_try; then
16829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16830 else
16831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16833 done
16834 rm -f conf$$subs.sh
16836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16838 _ACEOF
16839 sed -n '
16841 s/^/S["/; s/!.*/"]=/
16844 s/^[^!]*!//
16845 :repl
16846 t repl
16847 s/'"$ac_delim"'$//
16848 t delim
16851 s/\(.\{148\}\)..*/\1/
16852 t more1
16853 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16856 b repl
16857 :more1
16858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16861 s/.\{148\}//
16862 t nl
16863 :delim
16865 s/\(.\{148\}\)..*/\1/
16866 t more2
16867 s/["\\]/\\&/g; s/^/"/; s/$/"/
16870 :more2
16871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16874 s/.\{148\}//
16875 t delim
16876 ' <conf$$subs.awk | sed '
16877 /^[^""]/{
16879 s/\n//
16881 ' >>$CONFIG_STATUS || ac_write_fail=1
16882 rm -f conf$$subs.awk
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 _ACAWK
16885 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16886 for (key in S) S_is_set[key] = 1
16887 FS = "\a"
16888 \$ac_cs_awk_pipe_init
16891 line = $ 0
16892 nfields = split(line, field, "@")
16893 substed = 0
16894 len = length(field[1])
16895 for (i = 2; i < nfields; i++) {
16896 key = field[i]
16897 keylen = length(key)
16898 if (S_is_set[key]) {
16899 value = S[key]
16900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16901 len += length(value) + length(field[++i])
16902 substed = 1
16903 } else
16904 len += 1 + keylen
16906 if (nfields == 3 && !substed) {
16907 key = field[2]
16908 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16909 \$ac_cs_awk_read_file
16910 next
16913 print line
16915 \$ac_cs_awk_pipe_fini
16916 _ACAWK
16917 _ACEOF
16918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16919 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16920 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16921 else
16923 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16924 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16925 _ACEOF
16927 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16928 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16929 # trailing colons and then remove the whole line if VPATH becomes empty
16930 # (actually we leave an empty line to preserve line numbers).
16931 if test "x$srcdir" = x.; then
16932 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16934 s///
16935 s/^/:/
16936 s/[ ]*$/:/
16937 s/:\$(srcdir):/:/g
16938 s/:\${srcdir}:/:/g
16939 s/:@srcdir@:/:/g
16940 s/^:*//
16941 s/:*$//
16943 s/\(=[ ]*\).*/\1/
16945 s/\n//
16946 s/^[^=]*=[ ]*$//
16950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16951 fi # test -n "$CONFIG_FILES"
16953 # Set up the scripts for CONFIG_HEADERS section.
16954 # No need to generate them if there are no CONFIG_HEADERS.
16955 # This happens for instance with `./config.status Makefile'.
16956 if test -n "$CONFIG_HEADERS"; then
16957 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16958 BEGIN {
16959 _ACEOF
16961 # Transform confdefs.h into an awk script `defines.awk', embedded as
16962 # here-document in config.status, that substitutes the proper values into
16963 # config.h.in to produce config.h.
16965 # Create a delimiter string that does not exist in confdefs.h, to ease
16966 # handling of long lines.
16967 ac_delim='%!_!# '
16968 for ac_last_try in false false :; do
16969 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16970 if test -z "$ac_tt"; then
16971 break
16972 elif $ac_last_try; then
16973 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16974 else
16975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16977 done
16979 # For the awk script, D is an array of macro values keyed by name,
16980 # likewise P contains macro parameters if any. Preserve backslash
16981 # newline sequences.
16983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16984 sed -n '
16985 s/.\{148\}/&'"$ac_delim"'/g
16986 t rset
16987 :rset
16988 s/^[ ]*#[ ]*define[ ][ ]*/ /
16989 t def
16991 :def
16992 s/\\$//
16993 t bsnl
16994 s/["\\]/\\&/g
16995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16996 D["\1"]=" \3"/p
16997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16999 :bsnl
17000 s/["\\]/\\&/g
17001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17002 D["\1"]=" \3\\\\\\n"\\/p
17003 t cont
17004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17005 t cont
17007 :cont
17009 s/.\{148\}/&'"$ac_delim"'/g
17010 t clear
17011 :clear
17012 s/\\$//
17013 t bsnlc
17014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17016 :bsnlc
17017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17018 b cont
17019 ' <confdefs.h | sed '
17020 s/'"$ac_delim"'/"\\\
17021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17024 for (key in D) D_is_set[key] = 1
17025 FS = "\a"
17027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17028 line = \$ 0
17029 split(line, arg, " ")
17030 if (arg[1] == "#") {
17031 defundef = arg[2]
17032 mac1 = arg[3]
17033 } else {
17034 defundef = substr(arg[1], 2)
17035 mac1 = arg[2]
17037 split(mac1, mac2, "(") #)
17038 macro = mac2[1]
17039 prefix = substr(line, 1, index(line, defundef) - 1)
17040 if (D_is_set[macro]) {
17041 # Preserve the white space surrounding the "#".
17042 print prefix "define", macro P[macro] D[macro]
17043 next
17044 } else {
17045 # Replace #undef with comments. This is necessary, for example,
17046 # in the case of _POSIX_SOURCE, which is predefined and required
17047 # on some systems where configure will not decide to define it.
17048 if (defundef == "undef") {
17049 print "/*", prefix defundef, macro, "*/"
17050 next
17054 { print }
17055 _ACAWK
17056 _ACEOF
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17058 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17059 fi # test -n "$CONFIG_HEADERS"
17062 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17063 shift
17064 for ac_tag
17066 case $ac_tag in
17067 :[FHLC]) ac_mode=$ac_tag; continue;;
17068 esac
17069 case $ac_mode$ac_tag in
17070 :[FHL]*:*);;
17071 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17072 :[FH]-) ac_tag=-:-;;
17073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17074 esac
17075 ac_save_IFS=$IFS
17076 IFS=:
17077 set x $ac_tag
17078 IFS=$ac_save_IFS
17079 shift
17080 ac_file=$1
17081 shift
17083 case $ac_mode in
17084 :L) ac_source=$1;;
17085 :[FH])
17086 ac_file_inputs=
17087 for ac_f
17089 case $ac_f in
17090 -) ac_f="$ac_tmp/stdin";;
17091 *) # Look for the file first in the build tree, then in the source tree
17092 # (if the path is not absolute). The absolute path cannot be DOS-style,
17093 # because $ac_f cannot contain `:'.
17094 test -f "$ac_f" ||
17095 case $ac_f in
17096 [\\/$]*) false;;
17097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17098 esac ||
17099 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17100 esac
17101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17102 as_fn_append ac_file_inputs " '$ac_f'"
17103 done
17105 # Let's still pretend it is `configure' which instantiates (i.e., don't
17106 # use $as_me), people would be surprised to read:
17107 # /* config.h. Generated by config.status. */
17108 configure_input='Generated from '`
17109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17110 `' by configure.'
17111 if test x"$ac_file" != x-; then
17112 configure_input="$ac_file. $configure_input"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17114 $as_echo "$as_me: creating $ac_file" >&6;}
17116 # Neutralize special characters interpreted by sed in replacement strings.
17117 case $configure_input in #(
17118 *\&* | *\|* | *\\* )
17119 ac_sed_conf_input=`$as_echo "$configure_input" |
17120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17121 *) ac_sed_conf_input=$configure_input;;
17122 esac
17124 case $ac_tag in
17125 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17127 esac
17129 esac
17131 ac_dir=`$as_dirname -- "$ac_file" ||
17132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17133 X"$ac_file" : 'X\(//\)[^/]' \| \
17134 X"$ac_file" : 'X\(//\)$' \| \
17135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17136 $as_echo X"$ac_file" |
17137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17138 s//\1/
17141 /^X\(\/\/\)[^/].*/{
17142 s//\1/
17145 /^X\(\/\/\)$/{
17146 s//\1/
17149 /^X\(\/\).*/{
17150 s//\1/
17153 s/.*/./; q'`
17154 as_dir="$ac_dir"; as_fn_mkdir_p
17155 ac_builddir=.
17157 case "$ac_dir" in
17158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17161 # A ".." for each directory in $ac_dir_suffix.
17162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17163 case $ac_top_builddir_sub in
17164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17166 esac ;;
17167 esac
17168 ac_abs_top_builddir=$ac_pwd
17169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17170 # for backward compatibility:
17171 ac_top_builddir=$ac_top_build_prefix
17173 case $srcdir in
17174 .) # We are building in place.
17175 ac_srcdir=.
17176 ac_top_srcdir=$ac_top_builddir_sub
17177 ac_abs_top_srcdir=$ac_pwd ;;
17178 [\\/]* | ?:[\\/]* ) # Absolute name.
17179 ac_srcdir=$srcdir$ac_dir_suffix;
17180 ac_top_srcdir=$srcdir
17181 ac_abs_top_srcdir=$srcdir ;;
17182 *) # Relative name.
17183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17184 ac_top_srcdir=$ac_top_build_prefix$srcdir
17185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17186 esac
17187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17190 case $ac_mode in
17193 # CONFIG_FILE
17196 case $INSTALL in
17197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17199 esac
17200 ac_MKDIR_P=$MKDIR_P
17201 case $MKDIR_P in
17202 [\\/$]* | ?:[\\/]* ) ;;
17203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17204 esac
17205 _ACEOF
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208 # If the template does not know about datarootdir, expand it.
17209 # FIXME: This hack should be removed a few years after 2.60.
17210 ac_datarootdir_hack=; ac_datarootdir_seen=
17211 ac_sed_dataroot='
17212 /datarootdir/ {
17216 /@datadir@/p
17217 /@docdir@/p
17218 /@infodir@/p
17219 /@localedir@/p
17220 /@mandir@/p'
17221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17222 *datarootdir*) ac_datarootdir_seen=yes;;
17223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17226 _ACEOF
17227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228 ac_datarootdir_hack='
17229 s&@datadir@&$datadir&g
17230 s&@docdir@&$docdir&g
17231 s&@infodir@&$infodir&g
17232 s&@localedir@&$localedir&g
17233 s&@mandir@&$mandir&g
17234 s&\\\${datarootdir}&$datarootdir&g' ;;
17235 esac
17236 _ACEOF
17238 # Neutralize VPATH when `$srcdir' = `.'.
17239 # Shell code in configure.ac might set extrasub.
17240 # FIXME: do we really want to maintain this feature?
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 ac_sed_extra="$ac_vpsub
17243 $extrasub
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17248 s|@configure_input@|$ac_sed_conf_input|;t t
17249 s&@top_builddir@&$ac_top_builddir_sub&;t t
17250 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17251 s&@srcdir@&$ac_srcdir&;t t
17252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17253 s&@top_srcdir@&$ac_top_srcdir&;t t
17254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17255 s&@builddir@&$ac_builddir&;t t
17256 s&@abs_builddir@&$ac_abs_builddir&;t t
17257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17258 s&@INSTALL@&$ac_INSTALL&;t t
17259 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17260 $ac_datarootdir_hack
17262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17263 if $ac_cs_awk_getline; then
17264 $AWK -f "$ac_tmp/subs.awk"
17265 else
17266 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17267 fi \
17268 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17271 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17273 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17275 which seems to be undefined. Please make sure it is defined" >&5
17276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17277 which seems to be undefined. Please make sure it is defined" >&2;}
17279 rm -f "$ac_tmp/stdin"
17280 case $ac_file in
17281 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17282 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17283 esac \
17284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17288 # CONFIG_HEADER
17290 if test x"$ac_file" != x-; then
17292 $as_echo "/* $configure_input */" \
17293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17294 } >"$ac_tmp/config.h" \
17295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17296 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17299 else
17300 rm -f "$ac_file"
17301 mv "$ac_tmp/config.h" "$ac_file" \
17302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17304 else
17305 $as_echo "/* $configure_input */" \
17306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17307 || as_fn_error $? "could not create -" "$LINENO" 5
17309 # Compute "$ac_file"'s index in $config_headers.
17310 _am_arg="$ac_file"
17311 _am_stamp_count=1
17312 for _am_header in $config_headers :; do
17313 case $_am_header in
17314 $_am_arg | $_am_arg:* )
17315 break ;;
17317 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17318 esac
17319 done
17320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17322 X"$_am_arg" : 'X\(//\)[^/]' \| \
17323 X"$_am_arg" : 'X\(//\)$' \| \
17324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17325 $as_echo X"$_am_arg" |
17326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17327 s//\1/
17330 /^X\(\/\/\)[^/].*/{
17331 s//\1/
17334 /^X\(\/\/\)$/{
17335 s//\1/
17338 /^X\(\/\).*/{
17339 s//\1/
17342 s/.*/./; q'`/stamp-h$_am_stamp_count
17345 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17346 $as_echo "$as_me: executing $ac_file commands" >&6;}
17348 esac
17351 case $ac_file$ac_mode in
17352 "default-1":C)
17353 # Only add multilib support code if we just rebuilt the top-level
17354 # Makefile.
17355 case " $CONFIG_FILES " in
17356 *" Makefile "*)
17357 ac_file=Makefile . ${multi_basedir}/config-ml.in
17359 esac ;;
17360 "libtool":C)
17362 # See if we are running on zsh, and set the options which allow our
17363 # commands through without removal of \ escapes.
17364 if test -n "${ZSH_VERSION+set}" ; then
17365 setopt NO_GLOB_SUBST
17368 cfgfile="${ofile}T"
17369 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17370 $RM "$cfgfile"
17372 cat <<_LT_EOF >> "$cfgfile"
17373 #! $SHELL
17375 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17376 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17381 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17382 # Written by Gordon Matzigkeit, 1996
17384 # This file is part of GNU Libtool.
17386 # GNU Libtool is free software; you can redistribute it and/or
17387 # modify it under the terms of the GNU General Public License as
17388 # published by the Free Software Foundation; either version 2 of
17389 # the License, or (at your option) any later version.
17391 # As a special exception to the GNU General Public License,
17392 # if you distribute this file as part of a program or library that
17393 # is built using GNU Libtool, you may include this file under the
17394 # same distribution terms that you use for the rest of that program.
17396 # GNU Libtool is distributed in the hope that it will be useful,
17397 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17398 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17399 # GNU General Public License for more details.
17401 # You should have received a copy of the GNU General Public License
17402 # along with GNU Libtool; see the file COPYING. If not, a copy
17403 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17404 # obtained by writing to the Free Software Foundation, Inc.,
17405 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17408 # The names of the tagged configurations supported by this script.
17409 available_tags="D "
17411 # ### BEGIN LIBTOOL CONFIG
17413 # Which release of libtool.m4 was used?
17414 macro_version=$macro_version
17415 macro_revision=$macro_revision
17417 # Whether or not to build shared libraries.
17418 build_libtool_libs=$enable_shared
17420 # Whether or not to build static libraries.
17421 build_old_libs=$enable_static
17423 # What type of objects to build.
17424 pic_mode=$pic_mode
17426 # Whether or not to optimize for fast installation.
17427 fast_install=$enable_fast_install
17429 # Shell to use when invoking shell scripts.
17430 SHELL=$lt_SHELL
17432 # An echo program that protects backslashes.
17433 ECHO=$lt_ECHO
17435 # The host system.
17436 host_alias=$host_alias
17437 host=$host
17438 host_os=$host_os
17440 # The build system.
17441 build_alias=$build_alias
17442 build=$build
17443 build_os=$build_os
17445 # A sed program that does not truncate output.
17446 SED=$lt_SED
17448 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17449 Xsed="\$SED -e 1s/^X//"
17451 # A grep program that handles long lines.
17452 GREP=$lt_GREP
17454 # An ERE matcher.
17455 EGREP=$lt_EGREP
17457 # A literal string matcher.
17458 FGREP=$lt_FGREP
17460 # A BSD- or MS-compatible name lister.
17461 NM=$lt_NM
17463 # Whether we need soft or hard links.
17464 LN_S=$lt_LN_S
17466 # What is the maximum length of a command?
17467 max_cmd_len=$max_cmd_len
17469 # Object file suffix (normally "o").
17470 objext=$ac_objext
17472 # Executable file suffix (normally "").
17473 exeext=$exeext
17475 # whether the shell understands "unset".
17476 lt_unset=$lt_unset
17478 # turn spaces into newlines.
17479 SP2NL=$lt_lt_SP2NL
17481 # turn newlines into spaces.
17482 NL2SP=$lt_lt_NL2SP
17484 # An object symbol dumper.
17485 OBJDUMP=$lt_OBJDUMP
17487 # Method to check whether dependent libraries are shared objects.
17488 deplibs_check_method=$lt_deplibs_check_method
17490 # Command to use when deplibs_check_method == "file_magic".
17491 file_magic_cmd=$lt_file_magic_cmd
17493 # The archiver.
17494 AR=$lt_AR
17495 AR_FLAGS=$lt_AR_FLAGS
17497 # A symbol stripping program.
17498 STRIP=$lt_STRIP
17500 # Commands used to install an old-style archive.
17501 RANLIB=$lt_RANLIB
17502 old_postinstall_cmds=$lt_old_postinstall_cmds
17503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17505 # Whether to use a lock for old archive extraction.
17506 lock_old_archive_extraction=$lock_old_archive_extraction
17508 # A C compiler.
17509 LTCC=$lt_CC
17511 # LTCC compiler flags.
17512 LTCFLAGS=$lt_CFLAGS
17514 # Take the output of nm and produce a listing of raw symbols and C names.
17515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17517 # Transform the output of nm in a proper C declaration.
17518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17520 # Transform the output of nm in a C name address pair.
17521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17523 # Transform the output of nm in a C name address pair when lib prefix is needed.
17524 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17526 # The name of the directory that contains temporary libtool files.
17527 objdir=$objdir
17529 # Used to examine libraries when file_magic_cmd begins with "file".
17530 MAGIC_CMD=$MAGIC_CMD
17532 # Must we lock files when doing compilation?
17533 need_locks=$lt_need_locks
17535 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17536 DSYMUTIL=$lt_DSYMUTIL
17538 # Tool to change global to local symbols on Mac OS X.
17539 NMEDIT=$lt_NMEDIT
17541 # Tool to manipulate fat objects and archives on Mac OS X.
17542 LIPO=$lt_LIPO
17544 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17545 OTOOL=$lt_OTOOL
17547 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17548 OTOOL64=$lt_OTOOL64
17550 # Old archive suffix (normally "a").
17551 libext=$libext
17553 # Shared library suffix (normally ".so").
17554 shrext_cmds=$lt_shrext_cmds
17556 # The commands to extract the exported symbol list from a shared archive.
17557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559 # Variables whose values should be saved in libtool wrapper scripts and
17560 # restored at link time.
17561 variables_saved_for_relink=$lt_variables_saved_for_relink
17563 # Do we need the "lib" prefix for modules?
17564 need_lib_prefix=$need_lib_prefix
17566 # Do we need a version for libraries?
17567 need_version=$need_version
17569 # Library versioning type.
17570 version_type=$version_type
17572 # Shared library runtime path variable.
17573 runpath_var=$runpath_var
17575 # Shared library path variable.
17576 shlibpath_var=$shlibpath_var
17578 # Is shlibpath searched before the hard-coded library search path?
17579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17581 # Format of library name prefix.
17582 libname_spec=$lt_libname_spec
17584 # List of archive names. First name is the real one, the rest are links.
17585 # The last name is the one that the linker finds with -lNAME
17586 library_names_spec=$lt_library_names_spec
17588 # The coded name of the library, if different from the real name.
17589 soname_spec=$lt_soname_spec
17591 # Permission mode override for installation of shared libraries.
17592 install_override_mode=$lt_install_override_mode
17594 # Command to use after installation of a shared archive.
17595 postinstall_cmds=$lt_postinstall_cmds
17597 # Command to use after uninstallation of a shared archive.
17598 postuninstall_cmds=$lt_postuninstall_cmds
17600 # Commands used to finish a libtool library installation in a directory.
17601 finish_cmds=$lt_finish_cmds
17603 # As "finish_cmds", except a single script fragment to be evaled but
17604 # not shown.
17605 finish_eval=$lt_finish_eval
17607 # Whether we should hardcode library paths into libraries.
17608 hardcode_into_libs=$hardcode_into_libs
17610 # Compile-time system search path for libraries.
17611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17613 # Run-time system search path for libraries.
17614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17616 # Whether dlopen is supported.
17617 dlopen_support=$enable_dlopen
17619 # Whether dlopen of programs is supported.
17620 dlopen_self=$enable_dlopen_self
17622 # Whether dlopen of statically linked programs is supported.
17623 dlopen_self_static=$enable_dlopen_self_static
17625 # Commands to strip libraries.
17626 old_striplib=$lt_old_striplib
17627 striplib=$lt_striplib
17630 # The linker used to build libraries.
17631 LD=$lt_LD
17633 # How to create reloadable object files.
17634 reload_flag=$lt_reload_flag
17635 reload_cmds=$lt_reload_cmds
17637 # Commands used to build an old-style archive.
17638 old_archive_cmds=$lt_old_archive_cmds
17640 # A language specific compiler.
17641 CC=$lt_compiler
17643 # Is the compiler the GNU compiler?
17644 with_gcc=$GCC
17646 # Compiler flag to turn off builtin functions.
17647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl
17652 # Additional compiler flags for building library objects.
17653 pic_flag=$lt_lt_prog_compiler_pic
17655 # Compiler flag to prevent dynamic linking.
17656 link_static_flag=$lt_lt_prog_compiler_static
17658 # Does compiler simultaneously support -c and -o options?
17659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17661 # Whether or not to add -lc for building shared libraries.
17662 build_libtool_need_lc=$archive_cmds_need_lc
17664 # Whether or not to disallow shared libs when runtime libs are static.
17665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17667 # Compiler flag to allow reflexive dlopens.
17668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17670 # Compiler flag to generate shared objects directly from archives.
17671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17673 # Whether the compiler copes with passing no objects directly.
17674 compiler_needs_object=$lt_compiler_needs_object
17676 # Create an old-style archive from a shared archive.
17677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17679 # Create a temporary old-style archive to link instead of a shared archive.
17680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17682 # Commands used to build a shared archive.
17683 archive_cmds=$lt_archive_cmds
17684 archive_expsym_cmds=$lt_archive_expsym_cmds
17686 # Commands used to build a loadable module if different from building
17687 # a shared archive.
17688 module_cmds=$lt_module_cmds
17689 module_expsym_cmds=$lt_module_expsym_cmds
17691 # Whether we are building with GNU ld or not.
17692 with_gnu_ld=$lt_with_gnu_ld
17694 # Flag that allows shared libraries with undefined symbols to be built.
17695 allow_undefined_flag=$lt_allow_undefined_flag
17697 # Flag that enforces no undefined symbols.
17698 no_undefined_flag=$lt_no_undefined_flag
17700 # Flag to hardcode \$libdir into a binary during linking.
17701 # This must work even if \$libdir does not exist
17702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17704 # If ld is used when linking, flag to hardcode \$libdir into a binary
17705 # during linking. This must work even if \$libdir does not exist.
17706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17708 # Whether we need a single "-rpath" flag with a separated argument.
17709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17712 # DIR into the resulting binary.
17713 hardcode_direct=$hardcode_direct
17715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17716 # DIR into the resulting binary and the resulting library dependency is
17717 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17718 # library is relocated.
17719 hardcode_direct_absolute=$hardcode_direct_absolute
17721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722 # into the resulting binary.
17723 hardcode_minus_L=$hardcode_minus_L
17725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726 # into the resulting binary.
17727 hardcode_shlibpath_var=$hardcode_shlibpath_var
17729 # Set to "yes" if building a shared library automatically hardcodes DIR
17730 # into the library and all subsequent libraries and executables linked
17731 # against it.
17732 hardcode_automatic=$hardcode_automatic
17734 # Set to yes if linker adds runtime paths of dependent libraries
17735 # to runtime path list.
17736 inherit_rpath=$inherit_rpath
17738 # Whether libtool must link a program against all its dependency libraries.
17739 link_all_deplibs=$link_all_deplibs
17741 # Fix the shell variable \$srcfile for the compiler.
17742 fix_srcfile_path=$lt_fix_srcfile_path
17744 # Set to "yes" if exported symbols are required.
17745 always_export_symbols=$always_export_symbols
17747 # The commands to list exported symbols.
17748 export_symbols_cmds=$lt_export_symbols_cmds
17750 # Symbols that should not be listed in the preloaded symbols.
17751 exclude_expsyms=$lt_exclude_expsyms
17753 # Symbols that must always be exported.
17754 include_expsyms=$lt_include_expsyms
17756 # Commands necessary for linking programs (against libraries) with templates.
17757 prelink_cmds=$lt_prelink_cmds
17759 # Specify filename containing input files.
17760 file_list_spec=$lt_file_list_spec
17762 # How to hardcode a shared library path into an executable.
17763 hardcode_action=$hardcode_action
17765 # ### END LIBTOOL CONFIG
17767 _LT_EOF
17769 case $host_os in
17770 aix3*)
17771 cat <<\_LT_EOF >> "$cfgfile"
17772 # AIX sometimes has problems with the GCC collect2 program. For some
17773 # reason, if we set the COLLECT_NAMES environment variable, the problems
17774 # vanish in a puff of smoke.
17775 if test "X${COLLECT_NAMES+set}" != Xset; then
17776 COLLECT_NAMES=
17777 export COLLECT_NAMES
17779 _LT_EOF
17781 esac
17784 ltmain="$ac_aux_dir/ltmain.sh"
17787 # We use sed instead of cat because bash on DJGPP gets confused if
17788 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17789 # text mode, it properly converts lines to CR/LF. This bash problem
17790 # is reportedly fixed, but why not run on old versions too?
17791 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17792 || (rm -f "$cfgfile"; exit 1)
17794 case $xsi_shell in
17795 yes)
17796 cat << \_LT_EOF >> "$cfgfile"
17798 # func_dirname file append nondir_replacement
17799 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17800 # otherwise set result to NONDIR_REPLACEMENT.
17801 func_dirname ()
17803 case ${1} in
17804 */*) func_dirname_result="${1%/*}${2}" ;;
17805 * ) func_dirname_result="${3}" ;;
17806 esac
17809 # func_basename file
17810 func_basename ()
17812 func_basename_result="${1##*/}"
17815 # func_dirname_and_basename file append nondir_replacement
17816 # perform func_basename and func_dirname in a single function
17817 # call:
17818 # dirname: Compute the dirname of FILE. If nonempty,
17819 # add APPEND to the result, otherwise set result
17820 # to NONDIR_REPLACEMENT.
17821 # value returned in "$func_dirname_result"
17822 # basename: Compute filename of FILE.
17823 # value retuned in "$func_basename_result"
17824 # Implementation must be kept synchronized with func_dirname
17825 # and func_basename. For efficiency, we do not delegate to
17826 # those functions but instead duplicate the functionality here.
17827 func_dirname_and_basename ()
17829 case ${1} in
17830 */*) func_dirname_result="${1%/*}${2}" ;;
17831 * ) func_dirname_result="${3}" ;;
17832 esac
17833 func_basename_result="${1##*/}"
17836 # func_stripname prefix suffix name
17837 # strip PREFIX and SUFFIX off of NAME.
17838 # PREFIX and SUFFIX must not contain globbing or regex special
17839 # characters, hashes, percent signs, but SUFFIX may contain a leading
17840 # dot (in which case that matches only a dot).
17841 func_stripname ()
17843 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17844 # positional parameters, so assign one to ordinary parameter first.
17845 func_stripname_result=${3}
17846 func_stripname_result=${func_stripname_result#"${1}"}
17847 func_stripname_result=${func_stripname_result%"${2}"}
17850 # func_opt_split
17851 func_opt_split ()
17853 func_opt_split_opt=${1%%=*}
17854 func_opt_split_arg=${1#*=}
17857 # func_lo2o object
17858 func_lo2o ()
17860 case ${1} in
17861 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17862 *) func_lo2o_result=${1} ;;
17863 esac
17866 # func_xform libobj-or-source
17867 func_xform ()
17869 func_xform_result=${1%.*}.lo
17872 # func_arith arithmetic-term...
17873 func_arith ()
17875 func_arith_result=$(( $* ))
17878 # func_len string
17879 # STRING may not start with a hyphen.
17880 func_len ()
17882 func_len_result=${#1}
17885 _LT_EOF
17887 *) # Bourne compatible functions.
17888 cat << \_LT_EOF >> "$cfgfile"
17890 # func_dirname file append nondir_replacement
17891 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17892 # otherwise set result to NONDIR_REPLACEMENT.
17893 func_dirname ()
17895 # Extract subdirectory from the argument.
17896 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17897 if test "X$func_dirname_result" = "X${1}"; then
17898 func_dirname_result="${3}"
17899 else
17900 func_dirname_result="$func_dirname_result${2}"
17904 # func_basename file
17905 func_basename ()
17907 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
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_strip_suffix prefix name
17917 func_stripname ()
17919 case ${2} in
17920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17922 esac
17925 # sed scripts:
17926 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17927 my_sed_long_arg='1s/^-[^=]*=//'
17929 # func_opt_split
17930 func_opt_split ()
17932 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17933 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17936 # func_lo2o object
17937 func_lo2o ()
17939 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17942 # func_xform libobj-or-source
17943 func_xform ()
17945 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17948 # func_arith arithmetic-term...
17949 func_arith ()
17951 func_arith_result=`expr "$@"`
17954 # func_len string
17955 # STRING may not start with a hyphen.
17956 func_len ()
17958 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17961 _LT_EOF
17962 esac
17964 case $lt_shell_append in
17965 yes)
17966 cat << \_LT_EOF >> "$cfgfile"
17968 # func_append var value
17969 # Append VALUE to the end of shell variable VAR.
17970 func_append ()
17972 eval "$1+=\$2"
17974 _LT_EOF
17977 cat << \_LT_EOF >> "$cfgfile"
17979 # func_append var value
17980 # Append VALUE to the end of shell variable VAR.
17981 func_append ()
17983 eval "$1=\$$1\$2"
17986 _LT_EOF
17988 esac
17991 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17992 || (rm -f "$cfgfile"; exit 1)
17994 mv -f "$cfgfile" "$ofile" ||
17995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17996 chmod +x "$ofile"
17999 cat <<_LT_EOF >> "$ofile"
18001 # ### BEGIN LIBTOOL TAG CONFIG: D
18003 # The linker used to build libraries.
18004 LD=$lt_LD_D
18006 # How to create reloadable object files.
18007 reload_flag=$lt_reload_flag_D
18008 reload_cmds=$lt_reload_cmds_D
18010 # Commands used to build an old-style archive.
18011 old_archive_cmds=$lt_old_archive_cmds_D
18013 # A language specific compiler.
18014 CC=$lt_compiler_D
18016 # Is the compiler the GNU compiler?
18017 with_gcc=$GCC_D
18019 # Compiler flag to turn off builtin functions.
18020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18022 # How to pass a linker flag through the compiler.
18023 wl=$lt_lt_prog_compiler_wl_D
18025 # Additional compiler flags for building library objects.
18026 pic_flag=$lt_lt_prog_compiler_pic_D
18028 # Compiler flag to prevent dynamic linking.
18029 link_static_flag=$lt_lt_prog_compiler_static_D
18031 # Does compiler simultaneously support -c and -o options?
18032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18034 # Whether or not to add -lc for building shared libraries.
18035 build_libtool_need_lc=$archive_cmds_need_lc_D
18037 # Whether or not to disallow shared libs when runtime libs are static.
18038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18040 # Compiler flag to allow reflexive dlopens.
18041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18043 # Compiler flag to generate shared objects directly from archives.
18044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18046 # Whether the compiler copes with passing no objects directly.
18047 compiler_needs_object=$lt_compiler_needs_object_D
18049 # Create an old-style archive from a shared archive.
18050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18052 # Create a temporary old-style archive to link instead of a shared archive.
18053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18055 # Commands used to build a shared archive.
18056 archive_cmds=$lt_archive_cmds_D
18057 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18059 # Commands used to build a loadable module if different from building
18060 # a shared archive.
18061 module_cmds=$lt_module_cmds_D
18062 module_expsym_cmds=$lt_module_expsym_cmds_D
18064 # Whether we are building with GNU ld or not.
18065 with_gnu_ld=$lt_with_gnu_ld_D
18067 # Flag that allows shared libraries with undefined symbols to be built.
18068 allow_undefined_flag=$lt_allow_undefined_flag_D
18070 # Flag that enforces no undefined symbols.
18071 no_undefined_flag=$lt_no_undefined_flag_D
18073 # Flag to hardcode \$libdir into a binary during linking.
18074 # This must work even if \$libdir does not exist
18075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18077 # If ld is used when linking, flag to hardcode \$libdir into a binary
18078 # during linking. This must work even if \$libdir does not exist.
18079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18081 # Whether we need a single "-rpath" flag with a separated argument.
18082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18085 # DIR into the resulting binary.
18086 hardcode_direct=$hardcode_direct_D
18088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18089 # DIR into the resulting binary and the resulting library dependency is
18090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18091 # library is relocated.
18092 hardcode_direct_absolute=$hardcode_direct_absolute_D
18094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18095 # into the resulting binary.
18096 hardcode_minus_L=$hardcode_minus_L_D
18098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18099 # into the resulting binary.
18100 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18102 # Set to "yes" if building a shared library automatically hardcodes DIR
18103 # into the library and all subsequent libraries and executables linked
18104 # against it.
18105 hardcode_automatic=$hardcode_automatic_D
18107 # Set to yes if linker adds runtime paths of dependent libraries
18108 # to runtime path list.
18109 inherit_rpath=$inherit_rpath_D
18111 # Whether libtool must link a program against all its dependency libraries.
18112 link_all_deplibs=$link_all_deplibs_D
18114 # Fix the shell variable \$srcfile for the compiler.
18115 fix_srcfile_path=$lt_fix_srcfile_path_D
18117 # Set to "yes" if exported symbols are required.
18118 always_export_symbols=$always_export_symbols_D
18120 # The commands to list exported symbols.
18121 export_symbols_cmds=$lt_export_symbols_cmds_D
18123 # Symbols that should not be listed in the preloaded symbols.
18124 exclude_expsyms=$lt_exclude_expsyms_D
18126 # Symbols that must always be exported.
18127 include_expsyms=$lt_include_expsyms_D
18129 # Commands necessary for linking programs (against libraries) with templates.
18130 prelink_cmds=$lt_prelink_cmds_D
18132 # Specify filename containing input files.
18133 file_list_spec=$lt_file_list_spec_D
18135 # How to hardcode a shared library path into an executable.
18136 hardcode_action=$hardcode_action_D
18138 # ### END LIBTOOL TAG CONFIG: D
18139 _LT_EOF
18142 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18143 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18144 s!`test -f '$<' || echo '$(srcdir)/'`!!
18145 _EOF
18146 sed -f vpsed$$ $ac_file > tmp$$
18147 mv tmp$$ $ac_file
18148 rm vpsed$$
18149 echo 'MULTISUBDIR =' >> $ac_file
18150 ml_norecursion=yes
18151 . ${multi_basedir}/config-ml.in
18152 { ml_norecursion=; unset ml_norecursion;}
18154 "src/Makefile":F) cat > vpsed$$ << \_EOF
18155 s!`test -f '$<' || echo '$(srcdir)/'`!!
18156 _EOF
18157 sed -f vpsed$$ $ac_file > tmp$$
18158 mv tmp$$ $ac_file
18159 rm vpsed$$
18160 echo 'MULTISUBDIR =' >> $ac_file
18161 ml_norecursion=yes
18162 . ${multi_basedir}/config-ml.in
18163 { ml_norecursion=; unset ml_norecursion;}
18165 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18166 s!`test -f '$<' || echo '$(srcdir)/'`!!
18167 _EOF
18168 sed -f vpsed$$ $ac_file > tmp$$
18169 mv tmp$$ $ac_file
18170 rm vpsed$$
18171 echo 'MULTISUBDIR =' >> $ac_file
18172 ml_norecursion=yes
18173 . ${multi_basedir}/config-ml.in
18174 { ml_norecursion=; unset ml_norecursion;}
18177 esac
18178 done # for ac_tag
18181 as_fn_exit 0
18182 _ACEOF
18183 ac_clean_files=$ac_clean_files_save
18185 test $ac_write_fail = 0 ||
18186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18189 # configure is writing to config.log, and then calls config.status.
18190 # config.status does its own redirection, appending to config.log.
18191 # Unfortunately, on DOS this fails, as config.log is still kept open
18192 # by configure, so config.status won't be able to write to it; its
18193 # output is simply discarded. So we exec the FD to /dev/null,
18194 # effectively closing config.log, so it can be properly (re)opened and
18195 # appended to by config.status. When coming back to configure, we
18196 # need to make the FD available again.
18197 if test "$no_create" != yes; then
18198 ac_cs_success=:
18199 ac_config_status_args=
18200 test "$silent" = yes &&
18201 ac_config_status_args="$ac_config_status_args --quiet"
18202 exec 5>/dev/null
18203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18204 exec 5>>config.log
18205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18206 # would make configure fail if this is the last instruction.
18207 $ac_cs_success || as_fn_exit 1
18209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}