]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
[thirdparty/gcc.git] / libphobos / configure
CommitLineData
03385ed3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libphobos'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="libdruntime/gcc/attribute.d"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605GDCFLAGSX
606PHOBOS_SOVERSION
607DRUNTIME_SOVERSION
608SPEC_PHOBOS_DEPS
609gdc_include_dir
610toolexeclibdir
611toolexecdir
612gcc_version
613DRUNTIME_ZLIB_SYSTEM_FALSE
614DRUNTIME_ZLIB_SYSTEM_TRUE
615BACKTRACE_SUPPORTS_THREADS
616BACKTRACE_USES_MALLOC
617BACKTRACE_SUPPORTED
618LIBBACKTRACE
619LIBATOMIC
620DCFG_HAVE_LIBATOMIC
621DCFG_HAVE_64BIT_ATOMICS
622DCFG_HAVE_ATOMIC_BUILTINS
623DCFG_MINFO_BRACKETING
624DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
625DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
626DCFG_ARM_EABI_UNWINDER
627DCFG_THREAD_MODEL
628DRUNTIME_OS_SOLARIS_FALSE
629DRUNTIME_OS_SOLARIS_TRUE
630DRUNTIME_OS_MINGW_FALSE
631DRUNTIME_OS_MINGW_TRUE
632DRUNTIME_OS_LINUX_FALSE
633DRUNTIME_OS_LINUX_TRUE
634DRUNTIME_OS_OPENBSD_FALSE
635DRUNTIME_OS_OPENBSD_TRUE
636DRUNTIME_OS_NETBSD_FALSE
637DRUNTIME_OS_NETBSD_TRUE
638DRUNTIME_OS_FREEBSD_FALSE
639DRUNTIME_OS_FREEBSD_TRUE
640DRUNTIME_OS_DRAGONFLYBSD_FALSE
641DRUNTIME_OS_DRAGONFLYBSD_TRUE
642DRUNTIME_OS_DARWIN_FALSE
643DRUNTIME_OS_DARWIN_TRUE
644DRUNTIME_OS_ANDROID_FALSE
645DRUNTIME_OS_ANDROID_TRUE
646DRUNTIME_OS_AIX_FALSE
647DRUNTIME_OS_AIX_TRUE
648DRUNTIME_OS_UNIX_FALSE
649DRUNTIME_OS_UNIX_TRUE
650DRUNTIME_GC_ENABLE_FALSE
651DRUNTIME_GC_ENABLE_TRUE
652libphobos_srcdir
653libphobos_builddir
654get_gcc_base_ver
655phobos_compiler_shared_flag
656phobos_compiler_pic_flag
657ENABLE_STATIC_FALSE
658ENABLE_STATIC_TRUE
659ENABLE_SHARED_FALSE
660ENABLE_SHARED_TRUE
661CPP
662OTOOL64
663OTOOL
664LIPO
665NMEDIT
666DSYMUTIL
667OBJDUMP
668LN_S
669NM
670ac_ct_DUMPBIN
671DUMPBIN
672LD
673FGREP
674EGREP
675GREP
676SED
677LIBTOOL
678CFLAGS_FOR_BUILD
679CC_FOR_BUILD
680AR
681RANLIB
682MAINT
683MAINTAINER_MODE_FALSE
684MAINTAINER_MODE_TRUE
685GDCFLAGS
686GDC
687CCASFLAGS
688CCAS
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731multi_basedir
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_multilib
774enable_maintainer_mode
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780enable_libtool_lock
781with_gcc_major_version_only
782enable_werror
783enable_druntime_gc
784enable_unix
785enable_thread_lib
786with_libatomic
787with_libbacktrace
788with_target_system_zlib
789with_cross_host
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CPP
795CPPFLAGS'
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909"enable_$ac_useropt"
910"*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935"enable_$ac_useropt"
936"*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1145
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information."
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 ;;
1201
1202 esac
1203done
1204
1205if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1223do
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1301 fi
1302else
1303 ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390_ACEOF
1391
1392 cat <<\_ACEOF
1393
1394Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of package-unused version-unused:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-multilib build many library versions (default)
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-werror turns on -Werror [default=no]
1425 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1426 --enable-unix enables Unix runtime (default: yes, for Unix
1427 targets)
1428 --enable-thread-lib=<arg>
1429 specify linker option for the system thread library
1430 (default: autodetect)
1431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-gcc-major-version-only
1439 use only GCC major number in filesystem paths
1440 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1441 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1442 auto)
1443 --with-target-system-zlib
1444 use installed libz (default: no)
1445 --with-cross-host=HOST configuring with a cross compiler
1446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CCAS assembler compiler command (defaults to CC)
1456 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1457 GDC D compiler command
1458 GDCFLAGS D compiler flags
1459 CPP C preprocessor
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to the package provider.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522fi
1523
1524test -n "$ac_init_help" && exit $ac_status
1525if $ac_init_version; then
1526 cat <<\_ACEOF
1527package-unused configure version-unused
1528generated by GNU Autoconf 2.64
1529
1530Copyright (C) 2009 Free Software Foundation, Inc.
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
1534 exit
1535fi
1536
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
1540
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
1545{
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568else
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573fi
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_d_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_d_try_compile ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_d_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615} # ac_fn_d_try_compile
1616
1617# ac_fn_c_try_link LINENO
1618# -----------------------
1619# Try to link conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_link ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 $as_test_x conftest$ac_exeext
1645 }; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652fi
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 return $ac_retval
1660
1661} # ac_fn_c_try_link
1662
1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists and can be compiled using the include files in
1666# INCLUDES, setting the cache variable VAR accordingly.
1667ac_fn_c_check_header_compile ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 $as_echo_n "(cached) " >&6
1674else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682else
1683 eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691
1692} # ac_fn_c_check_header_compile
1693
1694# ac_fn_c_try_cpp LINENO
1695# ----------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_cpp ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev/null && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_cpp
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status
1766fi
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_func LINENO FUNC VAR
1774# ----------------------------------
1775# Tests whether FUNC exists, setting the cache variable VAR accordingly
1776ac_fn_c_check_func ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788#define $2 innocuous_$2
1789
1790/* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1794
1795#ifdef __STDC__
1796# include <limits.h>
1797#else
1798# include <assert.h>
1799#endif
1800
1801#undef $2
1802
1803/* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806#ifdef __cplusplus
1807extern "C"
1808#endif
1809char $2 ();
1810/* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813#if defined __stub_$2 || defined __stub___$2
1814choke me
1815#endif
1816
1817int
1818main ()
1819{
1820return $2 ();
1821 ;
1822 return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827else
1828 eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
1838} # ac_fn_c_check_func
1839
1840# ac_fn_d_try_link LINENO
1841# -----------------------
1842# Try to link conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_d_try_link ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1848case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_d_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 $as_test_x conftest$ac_exeext
1868 }; then :
1869 ac_retval=0
1870else
1871 $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=1
1875fi
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884} # ac_fn_d_try_link
1885
1886# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887# -------------------------------------------------------
1888# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889# the include files in INCLUDES and setting the cache variable VAR
1890# accordingly.
1891ac_fn_c_check_header_mongrel ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899fi
1900eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903else
1904 # Is the header compilable?
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906$as_echo_n "checking $2 usability... " >&6; }
1907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909$4
1910#include <$2>
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914else
1915 ac_header_compiler=no
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919$as_echo "$ac_header_compiler" >&6; }
1920
1921# Is the header present?
1922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923$as_echo_n "checking $2 presence... " >&6; }
1924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930else
1931 ac_header_preproc=no
1932fi
1933rm -f conftest.err conftest.$ac_ext
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935$as_echo "$ac_header_preproc" >&6; }
1936
1937# So? What about this header?
1938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962else
1963 eval "$3=\$ac_header_compiler"
1964fi
1965eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971} # ac_fn_c_check_header_mongrel
1972cat >config.log <<_ACEOF
1973This file contains any messages produced by compilers while
1974running configure, to aid debugging if configure makes a mistake.
1975
1976It was created by package-unused $as_me version-unused, which was
1977generated by GNU Autoconf 2.64. Invocation command line was
1978
1979 $ $0 $@
1980
1981_ACEOF
1982exec 5>>config.log
1983{
1984cat <<_ASUNAME
1985## --------- ##
1986## Platform. ##
1987## --------- ##
1988
1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006_ASUNAME
2007
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015IFS=$as_save_IFS
2016
2017} >&5
2018
2019cat >&5 <<_ACEOF
2020
2021
2022## ----------- ##
2023## Core tests. ##
2024## ----------- ##
2025
2026_ACEOF
2027
2028
2029# Keep a trace of the command line.
2030# Strip out --no-create and --no-recursion so they do not pile up.
2031# Strip out --silent because we don't want to record it for future runs.
2032# Also quote any args containing shell meta-characters.
2033# Make two passes to allow for proper duplicate-argument suppression.
2034ac_configure_args=
2035ac_configure_args0=
2036ac_configure_args1=
2037ac_must_keep_next=false
2038for ac_pass in 1 2
2039do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073done
2074{ ac_configure_args0=; unset ac_configure_args0;}
2075{ ac_configure_args1=; unset ac_configure_args1;}
2076
2077# When interrupted or exit'd, cleanup temporary files, and complete
2078# config.log. We remove comments because anyway the quotes in there
2079# would cause problems or look ugly.
2080# WARNING: Use '\'' to represent an apostrophe within the trap.
2081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 cat <<\_ASBOX
2088## ---------------- ##
2089## Cache variables. ##
2090## ---------------- ##
2091_ASBOX
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2094(
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2117 *)
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2119 ;;
2120 esac |
2121 sort
2122)
2123 echo
2124
2125 cat <<\_ASBOX
2126## ----------------- ##
2127## Output variables. ##
2128## ----------------- ##
2129_ASBOX
2130 echo
2131 for ac_var in $ac_subst_vars
2132 do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2140
2141 if test -n "$ac_subst_files"; then
2142 cat <<\_ASBOX
2143## ------------------- ##
2144## File substitutions. ##
2145## ------------------- ##
2146_ASBOX
2147 echo
2148 for ac_var in $ac_subst_files
2149 do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2157 fi
2158
2159 if test -s confdefs.h; then
2160 cat <<\_ASBOX
2161## ----------- ##
2162## confdefs.h. ##
2163## ----------- ##
2164_ASBOX
2165 echo
2166 cat confdefs.h
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2176' 0
2177for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179done
2180ac_signal=0
2181
2182# confdefs.h avoids OS command line length limits that DEFS can exceed.
2183rm -f -r conftest* confdefs.h
2184
2185$as_echo "/* confdefs.h */" > confdefs.h
2186
2187# Predefined preprocessor variables.
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_NAME "$PACKAGE_NAME"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_STRING "$PACKAGE_STRING"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_URL "$PACKAGE_URL"
2211_ACEOF
2212
2213
2214# Let the site file select an alternate cache file if it wants to.
2215# Prefer an explicitly selected file to automatically selected ones.
2216ac_site_file1=NONE
2217ac_site_file2=NONE
2218if test -n "$CONFIG_SITE"; then
2219 ac_site_file1=$CONFIG_SITE
2220elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226fi
2227for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file"
2235 fi
2236done
2237
2238if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special
2240 # files actually), so we avoid doing that.
2241 if test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243$as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251$as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253fi
2254
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304done
2305if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311fi
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324
2325
2326
2327ac_config_headers="$ac_config_headers config.h"
2328
2329
2330# Default to --enable-multilib
2331# Check whether --enable-multilib was given.
2332if test "${enable_multilib+set}" = set; then :
2333 enableval=$enable_multilib; case "$enableval" in
2334 yes) multilib=yes ;;
2335 no) multilib=no ;;
2336 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2337 esac
2338else
2339 multilib=yes
2340fi
2341
2342
2343# We may get other options which we leave undocumented:
2344# --with-target-subdir, --with-multisrctop, --with-multisubdir
2345# See config-ml.in if you want the gory details.
2346
2347if test "$srcdir" = "."; then
2348 if test "$with_target_subdir" != "."; then
2349 multi_basedir="$srcdir/$with_multisrctop../.."
2350 else
2351 multi_basedir="$srcdir/$with_multisrctop.."
2352 fi
2353else
2354 multi_basedir="$srcdir/.."
2355fi
2356
2357
2358# Even if the default multilib is not a cross compilation,
2359# it may be that some of the other multilibs are.
2360if test $cross_compiling = no && test $multilib = yes \
2361 && test "x${with_multisubdir}" != x ; then
2362 cross_compiling=maybe
2363fi
2364
2365ac_config_commands="$ac_config_commands default-1"
2366
2367ac_aux_dir=
2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 for ac_t in install-sh install.sh shtool; do
2370 if test -f "$ac_dir/$ac_t"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/$ac_t -c"
2373 break 2
2374 fi
2375 done
2376done
2377if test -z "$ac_aux_dir"; then
2378 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379fi
2380
2381# These three variables are undocumented and unsupported,
2382# and are intended to be withdrawn in a future Autoconf release.
2383# They can cause serious problems if a builder's source tree is in a directory
2384# whose full name contains unusual characters.
2385ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388
2389
2390# Make sure we can run config.sub.
2391$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2392 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2393
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395$as_echo_n "checking build system type... " >&6; }
2396if test "${ac_cv_build+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398else
2399 ac_build_alias=$build_alias
2400test "x$ac_build_alias" = x &&
2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2402test "x$ac_build_alias" = x &&
2403 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2404ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2405 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409$as_echo "$ac_cv_build" >&6; }
2410case $ac_cv_build in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2413esac
2414build=$ac_cv_build
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_build
2417shift
2418build_cpu=$1
2419build_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423build_os=$*
2424IFS=$ac_save_IFS
2425case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2429$as_echo_n "checking host system type... " >&6; }
2430if test "${ac_cv_host+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 if test "x$host_alias" = x; then
2434 ac_cv_host=$ac_cv_build
2435else
2436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2438fi
2439
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2442$as_echo "$ac_cv_host" >&6; }
2443case $ac_cv_host in
2444*-*-*) ;;
2445*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2446esac
2447host=$ac_cv_host
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_host
2450shift
2451host_cpu=$1
2452host_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456host_os=$*
2457IFS=$ac_save_IFS
2458case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459
2460
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2462$as_echo_n "checking target system type... " >&6; }
2463if test "${ac_cv_target+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2465else
2466 if test "x$target_alias" = x; then
2467 ac_cv_target=$ac_cv_host
2468else
2469 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2470 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2471fi
2472
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2475$as_echo "$ac_cv_target" >&6; }
2476case $ac_cv_target in
2477*-*-*) ;;
2478*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2479esac
2480target=$ac_cv_target
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_target
2483shift
2484target_cpu=$1
2485target_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489target_os=$*
2490IFS=$ac_save_IFS
2491case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2492
2493
2494# The aliases save the names the user supplied, while $host etc.
2495# will get canonicalized.
2496test -n "$target_alias" &&
2497 test "$program_prefix$program_suffix$program_transform_name" = \
2498 NONENONEs,x,x, &&
2499 program_prefix=${target_alias}-
2500
2501
2502target_alias=${target_alias-$target}
2503
2504
2505# 1.11.1: Require that version of automake.
2506# foreign: Don't require README, INSTALL, NEWS, etc.
2507# no-define: Don't define PACKAGE and VERSION.
2508# no-dependencies: Don't generate automatic dependencies.
2509# (because it breaks when using bootstrap-lean, since some of the
2510# headers are gone at "make install" time).
2511# -Wall: Issue all automake warnings.
2512# -Wno-portability: Don't warn about constructs supported by GNU make.
2513# (because GCC requires GNU make anyhow).
2514am__api_version='1.11'
2515
2516# Find a good install program. We prefer a C program (faster),
2517# so one script is as good as another. But avoid the broken or
2518# incompatible versions:
2519# SysV /etc/install, /usr/sbin/install
2520# SunOS /usr/etc/install
2521# IRIX /sbin/install
2522# AIX /bin/install
2523# AmigaOS /C/install, which installs bootblocks on floppy discs
2524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527# OS/2's system install, which has a completely different semantic
2528# ./install, which can be erroneously created by make from ./install.sh.
2529# Reject install programs that cannot install multiple files.
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2531$as_echo_n "checking for a BSD-compatible install... " >&6; }
2532if test -z "$INSTALL"; then
2533if test "${ac_cv_path_install+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2535else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 # Account for people who put trailing slashes in PATH elements.
2542case $as_dir/ in #((
2543 ./ | .// | /[cC]/* | \
2544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546 /usr/ucb/* ) ;;
2547 *)
2548 # OSF1 and SCO ODT 3.0 have their own names for install.
2549 # Don't use installbsd from OSF since it installs stuff as root
2550 # by default.
2551 for ac_prog in ginstall scoinst install; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2554 if test $ac_prog = install &&
2555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # AIX install. It has an incompatible calling convention.
2557 :
2558 elif test $ac_prog = install &&
2559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # program-specific install script used by HP pwplus--don't use.
2561 :
2562 else
2563 rm -rf conftest.one conftest.two conftest.dir
2564 echo one > conftest.one
2565 echo two > conftest.two
2566 mkdir conftest.dir
2567 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2568 test -s conftest.one && test -s conftest.two &&
2569 test -s conftest.dir/conftest.one &&
2570 test -s conftest.dir/conftest.two
2571 then
2572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2573 break 3
2574 fi
2575 fi
2576 fi
2577 done
2578 done
2579 ;;
2580esac
2581
2582 done
2583IFS=$as_save_IFS
2584
2585rm -rf conftest.one conftest.two conftest.dir
2586
2587fi
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL=$ac_cv_path_install
2590 else
2591 # As a last resort, use the slow shell script. Don't cache a
2592 # value for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the value is a relative name.
2595 INSTALL=$ac_install_sh
2596 fi
2597fi
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599$as_echo "$INSTALL" >&6; }
2600
2601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602# It thinks the first close brace ends the variable substitution.
2603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604
2605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606
2607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610$as_echo_n "checking whether build environment is sane... " >&6; }
2611# Just in case
2612sleep 1
2613echo timestamp > conftest.file
2614# Reject unsafe characters in $srcdir or the absolute working directory
2615# name. Accept space and tab only in the latter.
2616am_lf='
2617'
2618case `pwd` in
2619 *[\\\"\#\$\&\'\`$am_lf]*)
2620 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2621esac
2622case $srcdir in
2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2624 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2625esac
2626
2627# Do `set' in a subshell so we don't clobber the current shell's
2628# arguments. Must try -L first in case configure is actually a
2629# symlink; some systems play weird games with the mod time of symlinks
2630# (eg FreeBSD returns the mod time of the symlink's containing
2631# directory).
2632if (
2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2634 if test "$*" = "X"; then
2635 # -L didn't work.
2636 set X `ls -t "$srcdir/configure" conftest.file`
2637 fi
2638 rm -f conftest.file
2639 if test "$*" != "X $srcdir/configure conftest.file" \
2640 && test "$*" != "X conftest.file $srcdir/configure"; then
2641
2642 # If neither matched, then we have a broken ls. This can happen
2643 # if, for instance, CONFIG_SHELL is bash and it inherits a
2644 # broken ls alias from the environment. This has actually
2645 # happened. Such a system could not be considered "sane".
2646 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2647alias in your environment" "$LINENO" 5
2648 fi
2649
2650 test "$2" = conftest.file
2651 )
2652then
2653 # Ok.
2654 :
2655else
2656 as_fn_error "newly created file is older than distributed files!
2657Check your system clock" "$LINENO" 5
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660$as_echo "yes" >&6; }
2661test "$program_prefix" != NONE &&
2662 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2663# Use a double $ so make ignores it.
2664test "$program_suffix" != NONE &&
2665 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2666# Double any \ or $.
2667# By default was `s,x,x', remove it if useless.
2668ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2669program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2670
2671# expand $ac_aux_dir to an absolute path
2672am_aux_dir=`cd $ac_aux_dir && pwd`
2673
2674if test x"${MISSING+set}" != xset; then
2675 case $am_aux_dir in
2676 *\ * | *\ *)
2677 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2678 *)
2679 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2680 esac
2681fi
2682# Use eval to expand $SHELL
2683if eval "$MISSING --run true"; then
2684 am_missing_run="$MISSING --run "
2685else
2686 am_missing_run=
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2688$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2689fi
2690
2691if test x"${install_sh}" != xset; then
2692 case $am_aux_dir in
2693 *\ * | *\ *)
2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2695 *)
2696 install_sh="\${SHELL} $am_aux_dir/install-sh"
2697 esac
2698fi
2699
2700# Installed binaries are usually stripped using `strip' when the user
2701# run `make install-strip'. However `strip' might not be the right
2702# tool to use in cross-compilation environments, therefore Automake
2703# will honor the `STRIP' environment variable to overrule this program.
2704if test "$cross_compiling" != no; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2707set dummy ${ac_tool_prefix}strip; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if test "${ac_cv_prog_STRIP+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712else
2713 if test -n "$STRIP"; then
2714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727done
2728 done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733STRIP=$ac_cv_prog_STRIP
2734if test -n "$STRIP"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2736$as_echo "$STRIP" >&6; }
2737else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742
2743fi
2744if test -z "$ac_cv_prog_STRIP"; then
2745 ac_ct_STRIP=$STRIP
2746 # Extract the first word of "strip", so it can be a program name with args.
2747set dummy strip; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752else
2753 if test -n "$ac_ct_STRIP"; then
2754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_STRIP="strip"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767done
2768 done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2774if test -n "$ac_ct_STRIP"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2776$as_echo "$ac_ct_STRIP" >&6; }
2777else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782 if test "x$ac_ct_STRIP" = x; then
2783 STRIP=":"
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2789ac_tool_warned=yes ;;
2790esac
2791 STRIP=$ac_ct_STRIP
2792 fi
2793else
2794 STRIP="$ac_cv_prog_STRIP"
2795fi
2796
2797fi
2798INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2801$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2802if test -z "$MKDIR_P"; then
2803 if test "${ac_cv_path_mkdir+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2808do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_prog in mkdir gmkdir; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2814 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2815 'mkdir (GNU coreutils) '* | \
2816 'mkdir (coreutils) '* | \
2817 'mkdir (fileutils) '4.1*)
2818 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2819 break 3;;
2820 esac
2821 done
2822 done
2823 done
2824IFS=$as_save_IFS
2825
2826fi
2827
2828 if test "${ac_cv_path_mkdir+set}" = set; then
2829 MKDIR_P="$ac_cv_path_mkdir -p"
2830 else
2831 # As a last resort, use the slow shell script. Don't cache a
2832 # value for MKDIR_P within a source directory, because that will
2833 # break other packages using the cache if that directory is
2834 # removed, or if the value is a relative name.
2835 test -d ./--version && rmdir ./--version
2836 MKDIR_P="$ac_install_sh -d"
2837 fi
2838fi
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2840$as_echo "$MKDIR_P" >&6; }
2841
2842mkdir_p="$MKDIR_P"
2843case $mkdir_p in
2844 [\\/$]* | ?:[\\/]*) ;;
2845 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2846esac
2847
2848for ac_prog in gawk mawk nawk awk
2849do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if test "${ac_cv_prog_AWK+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2856else
2857 if test -n "$AWK"; then
2858 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_AWK="$ac_prog"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872 done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877AWK=$ac_cv_prog_AWK
2878if test -n "$AWK"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2880$as_echo "$AWK" >&6; }
2881else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886
2887 test -n "$AWK" && break
2888done
2889
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2891$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2892set x ${MAKE-make}
2893ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2894if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2895 $as_echo_n "(cached) " >&6
2896else
2897 cat >conftest.make <<\_ACEOF
2898SHELL = /bin/sh
2899all:
2900 @echo '@@@%%%=$(MAKE)=@@@%%%'
2901_ACEOF
2902# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2903case `${MAKE-make} -f conftest.make 2>/dev/null` in
2904 *@@@%%%=?*=@@@%%%*)
2905 eval ac_cv_prog_make_${ac_make}_set=yes;;
2906 *)
2907 eval ac_cv_prog_make_${ac_make}_set=no;;
2908esac
2909rm -f conftest.make
2910fi
2911if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913$as_echo "yes" >&6; }
2914 SET_MAKE=
2915else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918 SET_MAKE="MAKE=${MAKE-make}"
2919fi
2920
2921rm -rf .tst 2>/dev/null
2922mkdir .tst 2>/dev/null
2923if test -d .tst; then
2924 am__leading_dot=.
2925else
2926 am__leading_dot=_
2927fi
2928rmdir .tst 2>/dev/null
2929
2930if test "`cd $srcdir && pwd`" != "`pwd`"; then
2931 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2932 # is not polluted with repeated "-I."
2933 am__isrc=' -I$(srcdir)'
2934 # test to see if srcdir already configured
2935 if test -f $srcdir/config.status; then
2936 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2937 fi
2938fi
2939
2940# test whether we have cygpath
2941if test -z "$CYGPATH_W"; then
2942 if (cygpath --version) >/dev/null 2>/dev/null; then
2943 CYGPATH_W='cygpath -w'
2944 else
2945 CYGPATH_W=echo
2946 fi
2947fi
2948
2949
2950# Define the identity of the package.
2951 PACKAGE='libphobos'
2952 VERSION='version-unused'
2953
2954
2955# Some tools Automake needs.
2956
2957ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2958
2959
2960AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2961
2962
2963AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2964
2965
2966AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2967
2968
2969MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2970
2971# We need awk for the "check" target. The system "awk" is bad on
2972# some platforms.
2973# Always define AMTAR for backward compatibility. Yes, it's still used
2974# in the wild :-( We should find a proper way to deprecate it ...
2975AMTAR='$${TAR-tar}'
2976
2977am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2978
2979
2980
2981
2982
2983
2984
2985
2986ac_ext=c
2987ac_cpp='$CPP $CPPFLAGS'
2988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2993set dummy ${ac_tool_prefix}gcc; ac_word=$2
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995$as_echo_n "checking for $ac_word... " >&6; }
2996if test "${ac_cv_prog_CC+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013done
3014 done
3015IFS=$as_save_IFS
3016
3017fi
3018fi
3019CC=$ac_cv_prog_CC
3020if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022$as_echo "$CC" >&6; }
3023else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029fi
3030if test -z "$ac_cv_prog_CC"; then
3031 ac_ct_CC=$CC
3032 # Extract the first word of "gcc", so it can be a program name with args.
3033set dummy gcc; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_CC="gcc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060if test -n "$ac_ct_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062$as_echo "$ac_ct_CC" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068 if test "x$ac_ct_CC" = x; then
3069 CC=""
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072yes:)
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075ac_tool_warned=yes ;;
3076esac
3077 CC=$ac_ct_CC
3078 fi
3079else
3080 CC="$ac_cv_prog_CC"
3081fi
3082
3083if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3086set dummy ${ac_tool_prefix}cc; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if test "${ac_cv_prog_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_CC="${ac_tool_prefix}cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106done
3107 done
3108IFS=$as_save_IFS
3109
3110fi
3111fi
3112CC=$ac_cv_prog_CC
3113if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115$as_echo "$CC" >&6; }
3116else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122 fi
3123fi
3124if test -z "$CC"; then
3125 # Extract the first word of "cc", so it can be a program name with args.
3126set dummy cc; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if test "${ac_cv_prog_CC+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131else
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134else
3135 ac_prog_rejected=no
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3144 ac_prog_rejected=yes
3145 continue
3146 fi
3147 ac_cv_prog_CC="cc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151done
3152 done
3153IFS=$as_save_IFS
3154
3155if test $ac_prog_rejected = yes; then
3156 # We found a bogon in the path, so make sure we never use it.
3157 set dummy $ac_cv_prog_CC
3158 shift
3159 if test $# != 0; then
3160 # We chose a different compiler from the bogus one.
3161 # However, it has the same basename, so the bogon will be chosen
3162 # first if we set CC to just the basename; use the full file name.
3163 shift
3164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3165 fi
3166fi
3167fi
3168fi
3169CC=$ac_cv_prog_CC
3170if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172$as_echo "$CC" >&6; }
3173else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176fi
3177
3178
3179fi
3180if test -z "$CC"; then
3181 if test -n "$ac_tool_prefix"; then
3182 for ac_prog in cl.exe
3183 do
3184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187$as_echo_n "checking for $ac_word... " >&6; }
3188if test "${ac_cv_prog_CC+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193else
3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195for as_dir in $PATH
3196do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205done
3206 done
3207IFS=$as_save_IFS
3208
3209fi
3210fi
3211CC=$ac_cv_prog_CC
3212if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214$as_echo "$CC" >&6; }
3215else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218fi
3219
3220
3221 test -n "$CC" && break
3222 done
3223fi
3224if test -z "$CC"; then
3225 ac_ct_CC=$CC
3226 for ac_prog in cl.exe
3227do
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229set dummy $ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234else
3235 if test -n "$ac_ct_CC"; then
3236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_CC="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249done
3250 done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256if test -n "$ac_ct_CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3258$as_echo "$ac_ct_CC" >&6; }
3259else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265 test -n "$ac_ct_CC" && break
3266done
3267
3268 if test "x$ac_ct_CC" = x; then
3269 CC=""
3270 else
3271 case $cross_compiling:$ac_tool_warned in
3272yes:)
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275ac_tool_warned=yes ;;
3276esac
3277 CC=$ac_ct_CC
3278 fi
3279fi
3280
3281fi
3282
3283
3284test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error "no acceptable C compiler found in \$PATH
3287See \`config.log' for more details." "$LINENO" 5; }
3288
3289# Provide some information about the compiler.
3290$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3291set X $ac_compile
3292ac_compiler=$2
3293for ac_option in --version -v -V -qversion; do
3294 { { ac_try="$ac_compiler $ac_option >&5"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3302 ac_status=$?
3303 if test -s conftest.err; then
3304 sed '10a\
3305... rest of stderr output deleted ...
3306 10q' conftest.err >conftest.er1
3307 cat conftest.er1 >&5
3308 rm -f conftest.er1 conftest.err
3309 fi
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }
3312done
3313
3314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h. */
3316
3317int
3318main ()
3319{
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
3325ac_clean_files_save=$ac_clean_files
3326ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3327# Try to create an executable without -o first, disregard a.out.
3328# It will help us diagnose broken compilers, and finding out an intuition
3329# of exeext.
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331$as_echo_n "checking for C compiler default output file name... " >&6; }
3332ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3333
3334# The possible output files:
3335ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3336
3337ac_rmfiles=
3338for ac_file in $ac_files
3339do
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343 esac
3344done
3345rm -f $ac_rmfiles
3346
3347if { { ac_try="$ac_link_default"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360# in a Makefile. We should not override ac_cv_exeext if it was cached,
3361# so that the user can short-circuit this test for compilers unknown to
3362# Autoconf.
3363for ac_file in $ac_files ''
3364do
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3368 ;;
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 fi
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3384 * )
3385 break;;
3386 esac
3387done
3388test "$ac_cv_exeext" = no && ac_cv_exeext=
3389
3390else
3391 ac_file=''
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3394$as_echo "$ac_file" >&6; }
3395if test -z "$ac_file"; then :
3396 $as_echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401{ as_fn_set_status 77
3402as_fn_error "C compiler cannot create executables
3403See \`config.log' for more details." "$LINENO" 5; }; }
3404fi
3405ac_exeext=$ac_cv_exeext
3406
3407# Check that the compiler produces executables we can run. If not, either
3408# the compiler is broken, or we cross compile.
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410$as_echo_n "checking whether the C compiler works... " >&6; }
3411# If not cross compiling, check that we can run a simple program.
3412if test "$cross_compiling" != yes; then
3413 if { ac_try='./$ac_file'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431as_fn_error "cannot run C compiled programs.
3432If you meant to cross compile, use \`--host'.
3433See \`config.log' for more details." "$LINENO" 5; }
3434 fi
3435 fi
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438$as_echo "yes" >&6; }
3439
3440rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3441ac_clean_files=$ac_clean_files_save
3442# Check that the compiler produces executables we can run. If not, either
3443# the compiler is broken, or we cross compile.
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445$as_echo_n "checking whether we are cross compiling... " >&6; }
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447$as_echo "$cross_compiling" >&6; }
3448
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450$as_echo_n "checking for suffix of executables... " >&6; }
3451if { { ac_try="$ac_link"
3452case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457$as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464# work properly (i.e., refer to `conftest.exe'), while it won't with
3465# `rm'.
3466for ac_file in conftest.exe conftest conftest.*; do
3467 test -f "$ac_file" || continue
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 break;;
3472 * ) break;;
3473 esac
3474done
3475else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error "cannot compute suffix of executables: cannot compile and link
3479See \`config.log' for more details." "$LINENO" 5; }
3480fi
3481rm -f conftest$ac_cv_exeext
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483$as_echo "$ac_cv_exeext" >&6; }
3484
3485rm -f conftest.$ac_ext
3486EXEEXT=$ac_cv_exeext
3487ac_exeext=$EXEEXT
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489$as_echo_n "checking for suffix of object files... " >&6; }
3490if test "${ac_cv_objext+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3492else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h. */
3495
3496int
3497main ()
3498{
3499
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504rm -f conftest.o conftest.obj
3505if { { ac_try="$ac_compile"
3506case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 for ac_file in conftest.o conftest.obj conftest.*; do
3517 test -f "$ac_file" || continue;
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 break;;
3522 esac
3523done
3524else
3525 $as_echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error "cannot compute suffix of object files: cannot compile
3531See \`config.log' for more details." "$LINENO" 5; }
3532fi
3533rm -f conftest.$ac_cv_objext conftest.$ac_ext
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3536$as_echo "$ac_cv_objext" >&6; }
3537OBJEXT=$ac_cv_objext
3538ac_objext=$OBJEXT
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550#ifndef __GNUC__
3551 choke me
3552#endif
3553
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_compiler_gnu=yes
3560else
3561 ac_compiler_gnu=no
3562fi
3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564ac_cv_c_compiler_gnu=$ac_compiler_gnu
3565
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569if test $ac_compiler_gnu = yes; then
3570 GCC=yes
3571else
3572 GCC=
3573fi
3574ac_test_CFLAGS=${CFLAGS+set}
3575ac_save_CFLAGS=$CFLAGS
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577$as_echo_n "checking whether $CC accepts -g... " >&6; }
3578if test "${ac_cv_prog_cc_g+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3583 ac_cv_prog_cc_g=no
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h. */
3587
3588int
3589main ()
3590{
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3598else
3599 CFLAGS=""
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612
3613else
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 CFLAGS="-g"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h. */
3618
3619int
3620main ()
3621{
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_g=yes
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631fi
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638$as_echo "$ac_cv_prog_cc_g" >&6; }
3639if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3646 fi
3647else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3652 fi
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656if test "${ac_cv_prog_cc_c89+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658else
3659 ac_cv_prog_cc_c89=no
3660ac_save_CC=$CC
3661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h. */
3663#include <stdarg.h>
3664#include <stdio.h>
3665#include <sys/types.h>
3666#include <sys/stat.h>
3667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668struct buf { int x; };
3669FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670static char *e (p, i)
3671 char **p;
3672 int i;
3673{
3674 return p[i];
3675}
3676static char *f (char * (*g) (char **, int), char **p, ...)
3677{
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3684}
3685
3686/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697#define FOO(x) 'x'
3698int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700int test (int i, double x);
3701struct s1 {int (*f) (int a);};
3702struct s2 {int (*f) (double a);};
3703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704int argc;
3705char **argv;
3706int
3707main ()
3708{
3709return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716do
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3720fi
3721rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723done
3724rm -f conftest.$ac_ext
3725CC=$ac_save_CC
3726
3727fi
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730 x)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732$as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735$as_echo "unsupported" >&6; } ;;
3736 *)
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740esac
3741if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
3743fi
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751# By default we simply use the C compiler to build assembly code.
3752
3753test "${CCAS+set}" = set || CCAS=$CC
3754test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3755
3756
3757
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3765set dummy ${ac_tool_prefix}gcc; ac_word=$2
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767$as_echo_n "checking for $ac_word... " >&6; }
3768if test "${ac_cv_prog_CC+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3770else
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3773else
3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785done
3786 done
3787IFS=$as_save_IFS
3788
3789fi
3790fi
3791CC=$ac_cv_prog_CC
3792if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794$as_echo "$CC" >&6; }
3795else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798fi
3799
3800
3801fi
3802if test -z "$ac_cv_prog_CC"; then
3803 ac_ct_CC=$CC
3804 # Extract the first word of "gcc", so it can be a program name with args.
3805set dummy gcc; ac_word=$2
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807$as_echo_n "checking for $ac_word... " >&6; }
3808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_ac_ct_CC="gcc"
3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826 done
3827IFS=$as_save_IFS
3828
3829fi
3830fi
3831ac_ct_CC=$ac_cv_prog_ac_ct_CC
3832if test -n "$ac_ct_CC"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3834$as_echo "$ac_ct_CC" >&6; }
3835else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838fi
3839
3840 if test "x$ac_ct_CC" = x; then
3841 CC=""
3842 else
3843 case $cross_compiling:$ac_tool_warned in
3844yes:)
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847ac_tool_warned=yes ;;
3848esac
3849 CC=$ac_ct_CC
3850 fi
3851else
3852 CC="$ac_cv_prog_CC"
3853fi
3854
3855if test -z "$CC"; then
3856 if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3858set dummy ${ac_tool_prefix}cc; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if test "${ac_cv_prog_CC+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3863else
3864 if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_CC="${ac_tool_prefix}cc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879 done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884CC=$ac_cv_prog_CC
3885if test -n "$CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887$as_echo "$CC" >&6; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894 fi
3895fi
3896if test -z "$CC"; then
3897 # Extract the first word of "cc", so it can be a program name with args.
3898set dummy cc; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
3901if test "${ac_cv_prog_CC+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$CC"; then
3905 ac_cv_prog_CC="$CC" # Let the user override the test.
3906else
3907 ac_prog_rejected=no
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3916 ac_prog_rejected=yes
3917 continue
3918 fi
3919 ac_cv_prog_CC="cc"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924 done
3925IFS=$as_save_IFS
3926
3927if test $ac_prog_rejected = yes; then
3928 # We found a bogon in the path, so make sure we never use it.
3929 set dummy $ac_cv_prog_CC
3930 shift
3931 if test $# != 0; then
3932 # We chose a different compiler from the bogus one.
3933 # However, it has the same basename, so the bogon will be chosen
3934 # first if we set CC to just the basename; use the full file name.
3935 shift
3936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3937 fi
3938fi
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
3945else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$CC"; then
3953 if test -n "$ac_tool_prefix"; then
3954 for ac_prog in cl.exe
3955 do
3956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
3960if test "${ac_cv_prog_CC+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962else
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978 done
3979IFS=$as_save_IFS
3980
3981fi
3982fi
3983CC=$ac_cv_prog_CC
3984if test -n "$CC"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3986$as_echo "$CC" >&6; }
3987else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
3990fi
3991
3992
3993 test -n "$CC" && break
3994 done
3995fi
3996if test -z "$CC"; then
3997 ac_ct_CC=$CC
3998 for ac_prog in cl.exe
3999do
4000 # Extract the first word of "$ac_prog", so it can be a program name with args.
4001set dummy $ac_prog; ac_word=$2
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
4004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006else
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_ac_ct_CC="$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022 done
4023IFS=$as_save_IFS
4024
4025fi
4026fi
4027ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028if test -n "$ac_ct_CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030$as_echo "$ac_ct_CC" >&6; }
4031else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034fi
4035
4036
4037 test -n "$ac_ct_CC" && break
4038done
4039
4040 if test "x$ac_ct_CC" = x; then
4041 CC=""
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044yes:)
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047ac_tool_warned=yes ;;
4048esac
4049 CC=$ac_ct_CC
4050 fi
4051fi
4052
4053fi
4054
4055
4056test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058as_fn_error "no acceptable C compiler found in \$PATH
4059See \`config.log' for more details." "$LINENO" 5; }
4060
4061# Provide some information about the compiler.
4062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4063set X $ac_compile
4064ac_compiler=$2
4065for ac_option in --version -v -V -qversion; do
4066 { { ac_try="$ac_compiler $ac_option >&5"
4067case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072$as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4074 ac_status=$?
4075 if test -s conftest.err; then
4076 sed '10a\
4077... rest of stderr output deleted ...
4078 10q' conftest.err >conftest.er1
4079 cat conftest.er1 >&5
4080 rm -f conftest.er1 conftest.err
4081 fi
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }
4084done
4085
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4087$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4088if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097#ifndef __GNUC__
4098 choke me
4099#endif
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_compiler_gnu=yes
4107else
4108 ac_compiler_gnu=no
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4115$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4116if test $ac_compiler_gnu = yes; then
4117 GCC=yes
4118else
4119 GCC=
4120fi
4121ac_test_CFLAGS=${CFLAGS+set}
4122ac_save_CFLAGS=$CFLAGS
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4124$as_echo_n "checking whether $CC accepts -g... " >&6; }
4125if test "${ac_cv_prog_cc_g+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127else
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h. */
4134
4135int
4136main ()
4137{
4138
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_g=yes
4145else
4146 CFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
4149
4150int
4151main ()
4152{
4153
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"; then :
4159
4160else
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185$as_echo "$ac_cv_prog_cc_g" >&6; }
4186if test "$ac_test_CFLAGS" = set; then
4187 CFLAGS=$ac_save_CFLAGS
4188elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4190 CFLAGS="-g -O2"
4191 else
4192 CFLAGS="-g"
4193 fi
4194else
4195 if test "$GCC" = yes; then
4196 CFLAGS="-O2"
4197 else
4198 CFLAGS=
4199 fi
4200fi
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4202$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4203if test "${ac_cv_prog_cc_c89+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205else
4206 ac_cv_prog_cc_c89=no
4207ac_save_CC=$CC
4208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h. */
4210#include <stdarg.h>
4211#include <stdio.h>
4212#include <sys/types.h>
4213#include <sys/stat.h>
4214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215struct buf { int x; };
4216FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217static char *e (p, i)
4218 char **p;
4219 int i;
4220{
4221 return p[i];
4222}
4223static char *f (char * (*g) (char **, int), char **p, ...)
4224{
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4231}
4232
4233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4241
4242/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244#define FOO(x) 'x'
4245int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4246
4247int test (int i, double x);
4248struct s1 {int (*f) (int a);};
4249struct s2 {int (*f) (double a);};
4250int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251int argc;
4252char **argv;
4253int
4254main ()
4255{
4256return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 ;
4258 return 0;
4259}
4260_ACEOF
4261for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4263do
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4267fi
4268rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270done
4271rm -f conftest.$ac_ext
4272CC=$ac_save_CC
4273
4274fi
4275# AC_CACHE_VAL
4276case "x$ac_cv_prog_cc_c89" in
4277 x)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279$as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282$as_echo "unsupported" >&6; } ;;
4283 *)
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287esac
4288if test "x$ac_cv_prog_cc_c89" != xno; then :
4289
4290fi
4291
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298ac_ext=d
4299ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4300ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=yes
4302if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}gdc; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_GDC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$GDC"; then
4311 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330GDC=$ac_cv_prog_GDC
4331if test -n "$GDC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4333$as_echo "$GDC" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340fi
4341if test -z "$ac_cv_prog_GDC"; then
4342 ac_ct_GDC=$GDC
4343 # Extract the first word of "gdc", so it can be a program name with args.
4344set dummy gdc; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
4347if test "${ac_cv_prog_ac_ct_GDC+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350 if test -n "$ac_ct_GDC"; then
4351 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_GDC="gdc"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
4367
4368fi
4369fi
4370ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4371if test -n "$ac_ct_GDC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4373$as_echo "$ac_ct_GDC" >&6; }
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
4378
4379 if test "x$ac_ct_GDC" = x; then
4380 GDC=""
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383yes:)
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
4387esac
4388 GDC=$ac_ct_GDC
4389 fi
4390else
4391 GDC="$ac_cv_prog_GDC"
4392fi
4393
4394if test -z "$GDC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4397set dummy ${ac_tool_prefix}gdc; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
4400if test "${ac_cv_prog_GDC+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402else
4403 if test -n "$GDC"; then
4404 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418 done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423GDC=$ac_cv_prog_GDC
4424if test -n "$GDC"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4426$as_echo "$GDC" >&6; }
4427else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429$as_echo "no" >&6; }
4430fi
4431
4432
4433 fi
4434fi
4435if test -z "$GDC"; then
4436 # Extract the first word of "gdc", so it can be a program name with args.
4437set dummy gdc; ac_word=$2
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439$as_echo_n "checking for $ac_word... " >&6; }
4440if test "${ac_cv_prog_GDC+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 if test -n "$GDC"; then
4444 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4445else
4446 ac_prog_rejected=no
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4455 ac_prog_rejected=yes
4456 continue
4457 fi
4458 ac_cv_prog_GDC="gdc"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463 done
4464IFS=$as_save_IFS
4465
4466if test $ac_prog_rejected = yes; then
4467 # We found a bogon in the path, so make sure we never use it.
4468 set dummy $ac_cv_prog_GDC
4469 shift
4470 if test $# != 0; then
4471 # We chose a different compiler from the bogus one.
4472 # However, it has the same basename, so the bogon will be chosen
4473 # first if we set GDC to just the basename; use the full file name.
4474 shift
4475 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4476 fi
4477fi
4478fi
4479fi
4480GDC=$ac_cv_prog_GDC
4481if test -n "$GDC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4483$as_echo "$GDC" >&6; }
4484else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486$as_echo "no" >&6; }
4487fi
4488
4489
4490fi
4491
4492
4493# Provide some information about the compiler.
4494$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4495set X $ac_compile
4496ac_compiler=$2
4497{ { ac_try="$ac_compiler --version >&5"
4498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler --version >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 fi
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515ac_ext=c
4516ac_cpp='$CPP $CPPFLAGS'
4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4523$as_echo_n "checking for absolute libphobos source path... " >&6; }
4524if test "${phobos_cv_abs_srcdir+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526else
4527 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4530$as_echo "$phobos_cv_abs_srcdir" >&6; }
4531 if test -d "$phobos_cv_abs_srcdir"; then :
4532
4533else
4534 as_fn_error "can't find absolute libphobos source path" "$LINENO" 5
4535fi
4536
4537
4538
4539
4540 gdc_save_DFLAGS=$GDCFLAGS
4541 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4542
4543 ac_ext=d
4544ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4545ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=yes
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4549$as_echo_n "checking If $GDC can compile D sources... " >&6; }
4550 cat > conftest.$ac_ext <<_ACEOF
4551module mod;
4552
4553
4554extern(C) int main() {
4555 return 0;
4556}
4557_ACEOF
4558if ac_fn_d_try_compile "$LINENO"; then :
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560$as_echo "yes" >&6; }
4561else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563$as_echo "no" >&6; }
4564 as_fn_error "can't compile D sources!" "$LINENO" 5
4565fi
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574 GDCFLAGS=$gdc_save_DFLAGS
4575
4576
4577
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4582$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4583 # Check whether --enable-maintainer-mode was given.
4584if test "${enable_maintainer_mode+set}" = set; then :
4585 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4586else
4587 USE_MAINTAINER_MODE=no
4588fi
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4591$as_echo "$USE_MAINTAINER_MODE" >&6; }
4592 if test $USE_MAINTAINER_MODE = yes; then
4593 MAINTAINER_MODE_TRUE=
4594 MAINTAINER_MODE_FALSE='#'
4595else
4596 MAINTAINER_MODE_TRUE='#'
4597 MAINTAINER_MODE_FALSE=
4598fi
4599
4600 MAINT=$MAINTAINER_MODE_TRUE
4601
4602
4603if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4605set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if test "${ac_cv_prog_RANLIB+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610else
4611 if test -n "$RANLIB"; then
4612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625done
4626 done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631RANLIB=$ac_cv_prog_RANLIB
4632if test -n "$RANLIB"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4634$as_echo "$RANLIB" >&6; }
4635else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641fi
4642if test -z "$ac_cv_prog_RANLIB"; then
4643 ac_ct_RANLIB=$RANLIB
4644 # Extract the first word of "ranlib", so it can be a program name with args.
4645set dummy ranlib; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$ac_ct_RANLIB"; then
4652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_ac_ct_RANLIB="ranlib"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666 done
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4672if test -n "$ac_ct_RANLIB"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4674$as_echo "$ac_ct_RANLIB" >&6; }
4675else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677$as_echo "no" >&6; }
4678fi
4679
4680 if test "x$ac_ct_RANLIB" = x; then
4681 RANLIB=":"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684yes:)
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687ac_tool_warned=yes ;;
4688esac
4689 RANLIB=$ac_ct_RANLIB
4690 fi
4691else
4692 RANLIB="$ac_cv_prog_RANLIB"
4693fi
4694
4695
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4697$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4698set x ${MAKE-make}
4699ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4700if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 cat >conftest.make <<\_ACEOF
4704SHELL = /bin/sh
4705all:
4706 @echo '@@@%%%=$(MAKE)=@@@%%%'
4707_ACEOF
4708# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4709case `${MAKE-make} -f conftest.make 2>/dev/null` in
4710 *@@@%%%=?*=@@@%%%*)
4711 eval ac_cv_prog_make_${ac_make}_set=yes;;
4712 *)
4713 eval ac_cv_prog_make_${ac_make}_set=no;;
4714esac
4715rm -f conftest.make
4716fi
4717if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719$as_echo "yes" >&6; }
4720 SET_MAKE=
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724 SET_MAKE="MAKE=${MAKE-make}"
4725fi
4726
4727
4728# This should be inherited in the recursive make, but ensure it is defined.
4729test "$AR" || AR=ar
4730
4731
4732CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
4733
4734
4735
4736# Enable libtool
4737case `pwd` in
4738 *\ * | *\ *)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4740$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4741esac
4742
4743
4744
4745macro_version='2.2.7a'
4746macro_revision='1.3134'
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760ltmain="$ac_aux_dir/ltmain.sh"
4761
4762# Backslashify metacharacters that are still active within
4763# double-quoted strings.
4764sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4765
4766# Same as above, but do not quote variable references.
4767double_quote_subst='s/\(["`\\]\)/\\\1/g'
4768
4769# Sed substitution to delay expansion of an escaped shell variable in a
4770# double_quote_subst'ed string.
4771delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4772
4773# Sed substitution to delay expansion of an escaped single quote.
4774delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4775
4776# Sed substitution to avoid accidental globbing in evaled expressions
4777no_glob_subst='s/\*/\\\*/g'
4778
4779ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4780ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4781ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4784$as_echo_n "checking how to print strings... " >&6; }
4785# Test print first, because it will be a builtin if present.
4786if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4787 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4788 ECHO='print -r --'
4789elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4790 ECHO='printf %s\n'
4791else
4792 # Use this function as a fallback that always works.
4793 func_fallback_echo ()
4794 {
4795 eval 'cat <<_LTECHO_EOF
4796$1
4797_LTECHO_EOF'
4798 }
4799 ECHO='func_fallback_echo'
4800fi
4801
4802# func_echo_all arg...
4803# Invoke $ECHO with all args, space-separated.
4804func_echo_all ()
4805{
4806 $ECHO ""
4807}
4808
4809case "$ECHO" in
4810 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4811$as_echo "printf" >&6; } ;;
4812 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4813$as_echo "print -r" >&6; } ;;
4814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4815$as_echo "cat" >&6; } ;;
4816esac
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833if test "${ac_cv_path_SED+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835else
4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837 for ac_i in 1 2 3 4 5 6 7; do
4838 ac_script="$ac_script$as_nl$ac_script"
4839 done
4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841 { ac_script=; unset ac_script;}
4842 if test -z "$SED"; then
4843 ac_path_SED_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in sed gsed; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4854# Check for GNU ac_path_SED and select it if it is found.
4855 # Check for GNU $ac_path_SED
4856case `"$ac_path_SED" --version 2>&1` in
4857*GNU*)
4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4859*)
4860 ac_count=0
4861 $as_echo_n 0123456789 >"conftest.in"
4862 while :
4863 do
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo '' >> "conftest.nl"
4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_SED_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_SED="$ac_path_SED"
4874 ac_path_SED_max=$ac_count
4875 fi
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4878 done
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880esac
4881
4882 $ac_path_SED_found && break 3
4883 done
4884 done
4885 done
4886IFS=$as_save_IFS
4887 if test -z "$ac_cv_path_SED"; then
4888 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4889 fi
4890else
4891 ac_cv_path_SED=$SED
4892fi
4893
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896$as_echo "$ac_cv_path_SED" >&6; }
4897 SED="$ac_cv_path_SED"
4898 rm -f conftest.sed
4899
4900test -z "$SED" && SED=sed
4901Xsed="$SED -e 1s/^X//"
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4914$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915if test "${ac_cv_path_GREP+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 if test -z "$GREP"; then
4919 ac_path_GREP_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in grep ggrep; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930# Check for GNU ac_path_GREP and select it if it is found.
4931 # Check for GNU $ac_path_GREP
4932case `"$ac_path_GREP" --version 2>&1` in
4933*GNU*)
4934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4935*)
4936 ac_count=0
4937 $as_echo_n 0123456789 >"conftest.in"
4938 while :
4939 do
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 $as_echo 'GREP' >> "conftest.nl"
4944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 as_fn_arith $ac_count + 1 && ac_count=$as_val
4947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_GREP="$ac_path_GREP"
4950 ac_path_GREP_max=$ac_count
4951 fi
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4954 done
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956esac
4957
4958 $ac_path_GREP_found && break 3
4959 done
4960 done
4961 done
4962IFS=$as_save_IFS
4963 if test -z "$ac_cv_path_GREP"; then
4964 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965 fi
4966else
4967 ac_cv_path_GREP=$GREP
4968fi
4969
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4972$as_echo "$ac_cv_path_GREP" >&6; }
4973 GREP="$ac_cv_path_GREP"
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4977$as_echo_n "checking for egrep... " >&6; }
4978if test "${ac_cv_path_EGREP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4982 then ac_cv_path_EGREP="$GREP -E"
4983 else
4984 if test -z "$EGREP"; then
4985 ac_path_EGREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in egrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4996# Check for GNU ac_path_EGREP and select it if it is found.
4997 # Check for GNU $ac_path_EGREP
4998case `"$ac_path_EGREP" --version 2>&1` in
4999*GNU*)
5000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5001*)
5002 ac_count=0
5003 $as_echo_n 0123456789 >"conftest.in"
5004 while :
5005 do
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'EGREP' >> "conftest.nl"
5010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_EGREP="$ac_path_EGREP"
5016 ac_path_EGREP_max=$ac_count
5017 fi
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5020 done
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022esac
5023
5024 $ac_path_EGREP_found && break 3
5025 done
5026 done
5027 done
5028IFS=$as_save_IFS
5029 if test -z "$ac_cv_path_EGREP"; then
5030 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 fi
5032else
5033 ac_cv_path_EGREP=$EGREP
5034fi
5035
5036 fi
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5039$as_echo "$ac_cv_path_EGREP" >&6; }
5040 EGREP="$ac_cv_path_EGREP"
5041
5042
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5044$as_echo_n "checking for fgrep... " >&6; }
5045if test "${ac_cv_path_FGREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047else
5048 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5049 then ac_cv_path_FGREP="$GREP -F"
5050 else
5051 if test -z "$FGREP"; then
5052 ac_path_FGREP_found=false
5053 # Loop through the user's path and test for each of PROGNAME-LIST
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_prog in fgrep; do
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5062 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5063# Check for GNU ac_path_FGREP and select it if it is found.
5064 # Check for GNU $ac_path_FGREP
5065case `"$ac_path_FGREP" --version 2>&1` in
5066*GNU*)
5067 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5068*)
5069 ac_count=0
5070 $as_echo_n 0123456789 >"conftest.in"
5071 while :
5072 do
5073 cat "conftest.in" "conftest.in" >"conftest.tmp"
5074 mv "conftest.tmp" "conftest.in"
5075 cp "conftest.in" "conftest.nl"
5076 $as_echo 'FGREP' >> "conftest.nl"
5077 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079 as_fn_arith $ac_count + 1 && ac_count=$as_val
5080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5081 # Best one so far, save it but keep looking for a better one
5082 ac_cv_path_FGREP="$ac_path_FGREP"
5083 ac_path_FGREP_max=$ac_count
5084 fi
5085 # 10*(2^10) chars as input seems more than enough
5086 test $ac_count -gt 10 && break
5087 done
5088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089esac
5090
5091 $ac_path_FGREP_found && break 3
5092 done
5093 done
5094 done
5095IFS=$as_save_IFS
5096 if test -z "$ac_cv_path_FGREP"; then
5097 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098 fi
5099else
5100 ac_cv_path_FGREP=$FGREP
5101fi
5102
5103 fi
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5106$as_echo "$ac_cv_path_FGREP" >&6; }
5107 FGREP="$ac_cv_path_FGREP"
5108
5109
5110test -z "$GREP" && GREP=grep
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130# Check whether --with-gnu-ld was given.
5131if test "${with_gnu_ld+set}" = set; then :
5132 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5133else
5134 with_gnu_ld=no
5135fi
5136
5137ac_prog=ld
5138if test "$GCC" = yes; then
5139 # Check if gcc -print-prog-name=ld gives a path.
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5141$as_echo_n "checking for ld used by $CC... " >&6; }
5142 case $host in
5143 *-*-mingw*)
5144 # gcc leaves a trailing carriage return which upsets mingw
5145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5146 *)
5147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5148 esac
5149 case $ac_prog in
5150 # Accept absolute paths.
5151 [\\/]* | ?:[\\/]*)
5152 re_direlt='/[^/][^/]*/\.\./'
5153 # Canonicalize the pathname of ld
5154 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5155 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5156 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5157 done
5158 test -z "$LD" && LD="$ac_prog"
5159 ;;
5160 "")
5161 # If it fails, then pretend we aren't using GCC.
5162 ac_prog=ld
5163 ;;
5164 *)
5165 # If it is relative, then search for the first ld in PATH.
5166 with_gnu_ld=unknown
5167 ;;
5168 esac
5169elif test "$with_gnu_ld" = yes; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5171$as_echo_n "checking for GNU ld... " >&6; }
5172else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5174$as_echo_n "checking for non-GNU ld... " >&6; }
5175fi
5176if test "${lt_cv_path_LD+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -z "$LD"; then
5180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5181 for ac_dir in $PATH; do
5182 IFS="$lt_save_ifs"
5183 test -z "$ac_dir" && ac_dir=.
5184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5185 lt_cv_path_LD="$ac_dir/$ac_prog"
5186 # Check to see if the program is GNU ld. I'd rather use --version,
5187 # but apparently some variants of GNU ld only accept -v.
5188 # Break only if it was the GNU/non-GNU ld that we prefer.
5189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5190 *GNU* | *'with BFD'*)
5191 test "$with_gnu_ld" != no && break
5192 ;;
5193 *)
5194 test "$with_gnu_ld" != yes && break
5195 ;;
5196 esac
5197 fi
5198 done
5199 IFS="$lt_save_ifs"
5200else
5201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5202fi
5203fi
5204
5205LD="$lt_cv_path_LD"
5206if test -n "$LD"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5208$as_echo "$LD" >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5215$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5216if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5220case `$LD -v 2>&1 </dev/null` in
5221*GNU* | *'with BFD'*)
5222 lt_cv_prog_gnu_ld=yes
5223 ;;
5224*)
5225 lt_cv_prog_gnu_ld=no
5226 ;;
5227esac
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5230$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5231with_gnu_ld=$lt_cv_prog_gnu_ld
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5242$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5243if test "${lt_cv_path_NM+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test -n "$NM"; then
5247 # Let the user override the test.
5248 lt_cv_path_NM="$NM"
5249else
5250 lt_nm_to_check="${ac_tool_prefix}nm"
5251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5252 lt_nm_to_check="$lt_nm_to_check nm"
5253 fi
5254 for lt_tmp_nm in $lt_nm_to_check; do
5255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5257 IFS="$lt_save_ifs"
5258 test -z "$ac_dir" && ac_dir=.
5259 tmp_nm="$ac_dir/$lt_tmp_nm"
5260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5261 # Check to see if the nm accepts a BSD-compat flag.
5262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5263 # nm: unknown option "B" ignored
5264 # Tru64's nm complains that /dev/null is an invalid object file
5265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5266 */dev/null* | *'Invalid file or object type'*)
5267 lt_cv_path_NM="$tmp_nm -B"
5268 break
5269 ;;
5270 *)
5271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5272 */dev/null*)
5273 lt_cv_path_NM="$tmp_nm -p"
5274 break
5275 ;;
5276 *)
5277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5278 continue # so that we can try to find one that supports BSD flags
5279 ;;
5280 esac
5281 ;;
5282 esac
5283 fi
5284 done
5285 IFS="$lt_save_ifs"
5286 done
5287 : ${lt_cv_path_NM=no}
5288fi
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5291$as_echo "$lt_cv_path_NM" >&6; }
5292if test "$lt_cv_path_NM" != "no"; then
5293 NM="$lt_cv_path_NM"
5294else
5295 # Didn't find any BSD compatible name lister, look for dumpbin.
5296 if test -n "$DUMPBIN"; then :
5297 # Let the user override the test.
5298 else
5299 if test -n "$ac_tool_prefix"; then
5300 for ac_prog in dumpbin "link -dump"
5301 do
5302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5303set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
5306if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 if test -n "$DUMPBIN"; then
5310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323done
5324 done
5325IFS=$as_save_IFS
5326
5327fi
5328fi
5329DUMPBIN=$ac_cv_prog_DUMPBIN
5330if test -n "$DUMPBIN"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5332$as_echo "$DUMPBIN" >&6; }
5333else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338
5339 test -n "$DUMPBIN" && break
5340 done
5341fi
5342if test -z "$DUMPBIN"; then
5343 ac_ct_DUMPBIN=$DUMPBIN
5344 for ac_prog in dumpbin "link -dump"
5345do
5346 # Extract the first word of "$ac_prog", so it can be a program name with args.
5347set dummy $ac_prog; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 if test -n "$ac_ct_DUMPBIN"; then
5354 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368 done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5374if test -n "$ac_ct_DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5376$as_echo "$ac_ct_DUMPBIN" >&6; }
5377else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383 test -n "$ac_ct_DUMPBIN" && break
5384done
5385
5386 if test "x$ac_ct_DUMPBIN" = x; then
5387 DUMPBIN=":"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390yes:)
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393ac_tool_warned=yes ;;
5394esac
5395 DUMPBIN=$ac_ct_DUMPBIN
5396 fi
5397fi
5398
5399 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5400 *COFF*)
5401 DUMPBIN="$DUMPBIN -symbols"
5402 ;;
5403 *)
5404 DUMPBIN=:
5405 ;;
5406 esac
5407 fi
5408
5409 if test "$DUMPBIN" != ":"; then
5410 NM="$DUMPBIN"
5411 fi
5412fi
5413test -z "$NM" && NM=nm
5414
5415
5416
5417
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5421$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5422if test "${lt_cv_nm_interface+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424else
5425 lt_cv_nm_interface="BSD nm"
5426 echo "int some_variable = 0;" > conftest.$ac_ext
5427 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5428 (eval "$ac_compile" 2>conftest.err)
5429 cat conftest.err >&5
5430 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5432 cat conftest.err >&5
5433 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5434 cat conftest.out >&5
5435 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5436 lt_cv_nm_interface="MS dumpbin"
5437 fi
5438 rm -f conftest*
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5441$as_echo "$lt_cv_nm_interface" >&6; }
5442
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5444$as_echo_n "checking whether ln -s works... " >&6; }
5445LN_S=$as_ln_s
5446if test "$LN_S" = "ln -s"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448$as_echo "yes" >&6; }
5449else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5451$as_echo "no, using $LN_S" >&6; }
5452fi
5453
5454# find the maximum length of command line arguments
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5456$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5457if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 i=0
5461 teststring="ABCD"
5462
5463 case $build_os in
5464 msdosdjgpp*)
5465 # On DJGPP, this test can blow up pretty badly due to problems in libc
5466 # (any single argument exceeding 2000 bytes causes a buffer overrun
5467 # during glob expansion). Even if it were fixed, the result of this
5468 # check would be larger than it should be.
5469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5470 ;;
5471
5472 gnu*)
5473 # Under GNU Hurd, this test is not required because there is
5474 # no limit to the length of command line arguments.
5475 # Libtool will interpret -1 as no limit whatsoever
5476 lt_cv_sys_max_cmd_len=-1;
5477 ;;
5478
5479 cygwin* | mingw* | cegcc*)
5480 # On Win9x/ME, this test blows up -- it succeeds, but takes
5481 # about 5 minutes as the teststring grows exponentially.
5482 # Worse, since 9x/ME are not pre-emptively multitasking,
5483 # you end up with a "frozen" computer, even though with patience
5484 # the test eventually succeeds (with a max line length of 256k).
5485 # Instead, let's just punt: use the minimum linelength reported by
5486 # all of the supported platforms: 8192 (on NT/2K/XP).
5487 lt_cv_sys_max_cmd_len=8192;
5488 ;;
5489
5490 mint*)
5491 # On MiNT this can take a long time and run out of memory.
5492 lt_cv_sys_max_cmd_len=8192;
5493 ;;
5494
5495 amigaos*)
5496 # On AmigaOS with pdksh, this test takes hours, literally.
5497 # So we just punt and use a minimum line length of 8192.
5498 lt_cv_sys_max_cmd_len=8192;
5499 ;;
5500
5501 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5502 # This has been around since 386BSD, at least. Likely further.
5503 if test -x /sbin/sysctl; then
5504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5505 elif test -x /usr/sbin/sysctl; then
5506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5507 else
5508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5509 fi
5510 # And add a safety zone
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513 ;;
5514
5515 interix*)
5516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5517 lt_cv_sys_max_cmd_len=196608
5518 ;;
5519
5520 osf*)
5521 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5522 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5523 # nice to cause kernel panics so lets avoid the loop below.
5524 # First set a reasonable default.
5525 lt_cv_sys_max_cmd_len=16384
5526 #
5527 if test -x /sbin/sysconfig; then
5528 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5529 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5530 esac
5531 fi
5532 ;;
5533 sco3.2v5*)
5534 lt_cv_sys_max_cmd_len=102400
5535 ;;
5536 sysv5* | sco5v6* | sysv4.2uw2*)
5537 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5538 if test -n "$kargmax"; then
5539 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5540 else
5541 lt_cv_sys_max_cmd_len=32768
5542 fi
5543 ;;
5544 *)
5545 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5546 if test -n "$lt_cv_sys_max_cmd_len"; then
5547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5549 else
5550 # Make teststring a little bigger before we do anything with it.
5551 # a 1K string should be a reasonable start.
5552 for i in 1 2 3 4 5 6 7 8 ; do
5553 teststring=$teststring$teststring
5554 done
5555 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5556 # If test is not a shell built-in, we'll probably end up computing a
5557 # maximum length that is only half of the actual maximum length, but
5558 # we can't tell.
5559 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5560 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5561 test $i != 17 # 1/2 MB should be enough
5562 do
5563 i=`expr $i + 1`
5564 teststring=$teststring$teststring
5565 done
5566 # Only check the string length outside the loop.
5567 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5568 teststring=
5569 # Add a significant safety factor because C++ compilers can tack on
5570 # massive amounts of additional arguments before passing them to the
5571 # linker. It appears as though 1/2 is a usable value.
5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5573 fi
5574 ;;
5575 esac
5576
5577fi
5578
5579if test -n $lt_cv_sys_max_cmd_len ; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5581$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5582else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5584$as_echo "none" >&6; }
5585fi
5586max_cmd_len=$lt_cv_sys_max_cmd_len
5587
5588
5589
5590
5591
5592
5593: ${CP="cp -f"}
5594: ${MV="mv -f"}
5595: ${RM="rm -f"}
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5598$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5599# Try some XSI features
5600xsi_shell=no
5601( _lt_dummy="a/b/c"
5602 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5603 = c,a/b,, \
5604 && eval 'test $(( 1 + 1 )) -eq 2 \
5605 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5606 && xsi_shell=yes
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5608$as_echo "$xsi_shell" >&6; }
5609
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5612$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5613lt_shell_append=no
5614( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5615 >/dev/null 2>&1 \
5616 && lt_shell_append=yes
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5618$as_echo "$lt_shell_append" >&6; }
5619
5620
5621if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5622 lt_unset=unset
5623else
5624 lt_unset=false
5625fi
5626
5627
5628
5629
5630
5631# test EBCDIC or ASCII
5632case `echo X|tr X '\101'` in
5633 A) # ASCII based system
5634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5635 lt_SP2NL='tr \040 \012'
5636 lt_NL2SP='tr \015\012 \040\040'
5637 ;;
5638 *) # EBCDIC based system
5639 lt_SP2NL='tr \100 \n'
5640 lt_NL2SP='tr \r\n \100\100'
5641 ;;
5642esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5653$as_echo_n "checking for $LD option to reload object files... " >&6; }
5654if test "${lt_cv_ld_reload_flag+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656else
5657 lt_cv_ld_reload_flag='-r'
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5660$as_echo "$lt_cv_ld_reload_flag" >&6; }
5661reload_flag=$lt_cv_ld_reload_flag
5662case $reload_flag in
5663"" | " "*) ;;
5664*) reload_flag=" $reload_flag" ;;
5665esac
5666reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667case $host_os in
5668 darwin*)
5669 if test "$GCC" = yes; then
5670 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5671 else
5672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5673 fi
5674 ;;
5675esac
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}objdump; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
5690if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 if test -n "$OBJDUMP"; then
5694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713OBJDUMP=$ac_cv_prog_OBJDUMP
5714if test -n "$OBJDUMP"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5716$as_echo "$OBJDUMP" >&6; }
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
5723fi
5724if test -z "$ac_cv_prog_OBJDUMP"; then
5725 ac_ct_OBJDUMP=$OBJDUMP
5726 # Extract the first word of "objdump", so it can be a program name with args.
5727set dummy objdump; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$ac_ct_OBJDUMP"; then
5734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748 done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5754if test -n "$ac_ct_OBJDUMP"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5756$as_echo "$ac_ct_OBJDUMP" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762 if test "x$ac_ct_OBJDUMP" = x; then
5763 OBJDUMP="false"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766yes:)
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769ac_tool_warned=yes ;;
5770esac
5771 OBJDUMP=$ac_ct_OBJDUMP
5772 fi
5773else
5774 OBJDUMP="$ac_cv_prog_OBJDUMP"
5775fi
5776
5777test -z "$OBJDUMP" && OBJDUMP=objdump
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5788$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5789if test "${lt_cv_deplibs_check_method+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791else
5792 lt_cv_file_magic_cmd='$MAGIC_CMD'
5793lt_cv_file_magic_test_file=
5794lt_cv_deplibs_check_method='unknown'
5795# Need to set the preceding variable on all platforms that support
5796# interlibrary dependencies.
5797# 'none' -- dependencies not supported.
5798# `unknown' -- same as none, but documents that we really don't know.
5799# 'pass_all' -- all dependencies passed with no checks.
5800# 'test_compile' -- check by making test program.
5801# 'file_magic [[regex]]' -- check by looking for files in library path
5802# which responds to the $file_magic_cmd with a given extended regex.
5803# If you have `file' or equivalent on your system and you're not sure
5804# whether `pass_all' will *always* work, you probably want this one.
5805
5806case $host_os in
5807aix[4-9]*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810
5811beos*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815bsdi[45]*)
5816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5817 lt_cv_file_magic_cmd='/usr/bin/file -L'
5818 lt_cv_file_magic_test_file=/shlib/libc.so
5819 ;;
5820
5821cygwin*)
5822 # func_win32_libid is a shell function defined in ltmain.sh
5823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824 lt_cv_file_magic_cmd='func_win32_libid'
5825 ;;
5826
5827mingw* | pw32*)
5828 # Base MSYS/MinGW do not provide the 'file' command needed by
5829 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5830 # unless we find 'file', for example because we are cross-compiling.
5831 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5832 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
5835 else
5836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5837 lt_cv_file_magic_cmd='$OBJDUMP -f'
5838 fi
5839 ;;
5840
5841cegcc*)
5842 # use the weaker test based on 'objdump'. See mingw*.
5843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5845 ;;
5846
5847darwin* | rhapsody*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851freebsd* | dragonfly*)
5852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5853 case $host_cpu in
5854 i*86 )
5855 # Not sure whether the presence of OpenBSD here was a mistake.
5856 # Let's accept both of them until this is cleared up.
5857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5858 lt_cv_file_magic_cmd=/usr/bin/file
5859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5860 ;;
5861 esac
5862 else
5863 lt_cv_deplibs_check_method=pass_all
5864 fi
5865 ;;
5866
5867gnu*)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870
5871haiku*)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874
5875hpux10.20* | hpux11*)
5876 lt_cv_file_magic_cmd=/usr/bin/file
5877 case $host_cpu in
5878 ia64*)
5879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5881 ;;
5882 hppa*64*)
5883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5885 ;;
5886 *)
5887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5889 ;;
5890 esac
5891 ;;
5892
5893interix[3-9]*)
5894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5896 ;;
5897
5898irix5* | irix6* | nonstopux*)
5899 case $LD in
5900 *-32|*"-32 ") libmagic=32-bit;;
5901 *-n32|*"-n32 ") libmagic=N32;;
5902 *-64|*"-64 ") libmagic=64-bit;;
5903 *) libmagic=never-match;;
5904 esac
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908# This must be Linux ELF.
5909linux* | k*bsd*-gnu | kopensolaris*-gnu)
5910 lt_cv_deplibs_check_method=pass_all
5911 ;;
5912
5913netbsd*)
5914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5916 else
5917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5918 fi
5919 ;;
5920
5921newos6*)
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5923 lt_cv_file_magic_cmd=/usr/bin/file
5924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5925 ;;
5926
5927*nto* | *qnx*)
5928 lt_cv_deplibs_check_method=pass_all
5929 ;;
5930
5931openbsd*)
5932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5934 else
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5936 fi
5937 ;;
5938
5939osf3* | osf4* | osf5*)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942
5943rdos*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947solaris*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5952 lt_cv_deplibs_check_method=pass_all
5953 ;;
5954
5955sysv4 | sysv4.3*)
5956 case $host_vendor in
5957 motorola)
5958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5960 ;;
5961 ncr)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964 sequent)
5965 lt_cv_file_magic_cmd='/bin/file'
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5967 ;;
5968 sni)
5969 lt_cv_file_magic_cmd='/bin/file'
5970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5971 lt_cv_file_magic_test_file=/lib/libc.so
5972 ;;
5973 siemens)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976 pc)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979 esac
5980 ;;
5981
5982tpf*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985esac
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5989$as_echo "$lt_cv_deplibs_check_method" >&6; }
5990file_magic_cmd=$lt_cv_file_magic_cmd
5991deplibs_check_method=$lt_cv_deplibs_check_method
5992test -z "$deplibs_check_method" && deplibs_check_method=unknown
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}ar; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if test "${ac_cv_prog_AR+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$AR"; then
6014 ac_cv_prog_AR="$AR" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_AR="${ac_tool_prefix}ar"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033AR=$ac_cv_prog_AR
6034if test -n "$AR"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6036$as_echo "$AR" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043fi
6044if test -z "$ac_cv_prog_AR"; then
6045 ac_ct_AR=$AR
6046 # Extract the first word of "ar", so it can be a program name with args.
6047set dummy ar; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052else
6053 if test -n "$ac_ct_AR"; then
6054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_AR="ar"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068 done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073ac_ct_AR=$ac_cv_prog_ac_ct_AR
6074if test -n "$ac_ct_AR"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6076$as_echo "$ac_ct_AR" >&6; }
6077else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082 if test "x$ac_ct_AR" = x; then
6083 AR="false"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086yes:)
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089ac_tool_warned=yes ;;
6090esac
6091 AR=$ac_ct_AR
6092 fi
6093else
6094 AR="$ac_cv_prog_AR"
6095fi
6096
6097test -z "$AR" && AR=ar
6098test -z "$AR_FLAGS" && AR_FLAGS=cru
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6112set dummy ${ac_tool_prefix}strip; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if test "${ac_cv_prog_STRIP+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$STRIP"; then
6119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133 done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138STRIP=$ac_cv_prog_STRIP
6139if test -n "$STRIP"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6141$as_echo "$STRIP" >&6; }
6142else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148fi
6149if test -z "$ac_cv_prog_STRIP"; then
6150 ac_ct_STRIP=$STRIP
6151 # Extract the first word of "strip", so it can be a program name with args.
6152set dummy strip; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157else
6158 if test -n "$ac_ct_STRIP"; then
6159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_STRIP="strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172done
6173 done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6179if test -n "$ac_ct_STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6181$as_echo "$ac_ct_STRIP" >&6; }
6182else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187 if test "x$ac_ct_STRIP" = x; then
6188 STRIP=":"
6189 else
6190 case $cross_compiling:$ac_tool_warned in
6191yes:)
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194ac_tool_warned=yes ;;
6195esac
6196 STRIP=$ac_ct_STRIP
6197 fi
6198else
6199 STRIP="$ac_cv_prog_STRIP"
6200fi
6201
6202test -z "$STRIP" && STRIP=:
6203
6204
6205
6206
6207
6208
6209if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6211set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if test "${ac_cv_prog_RANLIB+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$RANLIB"; then
6218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237RANLIB=$ac_cv_prog_RANLIB
6238if test -n "$RANLIB"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6240$as_echo "$RANLIB" >&6; }
6241else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246
6247fi
6248if test -z "$ac_cv_prog_RANLIB"; then
6249 ac_ct_RANLIB=$RANLIB
6250 # Extract the first word of "ranlib", so it can be a program name with args.
6251set dummy ranlib; ac_word=$2
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256else
6257 if test -n "$ac_ct_RANLIB"; then
6258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_RANLIB="ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271done
6272 done
6273IFS=$as_save_IFS
6274
6275fi
6276fi
6277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6278if test -n "$ac_ct_RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6280$as_echo "$ac_ct_RANLIB" >&6; }
6281else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
6284fi
6285
6286 if test "x$ac_ct_RANLIB" = x; then
6287 RANLIB=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290yes:)
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293ac_tool_warned=yes ;;
6294esac
6295 RANLIB=$ac_ct_RANLIB
6296 fi
6297else
6298 RANLIB="$ac_cv_prog_RANLIB"
6299fi
6300
6301test -z "$RANLIB" && RANLIB=:
6302
6303
6304
6305
6306
6307
6308# Determine commands to create old-style static archives.
6309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6310old_postinstall_cmds='chmod 644 $oldlib'
6311old_postuninstall_cmds=
6312
6313if test -n "$RANLIB"; then
6314 case $host_os in
6315 openbsd*)
6316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6317 ;;
6318 *)
6319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6320 ;;
6321 esac
6322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6323fi
6324
6325case $host_os in
6326 darwin*)
6327 lock_old_archive_extraction=yes ;;
6328 *)
6329 lock_old_archive_extraction=no ;;
6330esac
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370# If no C compiler was specified, use CC.
6371LTCC=${LTCC-"$CC"}
6372
6373# If no C compiler flags were specified, use CFLAGS.
6374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6375
6376# Allow CC to be a program name with arguments.
6377compiler=$CC
6378
6379
6380# Check for command to grab the raw symbol name followed by C symbol from nm.
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6382$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6383if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385else
6386
6387# These are sane defaults that work on at least a few old systems.
6388# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6389
6390# Character class describing NM global symbol codes.
6391symcode='[BCDEGRST]'
6392
6393# Regexp to match symbols that can be accessed directly from C.
6394sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6395
6396# Define system-specific variables.
6397case $host_os in
6398aix*)
6399 symcode='[BCDT]'
6400 ;;
6401cygwin* | mingw* | pw32* | cegcc*)
6402 symcode='[ABCDGISTW]'
6403 ;;
6404hpux*)
6405 if test "$host_cpu" = ia64; then
6406 symcode='[ABCDEGRST]'
6407 fi
6408 ;;
6409irix* | nonstopux*)
6410 symcode='[BCDEGRST]'
6411 ;;
6412osf*)
6413 symcode='[BCDEGQRST]'
6414 ;;
6415solaris*)
6416 symcode='[BDRT]'
6417 ;;
6418sco3.2v5*)
6419 symcode='[DT]'
6420 ;;
6421sysv4.2uw2*)
6422 symcode='[DT]'
6423 ;;
6424sysv5* | sco5v6* | unixware* | OpenUNIX*)
6425 symcode='[ABDT]'
6426 ;;
6427sysv4)
6428 symcode='[DFNSTU]'
6429 ;;
6430esac
6431
6432# If we're using GNU nm, then use its standard symbol codes.
6433case `$NM -V 2>&1` in
6434*GNU* | *'with BFD'*)
6435 symcode='[ABCDGIRSTW]' ;;
6436esac
6437
6438# Transform an extracted symbol line into a proper C declaration.
6439# Some systems (esp. on ia64) link data and code symbols differently,
6440# so use this general approach.
6441lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6442
6443# Transform an extracted symbol line into symbol name and symbol address
6444lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6445lt_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'"
6446
6447# Handle CRLF in mingw tool chain
6448opt_cr=
6449case $build_os in
6450mingw*)
6451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6452 ;;
6453esac
6454
6455# Try without a prefix underscore, then with it.
6456for ac_symprfx in "" "_"; do
6457
6458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6459 symxfrm="\\1 $ac_symprfx\\2 \\2"
6460
6461 # Write the raw and C identifiers.
6462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6463 # Fake it for dumpbin and say T for any non-static function
6464 # and D for any global variable.
6465 # Also find C++ and __fastcall symbols from MSVC++,
6466 # which start with @ or ?.
6467 lt_cv_sys_global_symbol_pipe="$AWK '"\
6468" {last_section=section; section=\$ 3};"\
6469" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6470" \$ 0!~/External *\|/{next};"\
6471" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6472" {if(hide[section]) next};"\
6473" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6474" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6475" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6476" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6477" ' prfx=^$ac_symprfx"
6478 else
6479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6480 fi
6481
6482 # Check to see that the pipe works correctly.
6483 pipe_works=no
6484
6485 rm -f conftest*
6486 cat > conftest.$ac_ext <<_LT_EOF
6487#ifdef __cplusplus
6488extern "C" {
6489#endif
6490char nm_test_var;
6491void nm_test_func(void);
6492void nm_test_func(void){}
6493#ifdef __cplusplus
6494}
6495#endif
6496int main(){nm_test_var='a';nm_test_func();return(0);}
6497_LT_EOF
6498
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 # Now try to grab the symbols.
6505 nlist=conftest.nm
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; } && test -s "$nlist"; then
6511 # Try sorting and uniquifying the output.
6512 if sort "$nlist" | uniq > "$nlist"T; then
6513 mv -f "$nlist"T "$nlist"
6514 else
6515 rm -f "$nlist"T
6516 fi
6517
6518 # Make sure that we snagged all the symbols we need.
6519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6521 cat <<_LT_EOF > conftest.$ac_ext
6522#ifdef __cplusplus
6523extern "C" {
6524#endif
6525
6526_LT_EOF
6527 # Now generate the symbol file.
6528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6529
6530 cat <<_LT_EOF >> conftest.$ac_ext
6531
6532/* The mapping between symbol names and symbols. */
6533const struct {
6534 const char *name;
6535 void *address;
6536}
6537lt__PROGRAM__LTX_preloaded_symbols[] =
6538{
6539 { "@PROGRAM@", (void *) 0 },
6540_LT_EOF
6541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6542 cat <<\_LT_EOF >> conftest.$ac_ext
6543 {0, (void *) 0}
6544};
6545
6546/* This works around a problem in FreeBSD linker */
6547#ifdef FREEBSD_WORKAROUND
6548static const void *lt_preloaded_setup() {
6549 return lt__PROGRAM__LTX_preloaded_symbols;
6550}
6551#endif
6552
6553#ifdef __cplusplus
6554}
6555#endif
6556_LT_EOF
6557 # Now try linking the two files.
6558 mv conftest.$ac_objext conftstm.$ac_objext
6559 lt_save_LIBS="$LIBS"
6560 lt_save_CFLAGS="$CFLAGS"
6561 LIBS="conftstm.$ac_objext"
6562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6564 (eval $ac_link) 2>&5
6565 ac_status=$?
6566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6568 pipe_works=yes
6569 fi
6570 LIBS="$lt_save_LIBS"
6571 CFLAGS="$lt_save_CFLAGS"
6572 else
6573 echo "cannot find nm_test_func in $nlist" >&5
6574 fi
6575 else
6576 echo "cannot find nm_test_var in $nlist" >&5
6577 fi
6578 else
6579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6580 fi
6581 else
6582 echo "$progname: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6584 fi
6585 rm -rf conftest* conftst*
6586
6587 # Do not use the global_symbol_pipe unless it works.
6588 if test "$pipe_works" = yes; then
6589 break
6590 else
6591 lt_cv_sys_global_symbol_pipe=
6592 fi
6593done
6594
6595fi
6596
6597if test -z "$lt_cv_sys_global_symbol_pipe"; then
6598 lt_cv_sys_global_symbol_to_cdecl=
6599fi
6600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6602$as_echo "failed" >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6605$as_echo "ok" >&6; }
6606fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630# Check whether --enable-libtool-lock was given.
6631if test "${enable_libtool_lock+set}" = set; then :
6632 enableval=$enable_libtool_lock;
6633fi
6634
6635test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6636
6637# Some flags need to be propagated to the compiler or linker for good
6638# libtool support.
6639case $host in
6640ia64-*-hpux*)
6641 # Find out which ABI we are using.
6642 echo 'int i;' > conftest.$ac_ext
6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6644 (eval $ac_compile) 2>&5
6645 ac_status=$?
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }; then
6648 case `/usr/bin/file conftest.$ac_objext` in
6649 *ELF-32*)
6650 HPUX_IA64_MODE="32"
6651 ;;
6652 *ELF-64*)
6653 HPUX_IA64_MODE="64"
6654 ;;
6655 esac
6656 fi
6657 rm -rf conftest*
6658 ;;
6659*-*-irix6*)
6660 # Find out which ABI we are using.
6661 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 if test "$lt_cv_prog_gnu_ld" = yes; then
6668 case `/usr/bin/file conftest.$ac_objext` in
6669 *32-bit*)
6670 LD="${LD-ld} -melf32bsmip"
6671 ;;
6672 *N32*)
6673 LD="${LD-ld} -melf32bmipn32"
6674 ;;
6675 *64-bit*)
6676 LD="${LD-ld} -melf64bmip"
6677 ;;
6678 esac
6679 else
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *32-bit*)
6682 LD="${LD-ld} -32"
6683 ;;
6684 *N32*)
6685 LD="${LD-ld} -n32"
6686 ;;
6687 *64-bit*)
6688 LD="${LD-ld} -64"
6689 ;;
6690 esac
6691 fi
6692 fi
6693 rm -rf conftest*
6694 ;;
6695
6696x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6697s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6698 # Find out which ABI we are using.
6699 echo 'int i;' > conftest.$ac_ext
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701 (eval $ac_compile) 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; }; then
6705 case `/usr/bin/file conftest.o` in
6706 *32-bit*)
6707 case $host in
6708 x86_64-*kfreebsd*-gnu)
6709 LD="${LD-ld} -m elf_i386_fbsd"
6710 ;;
6711 x86_64-*linux*)
6712 case `/usr/bin/file conftest.o` in
6713 *x86-64*)
6714 LD="${LD-ld} -m elf32_x86_64"
6715 ;;
6716 *)
6717 LD="${LD-ld} -m elf_i386"
6718 ;;
6719 esac
6720 ;;
6721 powerpc64le-*linux*)
6722 LD="${LD-ld} -m elf32lppclinux"
6723 ;;
6724 powerpc64-*linux*)
6725 LD="${LD-ld} -m elf32ppclinux"
6726 ;;
6727 s390x-*linux*)
6728 LD="${LD-ld} -m elf_s390"
6729 ;;
6730 sparc64-*linux*)
6731 LD="${LD-ld} -m elf32_sparc"
6732 ;;
6733 esac
6734 ;;
6735 *64-bit*)
6736 case $host in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_x86_64_fbsd"
6739 ;;
6740 x86_64-*linux*)
6741 LD="${LD-ld} -m elf_x86_64"
6742 ;;
6743 powerpcle-*linux*)
6744 LD="${LD-ld} -m elf64lppc"
6745 ;;
6746 powerpc-*linux*)
6747 LD="${LD-ld} -m elf64ppc"
6748 ;;
6749 s390*-*linux*|s390*-*tpf*)
6750 LD="${LD-ld} -m elf64_s390"
6751 ;;
6752 sparc*-*linux*)
6753 LD="${LD-ld} -m elf64_sparc"
6754 ;;
6755 esac
6756 ;;
6757 esac
6758 fi
6759 rm -rf conftest*
6760 ;;
6761
6762*-*-sco3.2v5*)
6763 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6764 SAVE_CFLAGS="$CFLAGS"
6765 CFLAGS="$CFLAGS -belf"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6767$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6768if test "${lt_cv_cc_needs_belf+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770else
6771 ac_ext=c
6772ac_cpp='$CPP $CPPFLAGS'
6773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778/* end confdefs.h. */
6779
6780int
6781main ()
6782{
6783
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788if ac_fn_c_try_link "$LINENO"; then :
6789 lt_cv_cc_needs_belf=yes
6790else
6791 lt_cv_cc_needs_belf=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 ac_ext=c
6796ac_cpp='$CPP $CPPFLAGS'
6797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6803$as_echo "$lt_cv_cc_needs_belf" >&6; }
6804 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6805 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6806 CFLAGS="$SAVE_CFLAGS"
6807 fi
6808 ;;
6809sparc*-*solaris*)
6810 # Find out which ABI we are using.
6811 echo 'int i;' > conftest.$ac_ext
6812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6813 (eval $ac_compile) 2>&5
6814 ac_status=$?
6815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6816 test $ac_status = 0; }; then
6817 case `/usr/bin/file conftest.o` in
6818 *64-bit*)
6819 case $lt_cv_prog_gnu_ld in
6820 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6821 *)
6822 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6823 LD="${LD-ld} -64"
6824 fi
6825 ;;
6826 esac
6827 ;;
6828 esac
6829 fi
6830 rm -rf conftest*
6831 ;;
6832esac
6833
6834need_locks="$enable_libtool_lock"
6835
6836
6837 case $host_os in
6838 rhapsody* | darwin*)
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$DSYMUTIL"; then
6848 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867DSYMUTIL=$ac_cv_prog_DSYMUTIL
6868if test -n "$DSYMUTIL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6870$as_echo "$DSYMUTIL" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_DSYMUTIL"; then
6879 ac_ct_DSYMUTIL=$DSYMUTIL
6880 # Extract the first word of "dsymutil", so it can be a program name with args.
6881set dummy dsymutil; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$ac_ct_DSYMUTIL"; then
6888 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902 done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6908if test -n "$ac_ct_DSYMUTIL"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6910$as_echo "$ac_ct_DSYMUTIL" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_ct_DSYMUTIL" = x; then
6917 DSYMUTIL=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 DSYMUTIL=$ac_ct_DSYMUTIL
6926 fi
6927else
6928 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6929fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6933set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$NMEDIT"; then
6940 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954 done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959NMEDIT=$ac_cv_prog_NMEDIT
6960if test -n "$NMEDIT"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6962$as_echo "$NMEDIT" >&6; }
6963else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968
6969fi
6970if test -z "$ac_cv_prog_NMEDIT"; then
6971 ac_ct_NMEDIT=$NMEDIT
6972 # Extract the first word of "nmedit", so it can be a program name with args.
6973set dummy nmedit; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 if test -n "$ac_ct_NMEDIT"; then
6980 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994 done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7000if test -n "$ac_ct_NMEDIT"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7002$as_echo "$ac_ct_NMEDIT" >&6; }
7003else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008 if test "x$ac_ct_NMEDIT" = x; then
7009 NMEDIT=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012yes:)
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015ac_tool_warned=yes ;;
7016esac
7017 NMEDIT=$ac_ct_NMEDIT
7018 fi
7019else
7020 NMEDIT="$ac_cv_prog_NMEDIT"
7021fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7025set dummy ${ac_tool_prefix}lipo; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
7028if test "${ac_cv_prog_LIPO+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$LIPO"; then
7032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051LIPO=$ac_cv_prog_LIPO
7052if test -n "$LIPO"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7054$as_echo "$LIPO" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060
7061fi
7062if test -z "$ac_cv_prog_LIPO"; then
7063 ac_ct_LIPO=$LIPO
7064 # Extract the first word of "lipo", so it can be a program name with args.
7065set dummy lipo; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070else
7071 if test -n "$ac_ct_LIPO"; then
7072 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_LIPO="lipo"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086 done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7092if test -n "$ac_ct_LIPO"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7094$as_echo "$ac_ct_LIPO" >&6; }
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100 if test "x$ac_ct_LIPO" = x; then
7101 LIPO=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104yes:)
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107ac_tool_warned=yes ;;
7108esac
7109 LIPO=$ac_ct_LIPO
7110 fi
7111else
7112 LIPO="$ac_cv_prog_LIPO"
7113fi
7114
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7117set dummy ${ac_tool_prefix}otool; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if test "${ac_cv_prog_OTOOL+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7122else
7123 if test -n "$OTOOL"; then
7124 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138 done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143OTOOL=$ac_cv_prog_OTOOL
7144if test -n "$OTOOL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7146$as_echo "$OTOOL" >&6; }
7147else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152
7153fi
7154if test -z "$ac_cv_prog_OTOOL"; then
7155 ac_ct_OTOOL=$OTOOL
7156 # Extract the first word of "otool", so it can be a program name with args.
7157set dummy otool; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162else
7163 if test -n "$ac_ct_OTOOL"; then
7164 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_ac_ct_OTOOL="otool"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178 done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7184if test -n "$ac_ct_OTOOL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7186$as_echo "$ac_ct_OTOOL" >&6; }
7187else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192 if test "x$ac_ct_OTOOL" = x; then
7193 OTOOL=":"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196yes:)
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199ac_tool_warned=yes ;;
7200esac
7201 OTOOL=$ac_ct_OTOOL
7202 fi
7203else
7204 OTOOL="$ac_cv_prog_OTOOL"
7205fi
7206
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7209set dummy ${ac_tool_prefix}otool64; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7214else
7215 if test -n "$OTOOL64"; then
7216 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230 done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235OTOOL64=$ac_cv_prog_OTOOL64
7236if test -n "$OTOOL64"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7238$as_echo "$OTOOL64" >&6; }
7239else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244
7245fi
7246if test -z "$ac_cv_prog_OTOOL64"; then
7247 ac_ct_OTOOL64=$OTOOL64
7248 # Extract the first word of "otool64", so it can be a program name with args.
7249set dummy otool64; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254else
7255 if test -n "$ac_ct_OTOOL64"; then
7256 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_ac_ct_OTOOL64="otool64"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269done
7270 done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7276if test -n "$ac_ct_OTOOL64"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7278$as_echo "$ac_ct_OTOOL64" >&6; }
7279else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284 if test "x$ac_ct_OTOOL64" = x; then
7285 OTOOL64=":"
7286 else
7287 case $cross_compiling:$ac_tool_warned in
7288yes:)
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291ac_tool_warned=yes ;;
7292esac
7293 OTOOL64=$ac_ct_OTOOL64
7294 fi
7295else
7296 OTOOL64="$ac_cv_prog_OTOOL64"
7297fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7326$as_echo_n "checking for -single_module linker flag... " >&6; }
7327if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7329else
7330 lt_cv_apple_cc_single_mod=no
7331 if test -z "${LT_MULTI_MODULE}"; then
7332 # By default we will add the -single_module flag. You can override
7333 # by either setting the environment variable LT_MULTI_MODULE
7334 # non-empty at configure time, or by adding -multi_module to the
7335 # link flags.
7336 rm -rf libconftest.dylib*
7337 echo "int foo(void){return 1;}" > conftest.c
7338 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7339-dynamiclib -Wl,-single_module conftest.c" >&5
7340 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7341 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7342 _lt_result=$?
7343 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7344 lt_cv_apple_cc_single_mod=yes
7345 else
7346 cat conftest.err >&5
7347 fi
7348 rm -rf libconftest.dylib*
7349 rm -f conftest.*
7350 fi
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7353$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7355$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7356if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358else
7359 lt_cv_ld_exported_symbols_list=no
7360 save_LDFLAGS=$LDFLAGS
7361 echo "_main" > conftest.sym
7362 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h. */
7365
7366int
7367main ()
7368{
7369
7370 ;
7371 return 0;
7372}
7373_ACEOF
7374if ac_fn_c_try_link "$LINENO"; then :
7375 lt_cv_ld_exported_symbols_list=yes
7376else
7377 lt_cv_ld_exported_symbols_list=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 LDFLAGS="$save_LDFLAGS"
7382
7383fi
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7385$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7387$as_echo_n "checking for -force_load linker flag... " >&6; }
7388if test "${lt_cv_ld_force_load+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390else
7391 lt_cv_ld_force_load=no
7392 cat > conftest.c << _LT_EOF
7393int forced_loaded() { return 2;}
7394_LT_EOF
7395 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7396 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7397 echo "$AR cru libconftest.a conftest.o" >&5
7398 $AR cru libconftest.a conftest.o 2>&5
7399 cat > conftest.c << _LT_EOF
7400int main() { return 0;}
7401_LT_EOF
7402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7404 _lt_result=$?
7405 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7406 lt_cv_ld_force_load=yes
7407 else
7408 cat conftest.err >&5
7409 fi
7410 rm -f conftest.err libconftest.a conftest conftest.c
7411 rm -rf conftest.dSYM
7412
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7415$as_echo "$lt_cv_ld_force_load" >&6; }
7416 case $host_os in
7417 rhapsody* | darwin1.[012])
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7419 darwin1.*)
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7421 darwin*) # darwin 5.x on
7422 # if running on 10.5 or later, the deployment target defaults
7423 # to the OS version, if on x86, and 10.4, the deployment
7424 # target defaults to 10.4. Don't you love it?
7425 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7426 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7428 10.[012][,.]*)
7429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7430 10.*)
7431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7432 esac
7433 ;;
7434 esac
7435 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7436 _lt_dar_single_mod='$single_module'
7437 fi
7438 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7439 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7440 else
7441 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7442 fi
7443 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7444 _lt_dsymutil='~$DSYMUTIL $lib || :'
7445 else
7446 _lt_dsymutil=
7447 fi
7448 ;;
7449 esac
7450
7451ac_ext=c
7452ac_cpp='$CPP $CPPFLAGS'
7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7457$as_echo_n "checking how to run the C preprocessor... " >&6; }
7458# On Suns, sometimes $CPP names a directory.
7459if test -n "$CPP" && test -d "$CPP"; then
7460 CPP=
7461fi
7462if test -z "$CPP"; then
7463 if test "${ac_cv_prog_CPP+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 # Double quotes because CPP needs to be expanded
7467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7468 do
7469 ac_preproc_ok=false
7470for ac_c_preproc_warn_flag in '' yes
7471do
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480#ifdef __STDC__
7481# include <limits.h>
7482#else
7483# include <assert.h>
7484#endif
7485 Syntax error
7486_ACEOF
7487if ac_fn_c_try_cpp "$LINENO"; then :
7488
7489else
7490 # Broken: fails on valid input.
7491continue
7492fi
7493rm -f conftest.err conftest.$ac_ext
7494
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h. */
7499#include <ac_nonexistent.h>
7500_ACEOF
7501if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7503continue
7504else
7505 # Passes both tests.
7506ac_preproc_ok=:
7507break
7508fi
7509rm -f conftest.err conftest.$ac_ext
7510
7511done
7512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513rm -f conftest.err conftest.$ac_ext
7514if $ac_preproc_ok; then :
7515 break
7516fi
7517
7518 done
7519 ac_cv_prog_CPP=$CPP
7520
7521fi
7522 CPP=$ac_cv_prog_CPP
7523else
7524 ac_cv_prog_CPP=$CPP
7525fi
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7527$as_echo "$CPP" >&6; }
7528ac_preproc_ok=false
7529for ac_c_preproc_warn_flag in '' yes
7530do
7531 # Use a header file that comes with gcc, so configuring glibc
7532 # with a fresh cross-compiler works.
7533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534 # <limits.h> exists even on freestanding compilers.
7535 # On the NeXT, cc -E runs the code through the compiler's parser,
7536 # not just through cpp. "Syntax error" is here to catch this case.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h. */
7539#ifdef __STDC__
7540# include <limits.h>
7541#else
7542# include <assert.h>
7543#endif
7544 Syntax error
7545_ACEOF
7546if ac_fn_c_try_cpp "$LINENO"; then :
7547
7548else
7549 # Broken: fails on valid input.
7550continue
7551fi
7552rm -f conftest.err conftest.$ac_ext
7553
7554 # OK, works on sane cases. Now check whether nonexistent headers
7555 # can be detected and how.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h. */
7558#include <ac_nonexistent.h>
7559_ACEOF
7560if ac_fn_c_try_cpp "$LINENO"; then :
7561 # Broken: success on invalid input.
7562continue
7563else
7564 # Passes both tests.
7565ac_preproc_ok=:
7566break
7567fi
7568rm -f conftest.err conftest.$ac_ext
7569
7570done
7571# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7572rm -f conftest.err conftest.$ac_ext
7573if $ac_preproc_ok; then :
7574
7575else
7576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7578as_fn_error "C preprocessor \"$CPP\" fails sanity check
7579See \`config.log' for more details." "$LINENO" 5; }
7580fi
7581
7582ac_ext=c
7583ac_cpp='$CPP $CPPFLAGS'
7584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7590$as_echo_n "checking for ANSI C header files... " >&6; }
7591if test "${ac_cv_header_stdc+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h. */
7596#include <stdlib.h>
7597#include <stdarg.h>
7598#include <string.h>
7599#include <float.h>
7600
7601int
7602main ()
7603{
7604
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_compile "$LINENO"; then :
7610 ac_cv_header_stdc=yes
7611else
7612 ac_cv_header_stdc=no
7613fi
7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615
7616if test $ac_cv_header_stdc = yes; then
7617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h. */
7620#include <string.h>
7621
7622_ACEOF
7623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "memchr" >/dev/null 2>&1; then :
7625
7626else
7627 ac_cv_header_stdc=no
7628fi
7629rm -f conftest*
7630
7631fi
7632
7633if test $ac_cv_header_stdc = yes; then
7634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637#include <stdlib.h>
7638
7639_ACEOF
7640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 $EGREP "free" >/dev/null 2>&1; then :
7642
7643else
7644 ac_cv_header_stdc=no
7645fi
7646rm -f conftest*
7647
7648fi
7649
7650if test $ac_cv_header_stdc = yes; then
7651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7652 if test "$cross_compiling" = yes; then :
7653 :
7654else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h. */
7657#include <ctype.h>
7658#include <stdlib.h>
7659#if ((' ' & 0x0FF) == 0x020)
7660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7662#else
7663# define ISLOWER(c) \
7664 (('a' <= (c) && (c) <= 'i') \
7665 || ('j' <= (c) && (c) <= 'r') \
7666 || ('s' <= (c) && (c) <= 'z'))
7667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668#endif
7669
7670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7671int
7672main ()
7673{
7674 int i;
7675 for (i = 0; i < 256; i++)
7676 if (XOR (islower (i), ISLOWER (i))
7677 || toupper (i) != TOUPPER (i))
7678 return 2;
7679 return 0;
7680}
7681_ACEOF
7682if ac_fn_c_try_run "$LINENO"; then :
7683
7684else
7685 ac_cv_header_stdc=no
7686fi
7687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7688 conftest.$ac_objext conftest.beam conftest.$ac_ext
7689fi
7690
7691fi
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7694$as_echo "$ac_cv_header_stdc" >&6; }
7695if test $ac_cv_header_stdc = yes; then
7696
7697$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7698
7699fi
7700
7701# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7702for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7703 inttypes.h stdint.h unistd.h
7704do :
7705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7707"
7708eval as_val=\$$as_ac_Header
7709 if test "x$as_val" = x""yes; then :
7710 cat >>confdefs.h <<_ACEOF
7711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719for ac_header in dlfcn.h
7720do :
7721 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7722"
7723if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7724 cat >>confdefs.h <<_ACEOF
7725#define HAVE_DLFCN_H 1
7726_ACEOF
7727
7728fi
7729
7730done
7731
7732
7733
7734
7735
7736# Set options
7737enable_dlopen=yes
7738
7739
7740
7741
7742 enable_win32_dll=no
7743
7744
7745 # Check whether --enable-shared was given.
7746if test "${enable_shared+set}" = set; then :
7747 enableval=$enable_shared; p=${PACKAGE-default}
7748 case $enableval in
7749 yes) enable_shared=yes ;;
7750 no) enable_shared=no ;;
7751 *)
7752 enable_shared=no
7753 # Look at the argument we got. We use all the common list separators.
7754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7755 for pkg in $enableval; do
7756 IFS="$lt_save_ifs"
7757 if test "X$pkg" = "X$p"; then
7758 enable_shared=yes
7759 fi
7760 done
7761 IFS="$lt_save_ifs"
7762 ;;
7763 esac
7764else
7765 enable_shared=yes
7766fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 # Check whether --enable-static was given.
7777if test "${enable_static+set}" = set; then :
7778 enableval=$enable_static; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_static=yes ;;
7781 no) enable_static=no ;;
7782 *)
7783 enable_static=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786 for pkg in $enableval; do
7787 IFS="$lt_save_ifs"
7788 if test "X$pkg" = "X$p"; then
7789 enable_static=yes
7790 fi
7791 done
7792 IFS="$lt_save_ifs"
7793 ;;
7794 esac
7795else
7796 enable_static=yes
7797fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808# Check whether --with-pic was given.
7809if test "${with_pic+set}" = set; then :
7810 withval=$with_pic; pic_mode="$withval"
7811else
7812 pic_mode=default
7813fi
7814
7815
7816test -z "$pic_mode" && pic_mode=default
7817
7818
7819
7820
7821
7822
7823
7824 # Check whether --enable-fast-install was given.
7825if test "${enable_fast_install+set}" = set; then :
7826 enableval=$enable_fast_install; p=${PACKAGE-default}
7827 case $enableval in
7828 yes) enable_fast_install=yes ;;
7829 no) enable_fast_install=no ;;
7830 *)
7831 enable_fast_install=no
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7834 for pkg in $enableval; do
7835 IFS="$lt_save_ifs"
7836 if test "X$pkg" = "X$p"; then
7837 enable_fast_install=yes
7838 fi
7839 done
7840 IFS="$lt_save_ifs"
7841 ;;
7842 esac
7843else
7844 enable_fast_install=yes
7845fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857# This can be used to rebuild libtool when needed
7858LIBTOOL_DEPS="$ltmain"
7859
7860# Always use our own libtool.
7861LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888test -z "$LN_S" && LN_S="ln -s"
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903if test -n "${ZSH_VERSION+set}" ; then
7904 setopt NO_GLOB_SUBST
7905fi
7906
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7908$as_echo_n "checking for objdir... " >&6; }
7909if test "${lt_cv_objdir+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911else
7912 rm -f .libs 2>/dev/null
7913mkdir .libs 2>/dev/null
7914if test -d .libs; then
7915 lt_cv_objdir=.libs
7916else
7917 # MS-DOS does not allow filenames that begin with a dot.
7918 lt_cv_objdir=_libs
7919fi
7920rmdir .libs 2>/dev/null
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7923$as_echo "$lt_cv_objdir" >&6; }
7924objdir=$lt_cv_objdir
7925
7926
7927
7928
7929
7930cat >>confdefs.h <<_ACEOF
7931#define LT_OBJDIR "$lt_cv_objdir/"
7932_ACEOF
7933
7934
7935
7936
7937case $host_os in
7938aix3*)
7939 # AIX sometimes has problems with the GCC collect2 program. For some
7940 # reason, if we set the COLLECT_NAMES environment variable, the problems
7941 # vanish in a puff of smoke.
7942 if test "X${COLLECT_NAMES+set}" != Xset; then
7943 COLLECT_NAMES=
7944 export COLLECT_NAMES
7945 fi
7946 ;;
7947esac
7948
7949# Global variables:
7950ofile=libtool
7951can_build_shared=yes
7952
7953# All known linkers require a `.a' archive for static linking (except MSVC,
7954# which needs '.lib').
7955libext=a
7956
7957with_gnu_ld="$lt_cv_prog_gnu_ld"
7958
7959old_CC="$CC"
7960old_CFLAGS="$CFLAGS"
7961
7962# Set sane defaults for various variables
7963test -z "$CC" && CC=cc
7964test -z "$LTCC" && LTCC=$CC
7965test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7966test -z "$LD" && LD=ld
7967test -z "$ac_objext" && ac_objext=o
7968
7969for cc_temp in $compiler""; do
7970 case $cc_temp in
7971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7973 \-*) ;;
7974 *) break;;
7975 esac
7976done
7977cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7978
7979
7980# Only perform the check for file, if the check method requires it
7981test -z "$MAGIC_CMD" && MAGIC_CMD=file
7982case $deplibs_check_method in
7983file_magic*)
7984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7986$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7987if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 case $MAGIC_CMD in
7991[\\/*] | ?:[\\/]*)
7992 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7993 ;;
7994*)
7995 lt_save_MAGIC_CMD="$MAGIC_CMD"
7996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7998 for ac_dir in $ac_dummy; do
7999 IFS="$lt_save_ifs"
8000 test -z "$ac_dir" && ac_dir=.
8001 if test -f $ac_dir/${ac_tool_prefix}file; then
8002 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8003 if test -n "$file_magic_test_file"; then
8004 case $deplibs_check_method in
8005 "file_magic "*)
8006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8009 $EGREP "$file_magic_regex" > /dev/null; then
8010 :
8011 else
8012 cat <<_LT_EOF 1>&2
8013
8014*** Warning: the command libtool uses to detect shared libraries,
8015*** $file_magic_cmd, produces output that libtool cannot recognize.
8016*** The result is that libtool may fail to recognize shared libraries
8017*** as such. This will affect the creation of libtool libraries that
8018*** depend on shared libraries, but programs linked with such libtool
8019*** libraries will work regardless of this problem. Nevertheless, you
8020*** may want to report the problem to your system manager and/or to
8021*** bug-libtool@gnu.org
8022
8023_LT_EOF
8024 fi ;;
8025 esac
8026 fi
8027 break
8028 fi
8029 done
8030 IFS="$lt_save_ifs"
8031 MAGIC_CMD="$lt_save_MAGIC_CMD"
8032 ;;
8033esac
8034fi
8035
8036MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037if test -n "$MAGIC_CMD"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8039$as_echo "$MAGIC_CMD" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045
8046
8047
8048
8049if test -z "$lt_cv_path_MAGIC_CMD"; then
8050 if test -n "$ac_tool_prefix"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8052$as_echo_n "checking for file... " >&6; }
8053if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055else
8056 case $MAGIC_CMD in
8057[\\/*] | ?:[\\/]*)
8058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8059 ;;
8060*)
8061 lt_save_MAGIC_CMD="$MAGIC_CMD"
8062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8064 for ac_dir in $ac_dummy; do
8065 IFS="$lt_save_ifs"
8066 test -z "$ac_dir" && ac_dir=.
8067 if test -f $ac_dir/file; then
8068 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8069 if test -n "$file_magic_test_file"; then
8070 case $deplibs_check_method in
8071 "file_magic "*)
8072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 $EGREP "$file_magic_regex" > /dev/null; then
8076 :
8077 else
8078 cat <<_LT_EOF 1>&2
8079
8080*** Warning: the command libtool uses to detect shared libraries,
8081*** $file_magic_cmd, produces output that libtool cannot recognize.
8082*** The result is that libtool may fail to recognize shared libraries
8083*** as such. This will affect the creation of libtool libraries that
8084*** depend on shared libraries, but programs linked with such libtool
8085*** libraries will work regardless of this problem. Nevertheless, you
8086*** may want to report the problem to your system manager and/or to
8087*** bug-libtool@gnu.org
8088
8089_LT_EOF
8090 fi ;;
8091 esac
8092 fi
8093 break
8094 fi
8095 done
8096 IFS="$lt_save_ifs"
8097 MAGIC_CMD="$lt_save_MAGIC_CMD"
8098 ;;
8099esac
8100fi
8101
8102MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103if test -n "$MAGIC_CMD"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8105$as_echo "$MAGIC_CMD" >&6; }
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111
8112 else
8113 MAGIC_CMD=:
8114 fi
8115fi
8116
8117 fi
8118 ;;
8119esac
8120
8121# Use C for the default configuration in the libtool script
8122
8123lt_save_CC="$CC"
8124ac_ext=c
8125ac_cpp='$CPP $CPPFLAGS'
8126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
8130
8131# Source file extension for C test sources.
8132ac_ext=c
8133
8134# Object file extension for compiled C test sources.
8135objext=o
8136objext=$objext
8137
8138# Code to be used in simple compile tests
8139lt_simple_compile_test_code="int some_variable = 0;"
8140
8141# Code to be used in simple link tests
8142lt_simple_link_test_code='int main(){return(0);}'
8143
8144
8145
8146
8147
8148
8149
8150# If no C compiler was specified, use CC.
8151LTCC=${LTCC-"$CC"}
8152
8153# If no C compiler flags were specified, use CFLAGS.
8154LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8155
8156# Allow CC to be a program name with arguments.
8157compiler=$CC
8158
8159# Save the default compiler, since it gets overwritten when the other
8160# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8161compiler_DEFAULT=$CC
8162
8163# save warnings/boilerplate of simple test code
8164ac_outfile=conftest.$ac_objext
8165echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8167_lt_compiler_boilerplate=`cat conftest.err`
8168$RM conftest*
8169
8170ac_outfile=conftest.$ac_objext
8171echo "$lt_simple_link_test_code" >conftest.$ac_ext
8172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8173_lt_linker_boilerplate=`cat conftest.err`
8174$RM -r conftest*
8175
8176
8177## CAVEAT EMPTOR:
8178## There is no encapsulation within the following macros, do not change
8179## the running order or otherwise move them around unless you know exactly
8180## what you are doing...
8181if test -n "$compiler"; then
8182
8183lt_prog_compiler_no_builtin_flag=
8184
8185if test "$GCC" = yes; then
8186 case $cc_basename in
8187 nvcc*)
8188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8189 *)
8190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8191 esac
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8194$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8195if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197else
8198 lt_cv_prog_compiler_rtti_exceptions=no
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201 lt_compiler_flag="-fno-rtti -fno-exceptions"
8202 # Insert the option either (1) after the last *FLAGS variable, or
8203 # (2) before a word containing "conftest.", or (3) at the end.
8204 # Note that $ac_compile itself does not contain backslashes and begins
8205 # with a dollar sign (not a hyphen), so the echo should work correctly.
8206 # The option is referenced via a variable to avoid confusing sed.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>conftest.err)
8213 ac_status=$?
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s "$ac_outfile"; then
8217 # The compiler can only warn and ignore the option if not recognized
8218 # So say no if there are warnings other than the usual output.
8219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222 lt_cv_prog_compiler_rtti_exceptions=yes
8223 fi
8224 fi
8225 $RM conftest*
8226
8227fi
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8229$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8230
8231if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8233else
8234 :
8235fi
8236
8237fi
8238
8239
8240
8241
8242
8243
8244 lt_prog_compiler_wl=
8245lt_prog_compiler_pic=
8246lt_prog_compiler_static=
8247
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8249$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8250
8251 if test "$GCC" = yes; then
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_static='-static'
8254
8255 case $host_os in
8256 aix*)
8257 # All AIX code is PIC.
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8261 fi
8262 lt_prog_compiler_pic='-fPIC'
8263 ;;
8264
8265 amigaos*)
8266 case $host_cpu in
8267 powerpc)
8268 # see comment about AmigaOS4 .so support
8269 lt_prog_compiler_pic='-fPIC'
8270 ;;
8271 m68k)
8272 # FIXME: we need at least 68020 code to build shared libraries, but
8273 # adding the `-m68020' flag to GCC prevents building anything better,
8274 # like `-m68040'.
8275 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8276 ;;
8277 esac
8278 ;;
8279
8280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8281 # PIC is the default for these OSes.
8282 ;;
8283
8284 mingw* | cygwin* | pw32* | os2* | cegcc*)
8285 # This hack is so that the source file can tell whether it is being
8286 # built for inclusion in a dll (and should export symbols for example).
8287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8288 # (--disable-auto-import) libraries
8289 lt_prog_compiler_pic='-DDLL_EXPORT'
8290 ;;
8291
8292 darwin* | rhapsody*)
8293 # PIC is the default on this platform
8294 # Common symbols not allowed in MH_DYLIB files
8295 lt_prog_compiler_pic='-fno-common'
8296 ;;
8297
8298 haiku*)
8299 # PIC is the default for Haiku.
8300 # The "-static" flag exists, but is broken.
8301 lt_prog_compiler_static=
8302 ;;
8303
8304 hpux*)
8305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8307 # sets the default TLS model and affects inlining.
8308 case $host_cpu in
8309 hppa*64*)
8310 # +Z the default
8311 ;;
8312 *)
8313 lt_prog_compiler_pic='-fPIC'
8314 ;;
8315 esac
8316 ;;
8317
8318 interix[3-9]*)
8319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8320 # Instead, we relocate shared libraries at runtime.
8321 ;;
8322
8323 msdosdjgpp*)
8324 # Just because we use GCC doesn't mean we suddenly get shared libraries
8325 # on systems that don't support them.
8326 lt_prog_compiler_can_build_shared=no
8327 enable_shared=no
8328 ;;
8329
8330 *nto* | *qnx*)
8331 # QNX uses GNU C++, but need to define -shared option too, otherwise
8332 # it will coredump.
8333 lt_prog_compiler_pic='-fPIC -shared'
8334 ;;
8335
8336 sysv4*MP*)
8337 if test -d /usr/nec; then
8338 lt_prog_compiler_pic=-Kconform_pic
8339 fi
8340 ;;
8341
8342 *)
8343 lt_prog_compiler_pic='-fPIC'
8344 ;;
8345 esac
8346
8347 case $cc_basename in
8348 nvcc*) # Cuda Compiler Driver 2.2
8349 lt_prog_compiler_wl='-Xlinker '
8350 lt_prog_compiler_pic='-Xcompiler -fPIC'
8351 ;;
8352 esac
8353 else
8354 # PORTME Check for flag to pass linker flags through the system compiler.
8355 case $host_os in
8356 aix*)
8357 lt_prog_compiler_wl='-Wl,'
8358 if test "$host_cpu" = ia64; then
8359 # AIX 5 now supports IA64 processor
8360 lt_prog_compiler_static='-Bstatic'
8361 else
8362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8363 fi
8364 ;;
8365
8366 mingw* | cygwin* | pw32* | os2* | cegcc*)
8367 # This hack is so that the source file can tell whether it is being
8368 # built for inclusion in a dll (and should export symbols for example).
8369 lt_prog_compiler_pic='-DDLL_EXPORT'
8370 ;;
8371
8372 hpux9* | hpux10* | hpux11*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8375 # not for PA HP-UX.
8376 case $host_cpu in
8377 hppa*64*|ia64*)
8378 # +Z the default
8379 ;;
8380 *)
8381 lt_prog_compiler_pic='+Z'
8382 ;;
8383 esac
8384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8385 lt_prog_compiler_static='${wl}-a ${wl}archive'
8386 ;;
8387
8388 irix5* | irix6* | nonstopux*)
8389 lt_prog_compiler_wl='-Wl,'
8390 # PIC (with -KPIC) is the default.
8391 lt_prog_compiler_static='-non_shared'
8392 ;;
8393
8394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8395 case $cc_basename in
8396 # old Intel for x86_64 which still supported -KPIC.
8397 ecc*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-KPIC'
8400 lt_prog_compiler_static='-static'
8401 ;;
8402 # icc used to be incompatible with GCC.
8403 # ICC 10 doesn't accept -KPIC any more.
8404 icc* | ifort*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-fPIC'
8407 lt_prog_compiler_static='-static'
8408 ;;
8409 # Lahey Fortran 8.1.
8410 lf95*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='--shared'
8413 lt_prog_compiler_static='--static'
8414 ;;
8415 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8416 # Portland Group compilers (*not* the Pentium gcc compiler,
8417 # which looks to be a dead project)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-fpic'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422 ccc*)
8423 lt_prog_compiler_wl='-Wl,'
8424 # All Alpha code is PIC.
8425 lt_prog_compiler_static='-non_shared'
8426 ;;
8427 xl* | bgxl* | bgf* | mpixl*)
8428 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-qpic'
8431 lt_prog_compiler_static='-qstaticlink'
8432 ;;
8433 *)
8434 case `$CC -V 2>&1 | sed 5q` in
8435 *Sun\ F* | *Sun*Fortran*)
8436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_wl=''
8440 ;;
8441 *Sun\ C*)
8442 # Sun C 5.9
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_wl='-Wl,'
8446 ;;
8447 esac
8448 ;;
8449 esac
8450 ;;
8451
8452 newsos6)
8453 lt_prog_compiler_pic='-KPIC'
8454 lt_prog_compiler_static='-Bstatic'
8455 ;;
8456
8457 *nto* | *qnx*)
8458 # QNX uses GNU C++, but need to define -shared option too, otherwise
8459 # it will coredump.
8460 lt_prog_compiler_pic='-fPIC -shared'
8461 ;;
8462
8463 osf3* | osf4* | osf5*)
8464 lt_prog_compiler_wl='-Wl,'
8465 # All OSF/1 code is PIC.
8466 lt_prog_compiler_static='-non_shared'
8467 ;;
8468
8469 rdos*)
8470 lt_prog_compiler_static='-non_shared'
8471 ;;
8472
8473 solaris*)
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 case $cc_basename in
8477 f77* | f90* | f95*)
8478 lt_prog_compiler_wl='-Qoption ld ';;
8479 *)
8480 lt_prog_compiler_wl='-Wl,';;
8481 esac
8482 ;;
8483
8484 sunos4*)
8485 lt_prog_compiler_wl='-Qoption ld '
8486 lt_prog_compiler_pic='-PIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 ;;
8489
8490 sysv4 | sysv4.2uw2* | sysv4.3*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-Bstatic'
8494 ;;
8495
8496 sysv4*MP*)
8497 if test -d /usr/nec ;then
8498 lt_prog_compiler_pic='-Kconform_pic'
8499 lt_prog_compiler_static='-Bstatic'
8500 fi
8501 ;;
8502
8503 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 ;;
8508
8509 unicos*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_can_build_shared=no
8512 ;;
8513
8514 uts4*)
8515 lt_prog_compiler_pic='-pic'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518
8519 *)
8520 lt_prog_compiler_can_build_shared=no
8521 ;;
8522 esac
8523 fi
8524
8525case $host_os in
8526 # For platforms which do not support PIC, -DPIC is meaningless:
8527 *djgpp*)
8528 lt_prog_compiler_pic=
8529 ;;
8530 *)
8531 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8532 ;;
8533esac
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8535$as_echo "$lt_prog_compiler_pic" >&6; }
8536
8537
8538
8539
8540
8541
8542#
8543# Check to make sure the PIC flag actually works.
8544#
8545if test -n "$lt_prog_compiler_pic"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8547$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8548if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551 lt_cv_prog_compiler_pic_works=no
8552 ac_outfile=conftest.$ac_objext
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 # The option is referenced via a variable to avoid confusing sed.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>conftest.err)
8566 ac_status=$?
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s "$ac_outfile"; then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings other than the usual output.
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_pic_works=yes
8576 fi
8577 fi
8578 $RM conftest*
8579
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8582$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8583
8584if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8585 case $lt_prog_compiler_pic in
8586 "" | " "*) ;;
8587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8588 esac
8589else
8590 lt_prog_compiler_pic=
8591 lt_prog_compiler_can_build_shared=no
8592fi
8593
8594fi
8595
8596
8597
8598
8599
8600
8601#
8602# Check to make sure the static flag actually works.
8603#
8604wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8606$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8607if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609else
8610 lt_cv_prog_compiler_static_works=no
8611 save_LDFLAGS="$LDFLAGS"
8612 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8613 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8615 # The linker can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 if test -s conftest.err; then
8618 # Append any errors to the config.log.
8619 cat conftest.err 1>&5
8620 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8622 if diff conftest.exp conftest.er2 >/dev/null; then
8623 lt_cv_prog_compiler_static_works=yes
8624 fi
8625 else
8626 lt_cv_prog_compiler_static_works=yes
8627 fi
8628 fi
8629 $RM -r conftest*
8630 LDFLAGS="$save_LDFLAGS"
8631
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8634$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8635
8636if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8637 :
8638else
8639 lt_prog_compiler_static=
8640fi
8641
8642
8643
8644
8645
8646
8647
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8650if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652else
8653 lt_cv_prog_compiler_c_o=no
8654 $RM -r conftest 2>/dev/null
8655 mkdir conftest
8656 cd conftest
8657 mkdir out
8658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8659
8660 lt_compiler_flag="-o out/conftest2.$ac_objext"
8661 # Insert the option either (1) after the last *FLAGS variable, or
8662 # (2) before a word containing "conftest.", or (3) at the end.
8663 # Note that $ac_compile itself does not contain backslashes and begins
8664 # with a dollar sign (not a hyphen), so the echo should work correctly.
8665 lt_compile=`echo "$ac_compile" | $SED \
8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668 -e 's:$: $lt_compiler_flag:'`
8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670 (eval "$lt_compile" 2>out/conftest.err)
8671 ac_status=$?
8672 cat out/conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8675 then
8676 # The compiler can only warn and ignore the option if not recognized
8677 # So say no if there are warnings
8678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8681 lt_cv_prog_compiler_c_o=yes
8682 fi
8683 fi
8684 chmod u+w . 2>&5
8685 $RM conftest*
8686 # SGI C++ compiler will create directory out/ii_files/ for
8687 # template instantiation
8688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8689 $RM out/* && rmdir out
8690 cd ..
8691 $RM -r conftest
8692 $RM conftest*
8693
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8696$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8697
8698
8699
8700
8701
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8704$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8705if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707else
8708 lt_cv_prog_compiler_c_o=no
8709 $RM -r conftest 2>/dev/null
8710 mkdir conftest
8711 cd conftest
8712 mkdir out
8713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714
8715 lt_compiler_flag="-o out/conftest2.$ac_objext"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 lt_compile=`echo "$ac_compile" | $SED \
8721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723 -e 's:$: $lt_compiler_flag:'`
8724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725 (eval "$lt_compile" 2>out/conftest.err)
8726 ac_status=$?
8727 cat out/conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8730 then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings
8733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_c_o=yes
8737 fi
8738 fi
8739 chmod u+w . 2>&5
8740 $RM conftest*
8741 # SGI C++ compiler will create directory out/ii_files/ for
8742 # template instantiation
8743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8744 $RM out/* && rmdir out
8745 cd ..
8746 $RM -r conftest
8747 $RM conftest*
8748
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8751$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8752
8753
8754
8755
8756hard_links="nottested"
8757if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8758 # do not overwrite the value of need_locks provided by the user
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8760$as_echo_n "checking if we can lock with hard links... " >&6; }
8761 hard_links=yes
8762 $RM conftest*
8763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764 touch conftest.a
8765 ln conftest.a conftest.b 2>&5 || hard_links=no
8766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8768$as_echo "$hard_links" >&6; }
8769 if test "$hard_links" = no; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8771$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8772 need_locks=warn
8773 fi
8774else
8775 need_locks=no
8776fi
8777
8778
8779
8780
8781
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8784$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8785
8786 runpath_var=
8787 allow_undefined_flag=
8788 always_export_symbols=no
8789 archive_cmds=
8790 archive_expsym_cmds=
8791 compiler_needs_object=no
8792 enable_shared_with_static_runtimes=no
8793 export_dynamic_flag_spec=
8794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8795 hardcode_automatic=no
8796 hardcode_direct=no
8797 hardcode_direct_absolute=no
8798 hardcode_libdir_flag_spec=
8799 hardcode_libdir_flag_spec_ld=
8800 hardcode_libdir_separator=
8801 hardcode_minus_L=no
8802 hardcode_shlibpath_var=unsupported
8803 inherit_rpath=no
8804 link_all_deplibs=unknown
8805 module_cmds=
8806 module_expsym_cmds=
8807 old_archive_from_new_cmds=
8808 old_archive_from_expsyms_cmds=
8809 thread_safe_flag_spec=
8810 whole_archive_flag_spec=
8811 # include_expsyms should be a list of space-separated symbols to be *always*
8812 # included in the symbol list
8813 include_expsyms=
8814 # exclude_expsyms can be an extended regexp of symbols to exclude
8815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8817 # as well as any symbol that contains `d'.
8818 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8819 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8820 # platforms (ab)use it in PIC code, but their linkers get confused if
8821 # the symbol is explicitly referenced. Since portable code cannot
8822 # rely on this symbol name, it's probably fine to never include it in
8823 # preloaded symbol tables.
8824 # Exclude shared library initialization/finalization symbols.
8825 extract_expsyms_cmds=
8826
8827 case $host_os in
8828 cygwin* | mingw* | pw32* | cegcc*)
8829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8830 # When not using gcc, we currently assume that we are using
8831 # Microsoft Visual C++.
8832 if test "$GCC" != yes; then
8833 with_gnu_ld=no
8834 fi
8835 ;;
8836 interix*)
8837 # we just hope/assume this is gcc and not c89 (= MSVC++)
8838 with_gnu_ld=yes
8839 ;;
8840 openbsd*)
8841 with_gnu_ld=no
8842 ;;
8843 esac
8844
8845 ld_shlibs=yes
8846
8847 # On some targets, GNU ld is compatible enough with the native linker
8848 # that we're better off using the native interface for both.
8849 lt_use_gnu_ld_interface=no
8850 if test "$with_gnu_ld" = yes; then
8851 case $host_os in
8852 aix*)
8853 # The AIX port of GNU ld has always aspired to compatibility
8854 # with the native linker. However, as the warning in the GNU ld
8855 # block says, versions before 2.19.5* couldn't really create working
8856 # shared libraries, regardless of the interface used.
8857 case `$LD -v 2>&1` in
8858 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8859 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8860 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8861 *)
8862 lt_use_gnu_ld_interface=yes
8863 ;;
8864 esac
8865 ;;
8866 *)
8867 lt_use_gnu_ld_interface=yes
8868 ;;
8869 esac
8870 fi
8871
8872 if test "$lt_use_gnu_ld_interface" = yes; then
8873 # If archive_cmds runs LD, not CC, wlarc should be empty
8874 wlarc='${wl}'
8875
8876 # Set some defaults for GNU ld with shared library support. These
8877 # are reset later if shared libraries are not supported. Putting them
8878 # here allows them to be overridden if necessary.
8879 runpath_var=LD_RUN_PATH
8880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881 export_dynamic_flag_spec='${wl}--export-dynamic'
8882 # ancient GNU ld didn't support --whole-archive et. al.
8883 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8885 else
8886 whole_archive_flag_spec=
8887 fi
8888 supports_anon_versioning=no
8889 case `$LD -v 2>&1` in
8890 *GNU\ gold*) supports_anon_versioning=yes ;;
8891 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8892 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8893 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8894 *\ 2.11.*) ;; # other 2.11 versions
8895 *) supports_anon_versioning=yes ;;
8896 esac
8897
8898 # See if GNU ld supports shared libraries.
8899 case $host_os in
8900 aix[3-9]*)
8901 # On AIX/PPC, the GNU linker is very broken
8902 if test "$host_cpu" != ia64; then
8903 ld_shlibs=no
8904 cat <<_LT_EOF 1>&2
8905
8906*** Warning: the GNU linker, at least up to release 2.19, is reported
8907*** to be unable to reliably create shared libraries on AIX.
8908*** Therefore, libtool is disabling shared libraries support. If you
8909*** really care for shared libraries, you may want to install binutils
8910*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8911*** You will then need to restart the configuration process.
8912
8913_LT_EOF
8914 fi
8915 ;;
8916
8917 amigaos*)
8918 case $host_cpu in
8919 powerpc)
8920 # see comment about AmigaOS4 .so support
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds=''
8923 ;;
8924 m68k)
8925 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_minus_L=yes
8928 ;;
8929 esac
8930 ;;
8931
8932 beos*)
8933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934 allow_undefined_flag=unsupported
8935 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8936 # support --undefined. This deserves some investigation. FIXME
8937 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 else
8939 ld_shlibs=no
8940 fi
8941 ;;
8942
8943 cygwin* | mingw* | pw32* | cegcc*)
8944 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8945 # as there is no search path for DLLs.
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 export_dynamic_flag_spec='${wl}--export-all-symbols'
8948 allow_undefined_flag=unsupported
8949 always_export_symbols=no
8950 enable_shared_with_static_runtimes=yes
8951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8952
8953 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8955 # If the export-symbols file already is a .def file (1st line
8956 # is EXPORTS), use it as is; otherwise, prepend...
8957 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8958 cp $export_symbols $output_objdir/$soname.def;
8959 else
8960 echo EXPORTS > $output_objdir/$soname.def;
8961 cat $export_symbols >> $output_objdir/$soname.def;
8962 fi~
8963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968
8969 haiku*)
8970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 link_all_deplibs=yes
8972 ;;
8973
8974 interix[3-9]*)
8975 hardcode_direct=no
8976 hardcode_shlibpath_var=no
8977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978 export_dynamic_flag_spec='${wl}-E'
8979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8980 # Instead, shared libraries are loaded at an image base (0x10000000 by
8981 # default) and relocated if they conflict, which is a slow very memory
8982 # consuming and fragmenting process. To avoid this, we pick a random,
8983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8986 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8987 ;;
8988
8989 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8990 tmp_diet=no
8991 if test "$host_os" = linux-dietlibc; then
8992 case $cc_basename in
8993 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8994 esac
8995 fi
8996 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8997 && test "$tmp_diet" = no
8998 then
8999 tmp_addflag=' $pic_flag'
9000 tmp_sharedflag='-shared'
9001 case $cc_basename,$host_cpu in
9002 pgcc*) # Portland Group C compiler
9003 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9004 tmp_addflag=' $pic_flag'
9005 ;;
9006 pgf77* | pgf90* | pgf95* | pgfortran*)
9007 # Portland Group f77 and f90 compilers
9008 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9009 tmp_addflag=' $pic_flag -Mnomain' ;;
9010 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9011 tmp_addflag=' -i_dynamic' ;;
9012 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9013 tmp_addflag=' -i_dynamic -nofor_main' ;;
9014 ifc* | ifort*) # Intel Fortran compiler
9015 tmp_addflag=' -nofor_main' ;;
9016 lf95*) # Lahey Fortran 8.1
9017 whole_archive_flag_spec=
9018 tmp_sharedflag='--shared' ;;
9019 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9020 tmp_sharedflag='-qmkshrobj'
9021 tmp_addflag= ;;
9022 nvcc*) # Cuda Compiler Driver 2.2
9023 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9024 compiler_needs_object=yes
9025 ;;
9026 esac
9027 case `$CC -V 2>&1 | sed 5q` in
9028 *Sun\ C*) # Sun C 5.9
9029 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9030 compiler_needs_object=yes
9031 tmp_sharedflag='-G' ;;
9032 *Sun\ F*) # Sun Fortran 8.3
9033 tmp_sharedflag='-G' ;;
9034 esac
9035 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9042 fi
9043
9044 case $cc_basename in
9045 xlf* | bgf* | bgxlf* | mpixlf*)
9046 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9047 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9048 hardcode_libdir_flag_spec=
9049 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9050 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9051 if test "x$supports_anon_versioning" = xyes; then
9052 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9054 echo "local: *; };" >> $output_objdir/$libname.ver~
9055 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9056 fi
9057 ;;
9058 esac
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063
9064 netbsd*)
9065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9066 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9067 wlarc=
9068 else
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071 fi
9072 ;;
9073
9074 solaris*)
9075 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9076 ld_shlibs=no
9077 cat <<_LT_EOF 1>&2
9078
9079*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9080*** create shared libraries on Solaris systems. Therefore, libtool
9081*** is disabling shared libraries support. We urge you to upgrade GNU
9082*** binutils to release 2.9.1 or newer. Another option is to modify
9083*** your PATH or compiler configuration so that the native linker is
9084*** used, and then restart.
9085
9086_LT_EOF
9087 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 else
9091 ld_shlibs=no
9092 fi
9093 ;;
9094
9095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9096 case `$LD -v 2>&1` in
9097 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9098 ld_shlibs=no
9099 cat <<_LT_EOF 1>&2
9100
9101*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9102*** reliably create shared libraries on SCO systems. Therefore, libtool
9103*** is disabling shared libraries support. We urge you to upgrade GNU
9104*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9105*** your PATH or compiler configuration so that the native linker is
9106*** used, and then restart.
9107
9108_LT_EOF
9109 ;;
9110 *)
9111 # For security reasons, it is highly recommended that you always
9112 # use absolute paths for naming shared libraries, and exclude the
9113 # DT_RUNPATH tag from executables and libraries. But doing so
9114 # requires that you compile everything twice, which is a pain.
9115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9119 else
9120 ld_shlibs=no
9121 fi
9122 ;;
9123 esac
9124 ;;
9125
9126 sunos4*)
9127 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9128 wlarc=
9129 hardcode_direct=yes
9130 hardcode_shlibpath_var=no
9131 ;;
9132
9133 *)
9134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137 else
9138 ld_shlibs=no
9139 fi
9140 ;;
9141 esac
9142
9143 if test "$ld_shlibs" = no; then
9144 runpath_var=
9145 hardcode_libdir_flag_spec=
9146 export_dynamic_flag_spec=
9147 whole_archive_flag_spec=
9148 fi
9149 else
9150 # PORTME fill in a description of your system's linker (not GNU ld)
9151 case $host_os in
9152 aix3*)
9153 allow_undefined_flag=unsupported
9154 always_export_symbols=yes
9155 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9156 # Note: this linker hardcodes the directories in LIBPATH if there
9157 # are no directories specified by -L.
9158 hardcode_minus_L=yes
9159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9160 # Neither direct hardcoding nor static linking is supported with a
9161 # broken collect2.
9162 hardcode_direct=unsupported
9163 fi
9164 ;;
9165
9166 aix[4-9]*)
9167 if test "$host_cpu" = ia64; then
9168 # On IA64, the linker does run time linking by default, so we don't
9169 # have to do anything special.
9170 aix_use_runtimelinking=no
9171 exp_sym_flag='-Bexport'
9172 no_entry_flag=""
9173 else
9174 # If we're using GNU nm, then we don't want the "-C" option.
9175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9176 # Also, AIX nm treats weak defined symbols like other global
9177 # defined symbols, whereas GNU nm marks them as "W".
9178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9179 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9180 else
9181 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9182 fi
9183 aix_use_runtimelinking=no
9184
9185 # Test if we are trying to use run time linking or normal
9186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9187 # need to do runtime linking.
9188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9189 for ld_flag in $LDFLAGS; do
9190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9191 aix_use_runtimelinking=yes
9192 break
9193 fi
9194 done
9195 ;;
9196 esac
9197
9198 exp_sym_flag='-bexport'
9199 no_entry_flag='-bnoentry'
9200 fi
9201
9202 # When large executables or shared objects are built, AIX ld can
9203 # have problems creating the table of contents. If linking a library
9204 # or program results in "error TOC overflow" add -mminimal-toc to
9205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9207
9208 archive_cmds=''
9209 hardcode_direct=yes
9210 hardcode_direct_absolute=yes
9211 hardcode_libdir_separator=':'
9212 link_all_deplibs=yes
9213 file_list_spec='${wl}-f,'
9214
9215 if test "$GCC" = yes; then
9216 case $host_os in aix4.[012]|aix4.[012].*)
9217 # We only want to do this on AIX 4.2 and lower, the check
9218 # below for broken collect2 doesn't work under 4.3+
9219 collect2name=`${CC} -print-prog-name=collect2`
9220 if test -f "$collect2name" &&
9221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9222 then
9223 # We have reworked collect2
9224 :
9225 else
9226 # We have old collect2
9227 hardcode_direct=unsupported
9228 # It fails to find uninstalled libraries when the uninstalled
9229 # path is not listed in the libpath. Setting hardcode_minus_L
9230 # to unsupported forces relinking
9231 hardcode_minus_L=yes
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_libdir_separator=
9234 fi
9235 ;;
9236 esac
9237 shared_flag='-shared'
9238 if test "$aix_use_runtimelinking" = yes; then
9239 shared_flag="$shared_flag "'${wl}-G'
9240 fi
9241 else
9242 # not using gcc
9243 if test "$host_cpu" = ia64; then
9244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245 # chokes on -Wl,-G. The following line is correct:
9246 shared_flag='-G'
9247 else
9248 if test "$aix_use_runtimelinking" = yes; then
9249 shared_flag='${wl}-G'
9250 else
9251 shared_flag='${wl}-bM:SRE'
9252 fi
9253 fi
9254 fi
9255
9256 export_dynamic_flag_spec='${wl}-bexpall'
9257 # It seems that -bexpall does not export symbols beginning with
9258 # underscore (_), so it is better to generate a list of symbols to export.
9259 always_export_symbols=yes
9260 if test "$aix_use_runtimelinking" = yes; then
9261 # Warning - without using the other runtime loading flags (-brtl),
9262 # -berok will link without error, but may produce a broken library.
9263 allow_undefined_flag='-berok'
9264 # Determine the default libpath from the value encoded in an
9265 # empty executable.
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h. */
9268
9269int
9270main ()
9271{
9272
9273 ;
9274 return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278
9279lt_aix_libpath_sed='
9280 /Import File Strings/,/^$/ {
9281 /^0/ {
9282 s/^0 *\(.*\)$/\1/
9283 p
9284 }
9285 }'
9286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9287# Check for a 64-bit object if we didn't find anything.
9288if test -z "$aix_libpath"; then
9289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9290fi
9291fi
9292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9295
9296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9297 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9298 else
9299 if test "$host_cpu" = ia64; then
9300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9301 allow_undefined_flag="-z nodefs"
9302 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9303 else
9304 # Determine the default libpath from the value encoded in an
9305 # empty executable.
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h. */
9308
9309int
9310main ()
9311{
9312
9313 ;
9314 return 0;
9315}
9316_ACEOF
9317if ac_fn_c_try_link "$LINENO"; then :
9318
9319lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9321 /^0/ {
9322 s/^0 *\(.*\)$/\1/
9323 p
9324 }
9325 }'
9326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327# Check for a 64-bit object if we didn't find anything.
9328if test -z "$aix_libpath"; then
9329 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330fi
9331fi
9332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9335
9336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9337 # Warning - without using the other run time loading flags,
9338 # -berok will link without error, but may produce a broken library.
9339 no_undefined_flag=' ${wl}-bernotok'
9340 allow_undefined_flag=' ${wl}-berok'
9341 if test "$with_gnu_ld" = yes; then
9342 # We only use this code for GNU lds that support --whole-archive.
9343 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9344 else
9345 # Exported symbols can be pulled into shared objects from archives
9346 whole_archive_flag_spec='$convenience'
9347 fi
9348 archive_cmds_need_lc=yes
9349 # This is similar to how AIX traditionally builds its shared libraries.
9350 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9351 fi
9352 fi
9353 ;;
9354
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9361 ;;
9362 m68k)
9363 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 ;;
9367 esac
9368 ;;
9369
9370 bsdi[45]*)
9371 export_dynamic_flag_spec=-rdynamic
9372 ;;
9373
9374 cygwin* | mingw* | pw32* | cegcc*)
9375 # When not using gcc, we currently assume that we are using
9376 # Microsoft Visual C++.
9377 # hardcode_libdir_flag_spec is actually meaningless, as there is
9378 # no search path for DLLs.
9379 hardcode_libdir_flag_spec=' '
9380 allow_undefined_flag=unsupported
9381 # Tell ltmain to make .lib files, not .a files.
9382 libext=lib
9383 # Tell ltmain to make .dll files, not .so files.
9384 shrext_cmds=".dll"
9385 # FIXME: Setting linknames here is a bad hack.
9386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9387 # The linker will automatically build a .lib file if we build a DLL.
9388 old_archive_from_new_cmds='true'
9389 # FIXME: Should let the user specify the lib program.
9390 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9391 fix_srcfile_path='`cygpath -w "$srcfile"`'
9392 enable_shared_with_static_runtimes=yes
9393 ;;
9394
9395 darwin* | rhapsody*)
9396
9397
9398 archive_cmds_need_lc=no
9399 hardcode_direct=no
9400 hardcode_automatic=yes
9401 hardcode_shlibpath_var=unsupported
9402 if test "$lt_cv_ld_force_load" = "yes"; then
9403 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9404 else
9405 whole_archive_flag_spec=''
9406 fi
9407 link_all_deplibs=yes
9408 allow_undefined_flag="$_lt_dar_allow_undefined"
9409 case $cc_basename in
9410 ifort*) _lt_dar_can_shared=yes ;;
9411 *) _lt_dar_can_shared=$GCC ;;
9412 esac
9413 if test "$_lt_dar_can_shared" = "yes"; then
9414 output_verbose_link_cmd=func_echo_all
9415 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9416 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9417 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9418 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9419
9420 else
9421 ld_shlibs=no
9422 fi
9423
9424 ;;
9425
9426 dgux*)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_shlibpath_var=no
9430 ;;
9431
9432 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9433 # support. Future versions do this automatically, but an explicit c++rt0.o
9434 # does not break anything, and helps significantly (at the cost of a little
9435 # extra space).
9436 freebsd2.2*)
9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9438 hardcode_libdir_flag_spec='-R$libdir'
9439 hardcode_direct=yes
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9444 freebsd2.*)
9445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_direct=yes
9447 hardcode_minus_L=yes
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9452 freebsd* | dragonfly*)
9453 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_direct=yes
9456 hardcode_shlibpath_var=no
9457 ;;
9458
9459 hpux9*)
9460 if test "$GCC" = yes; then
9461 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9462 else
9463 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9464 fi
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator=:
9467 hardcode_direct=yes
9468
9469 # hardcode_minus_L: Not really in the search PATH,
9470 # but as the default location of the library.
9471 hardcode_minus_L=yes
9472 export_dynamic_flag_spec='${wl}-E'
9473 ;;
9474
9475 hpux10*)
9476 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9477 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480 fi
9481 if test "$with_gnu_ld" = no; then
9482 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483 hardcode_libdir_flag_spec_ld='+b $libdir'
9484 hardcode_libdir_separator=:
9485 hardcode_direct=yes
9486 hardcode_direct_absolute=yes
9487 export_dynamic_flag_spec='${wl}-E'
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 fi
9492 ;;
9493
9494 hpux11*)
9495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496 case $host_cpu in
9497 hppa*64*)
9498 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 ;;
9500 ia64*)
9501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9502 ;;
9503 *)
9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505 ;;
9506 esac
9507 else
9508 case $host_cpu in
9509 hppa*64*)
9510 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 ;;
9512 ia64*)
9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9514 ;;
9515 *)
9516
9517 # Older versions of the 11.00 compiler do not understand -b yet
9518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9520$as_echo_n "checking if $CC understands -b... " >&6; }
9521if test "${lt_cv_prog_compiler__b+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523else
9524 lt_cv_prog_compiler__b=no
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -b"
9527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529 # The linker can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 if test -s conftest.err; then
9532 # Append any errors to the config.log.
9533 cat conftest.err 1>&5
9534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler__b=yes
9538 fi
9539 else
9540 lt_cv_prog_compiler__b=yes
9541 fi
9542 fi
9543 $RM -r conftest*
9544 LDFLAGS="$save_LDFLAGS"
9545
9546fi
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9548$as_echo "$lt_cv_prog_compiler__b" >&6; }
9549
9550if test x"$lt_cv_prog_compiler__b" = xyes; then
9551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9552else
9553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9554fi
9555
9556 ;;
9557 esac
9558 fi
9559 if test "$with_gnu_ld" = no; then
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562
9563 case $host_cpu in
9564 hppa*64*|ia64*)
9565 hardcode_direct=no
9566 hardcode_shlibpath_var=no
9567 ;;
9568 *)
9569 hardcode_direct=yes
9570 hardcode_direct_absolute=yes
9571 export_dynamic_flag_spec='${wl}-E'
9572
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9576 ;;
9577 esac
9578 fi
9579 ;;
9580
9581 irix5* | irix6* | nonstopux*)
9582 if test "$GCC" = yes; then
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9584 # Try to use the -exported_symbol ld option, if it does not
9585 # work, assume that -exports_file does not work either and
9586 # implicitly export all symbols.
9587 save_LDFLAGS="$LDFLAGS"
9588 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h. */
9591int foo(void) {}
9592_ACEOF
9593if ac_fn_c_try_link "$LINENO"; then :
9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9595
9596fi
9597rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599 LDFLAGS="$save_LDFLAGS"
9600 else
9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9603 fi
9604 archive_cmds_need_lc='no'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 inherit_rpath=yes
9608 link_all_deplibs=yes
9609 ;;
9610
9611 netbsd*)
9612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9614 else
9615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9616 fi
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 newsos6)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 hardcode_libdir_separator=:
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 *nto* | *qnx*)
9631 ;;
9632
9633 openbsd*)
9634 if test -f /usr/libexec/ld.so; then
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 hardcode_direct_absolute=yes
9638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 export_dynamic_flag_spec='${wl}-E'
9643 else
9644 case $host_os in
9645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-R$libdir'
9648 ;;
9649 *)
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9652 ;;
9653 esac
9654 fi
9655 else
9656 ld_shlibs=no
9657 fi
9658 ;;
9659
9660 os2*)
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9663 allow_undefined_flag=unsupported
9664 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9665 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9666 ;;
9667
9668 osf3*)
9669 if test "$GCC" = yes; then
9670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9671 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9672 else
9673 allow_undefined_flag=' -expect_unresolved \*'
9674 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9675 fi
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator=:
9679 ;;
9680
9681 osf4* | osf5*) # as osf3* with the addition of -msym flag
9682 if test "$GCC" = yes; then
9683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9684 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 else
9687 allow_undefined_flag=' -expect_unresolved \*'
9688 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9689 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9690 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9691
9692 # Both c and cxx compiler support -rpath directly
9693 hardcode_libdir_flag_spec='-rpath $libdir'
9694 fi
9695 archive_cmds_need_lc='no'
9696 hardcode_libdir_separator=:
9697 ;;
9698
9699 solaris*)
9700 no_undefined_flag=' -z defs'
9701 if test "$GCC" = yes; then
9702 wlarc='${wl}'
9703 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9705 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9706 else
9707 case `$CC -V 2>&1` in
9708 *"Compilers 5.0"*)
9709 wlarc=''
9710 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9713 ;;
9714 *)
9715 wlarc='${wl}'
9716 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9719 ;;
9720 esac
9721 fi
9722 hardcode_libdir_flag_spec='-R$libdir'
9723 hardcode_shlibpath_var=no
9724 case $host_os in
9725 solaris2.[0-5] | solaris2.[0-5].*) ;;
9726 *)
9727 # The compiler driver will combine and reorder linker options,
9728 # but understands `-z linker_flag'. GCC discards it without `$wl',
9729 # but is careful enough not to reorder.
9730 # Supported since Solaris 2.6 (maybe 2.5.1?)
9731 if test "$GCC" = yes; then
9732 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9733 else
9734 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9735 fi
9736 ;;
9737 esac
9738 link_all_deplibs=yes
9739 ;;
9740
9741 sunos4*)
9742 if test "x$host_vendor" = xsequent; then
9743 # Use $CC to link under sequent, because it throws in some extra .o
9744 # files that make .init and .fini sections work.
9745 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9748 fi
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_direct=yes
9751 hardcode_minus_L=yes
9752 hardcode_shlibpath_var=no
9753 ;;
9754
9755 sysv4)
9756 case $host_vendor in
9757 sni)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes # is this really true???
9760 ;;
9761 siemens)
9762 ## LD is ld it makes a PLAMLIB
9763 ## CC just makes a GrossModule.
9764 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9765 reload_cmds='$CC -r -o $output$reload_objs'
9766 hardcode_direct=no
9767 ;;
9768 motorola)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9771 ;;
9772 esac
9773 runpath_var='LD_RUN_PATH'
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 sysv4.3*)
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_shlibpath_var=no
9780 export_dynamic_flag_spec='-Bexport'
9781 ;;
9782
9783 sysv4*MP*)
9784 if test -d /usr/nec; then
9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786 hardcode_shlibpath_var=no
9787 runpath_var=LD_RUN_PATH
9788 hardcode_runpath_var=yes
9789 ld_shlibs=yes
9790 fi
9791 ;;
9792
9793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9794 no_undefined_flag='${wl}-z,text'
9795 archive_cmds_need_lc=no
9796 hardcode_shlibpath_var=no
9797 runpath_var='LD_RUN_PATH'
9798
9799 if test "$GCC" = yes; then
9800 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 fi
9806 ;;
9807
9808 sysv5* | sco3.2v5* | sco5v6*)
9809 # Note: We can NOT use -z defs as we might desire, because we do not
9810 # link with -lc, and that would cause any symbols used from libc to
9811 # always be unresolved, which means just about no library would
9812 # ever link correctly. If we're not using GNU ld we use -z text
9813 # though, which does catch some bad symbols but isn't as heavy-handed
9814 # as -z defs.
9815 no_undefined_flag='${wl}-z,text'
9816 allow_undefined_flag='${wl}-z,nodefs'
9817 archive_cmds_need_lc=no
9818 hardcode_shlibpath_var=no
9819 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9820 hardcode_libdir_separator=':'
9821 link_all_deplibs=yes
9822 export_dynamic_flag_spec='${wl}-Bexport'
9823 runpath_var='LD_RUN_PATH'
9824
9825 if test "$GCC" = yes; then
9826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 fi
9832 ;;
9833
9834 uts4*)
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_shlibpath_var=no
9838 ;;
9839
9840 *)
9841 ld_shlibs=no
9842 ;;
9843 esac
9844
9845 if test x$host_vendor = xsni; then
9846 case $host in
9847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9848 export_dynamic_flag_spec='${wl}-Blargedynsym'
9849 ;;
9850 esac
9851 fi
9852 fi
9853
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9855$as_echo "$ld_shlibs" >&6; }
9856test "$ld_shlibs" = no && can_build_shared=no
9857
9858with_gnu_ld=$with_gnu_ld
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874#
9875# Do we need to explicitly link libc?
9876#
9877case "x$archive_cmds_need_lc" in
9878x|xyes)
9879 # Assume -lc should be added
9880 archive_cmds_need_lc=yes
9881
9882 if test "$enable_shared" = yes && test "$GCC" = yes; then
9883 case $archive_cmds in
9884 *'~'*)
9885 # FIXME: we may have to deal with multi-command sequences.
9886 ;;
9887 '$CC '*)
9888 # Test whether the compiler implicitly links with -lc since on some
9889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9890 # to ld, don't add -lc before -lgcc.
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9892$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9893if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 $RM conftest*
9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9898
9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9900 (eval $ac_compile) 2>&5
9901 ac_status=$?
9902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903 test $ac_status = 0; } 2>conftest.err; then
9904 soname=conftest
9905 lib=conftest
9906 libobjs=conftest.$ac_objext
9907 deplibs=
9908 wl=$lt_prog_compiler_wl
9909 pic_flag=$lt_prog_compiler_pic
9910 compiler_flags=-v
9911 linker_flags=-v
9912 verstring=
9913 output_objdir=.
9914 libname=conftest
9915 lt_save_allow_undefined_flag=$allow_undefined_flag
9916 allow_undefined_flag=
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9918 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }
9922 then
9923 lt_cv_archive_cmds_need_lc=no
9924 else
9925 lt_cv_archive_cmds_need_lc=yes
9926 fi
9927 allow_undefined_flag=$lt_save_allow_undefined_flag
9928 else
9929 cat conftest.err 1>&5
9930 fi
9931 $RM conftest*
9932
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9935$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9936 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9937 ;;
9938 esac
9939 fi
9940 ;;
9941esac
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10100$as_echo_n "checking dynamic linker characteristics... " >&6; }
10101
10102if test "$GCC" = yes; then
10103 case $host_os in
10104 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10105 *) lt_awk_arg="/^libraries:/" ;;
10106 esac
10107 case $host_os in
10108 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10109 *) lt_sed_strip_eq="s,=/,/,g" ;;
10110 esac
10111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10112 case $lt_search_path_spec in
10113 *\;*)
10114 # if the path contains ";" then we assume it to be the separator
10115 # otherwise default to the standard path separator (i.e. ":") - it is
10116 # assumed that no part of a normal pathname contains ";" but that should
10117 # okay in the real world where ";" in dirpaths is itself problematic.
10118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10119 ;;
10120 *)
10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10122 ;;
10123 esac
10124 # Ok, now we have the path, separated by spaces, we can step through it
10125 # and add multilib dir if necessary.
10126 lt_tmp_lt_search_path_spec=
10127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10128 for lt_sys_path in $lt_search_path_spec; do
10129 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10131 else
10132 test -d "$lt_sys_path" && \
10133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10134 fi
10135 done
10136 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10137BEGIN {RS=" "; FS="/|\n";} {
10138 lt_foo="";
10139 lt_count=0;
10140 for (lt_i = NF; lt_i > 0; lt_i--) {
10141 if ($lt_i != "" && $lt_i != ".") {
10142 if ($lt_i == "..") {
10143 lt_count++;
10144 } else {
10145 if (lt_count == 0) {
10146 lt_foo="/" $lt_i lt_foo;
10147 } else {
10148 lt_count--;
10149 }
10150 }
10151 }
10152 }
10153 if (lt_foo != "") { lt_freq[lt_foo]++; }
10154 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10155}'`
10156 # AWK program above erroneously prepends '/' to C:/dos/paths
10157 # for these hosts.
10158 case $host_os in
10159 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10160 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10161 esac
10162 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10163else
10164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10165fi
10166library_names_spec=
10167libname_spec='lib$name'
10168soname_spec=
10169shrext_cmds=".so"
10170postinstall_cmds=
10171postuninstall_cmds=
10172finish_cmds=
10173finish_eval=
10174shlibpath_var=
10175shlibpath_overrides_runpath=unknown
10176version_type=none
10177dynamic_linker="$host_os ld.so"
10178sys_lib_dlsearch_path_spec="/lib /usr/lib"
10179need_lib_prefix=unknown
10180hardcode_into_libs=no
10181
10182# when you set need_version to no, make sure it does not cause -set_version
10183# flags to be left without arguments
10184need_version=unknown
10185
10186case $host_os in
10187aix3*)
10188 version_type=linux
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10190 shlibpath_var=LIBPATH
10191
10192 # AIX 3 has no versioning support, so we append a major version to the name.
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 ;;
10195
10196aix[4-9]*)
10197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 hardcode_into_libs=yes
10201 if test "$host_cpu" = ia64; then
10202 # AIX 5 supports IA64
10203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 else
10206 # With GCC up to 2.95.x, collect2 would create an import file
10207 # for dependence libraries. The import file would start with
10208 # the line `#! .'. This would cause the generated library to
10209 # depend on `.', always an invalid library. This was fixed in
10210 # development snapshots of GCC prior to 3.0.
10211 case $host_os in
10212 aix4 | aix4.[01] | aix4.[01].*)
10213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10214 echo ' yes '
10215 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10216 :
10217 else
10218 can_build_shared=no
10219 fi
10220 ;;
10221 esac
10222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10223 # soname into executable. Probably we can add versioning support to
10224 # collect2, so additional links can be useful in future.
10225 if test "$aix_use_runtimelinking" = yes; then
10226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10227 # instead of lib<name>.a to let people know that these are not
10228 # typical AIX shared libraries.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 else
10231 # We preserve .a as extension for shared libraries through AIX4.2
10232 # and later when we are not doing run time linking.
10233 library_names_spec='${libname}${release}.a $libname.a'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 fi
10236 shlibpath_var=LIBPATH
10237 fi
10238 ;;
10239
10240amigaos*)
10241 case $host_cpu in
10242 powerpc)
10243 # Since July 2007 AmigaOS4 officially supports .so libraries.
10244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 ;;
10247 m68k)
10248 library_names_spec='$libname.ixlibrary $libname.a'
10249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10250 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10251 ;;
10252 esac
10253 ;;
10254
10255beos*)
10256 library_names_spec='${libname}${shared_ext}'
10257 dynamic_linker="$host_os ld.so"
10258 shlibpath_var=LIBRARY_PATH
10259 ;;
10260
10261bsdi[45]*)
10262 version_type=linux
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10270 # the default ld.so.conf also contains /usr/contrib/lib and
10271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10272 # libtool to hard-code these into programs
10273 ;;
10274
10275cygwin* | mingw* | pw32* | cegcc*)
10276 version_type=windows
10277 shrext_cmds=".dll"
10278 need_version=no
10279 need_lib_prefix=no
10280
10281 case $GCC,$host_os in
10282 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10283 library_names_spec='$libname.dll.a'
10284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10285 postinstall_cmds='base_file=`basename \${file}`~
10286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10287 dldir=$destdir/`dirname \$dlpath`~
10288 test -d \$dldir || mkdir -p \$dldir~
10289 $install_prog $dir/$dlname \$dldir/$dlname~
10290 chmod a+x \$dldir/$dlname~
10291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10293 fi'
10294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10295 dlpath=$dir/\$dldll~
10296 $RM \$dlpath'
10297 shlibpath_overrides_runpath=yes
10298
10299 case $host_os in
10300 cygwin*)
10301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10303
10304 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10305 ;;
10306 mingw* | cegcc*)
10307 # MinGW DLLs use traditional 'lib' prefix
10308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10309 ;;
10310 pw32*)
10311 # pw32 DLLs use 'pw' prefix rather than 'lib'
10312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10313 ;;
10314 esac
10315 ;;
10316
10317 *)
10318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10319 ;;
10320 esac
10321 dynamic_linker='Win32 ld.exe'
10322 # FIXME: first we should search . and the directory the executable is in
10323 shlibpath_var=PATH
10324 ;;
10325
10326darwin* | rhapsody*)
10327 dynamic_linker="$host_os dyld"
10328 version_type=darwin
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10332 soname_spec='${libname}${release}${major}$shared_ext'
10333 shlibpath_overrides_runpath=yes
10334 shlibpath_var=DYLD_LIBRARY_PATH
10335 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10336
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10339 ;;
10340
10341dgux*)
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 ;;
10349
10350freebsd* | dragonfly*)
10351 # DragonFly does not have aout. When/if they implement a new
10352 # versioning mechanism, adjust this.
10353 if test -x /usr/bin/objformat; then
10354 objformat=`/usr/bin/objformat`
10355 else
10356 case $host_os in
10357 freebsd[23].*) objformat=aout ;;
10358 *) objformat=elf ;;
10359 esac
10360 fi
10361 version_type=freebsd-$objformat
10362 case $version_type in
10363 freebsd-elf*)
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 need_version=no
10366 need_lib_prefix=no
10367 ;;
10368 freebsd-*)
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10370 need_version=yes
10371 ;;
10372 esac
10373 shlibpath_var=LD_LIBRARY_PATH
10374 case $host_os in
10375 freebsd2.*)
10376 shlibpath_overrides_runpath=yes
10377 ;;
10378 freebsd3.[01]* | freebsdelf3.[01]*)
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 ;;
10382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10386 ;;
10387 *) # from 4.6 on, and DragonFly
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 ;;
10391 esac
10392 ;;
10393
10394gnu*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 hardcode_into_libs=yes
10402 ;;
10403
10404haiku*)
10405 version_type=linux
10406 need_lib_prefix=no
10407 need_version=no
10408 dynamic_linker="$host_os runtime_loader"
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LIBRARY_PATH
10412 shlibpath_overrides_runpath=yes
10413 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10414 hardcode_into_libs=yes
10415 ;;
10416
10417hpux9* | hpux10* | hpux11*)
10418 # Give a soname corresponding to the major version so that dld.sl refuses to
10419 # link against other versions.
10420 version_type=sunos
10421 need_lib_prefix=no
10422 need_version=no
10423 case $host_cpu in
10424 ia64*)
10425 shrext_cmds='.so'
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.so"
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 if test "X$HPUX_IA64_MODE" = X32; then
10433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10434 else
10435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10436 fi
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10438 ;;
10439 hppa*64*)
10440 shrext_cmds='.sl'
10441 hardcode_into_libs=yes
10442 dynamic_linker="$host_os dld.sl"
10443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449 ;;
10450 *)
10451 shrext_cmds='.sl'
10452 dynamic_linker="$host_os dld.sl"
10453 shlibpath_var=SHLIB_PATH
10454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 ;;
10458 esac
10459 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10460 postinstall_cmds='chmod 555 $lib'
10461 # or fails outright, so override atomically:
10462 install_override_mode=555
10463 ;;
10464
10465interix[3-9]*)
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10475 ;;
10476
10477irix5* | irix6* | nonstopux*)
10478 case $host_os in
10479 nonstopux*) version_type=nonstopux ;;
10480 *)
10481 if test "$lt_cv_prog_gnu_ld" = yes; then
10482 version_type=linux
10483 else
10484 version_type=irix
10485 fi ;;
10486 esac
10487 need_lib_prefix=no
10488 need_version=no
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10491 case $host_os in
10492 irix5* | nonstopux*)
10493 libsuff= shlibsuff=
10494 ;;
10495 *)
10496 case $LD in # libtool.m4 will add one of these switches to LD
10497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10498 libsuff= shlibsuff= libmagic=32-bit;;
10499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10500 libsuff=32 shlibsuff=N32 libmagic=N32;;
10501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10503 *) libsuff= shlibsuff= libmagic=never-match;;
10504 esac
10505 ;;
10506 esac
10507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10508 shlibpath_overrides_runpath=no
10509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10511 hardcode_into_libs=yes
10512 ;;
10513
10514# No shared lib support for Linux oldld, aout, or coff.
10515linux*oldld* | linux*aout* | linux*coff*)
10516 dynamic_linker=no
10517 ;;
10518
10519# This must be Linux ELF.
10520linux* | k*bsd*-gnu | kopensolaris*-gnu)
10521 version_type=linux
10522 need_lib_prefix=no
10523 need_version=no
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529
10530 # Some binutils ld are patched to set DT_RUNPATH
10531 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533else
10534 lt_cv_shlibpath_overrides_runpath=no
10535 save_LDFLAGS=$LDFLAGS
10536 save_libdir=$libdir
10537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h. */
10541
10542int
10543main ()
10544{
10545
10546 ;
10547 return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10552 lt_cv_shlibpath_overrides_runpath=yes
10553fi
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LDFLAGS=$save_LDFLAGS
10558 libdir=$save_libdir
10559
10560fi
10561
10562 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10563
10564 # This implies no fast_install, which is unacceptable.
10565 # Some rework will be needed to allow for fast_install
10566 # before this can be enabled.
10567 hardcode_into_libs=yes
10568
10569 # Append ld.so.conf contents to the search path
10570 if test -f /etc/ld.so.conf; then
10571 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10573 fi
10574
10575 # We used to test for /lib/ld.so.1 and disable shared libraries on
10576 # powerpc, because MkLinux only supported shared libraries with the
10577 # GNU dynamic linker. Since this was broken with cross compilers,
10578 # most powerpc-linux boxes support dynamic linking these days and
10579 # people can always --disable-shared, the test was removed, and we
10580 # assume the GNU/Linux dynamic linker is in use.
10581 dynamic_linker='GNU/Linux ld.so'
10582 ;;
10583
10584netbsd*)
10585 version_type=sunos
10586 need_lib_prefix=no
10587 need_version=no
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10591 dynamic_linker='NetBSD (a.out) ld.so'
10592 else
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 dynamic_linker='NetBSD ld.elf_so'
10596 fi
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 hardcode_into_libs=yes
10600 ;;
10601
10602newsos6)
10603 version_type=linux
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 ;;
10608
10609*nto* | *qnx*)
10610 version_type=qnx
10611 need_lib_prefix=no
10612 need_version=no
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=no
10617 hardcode_into_libs=yes
10618 dynamic_linker='ldqnx.so'
10619 ;;
10620
10621openbsd*)
10622 version_type=sunos
10623 sys_lib_dlsearch_path_spec="/usr/lib"
10624 need_lib_prefix=no
10625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10626 case $host_os in
10627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10628 *) need_version=no ;;
10629 esac
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10634 case $host_os in
10635 openbsd2.[89] | openbsd2.[89].*)
10636 shlibpath_overrides_runpath=no
10637 ;;
10638 *)
10639 shlibpath_overrides_runpath=yes
10640 ;;
10641 esac
10642 else
10643 shlibpath_overrides_runpath=yes
10644 fi
10645 ;;
10646
10647os2*)
10648 libname_spec='$name'
10649 shrext_cmds=".dll"
10650 need_lib_prefix=no
10651 library_names_spec='$libname${shared_ext} $libname.a'
10652 dynamic_linker='OS/2 ld.exe'
10653 shlibpath_var=LIBPATH
10654 ;;
10655
10656osf3* | osf4* | osf5*)
10657 version_type=osf
10658 need_lib_prefix=no
10659 need_version=no
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10665 ;;
10666
10667rdos*)
10668 dynamic_linker=no
10669 ;;
10670
10671solaris*)
10672 version_type=linux
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 # ldd complains unless libraries are executable
10681 postinstall_cmds='chmod +x $lib'
10682 ;;
10683
10684sunos4*)
10685 version_type=sunos
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 if test "$with_gnu_ld" = yes; then
10691 need_lib_prefix=no
10692 fi
10693 need_version=yes
10694 ;;
10695
10696sysv4 | sysv4.3*)
10697 version_type=linux
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 case $host_vendor in
10702 sni)
10703 shlibpath_overrides_runpath=no
10704 need_lib_prefix=no
10705 runpath_var=LD_RUN_PATH
10706 ;;
10707 siemens)
10708 need_lib_prefix=no
10709 ;;
10710 motorola)
10711 need_lib_prefix=no
10712 need_version=no
10713 shlibpath_overrides_runpath=no
10714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10715 ;;
10716 esac
10717 ;;
10718
10719sysv4*MP*)
10720 if test -d /usr/nec ;then
10721 version_type=linux
10722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10723 soname_spec='$libname${shared_ext}.$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 fi
10726 ;;
10727
10728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10729 version_type=freebsd-elf
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=yes
10736 hardcode_into_libs=yes
10737 if test "$with_gnu_ld" = yes; then
10738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10739 else
10740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10741 case $host_os in
10742 sco3.2v5*)
10743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10744 ;;
10745 esac
10746 fi
10747 sys_lib_dlsearch_path_spec='/usr/lib'
10748 ;;
10749
10750tpf*)
10751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10752 version_type=linux
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10759 ;;
10760
10761uts4*)
10762 version_type=linux
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 ;;
10767
10768*)
10769 dynamic_linker=no
10770 ;;
10771esac
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10773$as_echo "$dynamic_linker" >&6; }
10774test "$dynamic_linker" = no && can_build_shared=no
10775
10776variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10777if test "$GCC" = yes; then
10778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10779fi
10780
10781if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10782 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10783fi
10784if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10786fi
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10880$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10881hardcode_action=
10882if test -n "$hardcode_libdir_flag_spec" ||
10883 test -n "$runpath_var" ||
10884 test "X$hardcode_automatic" = "Xyes" ; then
10885
10886 # We can hardcode non-existent directories.
10887 if test "$hardcode_direct" != no &&
10888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10889 # have to relink, otherwise we might link with an installed library
10890 # when we should be linking with a yet-to-be-installed one
10891 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10892 test "$hardcode_minus_L" != no; then
10893 # Linking always hardcodes the temporary library directory.
10894 hardcode_action=relink
10895 else
10896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10897 hardcode_action=immediate
10898 fi
10899else
10900 # We cannot hardcode anything, or else we can only hardcode existing
10901 # directories.
10902 hardcode_action=unsupported
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10905$as_echo "$hardcode_action" >&6; }
10906
10907if test "$hardcode_action" = relink ||
10908 test "$inherit_rpath" = yes; then
10909 # Fast installation is not supported
10910 enable_fast_install=no
10911elif test "$shlibpath_overrides_runpath" = yes ||
10912 test "$enable_shared" = no; then
10913 # Fast installation is not necessary
10914 enable_fast_install=needless
10915fi
10916
10917
10918
10919
10920
10921
10922 if test "x$enable_dlopen" != xyes; then
10923 enable_dlopen=unknown
10924 enable_dlopen_self=unknown
10925 enable_dlopen_self_static=unknown
10926else
10927 lt_cv_dlopen=no
10928 lt_cv_dlopen_libs=
10929
10930 case $host_os in
10931 beos*)
10932 lt_cv_dlopen="load_add_on"
10933 lt_cv_dlopen_libs=
10934 lt_cv_dlopen_self=yes
10935 ;;
10936
10937 mingw* | pw32* | cegcc*)
10938 lt_cv_dlopen="LoadLibrary"
10939 lt_cv_dlopen_libs=
10940 ;;
10941
10942 cygwin*)
10943 lt_cv_dlopen="dlopen"
10944 lt_cv_dlopen_libs=
10945 ;;
10946
10947 darwin*)
10948 # if libdl is installed we need to link against it
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10950$as_echo_n "checking for dlopen in -ldl... " >&6; }
10951if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953else
10954 ac_check_lib_save_LIBS=$LIBS
10955LIBS="-ldl $LIBS"
10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h. */
10958
10959/* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962#ifdef __cplusplus
10963extern "C"
10964#endif
10965char dlopen ();
10966int
10967main ()
10968{
10969return dlopen ();
10970 ;
10971 return 0;
10972}
10973_ACEOF
10974if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_dl_dlopen=yes
10976else
10977 ac_cv_lib_dl_dlopen=no
10978fi
10979rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981LIBS=$ac_check_lib_save_LIBS
10982fi
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10984$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10985if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10987else
10988
10989 lt_cv_dlopen="dyld"
10990 lt_cv_dlopen_libs=
10991 lt_cv_dlopen_self=yes
10992
10993fi
10994
10995 ;;
10996
10997 *)
10998 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10999if test "x$ac_cv_func_shl_load" = x""yes; then :
11000 lt_cv_dlopen="shl_load"
11001else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11003$as_echo_n "checking for shl_load in -ldld... " >&6; }
11004if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006else
11007 ac_check_lib_save_LIBS=$LIBS
11008LIBS="-ldld $LIBS"
11009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010/* end confdefs.h. */
11011
11012/* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015#ifdef __cplusplus
11016extern "C"
11017#endif
11018char shl_load ();
11019int
11020main ()
11021{
11022return shl_load ();
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027if ac_fn_c_try_link "$LINENO"; then :
11028 ac_cv_lib_dld_shl_load=yes
11029else
11030 ac_cv_lib_dld_shl_load=no
11031fi
11032rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034LIBS=$ac_check_lib_save_LIBS
11035fi
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11037$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11038if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11039 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11040else
11041 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11042if test "x$ac_cv_func_dlopen" = x""yes; then :
11043 lt_cv_dlopen="dlopen"
11044else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11046$as_echo_n "checking for dlopen in -ldl... " >&6; }
11047if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049else
11050 ac_check_lib_save_LIBS=$LIBS
11051LIBS="-ldl $LIBS"
11052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053/* end confdefs.h. */
11054
11055/* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058#ifdef __cplusplus
11059extern "C"
11060#endif
11061char dlopen ();
11062int
11063main ()
11064{
11065return dlopen ();
11066 ;
11067 return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071 ac_cv_lib_dl_dlopen=yes
11072else
11073 ac_cv_lib_dl_dlopen=no
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_check_lib_save_LIBS
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11080$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11081if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11083else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11085$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11086if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088else
11089 ac_check_lib_save_LIBS=$LIBS
11090LIBS="-lsvld $LIBS"
11091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h. */
11093
11094/* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097#ifdef __cplusplus
11098extern "C"
11099#endif
11100char dlopen ();
11101int
11102main ()
11103{
11104return dlopen ();
11105 ;
11106 return 0;
11107}
11108_ACEOF
11109if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_svld_dlopen=yes
11111else
11112 ac_cv_lib_svld_dlopen=no
11113fi
11114rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116LIBS=$ac_check_lib_save_LIBS
11117fi
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11119$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11120if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11122else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11124$as_echo_n "checking for dld_link in -ldld... " >&6; }
11125if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127else
11128 ac_check_lib_save_LIBS=$LIBS
11129LIBS="-ldld $LIBS"
11130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h. */
11132
11133/* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136#ifdef __cplusplus
11137extern "C"
11138#endif
11139char dld_link ();
11140int
11141main ()
11142{
11143return dld_link ();
11144 ;
11145 return 0;
11146}
11147_ACEOF
11148if ac_fn_c_try_link "$LINENO"; then :
11149 ac_cv_lib_dld_dld_link=yes
11150else
11151 ac_cv_lib_dld_dld_link=no
11152fi
11153rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155LIBS=$ac_check_lib_save_LIBS
11156fi
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11158$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11159if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11161fi
11162
11163
11164fi
11165
11166
11167fi
11168
11169
11170fi
11171
11172
11173fi
11174
11175
11176fi
11177
11178 ;;
11179 esac
11180
11181 if test "x$lt_cv_dlopen" != xno; then
11182 enable_dlopen=yes
11183 else
11184 enable_dlopen=no
11185 fi
11186
11187 case $lt_cv_dlopen in
11188 dlopen)
11189 save_CPPFLAGS="$CPPFLAGS"
11190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11191
11192 save_LDFLAGS="$LDFLAGS"
11193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11194
11195 save_LIBS="$LIBS"
11196 LIBS="$lt_cv_dlopen_libs $LIBS"
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11199$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11200if test "${lt_cv_dlopen_self+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202else
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self=cross
11205else
11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207 lt_status=$lt_dlunknown
11208 cat > conftest.$ac_ext <<_LT_EOF
11209#line 11209 "configure"
11210#include "confdefs.h"
11211
11212#if HAVE_DLFCN_H
11213#include <dlfcn.h>
11214#endif
11215
11216#include <stdio.h>
11217
11218#ifdef RTLD_GLOBAL
11219# define LT_DLGLOBAL RTLD_GLOBAL
11220#else
11221# ifdef DL_GLOBAL
11222# define LT_DLGLOBAL DL_GLOBAL
11223# else
11224# define LT_DLGLOBAL 0
11225# endif
11226#endif
11227
11228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230#ifndef LT_DLLAZY_OR_NOW
11231# ifdef RTLD_LAZY
11232# define LT_DLLAZY_OR_NOW RTLD_LAZY
11233# else
11234# ifdef DL_LAZY
11235# define LT_DLLAZY_OR_NOW DL_LAZY
11236# else
11237# ifdef RTLD_NOW
11238# define LT_DLLAZY_OR_NOW RTLD_NOW
11239# else
11240# ifdef DL_NOW
11241# define LT_DLLAZY_OR_NOW DL_NOW
11242# else
11243# define LT_DLLAZY_OR_NOW 0
11244# endif
11245# endif
11246# endif
11247# endif
11248#endif
11249
11250/* When -fvisbility=hidden is used, assume the code has been annotated
11251 correspondingly for the symbols needed. */
11252#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11253void fnord () __attribute__((visibility("default")));
11254#endif
11255
11256void fnord () { int i=42; }
11257int main ()
11258{
11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11260 int status = $lt_dlunknown;
11261
11262 if (self)
11263 {
11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11265 else
11266 {
11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11268 else puts (dlerror ());
11269 }
11270 /* dlclose (self); */
11271 }
11272 else
11273 puts (dlerror ());
11274
11275 return status;
11276}
11277_LT_EOF
11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11279 (eval $ac_link) 2>&5
11280 ac_status=$?
11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11283 (./conftest; exit; ) >&5 2>/dev/null
11284 lt_status=$?
11285 case x$lt_status in
11286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11288 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11289 esac
11290 else :
11291 # compilation failed
11292 lt_cv_dlopen_self=no
11293 fi
11294fi
11295rm -fr conftest*
11296
11297
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11300$as_echo "$lt_cv_dlopen_self" >&6; }
11301
11302 if test "x$lt_cv_dlopen_self" = xyes; then
11303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11305$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11306if test "${lt_cv_dlopen_self_static+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308else
11309 if test "$cross_compiling" = yes; then :
11310 lt_cv_dlopen_self_static=cross
11311else
11312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11313 lt_status=$lt_dlunknown
11314 cat > conftest.$ac_ext <<_LT_EOF
11315#line 11315 "configure"
11316#include "confdefs.h"
11317
11318#if HAVE_DLFCN_H
11319#include <dlfcn.h>
11320#endif
11321
11322#include <stdio.h>
11323
11324#ifdef RTLD_GLOBAL
11325# define LT_DLGLOBAL RTLD_GLOBAL
11326#else
11327# ifdef DL_GLOBAL
11328# define LT_DLGLOBAL DL_GLOBAL
11329# else
11330# define LT_DLGLOBAL 0
11331# endif
11332#endif
11333
11334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11335 find out it does not work in some platform. */
11336#ifndef LT_DLLAZY_OR_NOW
11337# ifdef RTLD_LAZY
11338# define LT_DLLAZY_OR_NOW RTLD_LAZY
11339# else
11340# ifdef DL_LAZY
11341# define LT_DLLAZY_OR_NOW DL_LAZY
11342# else
11343# ifdef RTLD_NOW
11344# define LT_DLLAZY_OR_NOW RTLD_NOW
11345# else
11346# ifdef DL_NOW
11347# define LT_DLLAZY_OR_NOW DL_NOW
11348# else
11349# define LT_DLLAZY_OR_NOW 0
11350# endif
11351# endif
11352# endif
11353# endif
11354#endif
11355
11356/* When -fvisbility=hidden is used, assume the code has been annotated
11357 correspondingly for the symbols needed. */
11358#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11359void fnord () __attribute__((visibility("default")));
11360#endif
11361
11362void fnord () { int i=42; }
11363int main ()
11364{
11365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11366 int status = $lt_dlunknown;
11367
11368 if (self)
11369 {
11370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11371 else
11372 {
11373 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374 else puts (dlerror ());
11375 }
11376 /* dlclose (self); */
11377 }
11378 else
11379 puts (dlerror ());
11380
11381 return status;
11382}
11383_LT_EOF
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389 (./conftest; exit; ) >&5 2>/dev/null
11390 lt_status=$?
11391 case x$lt_status in
11392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395 esac
11396 else :
11397 # compilation failed
11398 lt_cv_dlopen_self_static=no
11399 fi
11400fi
11401rm -fr conftest*
11402
11403
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406$as_echo "$lt_cv_dlopen_self_static" >&6; }
11407 fi
11408
11409 CPPFLAGS="$save_CPPFLAGS"
11410 LDFLAGS="$save_LDFLAGS"
11411 LIBS="$save_LIBS"
11412 ;;
11413 esac
11414
11415 case $lt_cv_dlopen_self in
11416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11417 *) enable_dlopen_self=unknown ;;
11418 esac
11419
11420 case $lt_cv_dlopen_self_static in
11421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11422 *) enable_dlopen_self_static=unknown ;;
11423 esac
11424fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442striplib=
11443old_striplib=
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450$as_echo "yes" >&6; }
11451else
11452# FIXME - insert some real tests, host_os isn't really good enough
11453 case $host_os in
11454 darwin*)
11455 if test -n "$STRIP" ; then
11456 striplib="$STRIP -x"
11457 old_striplib="$STRIP -S"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459$as_echo "yes" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463 fi
11464 ;;
11465 *)
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
11468 ;;
11469 esac
11470fi
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 # Report which library types will actually be built
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487$as_echo "$can_build_shared" >&6; }
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490$as_echo_n "checking whether to build shared libraries... " >&6; }
11491 test "$can_build_shared" = "no" && enable_shared=no
11492
11493 # On AIX, shared libraries and static libraries use the same namespace, and
11494 # are all built from PIC.
11495 case $host_os in
11496 aix3*)
11497 test "$enable_shared" = yes && enable_static=no
11498 if test -n "$RANLIB"; then
11499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11500 postinstall_cmds='$RANLIB $lib'
11501 fi
11502 ;;
11503
11504 aix[4-9]*)
11505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11506 test "$enable_shared" = yes && enable_static=no
11507 fi
11508 ;;
11509 esac
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511$as_echo "$enable_shared" >&6; }
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514$as_echo_n "checking whether to build static libraries... " >&6; }
11515 # Make sure either enable_shared or enable_static is yes.
11516 test "$enable_shared" = yes || enable_static=yes
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518$as_echo "$enable_static" >&6; }
11519
11520
11521
11522
11523fi
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530CC="$lt_save_CC"
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 ac_config_commands="$ac_config_commands libtool"
11545
11546
11547
11548
11549# Only expand once:
11550
11551
11552
11553
11554
11555 gdc_save_DFLAGS=$GDCFLAGS
11556 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11557
11558
11559# Source file extension for D test sources.
11560ac_ext=d
11561
11562# Object file extension for compiled D test sources.
11563objext=o
11564objext_D=$objext
11565
11566# Code to be used in simple compile tests
11567lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11568
11569# Code to be used in simple link tests
11570lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11571
11572# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11573
11574
11575
11576
11577
11578
11579# If no C compiler was specified, use CC.
11580LTCC=${LTCC-"$CC"}
11581
11582# If no C compiler flags were specified, use CFLAGS.
11583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11584
11585# Allow CC to be a program name with arguments.
11586compiler=$CC
11587
11588
11589# save warnings/boilerplate of simple test code
11590ac_outfile=conftest.$ac_objext
11591echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11592eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11593_lt_compiler_boilerplate=`cat conftest.err`
11594$RM conftest*
11595
11596ac_outfile=conftest.$ac_objext
11597echo "$lt_simple_link_test_code" >conftest.$ac_ext
11598eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11599_lt_linker_boilerplate=`cat conftest.err`
11600$RM -r conftest*
11601
11602
11603# Allow CC to be a program name with arguments.
11604lt_save_CC=$CC
11605lt_save_CFLAGS=$CFLAGS
11606lt_save_DFLAGS=$GDCFLAGS
11607lt_save_GCC=$GCC
11608GCC=yes
11609CC=${GDC-"gdc"}
11610# Need to specify location for object.d
11611GDCFLAGS="-nophoboslib $GDCFLAGS"
11612CFLAGS=$GDCFLAGS
11613compiler=$CC
11614compiler_D=$CC
11615LD_D=$CC
11616for cc_temp in $compiler""; do
11617 case $cc_temp in
11618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11620 \-*) ;;
11621 *) break;;
11622 esac
11623done
11624cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11625
11626
11627# GDC did not exist at the time GCC didn't implicitly link libc in.
11628archive_cmds_need_lc_D=no
11629
11630old_archive_cmds_D=$old_archive_cmds
11631reload_flag_D=$reload_flag
11632reload_cmds_D=$reload_cmds
11633
11634## CAVEAT EMPTOR:
11635## There is no encapsulation within the following macros, do not change
11636## the running order or otherwise move them around unless you know exactly
11637## what you are doing...
11638if test -n "$compiler"; then
11639
11640lt_prog_compiler_no_builtin_flag_D=
11641
11642if test "$GCC" = yes; then
11643 case $cc_basename in
11644 nvcc*)
11645 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11646 *)
11647 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11648 esac
11649
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11651$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11652if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654else
11655 lt_cv_prog_compiler_rtti_exceptions=no
11656 ac_outfile=conftest.$ac_objext
11657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11658 lt_compiler_flag="-fno-rtti -fno-exceptions"
11659 # Insert the option either (1) after the last *FLAGS variable, or
11660 # (2) before a word containing "conftest.", or (3) at the end.
11661 # Note that $ac_compile itself does not contain backslashes and begins
11662 # with a dollar sign (not a hyphen), so the echo should work correctly.
11663 # The option is referenced via a variable to avoid confusing sed.
11664 lt_compile=`echo "$ac_compile" | $SED \
11665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11667 -e 's:$: $lt_compiler_flag:'`
11668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11669 (eval "$lt_compile" 2>conftest.err)
11670 ac_status=$?
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 if (exit $ac_status) && test -s "$ac_outfile"; then
11674 # The compiler can only warn and ignore the option if not recognized
11675 # So say no if there are warnings other than the usual output.
11676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11679 lt_cv_prog_compiler_rtti_exceptions=yes
11680 fi
11681 fi
11682 $RM conftest*
11683
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11686$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11687
11688if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11689 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11690else
11691 :
11692fi
11693
11694fi
11695
11696
11697
11698 lt_prog_compiler_wl_D=
11699lt_prog_compiler_pic_D=
11700lt_prog_compiler_static_D=
11701
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11703$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11704
11705 if test "$GCC" = yes; then
11706 lt_prog_compiler_wl_D='-Wl,'
11707 lt_prog_compiler_static_D='-static'
11708
11709 case $host_os in
11710 aix*)
11711 # All AIX code is PIC.
11712 if test "$host_cpu" = ia64; then
11713 # AIX 5 now supports IA64 processor
11714 lt_prog_compiler_static_D='-Bstatic'
11715 fi
11716 lt_prog_compiler_pic_D='-fPIC'
11717 ;;
11718
11719 amigaos*)
11720 case $host_cpu in
11721 powerpc)
11722 # see comment about AmigaOS4 .so support
11723 lt_prog_compiler_pic_D='-fPIC'
11724 ;;
11725 m68k)
11726 # FIXME: we need at least 68020 code to build shared libraries, but
11727 # adding the `-m68020' flag to GCC prevents building anything better,
11728 # like `-m68040'.
11729 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
11730 ;;
11731 esac
11732 ;;
11733
11734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11735 # PIC is the default for these OSes.
11736 ;;
11737
11738 mingw* | cygwin* | pw32* | os2* | cegcc*)
11739 # This hack is so that the source file can tell whether it is being
11740 # built for inclusion in a dll (and should export symbols for example).
11741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11742 # (--disable-auto-import) libraries
11743 lt_prog_compiler_pic_D='-DDLL_EXPORT'
11744 ;;
11745
11746 darwin* | rhapsody*)
11747 # PIC is the default on this platform
11748 # Common symbols not allowed in MH_DYLIB files
11749 lt_prog_compiler_pic_D='-fno-common'
11750 ;;
11751
11752 haiku*)
11753 # PIC is the default for Haiku.
11754 # The "-static" flag exists, but is broken.
11755 lt_prog_compiler_static_D=
11756 ;;
11757
11758 hpux*)
11759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11761 # sets the default TLS model and affects inlining.
11762 case $host_cpu in
11763 hppa*64*)
11764 # +Z the default
11765 ;;
11766 *)
11767 lt_prog_compiler_pic_D='-fPIC'
11768 ;;
11769 esac
11770 ;;
11771
11772 interix[3-9]*)
11773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11774 # Instead, we relocate shared libraries at runtime.
11775 ;;
11776
11777 msdosdjgpp*)
11778 # Just because we use GCC doesn't mean we suddenly get shared libraries
11779 # on systems that don't support them.
11780 lt_prog_compiler_can_build_shared_D=no
11781 enable_shared=no
11782 ;;
11783
11784 *nto* | *qnx*)
11785 # QNX uses GNU C++, but need to define -shared option too, otherwise
11786 # it will coredump.
11787 lt_prog_compiler_pic_D='-fPIC -shared'
11788 ;;
11789
11790 sysv4*MP*)
11791 if test -d /usr/nec; then
11792 lt_prog_compiler_pic_D=-Kconform_pic
11793 fi
11794 ;;
11795
11796 *)
11797 lt_prog_compiler_pic_D='-fPIC'
11798 ;;
11799 esac
11800
11801 case $cc_basename in
11802 nvcc*) # Cuda Compiler Driver 2.2
11803 lt_prog_compiler_wl_D='-Xlinker '
11804 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
11805 ;;
11806 esac
11807 else
11808 # PORTME Check for flag to pass linker flags through the system compiler.
11809 case $host_os in
11810 aix*)
11811 lt_prog_compiler_wl_D='-Wl,'
11812 if test "$host_cpu" = ia64; then
11813 # AIX 5 now supports IA64 processor
11814 lt_prog_compiler_static_D='-Bstatic'
11815 else
11816 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
11817 fi
11818 ;;
11819
11820 mingw* | cygwin* | pw32* | os2* | cegcc*)
11821 # This hack is so that the source file can tell whether it is being
11822 # built for inclusion in a dll (and should export symbols for example).
11823 lt_prog_compiler_pic_D='-DDLL_EXPORT'
11824 ;;
11825
11826 hpux9* | hpux10* | hpux11*)
11827 lt_prog_compiler_wl_D='-Wl,'
11828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11829 # not for PA HP-UX.
11830 case $host_cpu in
11831 hppa*64*|ia64*)
11832 # +Z the default
11833 ;;
11834 *)
11835 lt_prog_compiler_pic_D='+Z'
11836 ;;
11837 esac
11838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11839 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
11840 ;;
11841
11842 irix5* | irix6* | nonstopux*)
11843 lt_prog_compiler_wl_D='-Wl,'
11844 # PIC (with -KPIC) is the default.
11845 lt_prog_compiler_static_D='-non_shared'
11846 ;;
11847
11848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11849 case $cc_basename in
11850 # old Intel for x86_64 which still supported -KPIC.
11851 ecc*)
11852 lt_prog_compiler_wl_D='-Wl,'
11853 lt_prog_compiler_pic_D='-KPIC'
11854 lt_prog_compiler_static_D='-static'
11855 ;;
11856 # icc used to be incompatible with GCC.
11857 # ICC 10 doesn't accept -KPIC any more.
11858 icc* | ifort*)
11859 lt_prog_compiler_wl_D='-Wl,'
11860 lt_prog_compiler_pic_D='-fPIC'
11861 lt_prog_compiler_static_D='-static'
11862 ;;
11863 # Lahey Fortran 8.1.
11864 lf95*)
11865 lt_prog_compiler_wl_D='-Wl,'
11866 lt_prog_compiler_pic_D='--shared'
11867 lt_prog_compiler_static_D='--static'
11868 ;;
11869 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11870 # Portland Group compilers (*not* the Pentium gcc compiler,
11871 # which looks to be a dead project)
11872 lt_prog_compiler_wl_D='-Wl,'
11873 lt_prog_compiler_pic_D='-fpic'
11874 lt_prog_compiler_static_D='-Bstatic'
11875 ;;
11876 ccc*)
11877 lt_prog_compiler_wl_D='-Wl,'
11878 # All Alpha code is PIC.
11879 lt_prog_compiler_static_D='-non_shared'
11880 ;;
11881 xl* | bgxl* | bgf* | mpixl*)
11882 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11883 lt_prog_compiler_wl_D='-Wl,'
11884 lt_prog_compiler_pic_D='-qpic'
11885 lt_prog_compiler_static_D='-qstaticlink'
11886 ;;
11887 *)
11888 case `$CC -V 2>&1 | sed 5q` in
11889 *Sun\ F* | *Sun*Fortran*)
11890 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11891 lt_prog_compiler_pic_D='-KPIC'
11892 lt_prog_compiler_static_D='-Bstatic'
11893 lt_prog_compiler_wl_D=''
11894 ;;
11895 *Sun\ C*)
11896 # Sun C 5.9
11897 lt_prog_compiler_pic_D='-KPIC'
11898 lt_prog_compiler_static_D='-Bstatic'
11899 lt_prog_compiler_wl_D='-Wl,'
11900 ;;
11901 esac
11902 ;;
11903 esac
11904 ;;
11905
11906 newsos6)
11907 lt_prog_compiler_pic_D='-KPIC'
11908 lt_prog_compiler_static_D='-Bstatic'
11909 ;;
11910
11911 *nto* | *qnx*)
11912 # QNX uses GNU C++, but need to define -shared option too, otherwise
11913 # it will coredump.
11914 lt_prog_compiler_pic_D='-fPIC -shared'
11915 ;;
11916
11917 osf3* | osf4* | osf5*)
11918 lt_prog_compiler_wl_D='-Wl,'
11919 # All OSF/1 code is PIC.
11920 lt_prog_compiler_static_D='-non_shared'
11921 ;;
11922
11923 rdos*)
11924 lt_prog_compiler_static_D='-non_shared'
11925 ;;
11926
11927 solaris*)
11928 lt_prog_compiler_pic_D='-KPIC'
11929 lt_prog_compiler_static_D='-Bstatic'
11930 case $cc_basename in
11931 f77* | f90* | f95*)
11932 lt_prog_compiler_wl_D='-Qoption ld ';;
11933 *)
11934 lt_prog_compiler_wl_D='-Wl,';;
11935 esac
11936 ;;
11937
11938 sunos4*)
11939 lt_prog_compiler_wl_D='-Qoption ld '
11940 lt_prog_compiler_pic_D='-PIC'
11941 lt_prog_compiler_static_D='-Bstatic'
11942 ;;
11943
11944 sysv4 | sysv4.2uw2* | sysv4.3*)
11945 lt_prog_compiler_wl_D='-Wl,'
11946 lt_prog_compiler_pic_D='-KPIC'
11947 lt_prog_compiler_static_D='-Bstatic'
11948 ;;
11949
11950 sysv4*MP*)
11951 if test -d /usr/nec ;then
11952 lt_prog_compiler_pic_D='-Kconform_pic'
11953 lt_prog_compiler_static_D='-Bstatic'
11954 fi
11955 ;;
11956
11957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11958 lt_prog_compiler_wl_D='-Wl,'
11959 lt_prog_compiler_pic_D='-KPIC'
11960 lt_prog_compiler_static_D='-Bstatic'
11961 ;;
11962
11963 unicos*)
11964 lt_prog_compiler_wl_D='-Wl,'
11965 lt_prog_compiler_can_build_shared_D=no
11966 ;;
11967
11968 uts4*)
11969 lt_prog_compiler_pic_D='-pic'
11970 lt_prog_compiler_static_D='-Bstatic'
11971 ;;
11972
11973 *)
11974 lt_prog_compiler_can_build_shared_D=no
11975 ;;
11976 esac
11977 fi
11978
11979case $host_os in
11980 # For platforms which do not support PIC, -DPIC is meaningless:
11981 *djgpp*)
11982 lt_prog_compiler_pic_D=
11983 ;;
11984 *)
11985 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
11986 ;;
11987esac
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
11989$as_echo "$lt_prog_compiler_pic_D" >&6; }
11990
11991
11992
11993#
11994# Check to make sure the PIC flag actually works.
11995#
11996if test -n "$lt_prog_compiler_pic_D"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
11998$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
11999if test "${lt_cv_prog_compiler_pic_works_D+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001else
12002 lt_cv_prog_compiler_pic_works_D=no
12003 ac_outfile=conftest.$ac_objext
12004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12005 lt_compiler_flag="$lt_prog_compiler_pic_D"
12006 # Insert the option either (1) after the last *FLAGS variable, or
12007 # (2) before a word containing "conftest.", or (3) at the end.
12008 # Note that $ac_compile itself does not contain backslashes and begins
12009 # with a dollar sign (not a hyphen), so the echo should work correctly.
12010 # The option is referenced via a variable to avoid confusing sed.
12011 lt_compile=`echo "$ac_compile" | $SED \
12012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12014 -e 's:$: $lt_compiler_flag:'`
12015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12016 (eval "$lt_compile" 2>conftest.err)
12017 ac_status=$?
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 if (exit $ac_status) && test -s "$ac_outfile"; then
12021 # The compiler can only warn and ignore the option if not recognized
12022 # So say no if there are warnings other than the usual output.
12023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12026 lt_cv_prog_compiler_pic_works_D=yes
12027 fi
12028 fi
12029 $RM conftest*
12030
12031fi
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12033$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12034
12035if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12036 case $lt_prog_compiler_pic_D in
12037 "" | " "*) ;;
12038 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12039 esac
12040else
12041 lt_prog_compiler_pic_D=
12042 lt_prog_compiler_can_build_shared_D=no
12043fi
12044
12045fi
12046
12047
12048
12049#
12050# Check to make sure the static flag actually works.
12051#
12052wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12054$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12055if test "${lt_cv_prog_compiler_static_works_D+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057else
12058 lt_cv_prog_compiler_static_works_D=no
12059 save_LDFLAGS="$LDFLAGS"
12060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12063 # The linker can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test -s conftest.err; then
12066 # Append any errors to the config.log.
12067 cat conftest.err 1>&5
12068 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12070 if diff conftest.exp conftest.er2 >/dev/null; then
12071 lt_cv_prog_compiler_static_works_D=yes
12072 fi
12073 else
12074 lt_cv_prog_compiler_static_works_D=yes
12075 fi
12076 fi
12077 $RM -r conftest*
12078 LDFLAGS="$save_LDFLAGS"
12079
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12082$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12083
12084if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12085 :
12086else
12087 lt_prog_compiler_static_D=
12088fi
12089
12090
12091
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12094$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12095if test "${lt_cv_prog_compiler_c_o_D+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12097else
12098 lt_cv_prog_compiler_c_o_D=no
12099 $RM -r conftest 2>/dev/null
12100 mkdir conftest
12101 cd conftest
12102 mkdir out
12103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104
12105 lt_compiler_flag="-o out/conftest2.$ac_objext"
12106 # Insert the option either (1) after the last *FLAGS variable, or
12107 # (2) before a word containing "conftest.", or (3) at the end.
12108 # Note that $ac_compile itself does not contain backslashes and begins
12109 # with a dollar sign (not a hyphen), so the echo should work correctly.
12110 lt_compile=`echo "$ac_compile" | $SED \
12111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 -e 's:$: $lt_compiler_flag:'`
12114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12115 (eval "$lt_compile" 2>out/conftest.err)
12116 ac_status=$?
12117 cat out/conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12120 then
12121 # The compiler can only warn and ignore the option if not recognized
12122 # So say no if there are warnings
12123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12126 lt_cv_prog_compiler_c_o_D=yes
12127 fi
12128 fi
12129 chmod u+w . 2>&5
12130 $RM conftest*
12131 # SGI C++ compiler will create directory out/ii_files/ for
12132 # template instantiation
12133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12134 $RM out/* && rmdir out
12135 cd ..
12136 $RM -r conftest
12137 $RM conftest*
12138
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12141$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12142
12143
12144
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12146$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12147if test "${lt_cv_prog_compiler_c_o_D+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149else
12150 lt_cv_prog_compiler_c_o_D=no
12151 $RM -r conftest 2>/dev/null
12152 mkdir conftest
12153 cd conftest
12154 mkdir out
12155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12156
12157 lt_compiler_flag="-o out/conftest2.$ac_objext"
12158 # Insert the option either (1) after the last *FLAGS variable, or
12159 # (2) before a word containing "conftest.", or (3) at the end.
12160 # Note that $ac_compile itself does not contain backslashes and begins
12161 # with a dollar sign (not a hyphen), so the echo should work correctly.
12162 lt_compile=`echo "$ac_compile" | $SED \
12163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12165 -e 's:$: $lt_compiler_flag:'`
12166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12167 (eval "$lt_compile" 2>out/conftest.err)
12168 ac_status=$?
12169 cat out/conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12172 then
12173 # The compiler can only warn and ignore the option if not recognized
12174 # So say no if there are warnings
12175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12178 lt_cv_prog_compiler_c_o_D=yes
12179 fi
12180 fi
12181 chmod u+w . 2>&5
12182 $RM conftest*
12183 # SGI C++ compiler will create directory out/ii_files/ for
12184 # template instantiation
12185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12186 $RM out/* && rmdir out
12187 cd ..
12188 $RM -r conftest
12189 $RM conftest*
12190
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12193$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12194
12195
12196
12197
12198hard_links="nottested"
12199if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12200 # do not overwrite the value of need_locks provided by the user
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12202$as_echo_n "checking if we can lock with hard links... " >&6; }
12203 hard_links=yes
12204 $RM conftest*
12205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12206 touch conftest.a
12207 ln conftest.a conftest.b 2>&5 || hard_links=no
12208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12210$as_echo "$hard_links" >&6; }
12211 if test "$hard_links" = no; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12213$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12214 need_locks=warn
12215 fi
12216else
12217 need_locks=no
12218fi
12219
12220
12221
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12223$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12224
12225 runpath_var=
12226 allow_undefined_flag_D=
12227 always_export_symbols_D=no
12228 archive_cmds_D=
12229 archive_expsym_cmds_D=
12230 compiler_needs_object_D=no
12231 enable_shared_with_static_runtimes_D=no
12232 export_dynamic_flag_spec_D=
12233 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12234 hardcode_automatic_D=no
12235 hardcode_direct_D=no
12236 hardcode_direct_absolute_D=no
12237 hardcode_libdir_flag_spec_D=
12238 hardcode_libdir_flag_spec_ld_D=
12239 hardcode_libdir_separator_D=
12240 hardcode_minus_L_D=no
12241 hardcode_shlibpath_var_D=unsupported
12242 inherit_rpath_D=no
12243 link_all_deplibs_D=unknown
12244 module_cmds_D=
12245 module_expsym_cmds_D=
12246 old_archive_from_new_cmds_D=
12247 old_archive_from_expsyms_cmds_D=
12248 thread_safe_flag_spec_D=
12249 whole_archive_flag_spec_D=
12250 # include_expsyms should be a list of space-separated symbols to be *always*
12251 # included in the symbol list
12252 include_expsyms_D=
12253 # exclude_expsyms can be an extended regexp of symbols to exclude
12254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12256 # as well as any symbol that contains `d'.
12257 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12259 # platforms (ab)use it in PIC code, but their linkers get confused if
12260 # the symbol is explicitly referenced. Since portable code cannot
12261 # rely on this symbol name, it's probably fine to never include it in
12262 # preloaded symbol tables.
12263 # Exclude shared library initialization/finalization symbols.
12264 extract_expsyms_cmds=
12265
12266 case $host_os in
12267 cygwin* | mingw* | pw32* | cegcc*)
12268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12269 # When not using gcc, we currently assume that we are using
12270 # Microsoft Visual C++.
12271 if test "$GCC" != yes; then
12272 with_gnu_ld=no
12273 fi
12274 ;;
12275 interix*)
12276 # we just hope/assume this is gcc and not c89 (= MSVC++)
12277 with_gnu_ld=yes
12278 ;;
12279 openbsd*)
12280 with_gnu_ld=no
12281 ;;
12282 esac
12283
12284 ld_shlibs_D=yes
12285
12286 # On some targets, GNU ld is compatible enough with the native linker
12287 # that we're better off using the native interface for both.
12288 lt_use_gnu_ld_interface=no
12289 if test "$with_gnu_ld" = yes; then
12290 case $host_os in
12291 aix*)
12292 # The AIX port of GNU ld has always aspired to compatibility
12293 # with the native linker. However, as the warning in the GNU ld
12294 # block says, versions before 2.19.5* couldn't really create working
12295 # shared libraries, regardless of the interface used.
12296 case `$LD -v 2>&1` in
12297 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12298 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12299 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12300 *)
12301 lt_use_gnu_ld_interface=yes
12302 ;;
12303 esac
12304 ;;
12305 *)
12306 lt_use_gnu_ld_interface=yes
12307 ;;
12308 esac
12309 fi
12310
12311 if test "$lt_use_gnu_ld_interface" = yes; then
12312 # If archive_cmds runs LD, not CC, wlarc should be empty
12313 wlarc='${wl}'
12314
12315 # Set some defaults for GNU ld with shared library support. These
12316 # are reset later if shared libraries are not supported. Putting them
12317 # here allows them to be overridden if necessary.
12318 runpath_var=LD_RUN_PATH
12319 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12320 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12321 # ancient GNU ld didn't support --whole-archive et. al.
12322 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12323 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12324 else
12325 whole_archive_flag_spec_D=
12326 fi
12327 supports_anon_versioning=no
12328 case `$LD -v 2>&1` in
12329 *GNU\ gold*) supports_anon_versioning=yes ;;
12330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12333 *\ 2.11.*) ;; # other 2.11 versions
12334 *) supports_anon_versioning=yes ;;
12335 esac
12336
12337 # See if GNU ld supports shared libraries.
12338 case $host_os in
12339 aix[3-9]*)
12340 # On AIX/PPC, the GNU linker is very broken
12341 if test "$host_cpu" != ia64; then
12342 ld_shlibs_D=no
12343 cat <<_LT_EOF 1>&2
12344
12345*** Warning: the GNU linker, at least up to release 2.19, is reported
12346*** to be unable to reliably create shared libraries on AIX.
12347*** Therefore, libtool is disabling shared libraries support. If you
12348*** really care for shared libraries, you may want to install binutils
12349*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12350*** You will then need to restart the configuration process.
12351
12352_LT_EOF
12353 fi
12354 ;;
12355
12356 amigaos*)
12357 case $host_cpu in
12358 powerpc)
12359 # see comment about AmigaOS4 .so support
12360 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361 archive_expsym_cmds_D=''
12362 ;;
12363 m68k)
12364 archive_cmds_D='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12365 hardcode_libdir_flag_spec_D='-L$libdir'
12366 hardcode_minus_L_D=yes
12367 ;;
12368 esac
12369 ;;
12370
12371 beos*)
12372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12373 allow_undefined_flag_D=unsupported
12374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12375 # support --undefined. This deserves some investigation. FIXME
12376 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377 else
12378 ld_shlibs_D=no
12379 fi
12380 ;;
12381
12382 cygwin* | mingw* | pw32* | cegcc*)
12383 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12384 # as there is no search path for DLLs.
12385 hardcode_libdir_flag_spec_D='-L$libdir'
12386 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12387 allow_undefined_flag_D=unsupported
12388 always_export_symbols_D=no
12389 enable_shared_with_static_runtimes_D=yes
12390 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12391
12392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12393 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12394 # If the export-symbols file already is a .def file (1st line
12395 # is EXPORTS), use it as is; otherwise, prepend...
12396 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12397 cp $export_symbols $output_objdir/$soname.def;
12398 else
12399 echo EXPORTS > $output_objdir/$soname.def;
12400 cat $export_symbols >> $output_objdir/$soname.def;
12401 fi~
12402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12403 else
12404 ld_shlibs_D=no
12405 fi
12406 ;;
12407
12408 haiku*)
12409 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 link_all_deplibs_D=yes
12411 ;;
12412
12413 interix[3-9]*)
12414 hardcode_direct_D=no
12415 hardcode_shlibpath_var_D=no
12416 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12417 export_dynamic_flag_spec_D='${wl}-E'
12418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12419 # Instead, shared libraries are loaded at an image base (0x10000000 by
12420 # default) and relocated if they conflict, which is a slow very memory
12421 # consuming and fragmenting process. To avoid this, we pick a random,
12422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12424 archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12425 archive_expsym_cmds_D='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12426 ;;
12427
12428 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12429 tmp_diet=no
12430 if test "$host_os" = linux-dietlibc; then
12431 case $cc_basename in
12432 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12433 esac
12434 fi
12435 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12436 && test "$tmp_diet" = no
12437 then
12438 tmp_addflag=' $pic_flag'
12439 tmp_sharedflag='-shared'
12440 case $cc_basename,$host_cpu in
12441 pgcc*) # Portland Group C compiler
12442 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12443 tmp_addflag=' $pic_flag'
12444 ;;
12445 pgf77* | pgf90* | pgf95* | pgfortran*)
12446 # Portland Group f77 and f90 compilers
12447 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12448 tmp_addflag=' $pic_flag -Mnomain' ;;
12449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12450 tmp_addflag=' -i_dynamic' ;;
12451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12452 tmp_addflag=' -i_dynamic -nofor_main' ;;
12453 ifc* | ifort*) # Intel Fortran compiler
12454 tmp_addflag=' -nofor_main' ;;
12455 lf95*) # Lahey Fortran 8.1
12456 whole_archive_flag_spec_D=
12457 tmp_sharedflag='--shared' ;;
12458 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12459 tmp_sharedflag='-qmkshrobj'
12460 tmp_addflag= ;;
12461 nvcc*) # Cuda Compiler Driver 2.2
12462 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12463 compiler_needs_object_D=yes
12464 ;;
12465 esac
12466 case `$CC -V 2>&1 | sed 5q` in
12467 *Sun\ C*) # Sun C 5.9
12468 whole_archive_flag_spec_D='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12469 compiler_needs_object_D=yes
12470 tmp_sharedflag='-G' ;;
12471 *Sun\ F*) # Sun Fortran 8.3
12472 tmp_sharedflag='-G' ;;
12473 esac
12474 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12475
12476 if test "x$supports_anon_versioning" = xyes; then
12477 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12479 echo "local: *; };" >> $output_objdir/$libname.ver~
12480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12481 fi
12482
12483 case $cc_basename in
12484 xlf* | bgf* | bgxlf* | mpixlf*)
12485 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12486 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12487 hardcode_libdir_flag_spec_D=
12488 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12489 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12490 if test "x$supports_anon_versioning" = xyes; then
12491 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12493 echo "local: *; };" >> $output_objdir/$libname.ver~
12494 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12495 fi
12496 ;;
12497 esac
12498 else
12499 ld_shlibs_D=no
12500 fi
12501 ;;
12502
12503 netbsd*)
12504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12505 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12506 wlarc=
12507 else
12508 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510 fi
12511 ;;
12512
12513 solaris*)
12514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12515 ld_shlibs_D=no
12516 cat <<_LT_EOF 1>&2
12517
12518*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12519*** create shared libraries on Solaris systems. Therefore, libtool
12520*** is disabling shared libraries support. We urge you to upgrade GNU
12521*** binutils to release 2.9.1 or newer. Another option is to modify
12522*** your PATH or compiler configuration so that the native linker is
12523*** used, and then restart.
12524
12525_LT_EOF
12526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12527 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12529 else
12530 ld_shlibs_D=no
12531 fi
12532 ;;
12533
12534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12535 case `$LD -v 2>&1` in
12536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12537 ld_shlibs_D=no
12538 cat <<_LT_EOF 1>&2
12539
12540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12541*** reliably create shared libraries on SCO systems. Therefore, libtool
12542*** is disabling shared libraries support. We urge you to upgrade GNU
12543*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12544*** your PATH or compiler configuration so that the native linker is
12545*** used, and then restart.
12546
12547_LT_EOF
12548 ;;
12549 *)
12550 # For security reasons, it is highly recommended that you always
12551 # use absolute paths for naming shared libraries, and exclude the
12552 # DT_RUNPATH tag from executables and libraries. But doing so
12553 # requires that you compile everything twice, which is a pain.
12554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12555 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12556 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12558 else
12559 ld_shlibs_D=no
12560 fi
12561 ;;
12562 esac
12563 ;;
12564
12565 sunos4*)
12566 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12567 wlarc=
12568 hardcode_direct_D=yes
12569 hardcode_shlibpath_var_D=no
12570 ;;
12571
12572 *)
12573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12575 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12576 else
12577 ld_shlibs_D=no
12578 fi
12579 ;;
12580 esac
12581
12582 if test "$ld_shlibs_D" = no; then
12583 runpath_var=
12584 hardcode_libdir_flag_spec_D=
12585 export_dynamic_flag_spec_D=
12586 whole_archive_flag_spec_D=
12587 fi
12588 else
12589 # PORTME fill in a description of your system's linker (not GNU ld)
12590 case $host_os in
12591 aix3*)
12592 allow_undefined_flag_D=unsupported
12593 always_export_symbols_D=yes
12594 archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12595 # Note: this linker hardcodes the directories in LIBPATH if there
12596 # are no directories specified by -L.
12597 hardcode_minus_L_D=yes
12598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12599 # Neither direct hardcoding nor static linking is supported with a
12600 # broken collect2.
12601 hardcode_direct_D=unsupported
12602 fi
12603 ;;
12604
12605 aix[4-9]*)
12606 if test "$host_cpu" = ia64; then
12607 # On IA64, the linker does run time linking by default, so we don't
12608 # have to do anything special.
12609 aix_use_runtimelinking=no
12610 exp_sym_flag='-Bexport'
12611 no_entry_flag=""
12612 else
12613 # If we're using GNU nm, then we don't want the "-C" option.
12614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12615 # Also, AIX nm treats weak defined symbols like other global
12616 # defined symbols, whereas GNU nm marks them as "W".
12617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12618 export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12619 else
12620 export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12621 fi
12622 aix_use_runtimelinking=no
12623
12624 # Test if we are trying to use run time linking or normal
12625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12626 # need to do runtime linking.
12627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12628 for ld_flag in $LDFLAGS; do
12629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12630 aix_use_runtimelinking=yes
12631 break
12632 fi
12633 done
12634 ;;
12635 esac
12636
12637 exp_sym_flag='-bexport'
12638 no_entry_flag='-bnoentry'
12639 fi
12640
12641 # When large executables or shared objects are built, AIX ld can
12642 # have problems creating the table of contents. If linking a library
12643 # or program results in "error TOC overflow" add -mminimal-toc to
12644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12646
12647 archive_cmds_D=''
12648 hardcode_direct_D=yes
12649 hardcode_direct_absolute_D=yes
12650 hardcode_libdir_separator_D=':'
12651 link_all_deplibs_D=yes
12652 file_list_spec_D='${wl}-f,'
12653
12654 if test "$GCC" = yes; then
12655 case $host_os in aix4.[012]|aix4.[012].*)
12656 # We only want to do this on AIX 4.2 and lower, the check
12657 # below for broken collect2 doesn't work under 4.3+
12658 collect2name=`${CC} -print-prog-name=collect2`
12659 if test -f "$collect2name" &&
12660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12661 then
12662 # We have reworked collect2
12663 :
12664 else
12665 # We have old collect2
12666 hardcode_direct_D=unsupported
12667 # It fails to find uninstalled libraries when the uninstalled
12668 # path is not listed in the libpath. Setting hardcode_minus_L
12669 # to unsupported forces relinking
12670 hardcode_minus_L_D=yes
12671 hardcode_libdir_flag_spec_D='-L$libdir'
12672 hardcode_libdir_separator_D=
12673 fi
12674 ;;
12675 esac
12676 shared_flag='-shared'
12677 if test "$aix_use_runtimelinking" = yes; then
12678 shared_flag="$shared_flag "'${wl}-G'
12679 fi
12680 else
12681 # not using gcc
12682 if test "$host_cpu" = ia64; then
12683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12684 # chokes on -Wl,-G. The following line is correct:
12685 shared_flag='-G'
12686 else
12687 if test "$aix_use_runtimelinking" = yes; then
12688 shared_flag='${wl}-G'
12689 else
12690 shared_flag='${wl}-bM:SRE'
12691 fi
12692 fi
12693 fi
12694
12695 export_dynamic_flag_spec_D='${wl}-bexpall'
12696 # It seems that -bexpall does not export symbols beginning with
12697 # underscore (_), so it is better to generate a list of symbols to export.
12698 always_export_symbols_D=yes
12699 if test "$aix_use_runtimelinking" = yes; then
12700 # Warning - without using the other runtime loading flags (-brtl),
12701 # -berok will link without error, but may produce a broken library.
12702 allow_undefined_flag_D='-berok'
12703 # Determine the default libpath from the value encoded in an
12704 # empty executable.
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706/* end confdefs.h. */
12707
12708int
12709main ()
12710{
12711
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716if ac_fn_c_try_link "$LINENO"; then :
12717
12718lt_aix_libpath_sed='
12719 /Import File Strings/,/^$/ {
12720 /^0/ {
12721 s/^0 *\(.*\)$/\1/
12722 p
12723 }
12724 }'
12725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12726# Check for a 64-bit object if we didn't find anything.
12727if test -z "$aix_libpath"; then
12728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12729fi
12730fi
12731rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12734
12735 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
12736 archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12737 else
12738 if test "$host_cpu" = ia64; then
12739 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
12740 allow_undefined_flag_D="-z nodefs"
12741 archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12742 else
12743 # Determine the default libpath from the value encoded in an
12744 # empty executable.
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746/* end confdefs.h. */
12747
12748int
12749main ()
12750{
12751
12752 ;
12753 return 0;
12754}
12755_ACEOF
12756if ac_fn_c_try_link "$LINENO"; then :
12757
12758lt_aix_libpath_sed='
12759 /Import File Strings/,/^$/ {
12760 /^0/ {
12761 s/^0 *\(.*\)$/\1/
12762 p
12763 }
12764 }'
12765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12766# Check for a 64-bit object if we didn't find anything.
12767if test -z "$aix_libpath"; then
12768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12769fi
12770fi
12771rm -f core conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12773if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12774
12775 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
12776 # Warning - without using the other run time loading flags,
12777 # -berok will link without error, but may produce a broken library.
12778 no_undefined_flag_D=' ${wl}-bernotok'
12779 allow_undefined_flag_D=' ${wl}-berok'
12780 if test "$with_gnu_ld" = yes; then
12781 # We only use this code for GNU lds that support --whole-archive.
12782 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12783 else
12784 # Exported symbols can be pulled into shared objects from archives
12785 whole_archive_flag_spec_D='$convenience'
12786 fi
12787 archive_cmds_need_lc_D=yes
12788 # This is similar to how AIX traditionally builds its shared libraries.
12789 archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12790 fi
12791 fi
12792 ;;
12793
12794 amigaos*)
12795 case $host_cpu in
12796 powerpc)
12797 # see comment about AmigaOS4 .so support
12798 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 archive_expsym_cmds_D=''
12800 ;;
12801 m68k)
12802 archive_cmds_D='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12803 hardcode_libdir_flag_spec_D='-L$libdir'
12804 hardcode_minus_L_D=yes
12805 ;;
12806 esac
12807 ;;
12808
12809 bsdi[45]*)
12810 export_dynamic_flag_spec_D=-rdynamic
12811 ;;
12812
12813 cygwin* | mingw* | pw32* | cegcc*)
12814 # When not using gcc, we currently assume that we are using
12815 # Microsoft Visual C++.
12816 # hardcode_libdir_flag_spec is actually meaningless, as there is
12817 # no search path for DLLs.
12818 hardcode_libdir_flag_spec_D=' '
12819 allow_undefined_flag_D=unsupported
12820 # Tell ltmain to make .lib files, not .a files.
12821 libext=lib
12822 # Tell ltmain to make .dll files, not .so files.
12823 shrext_cmds=".dll"
12824 # FIXME: Setting linknames here is a bad hack.
12825 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12826 # The linker will automatically build a .lib file if we build a DLL.
12827 old_archive_from_new_cmds_D='true'
12828 # FIXME: Should let the user specify the lib program.
12829 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
12830 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
12831 enable_shared_with_static_runtimes_D=yes
12832 ;;
12833
12834 darwin* | rhapsody*)
12835
12836
12837 archive_cmds_need_lc_D=no
12838 hardcode_direct_D=no
12839 hardcode_automatic_D=yes
12840 hardcode_shlibpath_var_D=unsupported
12841 if test "$lt_cv_ld_force_load" = "yes"; then
12842 whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12843 else
12844 whole_archive_flag_spec_D=''
12845 fi
12846 link_all_deplibs_D=yes
12847 allow_undefined_flag_D="$_lt_dar_allow_undefined"
12848 case $cc_basename in
12849 ifort*) _lt_dar_can_shared=yes ;;
12850 *) _lt_dar_can_shared=$GCC ;;
12851 esac
12852 if test "$_lt_dar_can_shared" = "yes"; then
12853 output_verbose_link_cmd=func_echo_all
12854 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12855 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12856 archive_expsym_cmds_D="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12857 module_expsym_cmds_D="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12858
12859 else
12860 ld_shlibs_D=no
12861 fi
12862
12863 ;;
12864
12865 dgux*)
12866 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_libdir_flag_spec_D='-L$libdir'
12868 hardcode_shlibpath_var_D=no
12869 ;;
12870
12871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12872 # support. Future versions do this automatically, but an explicit c++rt0.o
12873 # does not break anything, and helps significantly (at the cost of a little
12874 # extra space).
12875 freebsd2.2*)
12876 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12877 hardcode_libdir_flag_spec_D='-R$libdir'
12878 hardcode_direct_D=yes
12879 hardcode_shlibpath_var_D=no
12880 ;;
12881
12882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12883 freebsd2.*)
12884 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct_D=yes
12886 hardcode_minus_L_D=yes
12887 hardcode_shlibpath_var_D=no
12888 ;;
12889
12890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12891 freebsd* | dragonfly*)
12892 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12893 hardcode_libdir_flag_spec_D='-R$libdir'
12894 hardcode_direct_D=yes
12895 hardcode_shlibpath_var_D=no
12896 ;;
12897
12898 hpux9*)
12899 if test "$GCC" = yes; then
12900 archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12901 else
12902 archive_cmds_D='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12903 fi
12904 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12905 hardcode_libdir_separator_D=:
12906 hardcode_direct_D=yes
12907
12908 # hardcode_minus_L: Not really in the search PATH,
12909 # but as the default location of the library.
12910 hardcode_minus_L_D=yes
12911 export_dynamic_flag_spec_D='${wl}-E'
12912 ;;
12913
12914 hpux10*)
12915 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12916 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12917 else
12918 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12919 fi
12920 if test "$with_gnu_ld" = no; then
12921 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12922 hardcode_libdir_flag_spec_ld_D='+b $libdir'
12923 hardcode_libdir_separator_D=:
12924 hardcode_direct_D=yes
12925 hardcode_direct_absolute_D=yes
12926 export_dynamic_flag_spec_D='${wl}-E'
12927 # hardcode_minus_L: Not really in the search PATH,
12928 # but as the default location of the library.
12929 hardcode_minus_L_D=yes
12930 fi
12931 ;;
12932
12933 hpux11*)
12934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12935 case $host_cpu in
12936 hppa*64*)
12937 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12938 ;;
12939 ia64*)
12940 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12941 ;;
12942 *)
12943 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12944 ;;
12945 esac
12946 else
12947 case $host_cpu in
12948 hppa*64*)
12949 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12950 ;;
12951 ia64*)
12952 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12953 ;;
12954 *)
12955 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12956 ;;
12957 esac
12958 fi
12959 if test "$with_gnu_ld" = no; then
12960 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12961 hardcode_libdir_separator_D=:
12962
12963 case $host_cpu in
12964 hppa*64*|ia64*)
12965 hardcode_direct_D=no
12966 hardcode_shlibpath_var_D=no
12967 ;;
12968 *)
12969 hardcode_direct_D=yes
12970 hardcode_direct_absolute_D=yes
12971 export_dynamic_flag_spec_D='${wl}-E'
12972
12973 # hardcode_minus_L: Not really in the search PATH,
12974 # but as the default location of the library.
12975 hardcode_minus_L_D=yes
12976 ;;
12977 esac
12978 fi
12979 ;;
12980
12981 irix5* | irix6* | nonstopux*)
12982 if test "$GCC" = yes; then
12983 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12984 # Try to use the -exported_symbol ld option, if it does not
12985 # work, assume that -exports_file does not work either and
12986 # implicitly export all symbols.
12987 save_LDFLAGS="$LDFLAGS"
12988 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h. */
12991int foo(void) {}
12992_ACEOF
12993if ac_fn_c_try_link "$LINENO"; then :
12994 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12995
12996fi
12997rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LDFLAGS="$save_LDFLAGS"
13000 else
13001 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13002 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13003 fi
13004 archive_cmds_need_lc_D='no'
13005 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13006 hardcode_libdir_separator_D=:
13007 inherit_rpath_D=yes
13008 link_all_deplibs_D=yes
13009 ;;
13010
13011 netbsd*)
13012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13013 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13014 else
13015 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13016 fi
13017 hardcode_libdir_flag_spec_D='-R$libdir'
13018 hardcode_direct_D=yes
13019 hardcode_shlibpath_var_D=no
13020 ;;
13021
13022 newsos6)
13023 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13024 hardcode_direct_D=yes
13025 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13026 hardcode_libdir_separator_D=:
13027 hardcode_shlibpath_var_D=no
13028 ;;
13029
13030 *nto* | *qnx*)
13031 ;;
13032
13033 openbsd*)
13034 if test -f /usr/libexec/ld.so; then
13035 hardcode_direct_D=yes
13036 hardcode_shlibpath_var_D=no
13037 hardcode_direct_absolute_D=yes
13038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13039 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13041 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13042 export_dynamic_flag_spec_D='${wl}-E'
13043 else
13044 case $host_os in
13045 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13046 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_libdir_flag_spec_D='-R$libdir'
13048 ;;
13049 *)
13050 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13051 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13052 ;;
13053 esac
13054 fi
13055 else
13056 ld_shlibs_D=no
13057 fi
13058 ;;
13059
13060 os2*)
13061 hardcode_libdir_flag_spec_D='-L$libdir'
13062 hardcode_minus_L_D=yes
13063 allow_undefined_flag_D=unsupported
13064 archive_cmds_D='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13065 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13066 ;;
13067
13068 osf3*)
13069 if test "$GCC" = yes; then
13070 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13071 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13072 else
13073 allow_undefined_flag_D=' -expect_unresolved \*'
13074 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13075 fi
13076 archive_cmds_need_lc_D='no'
13077 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13078 hardcode_libdir_separator_D=:
13079 ;;
13080
13081 osf4* | osf5*) # as osf3* with the addition of -msym flag
13082 if test "$GCC" = yes; then
13083 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13084 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13085 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13086 else
13087 allow_undefined_flag_D=' -expect_unresolved \*'
13088 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13089 archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13090 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13091
13092 # Both c and cxx compiler support -rpath directly
13093 hardcode_libdir_flag_spec_D='-rpath $libdir'
13094 fi
13095 archive_cmds_need_lc_D='no'
13096 hardcode_libdir_separator_D=:
13097 ;;
13098
13099 solaris*)
13100 no_undefined_flag_D=' -z defs'
13101 if test "$GCC" = yes; then
13102 wlarc='${wl}'
13103 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13105 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13106 else
13107 case `$CC -V 2>&1` in
13108 *"Compilers 5.0"*)
13109 wlarc=''
13110 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13112 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13113 ;;
13114 *)
13115 wlarc='${wl}'
13116 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13117 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13118 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13119 ;;
13120 esac
13121 fi
13122 hardcode_libdir_flag_spec_D='-R$libdir'
13123 hardcode_shlibpath_var_D=no
13124 case $host_os in
13125 solaris2.[0-5] | solaris2.[0-5].*) ;;
13126 *)
13127 # The compiler driver will combine and reorder linker options,
13128 # but understands `-z linker_flag'. GCC discards it without `$wl',
13129 # but is careful enough not to reorder.
13130 # Supported since Solaris 2.6 (maybe 2.5.1?)
13131 if test "$GCC" = yes; then
13132 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13133 else
13134 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13135 fi
13136 ;;
13137 esac
13138 link_all_deplibs_D=yes
13139 ;;
13140
13141 sunos4*)
13142 if test "x$host_vendor" = xsequent; then
13143 # Use $CC to link under sequent, because it throws in some extra .o
13144 # files that make .init and .fini sections work.
13145 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13146 else
13147 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13148 fi
13149 hardcode_libdir_flag_spec_D='-L$libdir'
13150 hardcode_direct_D=yes
13151 hardcode_minus_L_D=yes
13152 hardcode_shlibpath_var_D=no
13153 ;;
13154
13155 sysv4)
13156 case $host_vendor in
13157 sni)
13158 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13159 hardcode_direct_D=yes # is this really true???
13160 ;;
13161 siemens)
13162 ## LD is ld it makes a PLAMLIB
13163 ## CC just makes a GrossModule.
13164 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13165 reload_cmds_D='$CC -r -o $output$reload_objs'
13166 hardcode_direct_D=no
13167 ;;
13168 motorola)
13169 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13171 ;;
13172 esac
13173 runpath_var='LD_RUN_PATH'
13174 hardcode_shlibpath_var_D=no
13175 ;;
13176
13177 sysv4.3*)
13178 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179 hardcode_shlibpath_var_D=no
13180 export_dynamic_flag_spec_D='-Bexport'
13181 ;;
13182
13183 sysv4*MP*)
13184 if test -d /usr/nec; then
13185 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_shlibpath_var_D=no
13187 runpath_var=LD_RUN_PATH
13188 hardcode_runpath_var=yes
13189 ld_shlibs_D=yes
13190 fi
13191 ;;
13192
13193 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13194 no_undefined_flag_D='${wl}-z,text'
13195 archive_cmds_need_lc_D=no
13196 hardcode_shlibpath_var_D=no
13197 runpath_var='LD_RUN_PATH'
13198
13199 if test "$GCC" = yes; then
13200 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 else
13203 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13205 fi
13206 ;;
13207
13208 sysv5* | sco3.2v5* | sco5v6*)
13209 # Note: We can NOT use -z defs as we might desire, because we do not
13210 # link with -lc, and that would cause any symbols used from libc to
13211 # always be unresolved, which means just about no library would
13212 # ever link correctly. If we're not using GNU ld we use -z text
13213 # though, which does catch some bad symbols but isn't as heavy-handed
13214 # as -z defs.
13215 no_undefined_flag_D='${wl}-z,text'
13216 allow_undefined_flag_D='${wl}-z,nodefs'
13217 archive_cmds_need_lc_D=no
13218 hardcode_shlibpath_var_D=no
13219 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13220 hardcode_libdir_separator_D=':'
13221 link_all_deplibs_D=yes
13222 export_dynamic_flag_spec_D='${wl}-Bexport'
13223 runpath_var='LD_RUN_PATH'
13224
13225 if test "$GCC" = yes; then
13226 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13228 else
13229 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13230 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13231 fi
13232 ;;
13233
13234 uts4*)
13235 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_libdir_flag_spec_D='-L$libdir'
13237 hardcode_shlibpath_var_D=no
13238 ;;
13239
13240 *)
13241 ld_shlibs_D=no
13242 ;;
13243 esac
13244
13245 if test x$host_vendor = xsni; then
13246 case $host in
13247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13248 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13249 ;;
13250 esac
13251 fi
13252 fi
13253
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13255$as_echo "$ld_shlibs_D" >&6; }
13256test "$ld_shlibs_D" = no && can_build_shared=no
13257
13258with_gnu_ld_D=$with_gnu_ld
13259
13260
13261
13262
13263
13264
13265#
13266# Do we need to explicitly link libc?
13267#
13268case "x$archive_cmds_need_lc_D" in
13269x|xyes)
13270 # Assume -lc should be added
13271 archive_cmds_need_lc_D=yes
13272
13273 if test "$enable_shared" = yes && test "$GCC" = yes; then
13274 case $archive_cmds_D in
13275 *'~'*)
13276 # FIXME: we may have to deal with multi-command sequences.
13277 ;;
13278 '$CC '*)
13279 # Test whether the compiler implicitly links with -lc since on some
13280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13281 # to ld, don't add -lc before -lgcc.
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13283$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13284if test "${lt_cv_archive_cmds_need_lc_D+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286else
13287 $RM conftest*
13288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13289
13290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13291 (eval $ac_compile) 2>&5
13292 ac_status=$?
13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294 test $ac_status = 0; } 2>conftest.err; then
13295 soname=conftest
13296 lib=conftest
13297 libobjs=conftest.$ac_objext
13298 deplibs=
13299 wl=$lt_prog_compiler_wl_D
13300 pic_flag=$lt_prog_compiler_pic_D
13301 compiler_flags=-v
13302 linker_flags=-v
13303 verstring=
13304 output_objdir=.
13305 libname=conftest
13306 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13307 allow_undefined_flag_D=
13308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13309 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13310 ac_status=$?
13311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13312 test $ac_status = 0; }
13313 then
13314 lt_cv_archive_cmds_need_lc_D=no
13315 else
13316 lt_cv_archive_cmds_need_lc_D=yes
13317 fi
13318 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13319 else
13320 cat conftest.err 1>&5
13321 fi
13322 $RM conftest*
13323
13324fi
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13326$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13327 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13328 ;;
13329 esac
13330 fi
13331 ;;
13332esac
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13398$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13399hardcode_action_D=
13400if test -n "$hardcode_libdir_flag_spec_D" ||
13401 test -n "$runpath_var_D" ||
13402 test "X$hardcode_automatic_D" = "Xyes" ; then
13403
13404 # We can hardcode non-existent directories.
13405 if test "$hardcode_direct_D" != no &&
13406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13407 # have to relink, otherwise we might link with an installed library
13408 # when we should be linking with a yet-to-be-installed one
13409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13410 test "$hardcode_minus_L_D" != no; then
13411 # Linking always hardcodes the temporary library directory.
13412 hardcode_action_D=relink
13413 else
13414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13415 hardcode_action_D=immediate
13416 fi
13417else
13418 # We cannot hardcode anything, or else we can only hardcode existing
13419 # directories.
13420 hardcode_action_D=unsupported
13421fi
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13423$as_echo "$hardcode_action_D" >&6; }
13424
13425if test "$hardcode_action_D" = relink ||
13426 test "$inherit_rpath_D" = yes; then
13427 # Fast installation is not supported
13428 enable_fast_install=no
13429elif test "$shlibpath_overrides_runpath" = yes ||
13430 test "$enable_shared" = no; then
13431 # Fast installation is not necessary
13432 enable_fast_install=needless
13433fi
13434
13435
13436
13437
13438
13439
13440
13441fi
13442
13443ac_ext=c
13444ac_cpp='$CPP $CPPFLAGS'
13445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447ac_compiler_gnu=$ac_cv_c_compiler_gnu
13448
13449
13450GCC=$lt_save_GCC
13451CC=$lt_save_CC
13452CFLAGS=$lt_save_CFLAGS
13453GDCFLAGS=$lt_save_DFLAGS
13454
13455 GDCFLAGS=$gdc_save_DFLAGS
13456
13457 if test "$enable_shared" = "yes"; then
13458 ENABLE_SHARED_TRUE=
13459 ENABLE_SHARED_FALSE='#'
13460else
13461 ENABLE_SHARED_TRUE='#'
13462 ENABLE_SHARED_FALSE=
13463fi
13464
13465 if test "$enable_static" = "yes"; then
13466 ENABLE_STATIC_TRUE=
13467 ENABLE_STATIC_FALSE='#'
13468else
13469 ENABLE_STATIC_TRUE='#'
13470 ENABLE_STATIC_FALSE=
13471fi
13472
13473
13474# libtool variables for Phobos shared and position-independent compiles.
13475#
13476# Use phobos_compiler_shared_flag to designate the compile-time flags for
13477# creating shared objects. Default: -fversion=Shared.
13478#
13479# Use phobos_compiler_pic_flag to designate the compile-time flags for
13480# creating position-independent objects. This varies with the target
13481# hardware and operating system, but is often: -fPIC.
13482#
13483# The distinction between pic and shared compilation flags is not present in
13484# libtool, and so we make it here. How it is handled is that in shared
13485# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13486# ensure that conditional compilation of shared runtime code is compiled in.
13487# The original PIC flags are then used in the compilation of every object.
13488#
13489# Why are objects destined for libgphobos.a compiled with -fPIC?
13490# Because -fPIC is not harmful to use for objects destined for static
13491# libraries. In addition, using -fPIC will allow the use of static
13492# libgphobos.a in the creation of other D shared libraries.
13493if test "$enable_shared" = yes; then
13494 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13495 phobos_compiler_shared_flag="-fversion=Shared"
13496else
13497 phobos_compiler_pic_flag=
13498 phobos_compiler_shared_flag=
13499fi
13500
13501
13502
13503# Override the libtool's pic_flag and pic_mode.
13504# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13505# NB: this impacts --with-pic and --without-pic.
13506lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13507pic_mode='default'
13508
13509# Determine what GCC version number to use in filesystem paths.
13510
13511 get_gcc_base_ver="cat"
13512
13513# Check whether --with-gcc-major-version-only was given.
13514if test "${with_gcc_major_version_only+set}" = set; then :
13515 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13516 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13517 fi
13518
13519fi
13520
13521
13522
13523
13524# libphobos/libdruntime specific options and feature detection
13525
13526 # These need to be absolute paths, yet at the same time need to
13527 # canonicalize only relative paths, because then amd will not unmount
13528 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13529 libphobos_builddir=`${PWDCMD-pwd}`
13530 case $srcdir in
13531 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13532 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13533 esac
13534
13535
13536
13537
13538 if test ${multilib} = yes; then
13539 multilib_arg="--enable-multilib"
13540 else
13541 multilib_arg=
13542 fi
13543
13544
13545 # Check whether --enable-werror was given.
13546if test "${enable_werror+set}" = set; then :
13547 enableval=$enable_werror;
13548fi
13549
13550 WERROR_FLAG=""
13551 if test "x$enable_werror" = "xyes"; then
13552 WERROR_FLAG="-Werror"
13553 fi
13554
13555
13556 # Check whether --enable-druntime-gc was given.
13557if test "${enable_druntime_gc+set}" = set; then :
13558 enableval=$enable_druntime_gc; enable_druntime_gc=no
13559else
13560 enable_druntime_gc=yes
13561fi
13562
13563
13564 if test "$enable_druntime_gc" = "yes"; then
13565 DRUNTIME_GC_ENABLE_TRUE=
13566 DRUNTIME_GC_ENABLE_FALSE='#'
13567else
13568 DRUNTIME_GC_ENABLE_TRUE='#'
13569 DRUNTIME_GC_ENABLE_FALSE=
13570fi
13571
13572
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13575$as_echo_n "checking for target OS... " >&6; }
13576if test "${druntime_cv_target_os+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578else
13579 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13580fi
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13582$as_echo "$druntime_cv_target_os" >&6; }
13583 if test -z "$druntime_cv_target_os"; then :
13584 as_fn_error "can't detect target OS" "$LINENO" 5
13585fi
13586
13587
13588
13589 # Check whether --enable-unix was given.
13590if test "${enable_unix+set}" = set; then :
13591 enableval=$enable_unix; :
13592else
13593 enable_unix=auto
13594fi
13595
13596
13597 case "$druntime_cv_target_os" in
13598 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13599 esac
13600 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13601 enable_unix=yes
13602 fi
13603 if test "$enable_unix" = "yes"; then
13604 DRUNTIME_OS_UNIX_TRUE=
13605 DRUNTIME_OS_UNIX_FALSE='#'
13606else
13607 DRUNTIME_OS_UNIX_TRUE='#'
13608 DRUNTIME_OS_UNIX_FALSE=
13609fi
13610
13611
13612
13613
13614
13615 druntime_target_os_parsed=""
13616 case "$druntime_cv_target_os" in
13617 aix*) druntime_target_os_parsed="aix"
13618 ;;
13619 *android*)
13620 druntime_target_os_parsed="android"
13621 ;;
13622 darwin*) druntime_target_os_parsed="darwin"
13623 ;;
13624 dragonfly*)
13625 druntime_target_os_parsed="dragonflybsd"
13626 ;;
13627 freebsd*|k*bsd*-gnu)
13628 druntime_target_os_parsed="freebsd"
13629 ;;
13630 openbsd*)
13631 druntime_target_os_parsed="openbsd"
13632 ;;
13633 netbsd*)
13634 druntime_target_os_parsed="netbsd"
13635 ;;
13636 linux*) druntime_target_os_parsed="linux"
13637 ;;
13638 mingw*) druntime_target_os_parsed="mingw"
13639 ;;
13640 *solaris*) druntime_target_os_parsed="solaris"
13641 esac
13642 if test "$druntime_target_os_parsed" = "aix"; then
13643 DRUNTIME_OS_AIX_TRUE=
13644 DRUNTIME_OS_AIX_FALSE='#'
13645else
13646 DRUNTIME_OS_AIX_TRUE='#'
13647 DRUNTIME_OS_AIX_FALSE=
13648fi
13649
13650 if test "$druntime_target_os_parsed" = "android"; then
13651 DRUNTIME_OS_ANDROID_TRUE=
13652 DRUNTIME_OS_ANDROID_FALSE='#'
13653else
13654 DRUNTIME_OS_ANDROID_TRUE='#'
13655 DRUNTIME_OS_ANDROID_FALSE=
13656fi
13657
13658 if test "$druntime_target_os_parsed" = "darwin"; then
13659 DRUNTIME_OS_DARWIN_TRUE=
13660 DRUNTIME_OS_DARWIN_FALSE='#'
13661else
13662 DRUNTIME_OS_DARWIN_TRUE='#'
13663 DRUNTIME_OS_DARWIN_FALSE=
13664fi
13665
13666 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13667 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13668 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13669else
13670 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13671 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13672fi
13673
13674 if test "$druntime_target_os_parsed" = "freebsd"; then
13675 DRUNTIME_OS_FREEBSD_TRUE=
13676 DRUNTIME_OS_FREEBSD_FALSE='#'
13677else
13678 DRUNTIME_OS_FREEBSD_TRUE='#'
13679 DRUNTIME_OS_FREEBSD_FALSE=
13680fi
13681
13682 if test "$druntime_target_os_parsed" = "netbsd"; then
13683 DRUNTIME_OS_NETBSD_TRUE=
13684 DRUNTIME_OS_NETBSD_FALSE='#'
13685else
13686 DRUNTIME_OS_NETBSD_TRUE='#'
13687 DRUNTIME_OS_NETBSD_FALSE=
13688fi
13689
13690 if test "$druntime_target_os_parsed" = "openbsd"; then
13691 DRUNTIME_OS_OPENBSD_TRUE=
13692 DRUNTIME_OS_OPENBSD_FALSE='#'
13693else
13694 DRUNTIME_OS_OPENBSD_TRUE='#'
13695 DRUNTIME_OS_OPENBSD_FALSE=
13696fi
13697
13698 if test "$druntime_target_os_parsed" = "linux"; then
13699 DRUNTIME_OS_LINUX_TRUE=
13700 DRUNTIME_OS_LINUX_FALSE='#'
13701else
13702 DRUNTIME_OS_LINUX_TRUE='#'
13703 DRUNTIME_OS_LINUX_FALSE=
13704fi
13705
13706 if test "$druntime_target_os_parsed" = "mingw"; then
13707 DRUNTIME_OS_MINGW_TRUE=
13708 DRUNTIME_OS_MINGW_FALSE='#'
13709else
13710 DRUNTIME_OS_MINGW_TRUE='#'
13711 DRUNTIME_OS_MINGW_FALSE=
13712fi
13713
13714 if test "$druntime_target_os_parsed" = "solaris"; then
13715 DRUNTIME_OS_SOLARIS_TRUE=
13716 DRUNTIME_OS_SOLARIS_FALSE='#'
13717else
13718 DRUNTIME_OS_SOLARIS_TRUE='#'
13719 DRUNTIME_OS_SOLARIS_FALSE=
13720fi
13721
13722
13723
13724
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
13726$as_echo_n "checking for thread model used by GDC... " >&6; }
13727 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
13729$as_echo "$d_thread_model" >&6; }
13730
13731 # Map from thread model to thread interface.
13732
13733case $d_thread_model in
13734 aix) DCFG_THREAD_MODEL="Posix" ;;
13735 lynx) DCFG_THREAD_MODEL="Posix" ;;
13736 posix) DCFG_THREAD_MODEL="Posix" ;;
13737 single) DCFG_THREAD_MODEL="Single" ;;
13738 win32) DCFG_THREAD_MODEL="Win32" ;;
13739 # TODO: These targets need porting.
13740 dce|mipssde|rtems|tpf|vxworks)
13741 DCFG_THREAD_MODEL="Single" ;;
13742 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
13743esac
13744
13745
13746
13747
13748 ac_ext=c
13749ac_cpp='$CPP $CPPFLAGS'
13750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
13755$as_echo_n "checking for ARM unwinder... " >&6; }
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h. */
13758#include <unwind.h>
13759int
13760main ()
13761{
13762
13763 #if __ARM_EABI_UNWINDER__
13764 #error Yes, it is.
13765 #endif
13766
13767 ;
13768 return 0;
13769}
13770_ACEOF
13771if ac_fn_c_try_compile "$LINENO"; then :
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
13774 DCFG_ARM_EABI_UNWINDER=false
13775else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13777$as_echo "yes" >&6; }
13778 DCFG_ARM_EABI_UNWINDER=true
13779fi
13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781
13782 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
13783 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
13784 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
13785else
13786 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
13787 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
13788fi
13789
13790 ac_ext=c
13791ac_cpp='$CPP $CPPFLAGS'
13792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794ac_compiler_gnu=$ac_cv_c_compiler_gnu
13795
13796
13797
13798 ac_ext=c
13799ac_cpp='$CPP $CPPFLAGS'
13800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802ac_compiler_gnu=$ac_cv_c_compiler_gnu
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
13805$as_echo_n "checking for minfo section bracketing... " >&6; }
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h. */
13808
13809 void* module_info_ptr __attribute__((section ("minfo")));
13810 extern void* __start_minfo __attribute__((visibility ("hidden")));
13811 extern void* __stop_minfo __attribute__((visibility ("hidden")));
13812
13813 int main()
13814 {
13815 // Never run, just to prevent compiler from optimizing access
13816 return &__start_minfo == &__stop_minfo;
13817 }
13818
13819_ACEOF
13820if ac_fn_c_try_link "$LINENO"; then :
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13822$as_echo "yes" >&6; }
13823 DCFG_MINFO_BRACKETING=true
13824else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
13827 DCFG_MINFO_BRACKETING=false
13828fi
13829rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831
13832 ac_ext=c
13833ac_cpp='$CPP $CPPFLAGS'
13834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836ac_compiler_gnu=$ac_cv_c_compiler_gnu
13837
13838
13839
13840
13841
13842 gdc_save_DFLAGS=$GDCFLAGS
13843 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
13844
13845 ac_ext=d
13846ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
13847ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848ac_compiler_gnu=yes
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
13851$as_echo_n "checking for library containing malloc... " >&6; }
13852if test "${ac_cv_search_malloc+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854else
13855 ac_func_search_save_LIBS=$LIBS
13856cat > conftest.$ac_ext <<_ACEOF
13857module mod;
13858 extern(C) int malloc();
13859
13860extern(C) int main() {
13861 malloc(); return 0;
13862}
13863_ACEOF
13864for ac_lib in '' c; do
13865 if test -z "$ac_lib"; then
13866 ac_res="none required"
13867 else
13868 ac_res=-l$ac_lib
13869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13870 fi
13871 if ac_fn_d_try_link "$LINENO"; then :
13872 ac_cv_search_malloc=$ac_res
13873fi
13874rm -f core conftest.err conftest.$ac_objext \
13875 conftest$ac_exeext
13876 if test "${ac_cv_search_malloc+set}" = set; then :
13877 break
13878fi
13879done
13880if test "${ac_cv_search_malloc+set}" = set; then :
13881
13882else
13883 ac_cv_search_malloc=no
13884fi
13885rm conftest.$ac_ext
13886LIBS=$ac_func_search_save_LIBS
13887fi
13888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
13889$as_echo "$ac_cv_search_malloc" >&6; }
13890ac_res=$ac_cv_search_malloc
13891if test "$ac_res" != no; then :
13892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13893
13894fi
13895
13896
13897 enable_thread_lib=yes
13898 # Check whether --enable-thread-lib was given.
13899if test "${enable_thread_lib+set}" = set; then :
13900 enableval=$enable_thread_lib;
13901fi
13902
13903
13904 if test "x$enable_thread_lib" = "xyes"; then :
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13907$as_echo_n "checking for library containing pthread_create... " >&6; }
13908if test "${ac_cv_search_pthread_create+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910else
13911 ac_func_search_save_LIBS=$LIBS
13912cat > conftest.$ac_ext <<_ACEOF
13913module mod;
13914 extern(C) int pthread_create();
13915
13916extern(C) int main() {
13917 pthread_create(); return 0;
13918}
13919_ACEOF
13920for ac_lib in '' pthread; do
13921 if test -z "$ac_lib"; then
13922 ac_res="none required"
13923 else
13924 ac_res=-l$ac_lib
13925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13926 fi
13927 if ac_fn_d_try_link "$LINENO"; then :
13928 ac_cv_search_pthread_create=$ac_res
13929fi
13930rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext
13932 if test "${ac_cv_search_pthread_create+set}" = set; then :
13933 break
13934fi
13935done
13936if test "${ac_cv_search_pthread_create+set}" = set; then :
13937
13938else
13939 ac_cv_search_pthread_create=no
13940fi
13941rm conftest.$ac_ext
13942LIBS=$ac_func_search_save_LIBS
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13945$as_echo "$ac_cv_search_pthread_create" >&6; }
13946ac_res=$ac_cv_search_pthread_create
13947if test "$ac_res" != no; then :
13948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13949
13950fi
13951
13952
13953else
13954
13955 if test "x$enable_thread_lib" = "xno"; then :
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
13958$as_echo_n "checking for thread library... " >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13960$as_echo "disabled" >&6; }
13961
13962else
13963
13964 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
13966$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
13967if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
13968 $as_echo_n "(cached) " >&6
13969else
13970 ac_check_lib_save_LIBS=$LIBS
13971LIBS="-l$enable_thread_lib $LIBS"
13972cat > conftest.$ac_ext <<_ACEOF
13973module mod;
13974 extern(C) int pthread_create();
13975
13976extern(C) int main() {
13977 pthread_create(); return 0;
13978}
13979_ACEOF
13980if ac_fn_d_try_link "$LINENO"; then :
13981 eval "$as_ac_Lib=yes"
13982else
13983 eval "$as_ac_Lib=no"
13984fi
13985rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987LIBS=$ac_check_lib_save_LIBS
13988fi
13989eval ac_res=\$$as_ac_Lib
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13991$as_echo "$ac_res" >&6; }
13992eval as_val=\$$as_ac_Lib
13993 if test "x$as_val" = x""yes; then :
13994 cat >>confdefs.h <<_ACEOF
13995#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
13996_ACEOF
13997
13998 LIBS="-l$enable_thread_lib $LIBS"
13999
14000else
14001
14002 as_fn_error "Thread library not found" "$LINENO" 5
14003
14004fi
14005
14006
14007fi
14008
14009fi
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14012$as_echo_n "checking for library containing cosf... " >&6; }
14013if test "${ac_cv_search_cosf+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015else
14016 ac_func_search_save_LIBS=$LIBS
14017cat > conftest.$ac_ext <<_ACEOF
14018module mod;
14019 extern(C) int cosf();
14020
14021extern(C) int main() {
14022 cosf(); return 0;
14023}
14024_ACEOF
14025for ac_lib in '' m; do
14026 if test -z "$ac_lib"; then
14027 ac_res="none required"
14028 else
14029 ac_res=-l$ac_lib
14030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14031 fi
14032 if ac_fn_d_try_link "$LINENO"; then :
14033 ac_cv_search_cosf=$ac_res
14034fi
14035rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext
14037 if test "${ac_cv_search_cosf+set}" = set; then :
14038 break
14039fi
14040done
14041if test "${ac_cv_search_cosf+set}" = set; then :
14042
14043else
14044 ac_cv_search_cosf=no
14045fi
14046rm conftest.$ac_ext
14047LIBS=$ac_func_search_save_LIBS
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14050$as_echo "$ac_cv_search_cosf" >&6; }
14051ac_res=$ac_cv_search_cosf
14052if test "$ac_res" != no; then :
14053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14054
14055fi
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14058$as_echo_n "checking for library containing clock_gettime... " >&6; }
14059if test "${ac_cv_search_clock_gettime+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061else
14062 ac_func_search_save_LIBS=$LIBS
14063cat > conftest.$ac_ext <<_ACEOF
14064module mod;
14065 extern(C) int clock_gettime();
14066
14067extern(C) int main() {
14068 clock_gettime(); return 0;
14069}
14070_ACEOF
14071for ac_lib in '' rt; do
14072 if test -z "$ac_lib"; then
14073 ac_res="none required"
14074 else
14075 ac_res=-l$ac_lib
14076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14077 fi
14078 if ac_fn_d_try_link "$LINENO"; then :
14079 ac_cv_search_clock_gettime=$ac_res
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext
14083 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14084 break
14085fi
14086done
14087if test "${ac_cv_search_clock_gettime+set}" = set; then :
14088
14089else
14090 ac_cv_search_clock_gettime=no
14091fi
14092rm conftest.$ac_ext
14093LIBS=$ac_func_search_save_LIBS
14094fi
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14096$as_echo "$ac_cv_search_clock_gettime" >&6; }
14097ac_res=$ac_cv_search_clock_gettime
14098if test "$ac_res" != no; then :
14099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14100
14101fi
14102
14103
14104 # This checks to see if the host supports the compiler-generated builtins
14105 # for atomic operations for various integral sizes. Note, this is intended
14106 # to be an all-or-nothing switch, so all the atomic operations that are
14107 # used should be checked.
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14109$as_echo_n "checking for atomic builtins for byte... " >&6; }
14110 if test "${druntime_cv_atomic_byte+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112else
14113
14114 cat > conftest.$ac_ext <<_ACEOF
14115module mod;
14116import gcc.builtins;
14117
14118extern(C) int main() {
14119
14120 shared(byte) c1;
14121 byte c2, c3;
14122 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14123 __atomic_load_1(&c1, 5);
14124 __atomic_store_1(&c1, c2, 5);
14125 return 0;
14126
14127}
14128_ACEOF
14129if ac_fn_d_try_link "$LINENO"; then :
14130 druntime_cv_atomic_byte=yes
14131else
14132 druntime_cv_atomic_byte=no
14133fi
14134rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136
14137fi
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14140$as_echo "$druntime_cv_atomic_byte" >&6; }
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14143$as_echo_n "checking for atomic builtins for short... " >&6; }
14144 if test "${druntime_cv_atomic_short+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146else
14147
14148 cat > conftest.$ac_ext <<_ACEOF
14149module mod;
14150import gcc.builtins;
14151
14152extern(C) int main() {
14153
14154 shared(short) c1;
14155 short c2, c3;
14156 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14157 __atomic_load_2(&c1, 5);
14158 __atomic_store_2(&c1, c2, 5);
14159 return 0;
14160
14161}
14162_ACEOF
14163if ac_fn_d_try_link "$LINENO"; then :
14164 druntime_cv_atomic_short=yes
14165else
14166 druntime_cv_atomic_short=no
14167fi
14168rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170
14171fi
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14174$as_echo "$druntime_cv_atomic_short" >&6; }
14175
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14177$as_echo_n "checking for atomic builtins for int... " >&6; }
14178 if test "${druntime_cv_atomic_int+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14180else
14181
14182 cat > conftest.$ac_ext <<_ACEOF
14183module mod;
14184import gcc.builtins;
14185
14186extern(C) int main() {
14187
14188 shared(int) c1;
14189 int c2, c3;
14190 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14191 __atomic_load_4(&c1, 5);
14192 __atomic_store_4(&c1, c2, 5);
14193 return 0;
14194
14195}
14196_ACEOF
14197if ac_fn_d_try_link "$LINENO"; then :
14198 druntime_cv_atomic_int=yes
14199else
14200 druntime_cv_atomic_int=no
14201fi
14202rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204
14205fi
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14208$as_echo "$druntime_cv_atomic_int" >&6; }
14209
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14211$as_echo_n "checking for atomic builtins for long... " >&6; }
14212 if test "${druntime_cv_atomic_long+set}" = set; then :
14213 $as_echo_n "(cached) " >&6
14214else
14215
14216 cat > conftest.$ac_ext <<_ACEOF
14217module mod;
14218import gcc.builtins;
14219
14220extern(C) int main() {
14221
14222 shared(long) c1;
14223 long c2, c3;
14224 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14225 __atomic_load_8(&c1, 5);
14226 __atomic_store_8(&c1, c2, 5);
14227 return 0;
14228
14229}
14230_ACEOF
14231if ac_fn_d_try_link "$LINENO"; then :
14232 druntime_cv_atomic_long=yes
14233else
14234 druntime_cv_atomic_long=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238
14239fi
14240
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14242$as_echo "$druntime_cv_atomic_long" >&6; }
14243
14244 # Have atomic builtin support if all but the long test above passes.
14245 DCFG_HAVE_ATOMIC_BUILTINS=false
14246 if test "$druntime_cv_atomic_byte" = yes \
14247 && test "$druntime_cv_atomic_short" = yes \
14248 && test "$druntime_cv_atomic_int" = yes; then \
14249 DCFG_HAVE_ATOMIC_BUILTINS=true
14250 fi
14251
14252 # Have 64-bit atomic support if the long test above passes.
14253 DCFG_HAVE_64BIT_ATOMICS=false
14254 if test "$druntime_cv_atomic_long" = yes; then
14255 DCFG_HAVE_64BIT_ATOMICS=true
14256 fi
14257
14258
14259
14260
14261 ac_ext=c
14262ac_cpp='$CPP $CPPFLAGS'
14263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265ac_compiler_gnu=$ac_cv_c_compiler_gnu
14266
14267
14268 GDCFLAGS=$gdc_save_DFLAGS
14269
14270
14271
14272
14273# Check whether --with-libatomic was given.
14274if test "${with_libatomic+set}" = set; then :
14275 withval=$with_libatomic;
14276fi
14277
14278
14279 DCFG_HAVE_LIBATOMIC=false
14280 LIBATOMIC=
14281 if test "x$with_libatomic" != "xno"; then :
14282
14283 DCFG_HAVE_LIBATOMIC=true
14284 LIBATOMIC=../../libatomic/libatomic_convenience.la
14285
14286else
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14289$as_echo_n "checking for libatomic... " >&6; }
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14291$as_echo "disabled" >&6; }
14292
14293fi
14294
14295
14296
14297
14298
14299 ac_ext=c
14300ac_cpp='$CPP $CPPFLAGS'
14301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305 BACKTRACE_SUPPORTED=false
14306 BACKTRACE_USES_MALLOC=false
14307 BACKTRACE_SUPPORTS_THREADS=false
14308 LIBBACKTRACE=""
14309
14310
14311# Check whether --with-libbacktrace was given.
14312if test "${with_libbacktrace+set}" = set; then :
14313 withval=$with_libbacktrace;
14314fi
14315
14316
14317 if test "x$with_libbacktrace" != "xno"; then :
14318
14319 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14320
14321 gdc_save_CPPFLAGS=$CPPFLAGS
14322 CPPFLAGS+=" -I../libbacktrace "
14323
14324 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14325if test "x$ac_cv_header_backtrace_supported_h" = x""yes; then :
14326 have_libbacktrace_h=true
14327else
14328 have_libbacktrace_h=false
14329fi
14330
14331
14332
14333 if $have_libbacktrace_h; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14335$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337/* end confdefs.h. */
14338
14339 #include <backtrace-supported.h>
14340 #if BACKTRACE_SUPPORTED
14341 FOUND_LIBBACKTRACE_RESULT_GDC
14342 #endif
14343
14344_ACEOF
14345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14346 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14347 BACKTRACE_SUPPORTED=true
14348else
14349 BACKTRACE_SUPPORTED=false
14350fi
14351rm -f conftest*
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14354$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14357$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359/* end confdefs.h. */
14360
14361 #include <backtrace-supported.h>
14362 #if BACKTRACE_USES_MALLOC
14363 FOUND_LIBBACKTRACE_RESULT_GDC
14364 #endif
14365
14366_ACEOF
14367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14368 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14369 BACKTRACE_USES_MALLOC=true
14370else
14371 BACKTRACE_USES_MALLOC=false
14372fi
14373rm -f conftest*
14374
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14376$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14379$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h. */
14382
14383 #include <backtrace-supported.h>
14384 #if BACKTRACE_SUPPORTS_THREADS
14385 FOUND_LIBBACKTRACE_RESULT_GDC
14386 #endif
14387
14388_ACEOF
14389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14390 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14391 BACKTRACE_SUPPORTS_THREADS=true
14392else
14393 BACKTRACE_SUPPORTS_THREADS=false
14394fi
14395rm -f conftest*
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14398$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14399 fi
14400 CPPFLAGS=$gdc_save_CPPFLAGS
14401
14402else
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14405$as_echo_n "checking for libbacktrace... " >&6; }
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14407$as_echo "disabled" >&6; }
14408
14409fi
14410
14411
14412
14413
14414
14415 ac_ext=c
14416ac_cpp='$CPP $CPPFLAGS'
14417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14419ac_compiler_gnu=$ac_cv_c_compiler_gnu
14420
14421
14422
14423 # Libtool has already checked this, so re-use the inferred dlopen lib.
14424 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14425
14426 LIBS="$LIBS $lt_cv_dlopen_libs"
14427
14428fi
14429
14430
14431
14432# Check whether --with-target-system-zlib was given.
14433if test "${with_target_system_zlib+set}" = set; then :
14434 withval=$with_target_system_zlib;
14435fi
14436
14437
14438 system_zlib=false
14439 if test "x$with_target_system_zlib" = "xyes"; then :
14440
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14442$as_echo_n "checking for deflate in -lz... " >&6; }
14443if test "${ac_cv_lib_z_deflate+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445else
14446 ac_check_lib_save_LIBS=$LIBS
14447LIBS="-lz $LIBS"
14448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h. */
14450
14451/* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14454#ifdef __cplusplus
14455extern "C"
14456#endif
14457char deflate ();
14458int
14459main ()
14460{
14461return deflate ();
14462 ;
14463 return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_link "$LINENO"; then :
14467 ac_cv_lib_z_deflate=yes
14468else
14469 ac_cv_lib_z_deflate=no
14470fi
14471rm -f core conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14473LIBS=$ac_check_lib_save_LIBS
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14476$as_echo "$ac_cv_lib_z_deflate" >&6; }
14477if test "x$ac_cv_lib_z_deflate" = x""yes; then :
14478
14479 system_zlib=yes
14480
14481else
14482
14483 as_fn_error "System zlib not found" "$LINENO" 5
14484
14485fi
14486
14487
14488else
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14491$as_echo_n "checking for zlib... " >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14493$as_echo "just compiled" >&6; }
14494
14495fi
14496
14497 if test "$with_target_system_zlib" = yes; then
14498 DRUNTIME_ZLIB_SYSTEM_TRUE=
14499 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14500else
14501 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14502 DRUNTIME_ZLIB_SYSTEM_FALSE=
14503fi
14504
14505
14506
14507
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14510$as_echo_n "checking D GCC version... " >&6; }
14511 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14513$as_echo "$gcc_version" >&6; }
14514
14515
14516
14517# Check whether --with-cross-host was given.
14518if test "${with_cross_host+set}" = set; then :
14519 withval=$with_cross_host;
14520fi
14521
14522
14523 toolexecdir=no
14524 toolexeclibdir=no
14525
14526 version_specific_libs=no
14527
14528 # Version-specific runtime libs processing.
14529 if test $version_specific_libs = yes; then
14530 toolexecdir='${libdir}/gcc/${host_alias}'
14531 toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14532 else
14533 # Calculate toolexecdir, toolexeclibdir
14534 # Install a library built with a cross compiler in tooldir, not libdir.
14535 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14536 toolexecdir='${exec_prefix}/${host_alias}'
14537 toolexeclibdir='${toolexecdir}/lib'
14538 else
14539 toolexecdir='${libdir}/gcc/${host_alias}'
14540 toolexeclibdir='${libdir}'
14541 fi
14542 multi_os_directory=`$GDC -print-multi-os-directory`
14543 case $multi_os_directory in
14544 .) ;; # Avoid trailing /.
14545 *) toolexeclibdir=${toolexeclibdir}/${multi_os_directory} ;;
14546 esac
14547 fi
14548
14549
14550
14551 # Default case for install directory for D sources files.
14552 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14553
14554
14555
14556# Add dependencies for libgphobos.spec file
14557SPEC_PHOBOS_DEPS="$LIBS"
14558
14559
14560# Libdruntime / phobos soname version
14561DRUNTIME_SOVERSION="76:2:0"
14562PHOBOS_SOVERSION="76:2:0"
14563
14564
14565
14566# Set default flags (after DRUNTIME_WERROR!)
14567if test -z "$GDCFLAGS"; then
14568 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14569fi
14570
14571
14572if test -z "$GDCFLAGSX"; then
14573 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14574fi
14575
14576
14577# Sanity check for the cross-compilation case:
14578ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14579if test "x$ac_cv_header_stdio_h" = x""yes; then :
14580 :
14581else
14582 as_fn_error "cannot find stdio.h." "$LINENO" 5
14583fi
14584
14585
14586
14587ac_config_files="$ac_config_files Makefile src/Makefile libdruntime/Makefile testsuite/Makefile"
14588
14589
14590ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14591
14592ac_config_files="$ac_config_files src/libgphobos.spec"
14593
14594ac_config_files="$ac_config_files testsuite/testsuite_flags"
14595
14596
14597# We need multilib support, but only if configuring for the target.
14598ac_config_commands="$ac_config_commands default"
14599
14600
14601cat >confcache <<\_ACEOF
14602# This file is a shell script that caches the results of configure
14603# tests run on this system so they can be shared between configure
14604# scripts and configure runs, see configure's option --config-cache.
14605# It is not useful on other systems. If it contains results you don't
14606# want to keep, you may remove or edit it.
14607#
14608# config.status only pays attention to the cache file if you give it
14609# the --recheck option to rerun configure.
14610#
14611# `ac_cv_env_foo' variables (set or unset) will be overridden when
14612# loading this file, other *unset* `ac_cv_foo' will be assigned the
14613# following values.
14614
14615_ACEOF
14616
14617# The following way of writing the cache mishandles newlines in values,
14618# but we know of no workaround that is simple, portable, and efficient.
14619# So, we kill variables containing newlines.
14620# Ultrix sh set writes to stderr and can't be redirected directly,
14621# and sets the high bit in the cache file unless we assign to the vars.
14622(
14623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14624 eval ac_val=\$$ac_var
14625 case $ac_val in #(
14626 *${as_nl}*)
14627 case $ac_var in #(
14628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14629$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14630 esac
14631 case $ac_var in #(
14632 _ | IFS | as_nl) ;; #(
14633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14634 *) { eval $ac_var=; unset $ac_var;} ;;
14635 esac ;;
14636 esac
14637 done
14638
14639 (set) 2>&1 |
14640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14641 *${as_nl}ac_space=\ *)
14642 # `set' does not quote correctly, so add quotes: double-quote
14643 # substitution turns \\\\ into \\, and sed turns \\ into \.
14644 sed -n \
14645 "s/'/'\\\\''/g;
14646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14647 ;; #(
14648 *)
14649 # `set' quotes correctly as required by POSIX, so do not add quotes.
14650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14651 ;;
14652 esac |
14653 sort
14654) |
14655 sed '
14656 /^ac_cv_env_/b end
14657 t clear
14658 :clear
14659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14660 t end
14661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14662 :end' >>confcache
14663if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14664 if test -w "$cache_file"; then
14665 test "x$cache_file" != "x/dev/null" &&
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14667$as_echo "$as_me: updating cache $cache_file" >&6;}
14668 cat confcache >$cache_file
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14671$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14672 fi
14673fi
14674rm -f confcache
14675
14676test "x$prefix" = xNONE && prefix=$ac_default_prefix
14677# Let make expand exec_prefix.
14678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14679
14680DEFS=-DHAVE_CONFIG_H
14681
14682ac_libobjs=
14683ac_ltlibobjs=
14684for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14685 # 1. Remove the extension, and $U if already installed.
14686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14689 # will be set to the directory where LIBOBJS objects are built.
14690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14692done
14693LIBOBJS=$ac_libobjs
14694
14695LTLIBOBJS=$ac_ltlibobjs
14696
14697
14698 if test -n "$EXEEXT"; then
14699 am__EXEEXT_TRUE=
14700 am__EXEEXT_FALSE='#'
14701else
14702 am__EXEEXT_TRUE='#'
14703 am__EXEEXT_FALSE=
14704fi
14705
14706if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14707 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14708Usually this means the macro was only invoked conditionally." "$LINENO" 5
14709fi
14710if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
14711 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
14712Usually this means the macro was only invoked conditionally." "$LINENO" 5
14713fi
14714if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
14715 as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
14716Usually this means the macro was only invoked conditionally." "$LINENO" 5
14717fi
14718if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
14719 as_fn_error "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
14720Usually this means the macro was only invoked conditionally." "$LINENO" 5
14721fi
14722if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
14723 as_fn_error "conditional \"DRUNTIME_OS_UNIX\" was never defined.
14724Usually this means the macro was only invoked conditionally." "$LINENO" 5
14725fi
14726if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
14727 as_fn_error "conditional \"DRUNTIME_OS_AIX\" was never defined.
14728Usually this means the macro was only invoked conditionally." "$LINENO" 5
14729fi
14730if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
14731 as_fn_error "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
14732Usually this means the macro was only invoked conditionally." "$LINENO" 5
14733fi
14734if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
14735 as_fn_error "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
14736Usually this means the macro was only invoked conditionally." "$LINENO" 5
14737fi
14738if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
14739 as_fn_error "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
14740Usually this means the macro was only invoked conditionally." "$LINENO" 5
14741fi
14742if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
14743 as_fn_error "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
14744Usually this means the macro was only invoked conditionally." "$LINENO" 5
14745fi
14746if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
14747 as_fn_error "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
14748Usually this means the macro was only invoked conditionally." "$LINENO" 5
14749fi
14750if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
14751 as_fn_error "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
14752Usually this means the macro was only invoked conditionally." "$LINENO" 5
14753fi
14754if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
14755 as_fn_error "conditional \"DRUNTIME_OS_LINUX\" was never defined.
14756Usually this means the macro was only invoked conditionally." "$LINENO" 5
14757fi
14758if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
14759 as_fn_error "conditional \"DRUNTIME_OS_MINGW\" was never defined.
14760Usually this means the macro was only invoked conditionally." "$LINENO" 5
14761fi
14762if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
14763 as_fn_error "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
14764Usually this means the macro was only invoked conditionally." "$LINENO" 5
14765fi
14766if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
14767 as_fn_error "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
14768Usually this means the macro was only invoked conditionally." "$LINENO" 5
14769fi
14770if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
14771 as_fn_error "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
14772Usually this means the macro was only invoked conditionally." "$LINENO" 5
14773fi
14774
14775: ${CONFIG_STATUS=./config.status}
14776ac_write_fail=0
14777ac_clean_files_save=$ac_clean_files
14778ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14780$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14781as_write_fail=0
14782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14783#! $SHELL
14784# Generated by $as_me.
14785# Run this file to recreate the current configuration.
14786# Compiler output produced by configure, useful for debugging
14787# configure, is in config.log if it exists.
14788
14789debug=false
14790ac_cs_recheck=false
14791ac_cs_silent=false
14792
14793SHELL=\${CONFIG_SHELL-$SHELL}
14794export SHELL
14795_ASEOF
14796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14797## -------------------- ##
14798## M4sh Initialization. ##
14799## -------------------- ##
14800
14801# Be more Bourne compatible
14802DUALCASE=1; export DUALCASE # for MKS sh
14803if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14804 emulate sh
14805 NULLCMD=:
14806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14807 # is contrary to our usage. Disable this feature.
14808 alias -g '${1+"$@"}'='"$@"'
14809 setopt NO_GLOB_SUBST
14810else
14811 case `(set -o) 2>/dev/null` in #(
14812 *posix*) :
14813 set -o posix ;; #(
14814 *) :
14815 ;;
14816esac
14817fi
14818
14819
14820as_nl='
14821'
14822export as_nl
14823# Printing a long string crashes Solaris 7 /usr/bin/printf.
14824as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14827# Prefer a ksh shell builtin over an external printf program on Solaris,
14828# but without wasting forks for bash or zsh.
14829if test -z "$BASH_VERSION$ZSH_VERSION" \
14830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14831 as_echo='print -r --'
14832 as_echo_n='print -rn --'
14833elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14834 as_echo='printf %s\n'
14835 as_echo_n='printf %s'
14836else
14837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14839 as_echo_n='/usr/ucb/echo -n'
14840 else
14841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14842 as_echo_n_body='eval
14843 arg=$1;
14844 case $arg in #(
14845 *"$as_nl"*)
14846 expr "X$arg" : "X\\(.*\\)$as_nl";
14847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14848 esac;
14849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14850 '
14851 export as_echo_n_body
14852 as_echo_n='sh -c $as_echo_n_body as_echo'
14853 fi
14854 export as_echo_body
14855 as_echo='sh -c $as_echo_body as_echo'
14856fi
14857
14858# The user is always right.
14859if test "${PATH_SEPARATOR+set}" != set; then
14860 PATH_SEPARATOR=:
14861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14863 PATH_SEPARATOR=';'
14864 }
14865fi
14866
14867
14868# IFS
14869# We need space, tab and new line, in precisely that order. Quoting is
14870# there to prevent editors from complaining about space-tab.
14871# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14872# splitting by setting IFS to empty value.)
14873IFS=" "" $as_nl"
14874
14875# Find who we are. Look in the path if we contain no directory separator.
14876case $0 in #((
14877 *[\\/]* ) as_myself=$0 ;;
14878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879for as_dir in $PATH
14880do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14884 done
14885IFS=$as_save_IFS
14886
14887 ;;
14888esac
14889# We did not find ourselves, most probably we were run as `sh COMMAND'
14890# in which case we are not to be found in the path.
14891if test "x$as_myself" = x; then
14892 as_myself=$0
14893fi
14894if test ! -f "$as_myself"; then
14895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14896 exit 1
14897fi
14898
14899# Unset variables that we do not need and which cause bugs (e.g. in
14900# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14901# suppresses any "Segmentation fault" message there. '((' could
14902# trigger a bug in pdksh 5.2.14.
14903for as_var in BASH_ENV ENV MAIL MAILPATH
14904do eval test x\${$as_var+set} = xset \
14905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14906done
14907PS1='$ '
14908PS2='> '
14909PS4='+ '
14910
14911# NLS nuisances.
14912LC_ALL=C
14913export LC_ALL
14914LANGUAGE=C
14915export LANGUAGE
14916
14917# CDPATH.
14918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14919
14920
14921# as_fn_error ERROR [LINENO LOG_FD]
14922# ---------------------------------
14923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14925# script with status $?, using 1 if that was 0.
14926as_fn_error ()
14927{
14928 as_status=$?; test $as_status -eq 0 && as_status=1
14929 if test "$3"; then
14930 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14932 fi
14933 $as_echo "$as_me: error: $1" >&2
14934 as_fn_exit $as_status
14935} # as_fn_error
14936
14937
14938# as_fn_set_status STATUS
14939# -----------------------
14940# Set $? to STATUS, without forking.
14941as_fn_set_status ()
14942{
14943 return $1
14944} # as_fn_set_status
14945
14946# as_fn_exit STATUS
14947# -----------------
14948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14949as_fn_exit ()
14950{
14951 set +e
14952 as_fn_set_status $1
14953 exit $1
14954} # as_fn_exit
14955
14956# as_fn_unset VAR
14957# ---------------
14958# Portably unset VAR.
14959as_fn_unset ()
14960{
14961 { eval $1=; unset $1;}
14962}
14963as_unset=as_fn_unset
14964# as_fn_append VAR VALUE
14965# ----------------------
14966# Append the text in VALUE to the end of the definition contained in VAR. Take
14967# advantage of any shell optimizations that allow amortized linear growth over
14968# repeated appends, instead of the typical quadratic growth present in naive
14969# implementations.
14970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14971 eval 'as_fn_append ()
14972 {
14973 eval $1+=\$2
14974 }'
14975else
14976 as_fn_append ()
14977 {
14978 eval $1=\$$1\$2
14979 }
14980fi # as_fn_append
14981
14982# as_fn_arith ARG...
14983# ------------------
14984# Perform arithmetic evaluation on the ARGs, and store the result in the
14985# global $as_val. Take advantage of shells that can avoid forks. The arguments
14986# must be portable across $(()) and expr.
14987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14988 eval 'as_fn_arith ()
14989 {
14990 as_val=$(( $* ))
14991 }'
14992else
14993 as_fn_arith ()
14994 {
14995 as_val=`expr "$@" || test $? -eq 1`
14996 }
14997fi # as_fn_arith
14998
14999
15000if expr a : '\(a\)' >/dev/null 2>&1 &&
15001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15002 as_expr=expr
15003else
15004 as_expr=false
15005fi
15006
15007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15008 as_basename=basename
15009else
15010 as_basename=false
15011fi
15012
15013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15014 as_dirname=dirname
15015else
15016 as_dirname=false
15017fi
15018
15019as_me=`$as_basename -- "$0" ||
15020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15021 X"$0" : 'X\(//\)$' \| \
15022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15023$as_echo X/"$0" |
15024 sed '/^.*\/\([^/][^/]*\)\/*$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\/\(\/\/\)$/{
15029 s//\1/
15030 q
15031 }
15032 /^X\/\(\/\).*/{
15033 s//\1/
15034 q
15035 }
15036 s/.*/./; q'`
15037
15038# Avoid depending upon Character Ranges.
15039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15042as_cr_digits='0123456789'
15043as_cr_alnum=$as_cr_Letters$as_cr_digits
15044
15045ECHO_C= ECHO_N= ECHO_T=
15046case `echo -n x` in #(((((
15047-n*)
15048 case `echo 'xy\c'` in
15049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15050 xy) ECHO_C='\c';;
15051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15052 ECHO_T=' ';;
15053 esac;;
15054*)
15055 ECHO_N='-n';;
15056esac
15057
15058rm -f conf$$ conf$$.exe conf$$.file
15059if test -d conf$$.dir; then
15060 rm -f conf$$.dir/conf$$.file
15061else
15062 rm -f conf$$.dir
15063 mkdir conf$$.dir 2>/dev/null
15064fi
15065if (echo >conf$$.file) 2>/dev/null; then
15066 if ln -s conf$$.file conf$$ 2>/dev/null; then
15067 as_ln_s='ln -s'
15068 # ... but there are two gotchas:
15069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15071 # In both cases, we have to default to `cp -p'.
15072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15073 as_ln_s='cp -p'
15074 elif ln conf$$.file conf$$ 2>/dev/null; then
15075 as_ln_s=ln
15076 else
15077 as_ln_s='cp -p'
15078 fi
15079else
15080 as_ln_s='cp -p'
15081fi
15082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15083rmdir conf$$.dir 2>/dev/null
15084
15085
15086# as_fn_mkdir_p
15087# -------------
15088# Create "$as_dir" as a directory, including parents if necessary.
15089as_fn_mkdir_p ()
15090{
15091
15092 case $as_dir in #(
15093 -*) as_dir=./$as_dir;;
15094 esac
15095 test -d "$as_dir" || eval $as_mkdir_p || {
15096 as_dirs=
15097 while :; do
15098 case $as_dir in #(
15099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15100 *) as_qdir=$as_dir;;
15101 esac
15102 as_dirs="'$as_qdir' $as_dirs"
15103 as_dir=`$as_dirname -- "$as_dir" ||
15104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105 X"$as_dir" : 'X\(//\)[^/]' \| \
15106 X"$as_dir" : 'X\(//\)$' \| \
15107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15108$as_echo X"$as_dir" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15110 s//\1/
15111 q
15112 }
15113 /^X\(\/\/\)[^/].*/{
15114 s//\1/
15115 q
15116 }
15117 /^X\(\/\/\)$/{
15118 s//\1/
15119 q
15120 }
15121 /^X\(\/\).*/{
15122 s//\1/
15123 q
15124 }
15125 s/.*/./; q'`
15126 test -d "$as_dir" && break
15127 done
15128 test -z "$as_dirs" || eval "mkdir $as_dirs"
15129 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15130
15131
15132} # as_fn_mkdir_p
15133if mkdir -p . 2>/dev/null; then
15134 as_mkdir_p='mkdir -p "$as_dir"'
15135else
15136 test -d ./-p && rmdir ./-p
15137 as_mkdir_p=false
15138fi
15139
15140if test -x / >/dev/null 2>&1; then
15141 as_test_x='test -x'
15142else
15143 if ls -dL / >/dev/null 2>&1; then
15144 as_ls_L_option=L
15145 else
15146 as_ls_L_option=
15147 fi
15148 as_test_x='
15149 eval sh -c '\''
15150 if test -d "$1"; then
15151 test -d "$1/.";
15152 else
15153 case $1 in #(
15154 -*)set "./$1";;
15155 esac;
15156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15157 ???[sx]*):;;*)false;;esac;fi
15158 '\'' sh
15159 '
15160fi
15161as_executable_p=$as_test_x
15162
15163# Sed expression to map a string onto a valid CPP name.
15164as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15165
15166# Sed expression to map a string onto a valid variable name.
15167as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15168
15169
15170exec 6>&1
15171## ----------------------------------- ##
15172## Main body of $CONFIG_STATUS script. ##
15173## ----------------------------------- ##
15174_ASEOF
15175test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15176
15177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178# Save the log message, to keep $0 and so on meaningful, and to
15179# report actual input values of CONFIG_FILES etc. instead of their
15180# values after options handling.
15181ac_log="
15182This file was extended by package-unused $as_me version-unused, which was
15183generated by GNU Autoconf 2.64. Invocation command line was
15184
15185 CONFIG_FILES = $CONFIG_FILES
15186 CONFIG_HEADERS = $CONFIG_HEADERS
15187 CONFIG_LINKS = $CONFIG_LINKS
15188 CONFIG_COMMANDS = $CONFIG_COMMANDS
15189 $ $0 $@
15190
15191on `(hostname || uname -n) 2>/dev/null | sed 1q`
15192"
15193
15194_ACEOF
15195
15196case $ac_config_files in *"
15197"*) set x $ac_config_files; shift; ac_config_files=$*;;
15198esac
15199
15200case $ac_config_headers in *"
15201"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15202esac
15203
15204
15205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206# Files that config.status was made for.
15207config_files="$ac_config_files"
15208config_headers="$ac_config_headers"
15209config_commands="$ac_config_commands"
15210
15211_ACEOF
15212
15213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214ac_cs_usage="\
15215\`$as_me' instantiates files and other configuration actions
15216from templates according to the current configuration. Unless the files
15217and actions are specified as TAGs, all are instantiated by default.
15218
15219Usage: $0 [OPTION]... [TAG]...
15220
15221 -h, --help print this help, then exit
15222 -V, --version print version number and configuration settings, then exit
15223 -q, --quiet, --silent
15224 do not print progress messages
15225 -d, --debug don't remove temporary files
15226 --recheck update $as_me by reconfiguring in the same conditions
15227 --file=FILE[:TEMPLATE]
15228 instantiate the configuration file FILE
15229 --header=FILE[:TEMPLATE]
15230 instantiate the configuration header FILE
15231
15232Configuration files:
15233$config_files
15234
15235Configuration headers:
15236$config_headers
15237
15238Configuration commands:
15239$config_commands
15240
15241Report bugs to the package provider."
15242
15243_ACEOF
15244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245ac_cs_version="\\
15246package-unused config.status version-unused
15247configured by $0, generated by GNU Autoconf 2.64,
15248 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15249
15250Copyright (C) 2009 Free Software Foundation, Inc.
15251This config.status script is free software; the Free Software Foundation
15252gives unlimited permission to copy, distribute and modify it."
15253
15254ac_pwd='$ac_pwd'
15255srcdir='$srcdir'
15256INSTALL='$INSTALL'
15257MKDIR_P='$MKDIR_P'
15258AWK='$AWK'
15259test -n "\$AWK" || AWK=awk
15260_ACEOF
15261
15262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263# The default lists apply if the user does not specify any file.
15264ac_need_defaults=:
15265while test $# != 0
15266do
15267 case $1 in
15268 --*=*)
15269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15271 ac_shift=:
15272 ;;
15273 *)
15274 ac_option=$1
15275 ac_optarg=$2
15276 ac_shift=shift
15277 ;;
15278 esac
15279
15280 case $ac_option in
15281 # Handling of the options.
15282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15283 ac_cs_recheck=: ;;
15284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285 $as_echo "$ac_cs_version"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15287 debug=: ;;
15288 --file | --fil | --fi | --f )
15289 $ac_shift
15290 case $ac_optarg in
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292 esac
15293 as_fn_append CONFIG_FILES " '$ac_optarg'"
15294 ac_need_defaults=false;;
15295 --header | --heade | --head | --hea )
15296 $ac_shift
15297 case $ac_optarg in
15298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15299 esac
15300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15301 ac_need_defaults=false;;
15302 --he | --h)
15303 # Conflict between --help and --header
15304 as_fn_error "ambiguous option: \`$1'
15305Try \`$0 --help' for more information.";;
15306 --help | --hel | -h )
15307 $as_echo "$ac_cs_usage"; exit ;;
15308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15310 ac_cs_silent=: ;;
15311
15312 # This is an error.
15313 -*) as_fn_error "unrecognized option: \`$1'
15314Try \`$0 --help' for more information." ;;
15315
15316 *) as_fn_append ac_config_targets " $1"
15317 ac_need_defaults=false ;;
15318
15319 esac
15320 shift
15321done
15322
15323ac_configure_extra_args=
15324
15325if $ac_cs_silent; then
15326 exec 6>/dev/null
15327 ac_configure_extra_args="$ac_configure_extra_args --silent"
15328fi
15329
15330_ACEOF
15331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332if \$ac_cs_recheck; then
15333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15334 shift
15335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15336 CONFIG_SHELL='$SHELL'
15337 export CONFIG_SHELL
15338 exec "\$@"
15339fi
15340
15341_ACEOF
15342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343exec 5>>config.log
15344{
15345 echo
15346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15347## Running $as_me. ##
15348_ASBOX
15349 $as_echo "$ac_log"
15350} >&5
15351
15352_ACEOF
15353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354#
15355# INIT-COMMANDS
15356#
15357
15358srcdir="$srcdir"
15359host="$host"
15360target="$target"
15361with_multisubdir="$with_multisubdir"
15362with_multisrctop="$with_multisrctop"
15363with_target_subdir="$with_target_subdir"
15364ac_configure_args="${multilib_arg} ${ac_configure_args}"
15365multi_basedir="$multi_basedir"
15366CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15367CC="$CC"
15368CXX="$CXX"
15369GFORTRAN="$GFORTRAN"
15370GDC="$GDC"
15371
15372
15373# The HP-UX ksh and POSIX shell print the target directory to stdout
15374# if CDPATH is set.
15375(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15376
15377sed_quote_subst='$sed_quote_subst'
15378double_quote_subst='$double_quote_subst'
15379delay_variable_subst='$delay_variable_subst'
15380macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15381macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15382enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15383enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15384pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15385enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15386SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15387ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15388host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15389host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15390host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15391build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15392build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15393build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15394SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15395Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15396GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15397EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15398FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15399LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15400NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15401LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15402max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15403ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15404exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15405lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15406lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15407lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15408reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15409reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15410OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15411deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15412file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15413AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15414AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15415STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15416RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15417old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15418old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15419old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15420lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15421CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15422CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15423compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15424GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15425lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15426lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15427lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15428lt_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"`'
15429objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15430MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15431lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15432lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15433lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15434lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15435lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15436need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15437DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15438NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15439LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15440OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15441OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15442libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15443shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15444extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15445archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15446enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15447export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15448whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15449compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15450old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15451old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15452archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15453archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15454module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15455module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15456with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15457allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15458no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15459hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15460hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15461hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15462hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15463hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15464hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15465hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15466hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15467inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15468link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15469fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15470always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15471export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15472exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15473include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15474prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15475file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15476variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15477need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15478need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15479version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15480runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15481shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15482shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15483libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15484library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15485soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15486install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15487postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15488postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15489finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15490finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15491hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15492sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15493sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15494hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15495enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15496enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15497enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15498old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15499striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15500LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15501reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15502reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15503old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15504compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15505GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15506lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15507lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15508lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15509lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15510lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15511archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15512enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15513export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15514whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15515compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15516old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15517old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15518archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15519archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15520module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15521module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15522with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15523allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15524no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15525hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15526hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15527hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15528hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15529hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15530hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15531hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15532hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15533inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15534link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15535fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15536always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15537export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15538exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15539include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15540prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15541file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15542hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15543
15544LTCC='$LTCC'
15545LTCFLAGS='$LTCFLAGS'
15546compiler='$compiler_DEFAULT'
15547
15548# A function that is used when there is no print builtin or printf.
15549func_fallback_echo ()
15550{
15551 eval 'cat <<_LTECHO_EOF
15552\$1
15553_LTECHO_EOF'
15554}
15555
15556# Quote evaled strings.
15557for var in SHELL \
15558ECHO \
15559SED \
15560GREP \
15561EGREP \
15562FGREP \
15563LD \
15564NM \
15565LN_S \
15566lt_SP2NL \
15567lt_NL2SP \
15568reload_flag \
15569OBJDUMP \
15570deplibs_check_method \
15571file_magic_cmd \
15572AR \
15573AR_FLAGS \
15574STRIP \
15575RANLIB \
15576CC \
15577CFLAGS \
15578compiler \
15579lt_cv_sys_global_symbol_pipe \
15580lt_cv_sys_global_symbol_to_cdecl \
15581lt_cv_sys_global_symbol_to_c_name_address \
15582lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15583lt_prog_compiler_no_builtin_flag \
15584lt_prog_compiler_wl \
15585lt_prog_compiler_pic \
15586lt_prog_compiler_static \
15587lt_cv_prog_compiler_c_o \
15588need_locks \
15589DSYMUTIL \
15590NMEDIT \
15591LIPO \
15592OTOOL \
15593OTOOL64 \
15594shrext_cmds \
15595export_dynamic_flag_spec \
15596whole_archive_flag_spec \
15597compiler_needs_object \
15598with_gnu_ld \
15599allow_undefined_flag \
15600no_undefined_flag \
15601hardcode_libdir_flag_spec \
15602hardcode_libdir_flag_spec_ld \
15603hardcode_libdir_separator \
15604fix_srcfile_path \
15605exclude_expsyms \
15606include_expsyms \
15607file_list_spec \
15608variables_saved_for_relink \
15609libname_spec \
15610library_names_spec \
15611soname_spec \
15612install_override_mode \
15613finish_eval \
15614old_striplib \
15615striplib \
15616LD_D \
15617reload_flag_D \
15618compiler_D \
15619lt_prog_compiler_no_builtin_flag_D \
15620lt_prog_compiler_wl_D \
15621lt_prog_compiler_pic_D \
15622lt_prog_compiler_static_D \
15623lt_cv_prog_compiler_c_o_D \
15624export_dynamic_flag_spec_D \
15625whole_archive_flag_spec_D \
15626compiler_needs_object_D \
15627with_gnu_ld_D \
15628allow_undefined_flag_D \
15629no_undefined_flag_D \
15630hardcode_libdir_flag_spec_D \
15631hardcode_libdir_flag_spec_ld_D \
15632hardcode_libdir_separator_D \
15633fix_srcfile_path_D \
15634exclude_expsyms_D \
15635include_expsyms_D \
15636file_list_spec_D; do
15637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15638 *[\\\\\\\`\\"\\\$]*)
15639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15640 ;;
15641 *)
15642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15643 ;;
15644 esac
15645done
15646
15647# Double-quote double-evaled strings.
15648for var in reload_cmds \
15649old_postinstall_cmds \
15650old_postuninstall_cmds \
15651old_archive_cmds \
15652extract_expsyms_cmds \
15653old_archive_from_new_cmds \
15654old_archive_from_expsyms_cmds \
15655archive_cmds \
15656archive_expsym_cmds \
15657module_cmds \
15658module_expsym_cmds \
15659export_symbols_cmds \
15660prelink_cmds \
15661postinstall_cmds \
15662postuninstall_cmds \
15663finish_cmds \
15664sys_lib_search_path_spec \
15665sys_lib_dlsearch_path_spec \
15666reload_cmds_D \
15667old_archive_cmds_D \
15668old_archive_from_new_cmds_D \
15669old_archive_from_expsyms_cmds_D \
15670archive_cmds_D \
15671archive_expsym_cmds_D \
15672module_cmds_D \
15673module_expsym_cmds_D \
15674export_symbols_cmds_D \
15675prelink_cmds_D; do
15676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15677 *[\\\\\\\`\\"\\\$]*)
15678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15679 ;;
15680 *)
15681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15682 ;;
15683 esac
15684done
15685
15686ac_aux_dir='$ac_aux_dir'
15687xsi_shell='$xsi_shell'
15688lt_shell_append='$lt_shell_append'
15689
15690# See if we are running on zsh, and set the options which allow our
15691# commands through without removal of \ escapes INIT.
15692if test -n "\${ZSH_VERSION+set}" ; then
15693 setopt NO_GLOB_SUBST
15694fi
15695
15696
15697 PACKAGE='$PACKAGE'
15698 VERSION='$VERSION'
15699 TIMESTAMP='$TIMESTAMP'
15700 RM='$RM'
15701 ofile='$ofile'
15702
15703
15704
15705
15706
15707
15708# Variables needed in config.status (file generation) which aren't already
15709# passed by autoconf.
15710SUBDIRS="$SUBDIRS"
15711
15712
15713_ACEOF
15714
15715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716
15717# Handling of arguments.
15718for ac_config_target in $ac_config_targets
15719do
15720 case $ac_config_target in
15721 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15722 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15723 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15724 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15725 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15726 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
15727 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15728 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
15729 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
15730 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
15731 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
15732 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15733
15734 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15735 esac
15736done
15737
15738
15739# If the user did not use the arguments to specify the items to instantiate,
15740# then the envvar interface is used. Set only those that are not.
15741# We use the long form for the default assignment because of an extremely
15742# bizarre bug on SunOS 4.1.3.
15743if $ac_need_defaults; then
15744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15747fi
15748
15749# Have a temporary directory for convenience. Make it in the build tree
15750# simply because there is no reason against having it here, and in addition,
15751# creating and moving files from /tmp can sometimes cause problems.
15752# Hook for its removal unless debugging.
15753# Note that there is a small window in which the directory will not be cleaned:
15754# after its creation but before its name has been assigned to `$tmp'.
15755$debug ||
15756{
15757 tmp=
15758 trap 'exit_status=$?
15759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15760' 0
15761 trap 'as_fn_exit 1' 1 2 13 15
15762}
15763# Create a (secure) tmp directory for tmp files.
15764
15765{
15766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15767 test -n "$tmp" && test -d "$tmp"
15768} ||
15769{
15770 tmp=./conf$$-$RANDOM
15771 (umask 077 && mkdir "$tmp")
15772} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15773
15774# Set up the scripts for CONFIG_FILES section.
15775# No need to generate them if there are no CONFIG_FILES.
15776# This happens for instance with `./config.status config.h'.
15777if test -n "$CONFIG_FILES"; then
15778
15779
15780ac_cr=`echo X | tr X '\015'`
15781# On cygwin, bash can eat \r inside `` if the user requested igncr.
15782# But we know of no other shell where ac_cr would be empty at this
15783# point, so we can use a bashism as a fallback.
15784if test "x$ac_cr" = x; then
15785 eval ac_cr=\$\'\\r\'
15786fi
15787ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15788if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15789 ac_cs_awk_cr='\r'
15790else
15791 ac_cs_awk_cr=$ac_cr
15792fi
15793
15794echo 'BEGIN {' >"$tmp/subs1.awk" &&
15795_ACEOF
15796
15797
15798{
15799 echo "cat >conf$$subs.awk <<_ACEOF" &&
15800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15801 echo "_ACEOF"
15802} >conf$$subs.sh ||
15803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15804ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15805ac_delim='%!_!# '
15806for ac_last_try in false false false false false :; do
15807 . ./conf$$subs.sh ||
15808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15809
15810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15811 if test $ac_delim_n = $ac_delim_num; then
15812 break
15813 elif $ac_last_try; then
15814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15815 else
15816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15817 fi
15818done
15819rm -f conf$$subs.sh
15820
15821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15822cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15823_ACEOF
15824sed -n '
15825h
15826s/^/S["/; s/!.*/"]=/
15827p
15828g
15829s/^[^!]*!//
15830:repl
15831t repl
15832s/'"$ac_delim"'$//
15833t delim
15834:nl
15835h
15836s/\(.\{148\}\).*/\1/
15837t more1
15838s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15839p
15840n
15841b repl
15842:more1
15843s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15844p
15845g
15846s/.\{148\}//
15847t nl
15848:delim
15849h
15850s/\(.\{148\}\).*/\1/
15851t more2
15852s/["\\]/\\&/g; s/^/"/; s/$/"/
15853p
15854b
15855:more2
15856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15857p
15858g
15859s/.\{148\}//
15860t delim
15861' <conf$$subs.awk | sed '
15862/^[^""]/{
15863 N
15864 s/\n//
15865}
15866' >>$CONFIG_STATUS || ac_write_fail=1
15867rm -f conf$$subs.awk
15868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869_ACAWK
15870cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15871 for (key in S) S_is_set[key] = 1
15872 FS = "\a"
15873
15874}
15875{
15876 line = $ 0
15877 nfields = split(line, field, "@")
15878 substed = 0
15879 len = length(field[1])
15880 for (i = 2; i < nfields; i++) {
15881 key = field[i]
15882 keylen = length(key)
15883 if (S_is_set[key]) {
15884 value = S[key]
15885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15886 len += length(value) + length(field[++i])
15887 substed = 1
15888 } else
15889 len += 1 + keylen
15890 }
15891
15892 print line
15893}
15894
15895_ACAWK
15896_ACEOF
15897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15900else
15901 cat
15902fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15903 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15904_ACEOF
15905
15906# VPATH may cause trouble with some makes, so we remove $(srcdir),
15907# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15908# trailing colons and then remove the whole line if VPATH becomes empty
15909# (actually we leave an empty line to preserve line numbers).
15910if test "x$srcdir" = x.; then
15911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15912s/:*\$(srcdir):*/:/
15913s/:*\${srcdir}:*/:/
15914s/:*@srcdir@:*/:/
15915s/^\([^=]*=[ ]*\):*/\1/
15916s/:*$//
15917s/^[^=]*=[ ]*$//
15918}'
15919fi
15920
15921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922fi # test -n "$CONFIG_FILES"
15923
15924# Set up the scripts for CONFIG_HEADERS section.
15925# No need to generate them if there are no CONFIG_HEADERS.
15926# This happens for instance with `./config.status Makefile'.
15927if test -n "$CONFIG_HEADERS"; then
15928cat >"$tmp/defines.awk" <<\_ACAWK ||
15929BEGIN {
15930_ACEOF
15931
15932# Transform confdefs.h into an awk script `defines.awk', embedded as
15933# here-document in config.status, that substitutes the proper values into
15934# config.h.in to produce config.h.
15935
15936# Create a delimiter string that does not exist in confdefs.h, to ease
15937# handling of long lines.
15938ac_delim='%!_!# '
15939for ac_last_try in false false :; do
15940 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15941 if test -z "$ac_t"; then
15942 break
15943 elif $ac_last_try; then
15944 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15945 else
15946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15947 fi
15948done
15949
15950# For the awk script, D is an array of macro values keyed by name,
15951# likewise P contains macro parameters if any. Preserve backslash
15952# newline sequences.
15953
15954ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15955sed -n '
15956s/.\{148\}/&'"$ac_delim"'/g
15957t rset
15958:rset
15959s/^[ ]*#[ ]*define[ ][ ]*/ /
15960t def
15961d
15962:def
15963s/\\$//
15964t bsnl
15965s/["\\]/\\&/g
15966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15967D["\1"]=" \3"/p
15968s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15969d
15970:bsnl
15971s/["\\]/\\&/g
15972s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15973D["\1"]=" \3\\\\\\n"\\/p
15974t cont
15975s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15976t cont
15977d
15978:cont
15979n
15980s/.\{148\}/&'"$ac_delim"'/g
15981t clear
15982:clear
15983s/\\$//
15984t bsnlc
15985s/["\\]/\\&/g; s/^/"/; s/$/"/p
15986d
15987:bsnlc
15988s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15989b cont
15990' <confdefs.h | sed '
15991s/'"$ac_delim"'/"\\\
15992"/g' >>$CONFIG_STATUS || ac_write_fail=1
15993
15994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15996 FS = "\a"
15997}
15998/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15999 line = \$ 0
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16002 defundef = arg[2]
16003 mac1 = arg[3]
16004 } else {
16005 defundef = substr(arg[1], 2)
16006 mac1 = arg[2]
16007 }
16008 split(mac1, mac2, "(") #)
16009 macro = mac2[1]
16010 prefix = substr(line, 1, index(line, defundef) - 1)
16011 if (D_is_set[macro]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix "define", macro P[macro] D[macro]
16014 next
16015 } else {
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef == "undef") {
16020 print "/*", prefix defundef, macro, "*/"
16021 next
16022 }
16023 }
16024}
16025{ print }
16026_ACAWK
16027_ACEOF
16028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16030fi # test -n "$CONFIG_HEADERS"
16031
16032
16033eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16034shift
16035for ac_tag
16036do
16037 case $ac_tag in
16038 :[FHLC]) ac_mode=$ac_tag; continue;;
16039 esac
16040 case $ac_mode$ac_tag in
16041 :[FHL]*:*);;
16042 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH]-) ac_tag=-:-;;
16044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16045 esac
16046 ac_save_IFS=$IFS
16047 IFS=:
16048 set x $ac_tag
16049 IFS=$ac_save_IFS
16050 shift
16051 ac_file=$1
16052 shift
16053
16054 case $ac_mode in
16055 :L) ac_source=$1;;
16056 :[FH])
16057 ac_file_inputs=
16058 for ac_f
16059 do
16060 case $ac_f in
16061 -) ac_f="$tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16065 test -f "$ac_f" ||
16066 case $ac_f in
16067 [\\/$]*) false;;
16068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16069 esac ||
16070 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16071 esac
16072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs " '$ac_f'"
16074 done
16075
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16081 `' by configure.'
16082 if test x"$ac_file" != x-; then
16083 configure_input="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085$as_echo "$as_me: creating $ac_file" >&6;}
16086 fi
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\&* | *\|* | *\\* )
16090 ac_sed_conf_input=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input=$configure_input;;
16093 esac
16094
16095 case $ac_tag in
16096 *:-:* | *:-) cat >"$tmp/stdin" \
16097 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16098 esac
16099 ;;
16100 esac
16101
16102 ac_dir=`$as_dirname -- "$ac_file" ||
16103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107$as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\/\)[^/].*/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\/\)$/{
16117 s//\1/
16118 q
16119 }
16120 /^X\(\/\).*/{
16121 s//\1/
16122 q
16123 }
16124 s/.*/./; q'`
16125 as_dir="$ac_dir"; as_fn_mkdir_p
16126 ac_builddir=.
16127
16128case "$ac_dir" in
16129.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16130*)
16131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16137 esac ;;
16138esac
16139ac_abs_top_builddir=$ac_pwd
16140ac_abs_builddir=$ac_pwd$ac_dir_suffix
16141# for backward compatibility:
16142ac_top_builddir=$ac_top_build_prefix
16143
16144case $srcdir in
16145 .) # We are building in place.
16146 ac_srcdir=.
16147 ac_top_srcdir=$ac_top_builddir_sub
16148 ac_abs_top_srcdir=$ac_pwd ;;
16149 [\\/]* | ?:[\\/]* ) # Absolute name.
16150 ac_srcdir=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir=$srcdir
16152 ac_abs_top_srcdir=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16157esac
16158ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16159
16160
16161 case $ac_mode in
16162 :F)
16163 #
16164 # CONFIG_FILE
16165 #
16166
16167 case $INSTALL in
16168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16170 esac
16171 ac_MKDIR_P=$MKDIR_P
16172 case $MKDIR_P in
16173 [\\/$]* | ?:[\\/]* ) ;;
16174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16175 esac
16176_ACEOF
16177
16178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179# If the template does not know about datarootdir, expand it.
16180# FIXME: This hack should be removed a few years after 2.60.
16181ac_datarootdir_hack=; ac_datarootdir_seen=
16182ac_sed_dataroot='
16183/datarootdir/ {
16184 p
16185 q
16186}
16187/@datadir@/p
16188/@docdir@/p
16189/@infodir@/p
16190/@localedir@/p
16191/@mandir@/p'
16192case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16193*datarootdir*) ac_datarootdir_seen=yes;;
16194*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16196$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16197_ACEOF
16198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199 ac_datarootdir_hack='
16200 s&@datadir@&$datadir&g
16201 s&@docdir@&$docdir&g
16202 s&@infodir@&$infodir&g
16203 s&@localedir@&$localedir&g
16204 s&@mandir@&$mandir&g
16205 s&\\\${datarootdir}&$datarootdir&g' ;;
16206esac
16207_ACEOF
16208
16209# Neutralize VPATH when `$srcdir' = `.'.
16210# Shell code in configure.ac might set extrasub.
16211# FIXME: do we really want to maintain this feature?
16212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213ac_sed_extra="$ac_vpsub
16214$extrasub
16215_ACEOF
16216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16217:t
16218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16219s|@configure_input@|$ac_sed_conf_input|;t t
16220s&@top_builddir@&$ac_top_builddir_sub&;t t
16221s&@top_build_prefix@&$ac_top_build_prefix&;t t
16222s&@srcdir@&$ac_srcdir&;t t
16223s&@abs_srcdir@&$ac_abs_srcdir&;t t
16224s&@top_srcdir@&$ac_top_srcdir&;t t
16225s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16226s&@builddir@&$ac_builddir&;t t
16227s&@abs_builddir@&$ac_abs_builddir&;t t
16228s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16229s&@INSTALL@&$ac_INSTALL&;t t
16230s&@MKDIR_P@&$ac_MKDIR_P&;t t
16231$ac_datarootdir_hack
16232"
16233eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16234 || as_fn_error "could not create $ac_file" "$LINENO" 5
16235
16236test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16240which seems to be undefined. Please make sure it is defined." >&5
16241$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16242which seems to be undefined. Please make sure it is defined." >&2;}
16243
16244 rm -f "$tmp/stdin"
16245 case $ac_file in
16246 -) cat "$tmp/out" && rm -f "$tmp/out";;
16247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16248 esac \
16249 || as_fn_error "could not create $ac_file" "$LINENO" 5
16250 ;;
16251 :H)
16252 #
16253 # CONFIG_HEADER
16254 #
16255 if test x"$ac_file" != x-; then
16256 {
16257 $as_echo "/* $configure_input */" \
16258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16259 } >"$tmp/config.h" \
16260 || as_fn_error "could not create $ac_file" "$LINENO" 5
16261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16263$as_echo "$as_me: $ac_file is unchanged" >&6;}
16264 else
16265 rm -f "$ac_file"
16266 mv "$tmp/config.h" "$ac_file" \
16267 || as_fn_error "could not create $ac_file" "$LINENO" 5
16268 fi
16269 else
16270 $as_echo "/* $configure_input */" \
16271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16272 || as_fn_error "could not create -" "$LINENO" 5
16273 fi
16274# Compute "$ac_file"'s index in $config_headers.
16275_am_arg="$ac_file"
16276_am_stamp_count=1
16277for _am_header in $config_headers :; do
16278 case $_am_header in
16279 $_am_arg | $_am_arg:* )
16280 break ;;
16281 * )
16282 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16283 esac
16284done
16285echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16286$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16287 X"$_am_arg" : 'X\(//\)[^/]' \| \
16288 X"$_am_arg" : 'X\(//\)$' \| \
16289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16290$as_echo X"$_am_arg" |
16291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16292 s//\1/
16293 q
16294 }
16295 /^X\(\/\/\)[^/].*/{
16296 s//\1/
16297 q
16298 }
16299 /^X\(\/\/\)$/{
16300 s//\1/
16301 q
16302 }
16303 /^X\(\/\).*/{
16304 s//\1/
16305 q
16306 }
16307 s/.*/./; q'`/stamp-h$_am_stamp_count
16308 ;;
16309
16310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16311$as_echo "$as_me: executing $ac_file commands" >&6;}
16312 ;;
16313 esac
16314
16315
16316 case $ac_file$ac_mode in
16317 "default-1":C)
16318# Only add multilib support code if we just rebuilt the top-level
16319# Makefile.
16320case " $CONFIG_FILES " in
16321 *" Makefile "*)
16322 ac_file=Makefile . ${multi_basedir}/config-ml.in
16323 ;;
16324esac ;;
16325 "libtool":C)
16326
16327 # See if we are running on zsh, and set the options which allow our
16328 # commands through without removal of \ escapes.
16329 if test -n "${ZSH_VERSION+set}" ; then
16330 setopt NO_GLOB_SUBST
16331 fi
16332
16333 cfgfile="${ofile}T"
16334 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16335 $RM "$cfgfile"
16336
16337 cat <<_LT_EOF >> "$cfgfile"
16338#! $SHELL
16339
16340# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16341# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16342# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16343# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16344#
16345# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16346# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16347# Written by Gordon Matzigkeit, 1996
16348#
16349# This file is part of GNU Libtool.
16350#
16351# GNU Libtool is free software; you can redistribute it and/or
16352# modify it under the terms of the GNU General Public License as
16353# published by the Free Software Foundation; either version 2 of
16354# the License, or (at your option) any later version.
16355#
16356# As a special exception to the GNU General Public License,
16357# if you distribute this file as part of a program or library that
16358# is built using GNU Libtool, you may include this file under the
16359# same distribution terms that you use for the rest of that program.
16360#
16361# GNU Libtool is distributed in the hope that it will be useful,
16362# but WITHOUT ANY WARRANTY; without even the implied warranty of
16363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16364# GNU General Public License for more details.
16365#
16366# You should have received a copy of the GNU General Public License
16367# along with GNU Libtool; see the file COPYING. If not, a copy
16368# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16369# obtained by writing to the Free Software Foundation, Inc.,
16370# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16371
16372
16373# The names of the tagged configurations supported by this script.
16374available_tags="D "
16375
16376# ### BEGIN LIBTOOL CONFIG
16377
16378# Which release of libtool.m4 was used?
16379macro_version=$macro_version
16380macro_revision=$macro_revision
16381
16382# Whether or not to build shared libraries.
16383build_libtool_libs=$enable_shared
16384
16385# Whether or not to build static libraries.
16386build_old_libs=$enable_static
16387
16388# What type of objects to build.
16389pic_mode=$pic_mode
16390
16391# Whether or not to optimize for fast installation.
16392fast_install=$enable_fast_install
16393
16394# Shell to use when invoking shell scripts.
16395SHELL=$lt_SHELL
16396
16397# An echo program that protects backslashes.
16398ECHO=$lt_ECHO
16399
16400# The host system.
16401host_alias=$host_alias
16402host=$host
16403host_os=$host_os
16404
16405# The build system.
16406build_alias=$build_alias
16407build=$build
16408build_os=$build_os
16409
16410# A sed program that does not truncate output.
16411SED=$lt_SED
16412
16413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16414Xsed="\$SED -e 1s/^X//"
16415
16416# A grep program that handles long lines.
16417GREP=$lt_GREP
16418
16419# An ERE matcher.
16420EGREP=$lt_EGREP
16421
16422# A literal string matcher.
16423FGREP=$lt_FGREP
16424
16425# A BSD- or MS-compatible name lister.
16426NM=$lt_NM
16427
16428# Whether we need soft or hard links.
16429LN_S=$lt_LN_S
16430
16431# What is the maximum length of a command?
16432max_cmd_len=$max_cmd_len
16433
16434# Object file suffix (normally "o").
16435objext=$ac_objext
16436
16437# Executable file suffix (normally "").
16438exeext=$exeext
16439
16440# whether the shell understands "unset".
16441lt_unset=$lt_unset
16442
16443# turn spaces into newlines.
16444SP2NL=$lt_lt_SP2NL
16445
16446# turn newlines into spaces.
16447NL2SP=$lt_lt_NL2SP
16448
16449# An object symbol dumper.
16450OBJDUMP=$lt_OBJDUMP
16451
16452# Method to check whether dependent libraries are shared objects.
16453deplibs_check_method=$lt_deplibs_check_method
16454
16455# Command to use when deplibs_check_method == "file_magic".
16456file_magic_cmd=$lt_file_magic_cmd
16457
16458# The archiver.
16459AR=$lt_AR
16460AR_FLAGS=$lt_AR_FLAGS
16461
16462# A symbol stripping program.
16463STRIP=$lt_STRIP
16464
16465# Commands used to install an old-style archive.
16466RANLIB=$lt_RANLIB
16467old_postinstall_cmds=$lt_old_postinstall_cmds
16468old_postuninstall_cmds=$lt_old_postuninstall_cmds
16469
16470# Whether to use a lock for old archive extraction.
16471lock_old_archive_extraction=$lock_old_archive_extraction
16472
16473# A C compiler.
16474LTCC=$lt_CC
16475
16476# LTCC compiler flags.
16477LTCFLAGS=$lt_CFLAGS
16478
16479# Take the output of nm and produce a listing of raw symbols and C names.
16480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16481
16482# Transform the output of nm in a proper C declaration.
16483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16484
16485# Transform the output of nm in a C name address pair.
16486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16487
16488# Transform the output of nm in a C name address pair when lib prefix is needed.
16489global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16490
16491# The name of the directory that contains temporary libtool files.
16492objdir=$objdir
16493
16494# Used to examine libraries when file_magic_cmd begins with "file".
16495MAGIC_CMD=$MAGIC_CMD
16496
16497# Must we lock files when doing compilation?
16498need_locks=$lt_need_locks
16499
16500# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16501DSYMUTIL=$lt_DSYMUTIL
16502
16503# Tool to change global to local symbols on Mac OS X.
16504NMEDIT=$lt_NMEDIT
16505
16506# Tool to manipulate fat objects and archives on Mac OS X.
16507LIPO=$lt_LIPO
16508
16509# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16510OTOOL=$lt_OTOOL
16511
16512# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16513OTOOL64=$lt_OTOOL64
16514
16515# Old archive suffix (normally "a").
16516libext=$libext
16517
16518# Shared library suffix (normally ".so").
16519shrext_cmds=$lt_shrext_cmds
16520
16521# The commands to extract the exported symbol list from a shared archive.
16522extract_expsyms_cmds=$lt_extract_expsyms_cmds
16523
16524# Variables whose values should be saved in libtool wrapper scripts and
16525# restored at link time.
16526variables_saved_for_relink=$lt_variables_saved_for_relink
16527
16528# Do we need the "lib" prefix for modules?
16529need_lib_prefix=$need_lib_prefix
16530
16531# Do we need a version for libraries?
16532need_version=$need_version
16533
16534# Library versioning type.
16535version_type=$version_type
16536
16537# Shared library runtime path variable.
16538runpath_var=$runpath_var
16539
16540# Shared library path variable.
16541shlibpath_var=$shlibpath_var
16542
16543# Is shlibpath searched before the hard-coded library search path?
16544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16545
16546# Format of library name prefix.
16547libname_spec=$lt_libname_spec
16548
16549# List of archive names. First name is the real one, the rest are links.
16550# The last name is the one that the linker finds with -lNAME
16551library_names_spec=$lt_library_names_spec
16552
16553# The coded name of the library, if different from the real name.
16554soname_spec=$lt_soname_spec
16555
16556# Permission mode override for installation of shared libraries.
16557install_override_mode=$lt_install_override_mode
16558
16559# Command to use after installation of a shared archive.
16560postinstall_cmds=$lt_postinstall_cmds
16561
16562# Command to use after uninstallation of a shared archive.
16563postuninstall_cmds=$lt_postuninstall_cmds
16564
16565# Commands used to finish a libtool library installation in a directory.
16566finish_cmds=$lt_finish_cmds
16567
16568# As "finish_cmds", except a single script fragment to be evaled but
16569# not shown.
16570finish_eval=$lt_finish_eval
16571
16572# Whether we should hardcode library paths into libraries.
16573hardcode_into_libs=$hardcode_into_libs
16574
16575# Compile-time system search path for libraries.
16576sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16577
16578# Run-time system search path for libraries.
16579sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16580
16581# Whether dlopen is supported.
16582dlopen_support=$enable_dlopen
16583
16584# Whether dlopen of programs is supported.
16585dlopen_self=$enable_dlopen_self
16586
16587# Whether dlopen of statically linked programs is supported.
16588dlopen_self_static=$enable_dlopen_self_static
16589
16590# Commands to strip libraries.
16591old_striplib=$lt_old_striplib
16592striplib=$lt_striplib
16593
16594
16595# The linker used to build libraries.
16596LD=$lt_LD
16597
16598# How to create reloadable object files.
16599reload_flag=$lt_reload_flag
16600reload_cmds=$lt_reload_cmds
16601
16602# Commands used to build an old-style archive.
16603old_archive_cmds=$lt_old_archive_cmds
16604
16605# A language specific compiler.
16606CC=$lt_compiler
16607
16608# Is the compiler the GNU compiler?
16609with_gcc=$GCC
16610
16611# Compiler flag to turn off builtin functions.
16612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16613
16614# How to pass a linker flag through the compiler.
16615wl=$lt_lt_prog_compiler_wl
16616
16617# Additional compiler flags for building library objects.
16618pic_flag=$lt_lt_prog_compiler_pic
16619
16620# Compiler flag to prevent dynamic linking.
16621link_static_flag=$lt_lt_prog_compiler_static
16622
16623# Does compiler simultaneously support -c and -o options?
16624compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16625
16626# Whether or not to add -lc for building shared libraries.
16627build_libtool_need_lc=$archive_cmds_need_lc
16628
16629# Whether or not to disallow shared libs when runtime libs are static.
16630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16631
16632# Compiler flag to allow reflexive dlopens.
16633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16634
16635# Compiler flag to generate shared objects directly from archives.
16636whole_archive_flag_spec=$lt_whole_archive_flag_spec
16637
16638# Whether the compiler copes with passing no objects directly.
16639compiler_needs_object=$lt_compiler_needs_object
16640
16641# Create an old-style archive from a shared archive.
16642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16643
16644# Create a temporary old-style archive to link instead of a shared archive.
16645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16646
16647# Commands used to build a shared archive.
16648archive_cmds=$lt_archive_cmds
16649archive_expsym_cmds=$lt_archive_expsym_cmds
16650
16651# Commands used to build a loadable module if different from building
16652# a shared archive.
16653module_cmds=$lt_module_cmds
16654module_expsym_cmds=$lt_module_expsym_cmds
16655
16656# Whether we are building with GNU ld or not.
16657with_gnu_ld=$lt_with_gnu_ld
16658
16659# Flag that allows shared libraries with undefined symbols to be built.
16660allow_undefined_flag=$lt_allow_undefined_flag
16661
16662# Flag that enforces no undefined symbols.
16663no_undefined_flag=$lt_no_undefined_flag
16664
16665# Flag to hardcode \$libdir into a binary during linking.
16666# This must work even if \$libdir does not exist
16667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16668
16669# If ld is used when linking, flag to hardcode \$libdir into a binary
16670# during linking. This must work even if \$libdir does not exist.
16671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16672
16673# Whether we need a single "-rpath" flag with a separated argument.
16674hardcode_libdir_separator=$lt_hardcode_libdir_separator
16675
16676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16677# DIR into the resulting binary.
16678hardcode_direct=$hardcode_direct
16679
16680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16681# DIR into the resulting binary and the resulting library dependency is
16682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16683# library is relocated.
16684hardcode_direct_absolute=$hardcode_direct_absolute
16685
16686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16687# into the resulting binary.
16688hardcode_minus_L=$hardcode_minus_L
16689
16690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16691# into the resulting binary.
16692hardcode_shlibpath_var=$hardcode_shlibpath_var
16693
16694# Set to "yes" if building a shared library automatically hardcodes DIR
16695# into the library and all subsequent libraries and executables linked
16696# against it.
16697hardcode_automatic=$hardcode_automatic
16698
16699# Set to yes if linker adds runtime paths of dependent libraries
16700# to runtime path list.
16701inherit_rpath=$inherit_rpath
16702
16703# Whether libtool must link a program against all its dependency libraries.
16704link_all_deplibs=$link_all_deplibs
16705
16706# Fix the shell variable \$srcfile for the compiler.
16707fix_srcfile_path=$lt_fix_srcfile_path
16708
16709# Set to "yes" if exported symbols are required.
16710always_export_symbols=$always_export_symbols
16711
16712# The commands to list exported symbols.
16713export_symbols_cmds=$lt_export_symbols_cmds
16714
16715# Symbols that should not be listed in the preloaded symbols.
16716exclude_expsyms=$lt_exclude_expsyms
16717
16718# Symbols that must always be exported.
16719include_expsyms=$lt_include_expsyms
16720
16721# Commands necessary for linking programs (against libraries) with templates.
16722prelink_cmds=$lt_prelink_cmds
16723
16724# Specify filename containing input files.
16725file_list_spec=$lt_file_list_spec
16726
16727# How to hardcode a shared library path into an executable.
16728hardcode_action=$hardcode_action
16729
16730# ### END LIBTOOL CONFIG
16731
16732_LT_EOF
16733
16734 case $host_os in
16735 aix3*)
16736 cat <<\_LT_EOF >> "$cfgfile"
16737# AIX sometimes has problems with the GCC collect2 program. For some
16738# reason, if we set the COLLECT_NAMES environment variable, the problems
16739# vanish in a puff of smoke.
16740if test "X${COLLECT_NAMES+set}" != Xset; then
16741 COLLECT_NAMES=
16742 export COLLECT_NAMES
16743fi
16744_LT_EOF
16745 ;;
16746 esac
16747
16748
16749ltmain="$ac_aux_dir/ltmain.sh"
16750
16751
16752 # We use sed instead of cat because bash on DJGPP gets confused if
16753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16754 # text mode, it properly converts lines to CR/LF. This bash problem
16755 # is reportedly fixed, but why not run on old versions too?
16756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16757 || (rm -f "$cfgfile"; exit 1)
16758
16759 case $xsi_shell in
16760 yes)
16761 cat << \_LT_EOF >> "$cfgfile"
16762
16763# func_dirname file append nondir_replacement
16764# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16765# otherwise set result to NONDIR_REPLACEMENT.
16766func_dirname ()
16767{
16768 case ${1} in
16769 */*) func_dirname_result="${1%/*}${2}" ;;
16770 * ) func_dirname_result="${3}" ;;
16771 esac
16772}
16773
16774# func_basename file
16775func_basename ()
16776{
16777 func_basename_result="${1##*/}"
16778}
16779
16780# func_dirname_and_basename file append nondir_replacement
16781# perform func_basename and func_dirname in a single function
16782# call:
16783# dirname: Compute the dirname of FILE. If nonempty,
16784# add APPEND to the result, otherwise set result
16785# to NONDIR_REPLACEMENT.
16786# value returned in "$func_dirname_result"
16787# basename: Compute filename of FILE.
16788# value retuned in "$func_basename_result"
16789# Implementation must be kept synchronized with func_dirname
16790# and func_basename. For efficiency, we do not delegate to
16791# those functions but instead duplicate the functionality here.
16792func_dirname_and_basename ()
16793{
16794 case ${1} in
16795 */*) func_dirname_result="${1%/*}${2}" ;;
16796 * ) func_dirname_result="${3}" ;;
16797 esac
16798 func_basename_result="${1##*/}"
16799}
16800
16801# func_stripname prefix suffix name
16802# strip PREFIX and SUFFIX off of NAME.
16803# PREFIX and SUFFIX must not contain globbing or regex special
16804# characters, hashes, percent signs, but SUFFIX may contain a leading
16805# dot (in which case that matches only a dot).
16806func_stripname ()
16807{
16808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16809 # positional parameters, so assign one to ordinary parameter first.
16810 func_stripname_result=${3}
16811 func_stripname_result=${func_stripname_result#"${1}"}
16812 func_stripname_result=${func_stripname_result%"${2}"}
16813}
16814
16815# func_opt_split
16816func_opt_split ()
16817{
16818 func_opt_split_opt=${1%%=*}
16819 func_opt_split_arg=${1#*=}
16820}
16821
16822# func_lo2o object
16823func_lo2o ()
16824{
16825 case ${1} in
16826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16827 *) func_lo2o_result=${1} ;;
16828 esac
16829}
16830
16831# func_xform libobj-or-source
16832func_xform ()
16833{
16834 func_xform_result=${1%.*}.lo
16835}
16836
16837# func_arith arithmetic-term...
16838func_arith ()
16839{
16840 func_arith_result=$(( $* ))
16841}
16842
16843# func_len string
16844# STRING may not start with a hyphen.
16845func_len ()
16846{
16847 func_len_result=${#1}
16848}
16849
16850_LT_EOF
16851 ;;
16852 *) # Bourne compatible functions.
16853 cat << \_LT_EOF >> "$cfgfile"
16854
16855# func_dirname file append nondir_replacement
16856# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16857# otherwise set result to NONDIR_REPLACEMENT.
16858func_dirname ()
16859{
16860 # Extract subdirectory from the argument.
16861 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16862 if test "X$func_dirname_result" = "X${1}"; then
16863 func_dirname_result="${3}"
16864 else
16865 func_dirname_result="$func_dirname_result${2}"
16866 fi
16867}
16868
16869# func_basename file
16870func_basename ()
16871{
16872 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16873}
16874
16875
16876# func_stripname prefix suffix name
16877# strip PREFIX and SUFFIX off of NAME.
16878# PREFIX and SUFFIX must not contain globbing or regex special
16879# characters, hashes, percent signs, but SUFFIX may contain a leading
16880# dot (in which case that matches only a dot).
16881# func_strip_suffix prefix name
16882func_stripname ()
16883{
16884 case ${2} in
16885 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16886 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16887 esac
16888}
16889
16890# sed scripts:
16891my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16892my_sed_long_arg='1s/^-[^=]*=//'
16893
16894# func_opt_split
16895func_opt_split ()
16896{
16897 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16898 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16899}
16900
16901# func_lo2o object
16902func_lo2o ()
16903{
16904 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16905}
16906
16907# func_xform libobj-or-source
16908func_xform ()
16909{
16910 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16911}
16912
16913# func_arith arithmetic-term...
16914func_arith ()
16915{
16916 func_arith_result=`expr "$@"`
16917}
16918
16919# func_len string
16920# STRING may not start with a hyphen.
16921func_len ()
16922{
16923 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16924}
16925
16926_LT_EOF
16927esac
16928
16929case $lt_shell_append in
16930 yes)
16931 cat << \_LT_EOF >> "$cfgfile"
16932
16933# func_append var value
16934# Append VALUE to the end of shell variable VAR.
16935func_append ()
16936{
16937 eval "$1+=\$2"
16938}
16939_LT_EOF
16940 ;;
16941 *)
16942 cat << \_LT_EOF >> "$cfgfile"
16943
16944# func_append var value
16945# Append VALUE to the end of shell variable VAR.
16946func_append ()
16947{
16948 eval "$1=\$$1\$2"
16949}
16950
16951_LT_EOF
16952 ;;
16953 esac
16954
16955
16956 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16957 || (rm -f "$cfgfile"; exit 1)
16958
16959 mv -f "$cfgfile" "$ofile" ||
16960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16961 chmod +x "$ofile"
16962
16963
16964 cat <<_LT_EOF >> "$ofile"
16965
16966# ### BEGIN LIBTOOL TAG CONFIG: D
16967
16968# The linker used to build libraries.
16969LD=$lt_LD_D
16970
16971# How to create reloadable object files.
16972reload_flag=$lt_reload_flag_D
16973reload_cmds=$lt_reload_cmds_D
16974
16975# Commands used to build an old-style archive.
16976old_archive_cmds=$lt_old_archive_cmds_D
16977
16978# A language specific compiler.
16979CC=$lt_compiler_D
16980
16981# Is the compiler the GNU compiler?
16982with_gcc=$GCC_D
16983
16984# Compiler flag to turn off builtin functions.
16985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
16986
16987# How to pass a linker flag through the compiler.
16988wl=$lt_lt_prog_compiler_wl_D
16989
16990# Additional compiler flags for building library objects.
16991pic_flag=$lt_lt_prog_compiler_pic_D
16992
16993# Compiler flag to prevent dynamic linking.
16994link_static_flag=$lt_lt_prog_compiler_static_D
16995
16996# Does compiler simultaneously support -c and -o options?
16997compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
16998
16999# Whether or not to add -lc for building shared libraries.
17000build_libtool_need_lc=$archive_cmds_need_lc_D
17001
17002# Whether or not to disallow shared libs when runtime libs are static.
17003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17004
17005# Compiler flag to allow reflexive dlopens.
17006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17007
17008# Compiler flag to generate shared objects directly from archives.
17009whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17010
17011# Whether the compiler copes with passing no objects directly.
17012compiler_needs_object=$lt_compiler_needs_object_D
17013
17014# Create an old-style archive from a shared archive.
17015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17016
17017# Create a temporary old-style archive to link instead of a shared archive.
17018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17019
17020# Commands used to build a shared archive.
17021archive_cmds=$lt_archive_cmds_D
17022archive_expsym_cmds=$lt_archive_expsym_cmds_D
17023
17024# Commands used to build a loadable module if different from building
17025# a shared archive.
17026module_cmds=$lt_module_cmds_D
17027module_expsym_cmds=$lt_module_expsym_cmds_D
17028
17029# Whether we are building with GNU ld or not.
17030with_gnu_ld=$lt_with_gnu_ld_D
17031
17032# Flag that allows shared libraries with undefined symbols to be built.
17033allow_undefined_flag=$lt_allow_undefined_flag_D
17034
17035# Flag that enforces no undefined symbols.
17036no_undefined_flag=$lt_no_undefined_flag_D
17037
17038# Flag to hardcode \$libdir into a binary during linking.
17039# This must work even if \$libdir does not exist
17040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17041
17042# If ld is used when linking, flag to hardcode \$libdir into a binary
17043# during linking. This must work even if \$libdir does not exist.
17044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17045
17046# Whether we need a single "-rpath" flag with a separated argument.
17047hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17048
17049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17050# DIR into the resulting binary.
17051hardcode_direct=$hardcode_direct_D
17052
17053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17054# DIR into the resulting binary and the resulting library dependency is
17055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17056# library is relocated.
17057hardcode_direct_absolute=$hardcode_direct_absolute_D
17058
17059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17060# into the resulting binary.
17061hardcode_minus_L=$hardcode_minus_L_D
17062
17063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17064# into the resulting binary.
17065hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17066
17067# Set to "yes" if building a shared library automatically hardcodes DIR
17068# into the library and all subsequent libraries and executables linked
17069# against it.
17070hardcode_automatic=$hardcode_automatic_D
17071
17072# Set to yes if linker adds runtime paths of dependent libraries
17073# to runtime path list.
17074inherit_rpath=$inherit_rpath_D
17075
17076# Whether libtool must link a program against all its dependency libraries.
17077link_all_deplibs=$link_all_deplibs_D
17078
17079# Fix the shell variable \$srcfile for the compiler.
17080fix_srcfile_path=$lt_fix_srcfile_path_D
17081
17082# Set to "yes" if exported symbols are required.
17083always_export_symbols=$always_export_symbols_D
17084
17085# The commands to list exported symbols.
17086export_symbols_cmds=$lt_export_symbols_cmds_D
17087
17088# Symbols that should not be listed in the preloaded symbols.
17089exclude_expsyms=$lt_exclude_expsyms_D
17090
17091# Symbols that must always be exported.
17092include_expsyms=$lt_include_expsyms_D
17093
17094# Commands necessary for linking programs (against libraries) with templates.
17095prelink_cmds=$lt_prelink_cmds_D
17096
17097# Specify filename containing input files.
17098file_list_spec=$lt_file_list_spec_D
17099
17100# How to hardcode a shared library path into an executable.
17101hardcode_action=$hardcode_action_D
17102
17103# ### END LIBTOOL TAG CONFIG: D
17104_LT_EOF
17105
17106 ;;
17107 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17108 "default":C) if test -n "$CONFIG_FILES"; then
17109 if test -n "${with_target_subdir}"; then
17110 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17111 # that multilib installs will end up installed in the correct place.
17112 # The testsuite needs it for multilib-aware ABI baseline files.
17113 # To work around this not being passed down from config-ml.in ->
17114 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
17115 # append it here. Only modify Makefiles that have just been created.
17116 #
17117 # Also, get rid of this simulated-VPATH thing that automake does.
17118 cat > vpsed << \_EOF
17119 s!`test -f '$<' || echo '$(srcdir)/'`!!
17120_EOF
17121 for i in $SUBDIRS; do
17122 case $CONFIG_FILES in
17123 *${i}/Makefile*)
17124 #echo "Adding MULTISUBDIR to $i/Makefile"
17125 sed -f vpsed $i/Makefile > tmp
17126 grep '^MULTISUBDIR =' Makefile >> tmp
17127 mv tmp $i/Makefile
17128 ;;
17129 esac
17130 done
17131 rm vpsed
17132 fi
17133 fi
17134 ;;
17135
17136 esac
17137done # for ac_tag
17138
17139
17140as_fn_exit 0
17141_ACEOF
17142ac_clean_files=$ac_clean_files_save
17143
17144test $ac_write_fail = 0 ||
17145 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17146
17147
17148# configure is writing to config.log, and then calls config.status.
17149# config.status does its own redirection, appending to config.log.
17150# Unfortunately, on DOS this fails, as config.log is still kept open
17151# by configure, so config.status won't be able to write to it; its
17152# output is simply discarded. So we exec the FD to /dev/null,
17153# effectively closing config.log, so it can be properly (re)opened and
17154# appended to by config.status. When coming back to configure, we
17155# need to make the FD available again.
17156if test "$no_create" != yes; then
17157 ac_cs_success=:
17158 ac_config_status_args=
17159 test "$silent" = yes &&
17160 ac_config_status_args="$ac_config_status_args --quiet"
17161 exec 5>/dev/null
17162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17163 exec 5>>config.log
17164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17165 # would make configure fail if this is the last instruction.
17166 $ac_cs_success || as_fn_exit $?
17167fi
17168if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17170$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17171fi
17172