]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
libgcc: use syscall rather than __mmap/__munmap
[thirdparty/gcc.git] / libphobos / configure
CommitLineData
b4c522fa
IB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
0b6e3127 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
b4c522fa 7#
b4c522fa
IB
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.
22e05272 90as_myself=
b4c522fa
IB
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
b4c522fa
IB
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
b4c522fa
IB
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
235d1c46 199test \$(( 1 + 1 )) = 2 || exit 1
b4c522fa
IB
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
235d1c46 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
b4c522fa
IB
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
b4c522fa
IB
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
b4c522fa
IB
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
b4c522fa
IB
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
b4c522fa
IB
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
b4c522fa
IB
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
b4c522fa 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
b4c522fa
IB
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
b4c522fa
IB
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
b4c522fa
IB
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
b4c522fa
IB
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
b4c522fa
IB
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b4c522fa
IB
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636GDCFLAGSX
85041a5b 637libtool_VERSION
b4c522fa 638SPEC_PHOBOS_DEPS
bca0a321
RO
639ENABLE_LIBPHOBOS_FALSE
640ENABLE_LIBPHOBOS_TRUE
b4c522fa 641gdc_include_dir
ac67752d
IB
642libphobos_toolexeclibdir
643libphobos_toolexecdir
b4c522fa 644gcc_version
bb50312e 645LIBZ
b4c522fa
IB
646BACKTRACE_SUPPORTS_THREADS
647BACKTRACE_USES_MALLOC
648BACKTRACE_SUPPORTED
649LIBBACKTRACE
650LIBATOMIC
651DCFG_HAVE_LIBATOMIC
652DCFG_HAVE_64BIT_ATOMICS
653DCFG_HAVE_ATOMIC_BUILTINS
36d7f151 654DCFG_HAVE_QSORT_R
ba838aa6 655OS_LINK_SPEC
235d1c46 656DCFG_DLPI_TLS_MODID
0b6e3127
RO
657DRUNTIME_OS_MINFO_BRACKETING_FALSE
658DRUNTIME_OS_MINFO_BRACKETING_TRUE
b4c522fa
IB
659DCFG_MINFO_BRACKETING
660DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
661DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
662DCFG_ARM_EABI_UNWINDER
663DCFG_THREAD_MODEL
664DRUNTIME_OS_SOLARIS_FALSE
665DRUNTIME_OS_SOLARIS_TRUE
666DRUNTIME_OS_MINGW_FALSE
667DRUNTIME_OS_MINGW_TRUE
668DRUNTIME_OS_LINUX_FALSE
669DRUNTIME_OS_LINUX_TRUE
670DRUNTIME_OS_OPENBSD_FALSE
671DRUNTIME_OS_OPENBSD_TRUE
672DRUNTIME_OS_NETBSD_FALSE
673DRUNTIME_OS_NETBSD_TRUE
674DRUNTIME_OS_FREEBSD_FALSE
675DRUNTIME_OS_FREEBSD_TRUE
676DRUNTIME_OS_DRAGONFLYBSD_FALSE
677DRUNTIME_OS_DRAGONFLYBSD_TRUE
678DRUNTIME_OS_DARWIN_FALSE
679DRUNTIME_OS_DARWIN_TRUE
680DRUNTIME_OS_ANDROID_FALSE
681DRUNTIME_OS_ANDROID_TRUE
682DRUNTIME_OS_AIX_FALSE
683DRUNTIME_OS_AIX_TRUE
684DRUNTIME_OS_UNIX_FALSE
685DRUNTIME_OS_UNIX_TRUE
2493e718
IB
686DRUNTIME_CPU_X86_FALSE
687DRUNTIME_CPU_X86_TRUE
688DRUNTIME_CPU_POWERPC64_FALSE
689DRUNTIME_CPU_POWERPC64_TRUE
690DRUNTIME_CPU_POWERPC_FALSE
691DRUNTIME_CPU_POWERPC_TRUE
692DRUNTIME_CPU_MIPS_FALSE
693DRUNTIME_CPU_MIPS_TRUE
694DRUNTIME_CPU_ARM_FALSE
695DRUNTIME_CPU_ARM_TRUE
696DRUNTIME_CPU_AARCH64_FALSE
697DRUNTIME_CPU_AARCH64_TRUE
b4c522fa
IB
698DRUNTIME_GC_ENABLE_FALSE
699DRUNTIME_GC_ENABLE_TRUE
700libphobos_srcdir
701libphobos_builddir
702get_gcc_base_ver
703phobos_compiler_shared_flag
704phobos_compiler_pic_flag
b4c522fa
IB
705OTOOL64
706OTOOL
707LIPO
708NMEDIT
709DSYMUTIL
710OBJDUMP
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
b4c522fa
IB
717SED
718LIBTOOL
719CFLAGS_FOR_BUILD
720CC_FOR_BUILD
721AR
722RANLIB
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726GDCFLAGS
727GDC
728CCASFLAGS
729CCAS
22e05272
JM
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
b4c522fa
IB
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
235d1c46
RO
757EGREP
758GREP
759CPP
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
b4c522fa
IB
767target_os
768target_vendor
769target_cpu
770target
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779multi_basedir
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_URL
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL'
0b6e3127 818ac_subst_files='DRTSTUFF_SPEC'
b4c522fa
IB
819ac_user_opts='
820enable_option_checking
821enable_multilib
22e05272 822enable_silent_rules
b4c522fa
IB
823enable_maintainer_mode
824enable_shared
825enable_static
826with_pic
827enable_fast_install
828with_gnu_ld
829enable_libtool_lock
830with_gcc_major_version_only
831enable_werror
832enable_druntime_gc
833enable_unix
834enable_thread_lib
835with_libatomic
836with_libbacktrace
837with_target_system_zlib
838with_cross_host
ac67752d 839enable_version_specific_runtime_libs
e8e66971 840with_toolexeclibdir
bca0a321 841enable_libphobos
b4c522fa
IB
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
235d1c46
RO
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851CPP'
b4c522fa
IB
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
901
902ac_prev=
903ac_dashdash=
904for ac_option
905do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
22e05272
JM
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
b4c522fa
IB
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 961 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 987 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1191 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1207 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
22e05272
JM
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
b4c522fa
IB
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b4c522fa
IB
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b4c522fa
IB
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1264 as_fn_error $? "missing argument to $ac_option"
b4c522fa
IB
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
22e05272 1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b4c522fa
IB
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
d8b1f499 1279 libdir localedir mandir
b4c522fa
IB
1280do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
22e05272 1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b4c522fa
IB
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
b4c522fa
IB
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1321 as_fn_error $? "working directory cannot be determined"
b4c522fa 1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1323 as_fn_error $? "pwd does not report name of working directory"
b4c522fa
IB
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357else
1358 ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b4c522fa
IB
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
22e05272 1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b4c522fa
IB
1367 pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
22e05272 1406 -q, --quiet, --silent do not print \`checking ...' messages
b4c522fa
IB
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445_ACEOF
1446
1447 cat <<\_ACEOF
1448
1449Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of package-unused version-unused:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-multilib build many library versions (default)
22e05272
JM
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
b4c522fa
IB
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-werror turns on -Werror [default=no]
1483 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1484 --enable-unix enables Unix runtime (default: yes, for Unix
1485 targets)
1486 --enable-thread-lib=<arg>
1487 specify linker option for the system thread library
1488 (default: autodetect)
ac67752d
IB
1489 --enable-version-specific-runtime-libs
1490 Specify that runtime libraries should be installed
1491 in a compiler-specific directory
bca0a321 1492 --enable-libphobos Enable libphobos
b4c522fa
IB
1493
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-gcc-major-version-only
1501 use only GCC major number in filesystem paths
1502 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1503 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1504 auto)
bb50312e 1505 --with-target-system-zlib={yes,no,auto}
b4c522fa
IB
1506 use installed libz (default: no)
1507 --with-cross-host=HOST configuring with a cross compiler
e8e66971
MR
1508 --with-toolexeclibdir=DIR
1509 install libraries built with a cross compiler within
1510 DIR
b4c522fa
IB
1511
1512Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa 1519 you have headers in a nonstandard directory <include dir>
235d1c46 1520 CPP C preprocessor
b4c522fa
IB
1521 CCAS assembler compiler command (defaults to CC)
1522 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1523 GDC D compiler command
1524 GDCFLAGS D compiler flags
b4c522fa
IB
1525
1526Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations.
1528
1529Report bugs to the package provider.
1530_ACEOF
1531ac_status=$?
1532fi
1533
1534if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542case "$ac_dir" in
1543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544*)
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552esac
1553ac_abs_top_builddir=$ac_pwd
1554ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555# for backward compatibility:
1556ac_top_builddir=$ac_top_build_prefix
1557
1558case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571esac
1572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1587fi
1588
1589test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then
1591 cat <<\_ACEOF
1592package-unused configure version-unused
22e05272 1593generated by GNU Autoconf 2.69
b4c522fa 1594
0b6e3127 1595Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599 exit
1600fi
1601
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
1605
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638fi
22e05272
JM
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
b4c522fa
IB
1641
1642} # ac_fn_c_try_compile
1643
235d1c46
RO
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
b4c522fa
IB
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
b4c522fa
IB
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
235d1c46 1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b4c522fa
IB
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1665 test $ac_status = 0; } > conftest.i && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b4c522fa 1667 test ! -s conftest.err
235d1c46 1668 }; then :
b4c522fa
IB
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
235d1c46 1674 ac_retval=1
b4c522fa 1675fi
22e05272
JM
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
b4c522fa 1678
235d1c46 1679} # ac_fn_c_try_cpp
b4c522fa 1680
235d1c46
RO
1681# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684# the include files in INCLUDES and setting the cache variable VAR
1685# accordingly.
1686ac_fn_c_check_header_mongrel ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if eval \${$3+:} false; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694fi
1695eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698else
1699 # Is the header compilable?
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701$as_echo_n "checking $2 usability... " >&6; }
1702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h. */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1709else
1710 ac_header_compiler=no
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714$as_echo "$ac_header_compiler" >&6; }
1715
1716# Is the header present?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718$as_echo_n "checking $2 presence... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1725else
1726 ac_header_preproc=no
1727fi
1728rm -f conftest.err conftest.i conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730$as_echo "$ac_header_preproc" >&6; }
1731
1732# So? What about this header?
1733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 yes:no: )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 ;;
1740 no:yes:* )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752esac
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757else
1758 eval "$3=\$ac_header_compiler"
1759fi
1760eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763fi
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_header_mongrel
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
b4c522fa
IB
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b4c522fa
IB
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
235d1c46 1782 (eval "$ac_link") 2>&5
b4c522fa 1783 ac_status=$?
b4c522fa 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
b4c522fa
IB
1796 ac_retval=0
1797else
235d1c46
RO
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
235d1c46 1802 ac_retval=$ac_status
b4c522fa 1803fi
b4c522fa 1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
b4c522fa 1807
235d1c46 1808} # ac_fn_c_try_run
b4c522fa
IB
1809
1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists and can be compiled using the include files in
1813# INCLUDES, setting the cache variable VAR accordingly.
1814ac_fn_c_check_header_compile ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
22e05272 1819if eval \${$3+:} false; then :
b4c522fa
IB
1820 $as_echo_n "(cached) " >&6
1821else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828 eval "$3=yes"
1829else
1830 eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
22e05272 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1838
1839} # ac_fn_c_check_header_compile
1840
235d1c46
RO
1841# ac_fn_d_try_compile LINENO
1842# --------------------------
1843# Try to compile conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_d_try_compile ()
b4c522fa
IB
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46
RO
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
b4c522fa
IB
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
235d1c46 1855 (eval "$ac_compile") 2>conftest.err
b4c522fa
IB
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1863 test $ac_status = 0; } && {
1864 test -z "$ac_d_werror_flag" ||
b4c522fa 1865 test ! -s conftest.err
235d1c46 1866 } && test -s conftest.$ac_objext; then :
b4c522fa
IB
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
235d1c46 1872 ac_retval=1
b4c522fa 1873fi
22e05272
JM
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
b4c522fa 1876
235d1c46 1877} # ac_fn_d_try_compile
b4c522fa 1878
235d1c46
RO
1879# ac_fn_c_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_link ()
b4c522fa
IB
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1885 rm -f conftest.$ac_objext conftest$ac_exeext
b4c522fa
IB
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
235d1c46 1893 (eval "$ac_link") 2>conftest.err
b4c522fa 1894 ac_status=$?
235d1c46
RO
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
b4c522fa 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
b4c522fa
IB
1908 ac_retval=0
1909else
235d1c46 1910 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
235d1c46 1913 ac_retval=1
b4c522fa 1914fi
235d1c46
RO
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
b4c522fa 1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
b4c522fa 1922
235d1c46 1923} # ac_fn_c_try_link
b4c522fa
IB
1924
1925# ac_fn_c_check_func LINENO FUNC VAR
1926# ----------------------------------
1927# Tests whether FUNC exists, setting the cache variable VAR accordingly
1928ac_fn_c_check_func ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
22e05272 1933if eval \${$3+:} false; then :
b4c522fa
IB
1934 $as_echo_n "(cached) " >&6
1935else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940#define $2 innocuous_$2
1941
1942/* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below.
1944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945 <limits.h> exists even on freestanding compilers. */
1946
1947#ifdef __STDC__
1948# include <limits.h>
1949#else
1950# include <assert.h>
1951#endif
1952
1953#undef $2
1954
1955/* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1958#ifdef __cplusplus
1959extern "C"
1960#endif
1961char $2 ();
1962/* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965#if defined __stub_$2 || defined __stub___$2
1966choke me
1967#endif
1968
1969int
1970main ()
1971{
1972return $2 ();
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_link "$LINENO"; then :
1978 eval "$3=yes"
1979else
1980 eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext \
1983 conftest$ac_exeext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
22e05272 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1989
1990} # ac_fn_c_check_func
1991
235d1c46
RO
1992# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993# ----------------------------------------------------
1994# Tries to find if the field MEMBER exists in type AGGR, after including
1995# INCLUDES, setting cache variable VAR accordingly.
1996ac_fn_c_check_member ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000$as_echo_n "checking for $2.$3... " >&6; }
2001if eval \${$4+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$5
2007int
2008main ()
2009{
2010static $2 ac_aggr;
2011if (ac_aggr.$3)
2012return 0;
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h. */
2022$5
2023int
2024main ()
2025{
2026static $2 ac_aggr;
2027if (sizeof ac_aggr.$3)
2028return 0;
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035else
2036 eval "$4=no"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_member
2048
2049# ac_fn_d_try_link LINENO
2050# -----------------------
2051# Try to link conftest.$ac_ext, and return whether this succeeded.
b4c522fa
IB
2052ac_fn_d_try_link ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 rm -f conftest.$ac_objext conftest$ac_exeext
2056 if { { ac_try="$ac_link"
2057case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_link") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && {
2072 test -z "$ac_d_werror_flag" ||
2073 test ! -s conftest.err
2074 } && test -s conftest$ac_exeext && {
2075 test "$cross_compiling" = yes ||
22e05272 2076 test -x conftest$ac_exeext
b4c522fa
IB
2077 }; then :
2078 ac_retval=0
2079else
2080 $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083 ac_retval=1
2084fi
2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087 # interfere with the next link command; also delete a directory that is
2088 # left behind by Apple's compiler. We do this before executing the actions.
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
b4c522fa
IB
2092
2093} # ac_fn_d_try_link
b4c522fa
IB
2094cat >config.log <<_ACEOF
2095This file contains any messages produced by compilers while
2096running configure, to aid debugging if configure makes a mistake.
2097
2098It was created by package-unused $as_me version-unused, which was
22e05272 2099generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2100
2101 $ $0 $@
2102
2103_ACEOF
2104exec 5>>config.log
2105{
2106cat <<_ASUNAME
2107## --------- ##
2108## Platform. ##
2109## --------- ##
2110
2111hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116
2117/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119
2120/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127
2128_ASUNAME
2129
2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH
2132do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2136 done
2137IFS=$as_save_IFS
2138
2139} >&5
2140
2141cat >&5 <<_ACEOF
2142
2143
2144## ----------- ##
2145## Core tests. ##
2146## ----------- ##
2147
2148_ACEOF
2149
2150
2151# Keep a trace of the command line.
2152# Strip out --no-create and --no-recursion so they do not pile up.
2153# Strip out --silent because we don't want to record it for future runs.
2154# Also quote any args containing shell meta-characters.
2155# Make two passes to allow for proper duplicate-argument suppression.
2156ac_configure_args=
2157ac_configure_args0=
2158ac_configure_args1=
2159ac_must_keep_next=false
2160for ac_pass in 1 2
2161do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195done
2196{ ac_configure_args0=; unset ac_configure_args0;}
2197{ ac_configure_args1=; unset ac_configure_args1;}
2198
2199# When interrupted or exit'd, cleanup temporary files, and complete
2200# config.log. We remove comments because anyway the quotes in there
2201# would cause problems or look ugly.
2202# WARNING: Use '\'' to represent an apostrophe within the trap.
2203# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
22e05272 2209 $as_echo "## ---------------- ##
b4c522fa 2210## Cache variables. ##
22e05272 2211## ---------------- ##"
b4c522fa
IB
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214(
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242)
2243 echo
2244
22e05272 2245 $as_echo "## ----------------- ##
b4c522fa 2246## Output variables. ##
22e05272 2247## ----------------- ##"
b4c522fa
IB
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
22e05272 2260 $as_echo "## ------------------- ##
b4c522fa 2261## File substitutions. ##
22e05272 2262## ------------------- ##"
b4c522fa
IB
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
22e05272 2276 $as_echo "## ----------- ##
b4c522fa 2277## confdefs.h. ##
22e05272 2278## ----------- ##"
b4c522fa
IB
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290' 0
2291for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293done
2294ac_signal=0
2295
2296# confdefs.h avoids OS command line length limits that DEFS can exceed.
2297rm -f -r conftest* confdefs.h
2298
2299$as_echo "/* confdefs.h */" > confdefs.h
2300
2301# Predefined preprocessor variables.
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_NAME "$PACKAGE_NAME"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_VERSION "$PACKAGE_VERSION"
2313_ACEOF
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_STRING "$PACKAGE_STRING"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_URL "$PACKAGE_URL"
2325_ACEOF
2326
2327
2328# Let the site file select an alternate cache file if it wants to.
2329# Prefer an explicitly selected file to automatically selected ones.
2330ac_site_file1=NONE
2331ac_site_file2=NONE
2332if test -n "$CONFIG_SITE"; then
22e05272
JM
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2338 esac
b4c522fa
IB
2339elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345fi
2346for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347do
2348 test "x$ac_site_file" = xNONE && continue
22e05272 2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2353 . "$ac_site_file" \
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356as_fn_error $? "failed to load site script $ac_site_file
2357See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2358 fi
2359done
2360
2361if test -r "$cache_file"; then
22e05272
JM
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366$as_echo "$as_me: loading cache $cache_file" >&6;}
2367 case $cache_file in
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2370 esac
2371 fi
2372else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374$as_echo "$as_me: creating cache $cache_file" >&6;}
2375 >$cache_file
2376fi
2377
2378# Check that the precious variables saved in the cache have kept the same
2379# value.
2380ac_cache_corrupted=false
2381for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2387 set,)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,set)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 fi;;
2415 esac
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 esac
2426 fi
2427done
2428if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2434fi
2435## -------------------- ##
2436## Main body of script. ##
2437## -------------------- ##
2438
2439ac_ext=c
2440ac_cpp='$CPP $CPPFLAGS'
2441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446
2447
2448
2449
2450ac_config_headers="$ac_config_headers config.h"
2451
2452
2453# Default to --enable-multilib
2454# Check whether --enable-multilib was given.
2455if test "${enable_multilib+set}" = set; then :
2456 enableval=$enable_multilib; case "$enableval" in
2457 yes) multilib=yes ;;
2458 no) multilib=no ;;
22e05272 2459 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2460 esac
2461else
2462 multilib=yes
2463fi
2464
2465
2466# We may get other options which we leave undocumented:
2467# --with-target-subdir, --with-multisrctop, --with-multisubdir
2468# See config-ml.in if you want the gory details.
2469
2470if test "$srcdir" = "."; then
2471 if test "$with_target_subdir" != "."; then
2472 multi_basedir="$srcdir/$with_multisrctop../.."
2473 else
2474 multi_basedir="$srcdir/$with_multisrctop.."
2475 fi
2476else
2477 multi_basedir="$srcdir/.."
2478fi
2479
2480
2481# Even if the default multilib is not a cross compilation,
2482# it may be that some of the other multilibs are.
2483if test $cross_compiling = no && test $multilib = yes \
2484 && test "x${with_multisubdir}" != x ; then
2485 cross_compiling=maybe
2486fi
2487
2488ac_config_commands="$ac_config_commands default-1"
2489
2490ac_aux_dir=
2491for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2492 if test -f "$ac_dir/install-sh"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 break
2496 elif test -f "$ac_dir/install.sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 break
2500 elif test -f "$ac_dir/shtool"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/shtool install -c"
2503 break
2504 fi
b4c522fa
IB
2505done
2506if test -z "$ac_aux_dir"; then
22e05272 2507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2508fi
2509
2510# These three variables are undocumented and unsupported,
2511# and are intended to be withdrawn in a future Autoconf release.
2512# They can cause serious problems if a builder's source tree is in a directory
2513# whose full name contains unusual characters.
2514ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2517
2518
2519# Make sure we can run config.sub.
2520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2524$as_echo_n "checking build system type... " >&6; }
22e05272 2525if ${ac_cv_build+:} false; then :
b4c522fa
IB
2526 $as_echo_n "(cached) " >&6
2527else
2528 ac_build_alias=$build_alias
2529test "x$ac_build_alias" = x &&
2530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2531test "x$ac_build_alias" = x &&
22e05272 2532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2533ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2535
2536fi
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2538$as_echo "$ac_cv_build" >&6; }
2539case $ac_cv_build in
2540*-*-*) ;;
22e05272 2541*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2542esac
2543build=$ac_cv_build
2544ac_save_IFS=$IFS; IFS='-'
2545set x $ac_cv_build
2546shift
2547build_cpu=$1
2548build_vendor=$2
2549shift; shift
2550# Remember, the first character of IFS is used to create $*,
2551# except with old shells:
2552build_os=$*
2553IFS=$ac_save_IFS
2554case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2555
2556
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2558$as_echo_n "checking host system type... " >&6; }
22e05272 2559if ${ac_cv_host+:} false; then :
b4c522fa
IB
2560 $as_echo_n "(cached) " >&6
2561else
2562 if test "x$host_alias" = x; then
2563 ac_cv_host=$ac_cv_build
2564else
2565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2567fi
2568
2569fi
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2571$as_echo "$ac_cv_host" >&6; }
2572case $ac_cv_host in
2573*-*-*) ;;
22e05272 2574*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2575esac
2576host=$ac_cv_host
2577ac_save_IFS=$IFS; IFS='-'
2578set x $ac_cv_host
2579shift
2580host_cpu=$1
2581host_vendor=$2
2582shift; shift
2583# Remember, the first character of IFS is used to create $*,
2584# except with old shells:
2585host_os=$*
2586IFS=$ac_save_IFS
2587case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2591$as_echo_n "checking target system type... " >&6; }
22e05272 2592if ${ac_cv_target+:} false; then :
b4c522fa
IB
2593 $as_echo_n "(cached) " >&6
2594else
2595 if test "x$target_alias" = x; then
2596 ac_cv_target=$ac_cv_host
2597else
2598 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2600fi
2601
2602fi
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2604$as_echo "$ac_cv_target" >&6; }
2605case $ac_cv_target in
2606*-*-*) ;;
22e05272 2607*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2608esac
2609target=$ac_cv_target
2610ac_save_IFS=$IFS; IFS='-'
2611set x $ac_cv_target
2612shift
2613target_cpu=$1
2614target_vendor=$2
2615shift; shift
2616# Remember, the first character of IFS is used to create $*,
2617# except with old shells:
2618target_os=$*
2619IFS=$ac_save_IFS
2620case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2621
2622
2623# The aliases save the names the user supplied, while $host etc.
2624# will get canonicalized.
2625test -n "$target_alias" &&
2626 test "$program_prefix$program_suffix$program_transform_name" = \
2627 NONENONEs,x,x, &&
2628 program_prefix=${target_alias}-
2629
235d1c46
RO
2630# Expand $ac_aux_dir to an absolute path.
2631am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa 2632
235d1c46
RO
2633ac_ext=c
2634ac_cpp='$CPP $CPPFLAGS'
2635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}gcc; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2644 $as_echo_n "(cached) " >&6
2645else
235d1c46
RO
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
235d1c46
RO
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
b4c522fa
IB
2661 done
2662IFS=$as_save_IFS
2663
b4c522fa 2664fi
b4c522fa 2665fi
235d1c46
RO
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669$as_echo "$CC" >&6; }
2670else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
b4c522fa 2674
b4c522fa 2675
b4c522fa 2676fi
235d1c46
RO
2677if test -z "$ac_cv_prog_CC"; then
2678 ac_ct_CC=$CC
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680set dummy gcc; ac_word=$2
b4c522fa
IB
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2683if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2684 $as_echo_n "(cached) " >&6
2685else
235d1c46
RO
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2696 ac_cv_prog_ac_ct_CC="gcc"
b4c522fa
IB
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700done
2701 done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
235d1c46
RO
2706ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707if test -n "$ac_ct_CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
2710else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713fi
2714
235d1c46
RO
2715 if test "x$ac_ct_CC" = x; then
2716 CC=""
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722ac_tool_warned=yes ;;
2723esac
2724 CC=$ac_ct_CC
2725 fi
2726else
2727 CC="$ac_cv_prog_CC"
b4c522fa 2728fi
235d1c46
RO
2729
2730if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2733set dummy ${ac_tool_prefix}cc; ac_word=$2
b4c522fa
IB
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2736if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2737 $as_echo_n "(cached) " >&6
2738else
235d1c46
RO
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2749 ac_cv_prog_CC="${ac_tool_prefix}cc"
b4c522fa
IB
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753done
2754 done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
235d1c46
RO
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762$as_echo "$CC" >&6; }
b4c522fa
IB
2763else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
b4c522fa 2768
b4c522fa
IB
2769 fi
2770fi
235d1c46
RO
2771if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773set dummy cc; ac_word=$2
b4c522fa
IB
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2776if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2777 $as_echo_n "(cached) " >&6
2778else
235d1c46
RO
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa 2781else
235d1c46 2782 ac_prog_rejected=no
b4c522fa
IB
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46
RO
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected=yes
2792 continue
2793 fi
2794 ac_cv_prog_CC="cc"
b4c522fa
IB
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
235d1c46
RO
2802if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812 fi
b4c522fa
IB
2813fi
2814fi
235d1c46
RO
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819$as_echo "$CC" >&6; }
b4c522fa
IB
2820else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
b4c522fa
IB
2823fi
2824
2825
22e05272 2826fi
235d1c46
RO
2827if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in cl.exe
2830 do
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4c522fa
IB
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2835if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2836 $as_echo_n "(cached) " >&6
2837else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853 done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861$as_echo "$CC" >&6; }
2862else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
235d1c46
RO
2868 test -n "$CC" && break
2869 done
b4c522fa 2870fi
235d1c46 2871if test -z "$CC"; then
b4c522fa 2872 ac_ct_CC=$CC
235d1c46
RO
2873 for ac_prog in cl.exe
2874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
b4c522fa
IB
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2879if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2880 $as_echo_n "(cached) " >&6
2881else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2892 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897 done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905$as_echo "$ac_ct_CC" >&6; }
2906else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
235d1c46
RO
2910
2911
2912 test -n "$ac_ct_CC" && break
2913done
b4c522fa
IB
2914
2915 if test "x$ac_ct_CC" = x; then
2916 CC=""
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922ac_tool_warned=yes ;;
2923esac
2924 CC=$ac_ct_CC
2925 fi
2926fi
2927
2928fi
2929
2930
2931test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2933as_fn_error $? "no acceptable C compiler found in \$PATH
2934See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2935
2936# Provide some information about the compiler.
2937$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2938set X $ac_compile
2939ac_compiler=$2
2940for ac_option in --version -v -V -qversion; do
2941 { { ac_try="$ac_compiler $ac_option >&5"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947$as_echo "$ac_try_echo"; } >&5
2948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2949 ac_status=$?
2950 if test -s conftest.err; then
2951 sed '10a\
2952... rest of stderr output deleted ...
2953 10q' conftest.err >conftest.er1
2954 cat conftest.er1 >&5
b4c522fa 2955 fi
22e05272 2956 rm -f conftest.er1 conftest.err
b4c522fa
IB
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }
2959done
2960
2961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972ac_clean_files_save=$ac_clean_files
22e05272 2973ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
2974# Try to create an executable without -o first, disregard a.out.
2975# It will help us diagnose broken compilers, and finding out an intuition
2976# of exeext.
22e05272
JM
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
2979ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980
2981# The possible output files:
2982ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983
2984ac_rmfiles=
2985for ac_file in $ac_files
2986do
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990 esac
2991done
2992rm -f $ac_rmfiles
2993
2994if { { ac_try="$ac_link_default"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000$as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_link_default") 2>&5
3002 ac_status=$?
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3006# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3007# in a Makefile. We should not override ac_cv_exeext if it was cached,
3008# so that the user can short-circuit this test for compilers unknown to
3009# Autoconf.
3010for ac_file in $ac_files ''
3011do
3012 test -f "$ac_file" || continue
3013 case $ac_file in
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015 ;;
3016 [ab].out )
3017 # We found the default executable, but exeext='' is most
3018 # certainly right.
3019 break;;
3020 *.* )
3021 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3022 then :; else
3023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 fi
3025 # We set ac_cv_exeext here because the later test for it is not
3026 # safe: cross compilers may not add the suffix if given an `-o'
3027 # argument, so we may need to know it at that point already.
3028 # Even if this section looks crufty: it has the advantage of
3029 # actually working.
3030 break;;
3031 * )
3032 break;;
3033 esac
3034done
3035test "$ac_cv_exeext" = no && ac_cv_exeext=
3036
3037else
3038 ac_file=''
3039fi
b4c522fa 3040if test -z "$ac_file"; then :
22e05272
JM
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3048as_fn_error 77 "C compiler cannot create executables
3049See \`config.log' for more details" "$LINENO" 5; }
3050else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052$as_echo "yes" >&6; }
b4c522fa 3053fi
22e05272
JM
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055$as_echo_n "checking for C compiler default output file name... " >&6; }
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3057$as_echo "$ac_file" >&6; }
b4c522fa
IB
3058ac_exeext=$ac_cv_exeext
3059
22e05272 3060rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3061ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3063$as_echo_n "checking for suffix of executables... " >&6; }
3064if { { ac_try="$ac_link"
3065case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070$as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3076# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3077# work properly (i.e., refer to `conftest.exe'), while it won't with
3078# `rm'.
3079for ac_file in conftest.exe conftest conftest.*; do
3080 test -f "$ac_file" || continue
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 break;;
3085 * ) break;;
3086 esac
3087done
3088else
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3091as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3092See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3093fi
22e05272 3094rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3096$as_echo "$ac_cv_exeext" >&6; }
3097
3098rm -f conftest.$ac_ext
3099EXEEXT=$ac_cv_exeext
3100ac_exeext=$EXEEXT
22e05272
JM
3101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102/* end confdefs.h. */
3103#include <stdio.h>
3104int
3105main ()
3106{
3107FILE *f = fopen ("conftest.out", "w");
3108 return ferror (f) || fclose (f) != 0;
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114ac_clean_files="$ac_clean_files conftest.out"
3115# Check that the compiler produces executables we can run. If not, either
3116# the compiler is broken, or we cross compile.
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118$as_echo_n "checking whether we are cross compiling... " >&6; }
3119if test "$cross_compiling" != yes; then
3120 { { ac_try="$ac_link"
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 if { ac_try='./conftest$ac_cv_exeext'
3132 { { case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; }; then
3142 cross_compiling=no
3143 else
3144 if test "$cross_compiling" = maybe; then
3145 cross_compiling=yes
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149as_fn_error $? "cannot run C compiled programs.
3150If you meant to cross compile, use \`--host'.
3151See \`config.log' for more details" "$LINENO" 5; }
3152 fi
3153 fi
3154fi
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3156$as_echo "$cross_compiling" >&6; }
3157
3158rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3159ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3162if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3163 $as_echo_n "(cached) " >&6
3164else
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.o conftest.obj
3177if { { ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195done
3196else
3197 $as_echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3202as_fn_error $? "cannot compute suffix of object files: cannot compile
3203See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3204fi
3205rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206fi
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208$as_echo "$ac_cv_objext" >&6; }
3209OBJEXT=$ac_cv_objext
3210ac_objext=$OBJEXT
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3213if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3214 $as_echo_n "(cached) " >&6
3215else
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222#ifndef __GNUC__
3223 choke me
3224#endif
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
3230if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_compiler_gnu=yes
3232else
3233 ac_compiler_gnu=no
3234fi
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236ac_cv_c_compiler_gnu=$ac_compiler_gnu
3237
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241if test $ac_compiler_gnu = yes; then
3242 GCC=yes
3243else
3244 GCC=
3245fi
3246ac_test_CFLAGS=${CFLAGS+set}
3247ac_save_CFLAGS=$CFLAGS
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3250if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3251 $as_echo_n "(cached) " >&6
3252else
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3255 ac_cv_prog_cc_g=no
3256 CFLAGS="-g"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h. */
3259
3260int
3261main ()
3262{
3263
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_cv_prog_cc_g=yes
3270else
3271 CFLAGS=""
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283if ac_fn_c_try_compile "$LINENO"; then :
3284
3285else
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3301fi
3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308fi
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310$as_echo "$ac_cv_prog_cc_g" >&6; }
3311if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3318 fi
3319else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3324 fi
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3328if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3329 $as_echo_n "(cached) " >&6
3330else
3331 ac_cv_prog_cc_c89=no
3332ac_save_CC=$CC
3333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334/* end confdefs.h. */
3335#include <stdarg.h>
3336#include <stdio.h>
22e05272 3337struct stat;
b4c522fa
IB
3338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3339struct buf { int x; };
3340FILE * (*rcsopen) (struct buf *, struct stat *, int);
3341static char *e (p, i)
3342 char **p;
3343 int i;
3344{
3345 return p[i];
3346}
3347static char *f (char * (*g) (char **, int), char **p, ...)
3348{
3349 char *s;
3350 va_list v;
3351 va_start (v,p);
3352 s = g (p, va_arg (v,int));
3353 va_end (v);
3354 return s;
3355}
3356
3357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3358 function prototypes and stuff, but not '\xHH' hex character constants.
3359 These don't provoke an error unfortunately, instead are silently treated
3360 as 'x'. The following induces an error, until -std is added to get
3361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3362 array size at least. It's necessary to write '\x00'==0 to get something
3363 that's true only with -std. */
3364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365
3366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3367 inside strings and character constants. */
3368#define FOO(x) 'x'
3369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370
3371int test (int i, double x);
3372struct s1 {int (*f) (int a);};
3373struct s2 {int (*f) (double a);};
3374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375int argc;
3376char **argv;
3377int
3378main ()
3379{
3380return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387do
3388 CC="$ac_save_CC $ac_arg"
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_cv_prog_cc_c89=$ac_arg
3391fi
3392rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3394done
3395rm -f conftest.$ac_ext
3396CC=$ac_save_CC
3397
3398fi
3399# AC_CACHE_VAL
3400case "x$ac_cv_prog_cc_c89" in
3401 x)
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3403$as_echo "none needed" >&6; } ;;
3404 xno)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3406$as_echo "unsupported" >&6; } ;;
3407 *)
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3410$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3411esac
3412if test "x$ac_cv_prog_cc_c89" != xno; then :
3413
3414fi
3415
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
22e05272
JM
3422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3428$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3429if ${am_cv_prog_cc_c_o+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443 # Make sure it works both with $CC and with simple cc.
3444 # Following AC_PROG_CC_C_O, we do the test twice because some
3445 # compilers refuse to overwrite an existing .o file with -o,
3446 # though they will create one.
3447 am_cv_prog_cc_c_o=yes
3448 for am_i in 1 2; do
3449 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3450 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } \
3454 && test -f conftest2.$ac_objext; then
3455 : OK
3456 else
3457 am_cv_prog_cc_c_o=no
3458 break
3459 fi
3460 done
3461 rm -f core conftest*
3462 unset am_i
3463fi
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3465$as_echo "$am_cv_prog_cc_c_o" >&6; }
3466if test "$am_cv_prog_cc_c_o" != yes; then
3467 # Losing compiler, so override with the script.
3468 # FIXME: It is wrong to rewrite CC.
3469 # But if we don't then we get into trouble of one sort or another.
3470 # A longer-term fix would be to have automake use am__CC in this case,
3471 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3472 CC="$am_aux_dir/compile $CC"
3473fi
3474ac_ext=c
3475ac_cpp='$CPP $CPPFLAGS'
3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
b4c522fa
IB
3481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
235d1c46
RO
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3488$as_echo_n "checking how to run the C preprocessor... " >&6; }
3489# On Suns, sometimes $CPP names a directory.
3490if test -n "$CPP" && test -d "$CPP"; then
3491 CPP=
3492fi
3493if test -z "$CPP"; then
3494 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
3495 $as_echo_n "(cached) " >&6
3496else
235d1c46
RO
3497 # Double quotes because CPP needs to be expanded
3498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3499 do
3500 ac_preproc_ok=false
3501for ac_c_preproc_warn_flag in '' yes
b4c522fa 3502do
235d1c46
RO
3503 # Use a header file that comes with gcc, so configuring glibc
3504 # with a fresh cross-compiler works.
3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506 # <limits.h> exists even on freestanding compilers.
3507 # On the NeXT, cc -E runs the code through the compiler's parser,
3508 # not just through cpp. "Syntax error" is here to catch this case.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h. */
3511#ifdef __STDC__
3512# include <limits.h>
3513#else
3514# include <assert.h>
3515#endif
3516 Syntax error
3517_ACEOF
3518if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3519
b4c522fa 3520else
235d1c46
RO
3521 # Broken: fails on valid input.
3522continue
b4c522fa 3523fi
235d1c46 3524rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3525
235d1c46
RO
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h. */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if ac_fn_c_try_cpp "$LINENO"; then :
3533 # Broken: success on invalid input.
3534continue
b4c522fa 3535else
235d1c46
RO
3536 # Passes both tests.
3537ac_preproc_ok=:
3538break
3539fi
3540rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3541
235d1c46
RO
3542done
3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544rm -f conftest.i conftest.err conftest.$ac_ext
3545if $ac_preproc_ok; then :
3546 break
b4c522fa 3547fi
235d1c46
RO
3548
3549 done
3550 ac_cv_prog_CPP=$CPP
3551
b4c522fa 3552fi
235d1c46 3553 CPP=$ac_cv_prog_CPP
b4c522fa 3554else
235d1c46 3555 ac_cv_prog_CPP=$CPP
b4c522fa 3556fi
235d1c46
RO
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3558$as_echo "$CPP" >&6; }
3559ac_preproc_ok=false
3560for ac_c_preproc_warn_flag in '' yes
3561do
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h. */
3570#ifdef __STDC__
3571# include <limits.h>
3572#else
3573# include <assert.h>
3574#endif
3575 Syntax error
3576_ACEOF
3577if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3578
b4c522fa 3579else
235d1c46
RO
3580 # Broken: fails on valid input.
3581continue
b4c522fa 3582fi
235d1c46 3583rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3584
235d1c46
RO
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
3591if ac_fn_c_try_cpp "$LINENO"; then :
3592 # Broken: success on invalid input.
3593continue
b4c522fa 3594else
235d1c46
RO
3595 # Passes both tests.
3596ac_preproc_ok=:
3597break
3598fi
3599rm -f conftest.err conftest.i conftest.$ac_ext
3600
b4c522fa 3601done
235d1c46
RO
3602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603rm -f conftest.i conftest.err conftest.$ac_ext
3604if $ac_preproc_ok; then :
b4c522fa 3605
b4c522fa 3606else
235d1c46
RO
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3610See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3611fi
3612
235d1c46
RO
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa 3618
235d1c46
RO
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3621$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3622if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
3623 $as_echo_n "(cached) " >&6
3624else
235d1c46
RO
3625 if test -z "$GREP"; then
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b4c522fa
IB
3630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
235d1c46 3633 for ac_prog in grep ggrep; do
b4c522fa 3634 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 as_fn_executable_p "$ac_path_GREP" || continue
3637# Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639case `"$ac_path_GREP" --version 2>&1` in
3640*GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642*)
3643 ac_count=0
3644 $as_echo_n 0123456789 >"conftest.in"
3645 while :
3646 do
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 $as_echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 as_fn_arith $ac_count + 1 && ac_count=$as_val
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3658 fi
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
b4c522fa 3661 done
235d1c46
RO
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663esac
b4c522fa 3664
235d1c46
RO
3665 $ac_path_GREP_found && break 3
3666 done
3667 done
3668 done
3669IFS=$as_save_IFS
3670 if test -z "$ac_cv_path_GREP"; then
3671 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3672 fi
b4c522fa 3673else
235d1c46 3674 ac_cv_path_GREP=$GREP
b4c522fa
IB
3675fi
3676
b4c522fa 3677fi
235d1c46
RO
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3679$as_echo "$ac_cv_path_GREP" >&6; }
3680 GREP="$ac_cv_path_GREP"
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3684$as_echo_n "checking for egrep... " >&6; }
3685if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
3686 $as_echo_n "(cached) " >&6
3687else
235d1c46
RO
3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689 then ac_cv_path_EGREP="$GREP -E"
3690 else
3691 if test -z "$EGREP"; then
3692 ac_path_EGREP_found=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696do
b4c522fa
IB
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
235d1c46 3699 for ac_prog in egrep; do
b4c522fa 3700 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3702 as_fn_executable_p "$ac_path_EGREP" || continue
3703# Check for GNU ac_path_EGREP and select it if it is found.
3704 # Check for GNU $ac_path_EGREP
3705case `"$ac_path_EGREP" --version 2>&1` in
3706*GNU*)
3707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3708*)
3709 ac_count=0
3710 $as_echo_n 0123456789 >"conftest.in"
3711 while :
3712 do
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 $as_echo 'EGREP' >> "conftest.nl"
3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719 as_fn_arith $ac_count + 1 && ac_count=$as_val
3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_EGREP="$ac_path_EGREP"
3723 ac_path_EGREP_max=$ac_count
3724 fi
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
b4c522fa 3727 done
235d1c46
RO
3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729esac
b4c522fa 3730
235d1c46
RO
3731 $ac_path_EGREP_found && break 3
3732 done
b4c522fa 3733 done
b4c522fa
IB
3734 done
3735IFS=$as_save_IFS
235d1c46
RO
3736 if test -z "$ac_cv_path_EGREP"; then
3737 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3738 fi
235d1c46
RO
3739else
3740 ac_cv_path_EGREP=$EGREP
b4c522fa
IB
3741fi
3742
235d1c46 3743 fi
b4c522fa 3744fi
235d1c46
RO
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3746$as_echo "$ac_cv_path_EGREP" >&6; }
3747 EGREP="$ac_cv_path_EGREP"
b4c522fa
IB
3748
3749
235d1c46
RO
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3751$as_echo_n "checking for ANSI C header files... " >&6; }
3752if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
3753 $as_echo_n "(cached) " >&6
3754else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h. */
235d1c46
RO
3757#include <stdlib.h>
3758#include <stdarg.h>
3759#include <string.h>
3760#include <float.h>
b4c522fa
IB
3761
3762int
3763main ()
3764{
b4c522fa
IB
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
235d1c46 3771 ac_cv_header_stdc=yes
b4c522fa 3772else
235d1c46 3773 ac_cv_header_stdc=no
b4c522fa
IB
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b4c522fa 3776
235d1c46
RO
3777if test $ac_cv_header_stdc = yes; then
3778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781#include <string.h>
3782
3783_ACEOF
3784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "memchr" >/dev/null 2>&1; then :
3786
b4c522fa 3787else
235d1c46 3788 ac_cv_header_stdc=no
b4c522fa 3789fi
235d1c46 3790rm -f conftest*
b4c522fa 3791
235d1c46
RO
3792fi
3793
3794if test $ac_cv_header_stdc = yes; then
3795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798#include <stdlib.h>
b4c522fa 3799
b4c522fa 3800_ACEOF
235d1c46
RO
3801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "free" >/dev/null 2>&1; then :
3803
b4c522fa 3804else
235d1c46
RO
3805 ac_cv_header_stdc=no
3806fi
3807rm -f conftest*
3808
3809fi
3810
3811if test $ac_cv_header_stdc = yes; then
3812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813 if test "$cross_compiling" = yes; then :
3814 :
3815else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 3817/* end confdefs.h. */
235d1c46
RO
3818#include <ctype.h>
3819#include <stdlib.h>
3820#if ((' ' & 0x0FF) == 0x020)
3821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823#else
3824# define ISLOWER(c) \
3825 (('a' <= (c) && (c) <= 'i') \
3826 || ('j' <= (c) && (c) <= 'r') \
3827 || ('s' <= (c) && (c) <= 'z'))
3828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829#endif
b4c522fa 3830
235d1c46 3831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b4c522fa
IB
3832int
3833main ()
3834{
235d1c46
RO
3835 int i;
3836 for (i = 0; i < 256; i++)
3837 if (XOR (islower (i), ISLOWER (i))
3838 || toupper (i) != TOUPPER (i))
3839 return 2;
b4c522fa
IB
3840 return 0;
3841}
3842_ACEOF
235d1c46 3843if ac_fn_c_try_run "$LINENO"; then :
b4c522fa
IB
3844
3845else
235d1c46 3846 ac_cv_header_stdc=no
b4c522fa 3847fi
235d1c46
RO
3848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3849 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa 3850fi
235d1c46 3851
b4c522fa 3852fi
b4c522fa 3853fi
235d1c46
RO
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3855$as_echo "$ac_cv_header_stdc" >&6; }
3856if test $ac_cv_header_stdc = yes; then
b4c522fa 3857
235d1c46 3858$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b4c522fa 3859
235d1c46 3860fi
b4c522fa 3861
235d1c46
RO
3862# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3863for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3864 inttypes.h stdint.h unistd.h
3865do :
3866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3868"
3869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3870 cat >>confdefs.h <<_ACEOF
3871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b4c522fa 3872_ACEOF
235d1c46 3873
b4c522fa 3874fi
235d1c46 3875
b4c522fa 3876done
b4c522fa 3877
b4c522fa 3878
235d1c46
RO
3879
3880 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3881if test "x$ac_cv_header_minix_config_h" = xyes; then :
3882 MINIX=yes
3883else
3884 MINIX=
b4c522fa
IB
3885fi
3886
b4c522fa 3887
235d1c46
RO
3888 if test "$MINIX" = yes; then
3889
3890$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3891
3892
3893$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3894
3895
3896$as_echo "#define _MINIX 1" >>confdefs.h
3897
3898 fi
3899
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3902$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3903if ${ac_cv_safe_to_define___extensions__+:} false; then :
22e05272
JM
3904 $as_echo_n "(cached) " >&6
3905else
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907/* end confdefs.h. */
3908
235d1c46
RO
3909# define __EXTENSIONS__ 1
3910 $ac_includes_default
22e05272
JM
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
235d1c46
RO
3919if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_safe_to_define___extensions__=yes
3921else
3922 ac_cv_safe_to_define___extensions__=no
22e05272 3923fi
235d1c46 3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 3925fi
235d1c46
RO
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3927$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3928 test $ac_cv_safe_to_define___extensions__ = yes &&
3929 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22e05272 3930
235d1c46 3931 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
22e05272 3932
235d1c46
RO
3933 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3934
3935 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3936
3937 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3938
3939
3940
3941target_alias=${target_alias-$target}
3942
3943
3944# 1.11.1: Require that version of automake.
3945# foreign: Don't require README, INSTALL, NEWS, etc.
3946# no-define: Don't define PACKAGE and VERSION.
3947# no-dependencies: Don't generate automatic dependencies.
3948# (because it breaks when using bootstrap-lean, since some of the
3949# headers are gone at "make install" time).
3950# subdir-objects: Build objects in sub-directories.
3951# -Wall: Issue all automake warnings.
3952# -Wno-portability: Don't warn about constructs supported by GNU make.
3953# (because GCC requires GNU make anyhow).
3954# -Wno-override: Overrides used in testsuite.
3955am__api_version='1.15'
3956
3957# Find a good install program. We prefer a C program (faster),
3958# so one script is as good as another. But avoid the broken or
3959# incompatible versions:
3960# SysV /etc/install, /usr/sbin/install
3961# SunOS /usr/etc/install
3962# IRIX /sbin/install
3963# AIX /bin/install
3964# AmigaOS /C/install, which installs bootblocks on floppy discs
3965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3968# OS/2's system install, which has a completely different semantic
3969# ./install, which can be erroneously created by make from ./install.sh.
3970# Reject install programs that cannot install multiple files.
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3972$as_echo_n "checking for a BSD-compatible install... " >&6; }
3973if test -z "$INSTALL"; then
3974if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
3975 $as_echo_n "(cached) " >&6
3976else
235d1c46 3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
235d1c46
RO
3982 # Account for people who put trailing slashes in PATH elements.
3983case $as_dir/ in #((
3984 ./ | .// | /[cC]/* | \
3985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3986 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3987 /usr/ucb/* ) ;;
3988 *)
3989 # OSF1 and SCO ODT 3.0 have their own names for install.
3990 # Don't use installbsd from OSF since it installs stuff as root
3991 # by default.
3992 for ac_prog in ginstall scoinst install; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3995 if test $ac_prog = install &&
3996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997 # AIX install. It has an incompatible calling convention.
3998 :
3999 elif test $ac_prog = install &&
4000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4001 # program-specific install script used by HP pwplus--don't use.
4002 :
4003 else
4004 rm -rf conftest.one conftest.two conftest.dir
4005 echo one > conftest.one
4006 echo two > conftest.two
4007 mkdir conftest.dir
4008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4009 test -s conftest.one && test -s conftest.two &&
4010 test -s conftest.dir/conftest.one &&
4011 test -s conftest.dir/conftest.two
4012 then
4013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4014 break 3
4015 fi
4016 fi
4017 fi
4018 done
4019 done
4020 ;;
4021esac
4022
b4c522fa
IB
4023 done
4024IFS=$as_save_IFS
4025
235d1c46
RO
4026rm -rf conftest.one conftest.two conftest.dir
4027
b4c522fa 4028fi
235d1c46
RO
4029 if test "${ac_cv_path_install+set}" = set; then
4030 INSTALL=$ac_cv_path_install
4031 else
4032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for INSTALL within a source directory, because that will
4034 # break other packages using the cache if that directory is
4035 # removed, or if the value is a relative name.
4036 INSTALL=$ac_install_sh
4037 fi
b4c522fa 4038fi
235d1c46
RO
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4040$as_echo "$INSTALL" >&6; }
4041
4042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4043# It thinks the first close brace ends the variable substitution.
4044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4045
4046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4047
4048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4051$as_echo_n "checking whether build environment is sane... " >&6; }
4052# Reject unsafe characters in $srcdir or the absolute working directory
4053# name. Accept space and tab only in the latter.
4054am_lf='
4055'
4056case `pwd` in
4057 *[\\\"\#\$\&\'\`$am_lf]*)
4058 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4059esac
4060case $srcdir in
4061 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4062 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4063esac
4064
4065# Do 'set' in a subshell so we don't clobber the current shell's
4066# arguments. Must try -L first in case configure is actually a
4067# symlink; some systems play weird games with the mod time of symlinks
4068# (eg FreeBSD returns the mod time of the symlink's containing
4069# directory).
4070if (
4071 am_has_slept=no
4072 for am_try in 1 2; do
4073 echo "timestamp, slept: $am_has_slept" > conftest.file
4074 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4075 if test "$*" = "X"; then
4076 # -L didn't work.
4077 set X `ls -t "$srcdir/configure" conftest.file`
4078 fi
4079 if test "$*" != "X $srcdir/configure conftest.file" \
4080 && test "$*" != "X conftest.file $srcdir/configure"; then
4081
4082 # If neither matched, then we have a broken ls. This can happen
4083 # if, for instance, CONFIG_SHELL is bash and it inherits a
4084 # broken ls alias from the environment. This has actually
4085 # happened. Such a system could not be considered "sane".
4086 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4087 alias in your environment" "$LINENO" 5
4088 fi
4089 if test "$2" = conftest.file || test $am_try -eq 2; then
4090 break
4091 fi
4092 # Just in case.
4093 sleep 1
4094 am_has_slept=yes
4095 done
4096 test "$2" = conftest.file
4097 )
4098then
4099 # Ok.
4100 :
b4c522fa 4101else
235d1c46
RO
4102 as_fn_error $? "newly created file is older than distributed files!
4103Check your system clock" "$LINENO" 5
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
4107# If we didn't sleep, we still need to ensure time stamps of config.status and
4108# generated files are strictly newer.
4109am_sleep_pid=
4110if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4111 ( sleep 1 ) &
4112 am_sleep_pid=$!
b4c522fa
IB
4113fi
4114
235d1c46
RO
4115rm -f conftest.file
4116
4117test "$program_prefix" != NONE &&
4118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4119# Use a double $ so make ignores it.
4120test "$program_suffix" != NONE &&
4121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4122# Double any \ or $.
4123# By default was `s,x,x', remove it if useless.
4124ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4125program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b4c522fa 4126
235d1c46
RO
4127if test x"${MISSING+set}" != xset; then
4128 case $am_aux_dir in
4129 *\ * | *\ *)
4130 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4131 *)
4132 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4133 esac
b4c522fa 4134fi
235d1c46
RO
4135# Use eval to expand $SHELL
4136if eval "$MISSING --is-lightweight"; then
4137 am_missing_run="$MISSING "
4138else
4139 am_missing_run=
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4141$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4142fi
4143
4144if test x"${install_sh+set}" != xset; then
4145 case $am_aux_dir in
4146 *\ * | *\ *)
4147 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4148 *)
4149 install_sh="\${SHELL} $am_aux_dir/install-sh"
4150 esac
4151fi
4152
4153# Installed binaries are usually stripped using 'strip' when the user
4154# run "make install-strip". However 'strip' might not be the right
4155# tool to use in cross-compilation environments, therefore Automake
4156# will honor the 'STRIP' environment variable to overrule this program.
4157if test "$cross_compiling" != no; then
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160set dummy ${ac_tool_prefix}strip; ac_word=$2
b4c522fa
IB
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4163if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
4164 $as_echo_n "(cached) " >&6
4165else
235d1c46
RO
4166 if test -n "$STRIP"; then
4167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4c522fa
IB
4168else
4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b4c522fa
IB
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180done
4181 done
4182IFS=$as_save_IFS
4183
4184fi
4185fi
235d1c46
RO
4186STRIP=$ac_cv_prog_STRIP
4187if test -n "$STRIP"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4189$as_echo "$STRIP" >&6; }
b4c522fa
IB
4190else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192$as_echo "no" >&6; }
4193fi
4194
b4c522fa 4195
235d1c46
RO
4196fi
4197if test -z "$ac_cv_prog_STRIP"; then
4198 ac_ct_STRIP=$STRIP
4199 # Extract the first word of "strip", so it can be a program name with args.
4200set dummy strip; ac_word=$2
b4c522fa
IB
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4203if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
4204 $as_echo_n "(cached) " >&6
4205else
235d1c46
RO
4206 if test -n "$ac_ct_STRIP"; then
4207 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b4c522fa
IB
4208else
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4216 ac_cv_prog_ac_ct_STRIP="strip"
b4c522fa
IB
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220done
4221 done
4222IFS=$as_save_IFS
4223
4224fi
4225fi
235d1c46
RO
4226ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4227if test -n "$ac_ct_STRIP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4229$as_echo "$ac_ct_STRIP" >&6; }
b4c522fa
IB
4230else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233fi
4234
235d1c46
RO
4235 if test "x$ac_ct_STRIP" = x; then
4236 STRIP=":"
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239yes:)
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242ac_tool_warned=yes ;;
4243esac
4244 STRIP=$ac_ct_STRIP
b4c522fa 4245 fi
b4c522fa 4246else
235d1c46 4247 STRIP="$ac_cv_prog_STRIP"
b4c522fa
IB
4248fi
4249
b4c522fa 4250fi
235d1c46 4251INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b4c522fa 4252
235d1c46
RO
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4254$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4255if test -z "$MKDIR_P"; then
4256 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
4257 $as_echo_n "(cached) " >&6
4258else
235d1c46
RO
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
b4c522fa
IB
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
235d1c46
RO
4264 for ac_prog in mkdir gmkdir; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4267 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4268 'mkdir (GNU coreutils) '* | \
4269 'mkdir (coreutils) '* | \
4270 'mkdir (fileutils) '4.1*)
4271 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4272 break 3;;
4273 esac
4274 done
4275 done
b4c522fa
IB
4276 done
4277IFS=$as_save_IFS
4278
4279fi
b4c522fa 4280
235d1c46
RO
4281 test -d ./--version && rmdir ./--version
4282 if test "${ac_cv_path_mkdir+set}" = set; then
4283 MKDIR_P="$ac_cv_path_mkdir -p"
4284 else
4285 # As a last resort, use the slow shell script. Don't cache a
4286 # value for MKDIR_P within a source directory, because that will
4287 # break other packages using the cache if that directory is
4288 # removed, or if the value is a relative name.
4289 MKDIR_P="$ac_install_sh -d"
4290 fi
b4c522fa 4291fi
235d1c46
RO
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4293$as_echo "$MKDIR_P" >&6; }
4294
4295for ac_prog in gawk mawk nawk awk
4296do
4297 # Extract the first word of "$ac_prog", so it can be a program name with args.
4298set dummy $ac_prog; ac_word=$2
b4c522fa
IB
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4301if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
4302 $as_echo_n "(cached) " >&6
4303else
235d1c46
RO
4304 if test -n "$AWK"; then
4305 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b4c522fa
IB
4306else
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4314 ac_cv_prog_AWK="$ac_prog"
b4c522fa
IB
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318done
4319 done
4320IFS=$as_save_IFS
4321
4322fi
4323fi
235d1c46
RO
4324AWK=$ac_cv_prog_AWK
4325if test -n "$AWK"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4327$as_echo "$AWK" >&6; }
b4c522fa
IB
4328else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330$as_echo "no" >&6; }
4331fi
4332
b4c522fa 4333
235d1c46
RO
4334 test -n "$AWK" && break
4335done
b4c522fa
IB
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4339set x ${MAKE-make}
4340ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4341if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
4342 $as_echo_n "(cached) " >&6
4343else
4344 cat >conftest.make <<\_ACEOF
4345SHELL = /bin/sh
4346all:
4347 @echo '@@@%%%=$(MAKE)=@@@%%%'
4348_ACEOF
22e05272 4349# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
4350case `${MAKE-make} -f conftest.make 2>/dev/null` in
4351 *@@@%%%=?*=@@@%%%*)
4352 eval ac_cv_prog_make_${ac_make}_set=yes;;
4353 *)
4354 eval ac_cv_prog_make_${ac_make}_set=no;;
4355esac
4356rm -f conftest.make
4357fi
4358if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360$as_echo "yes" >&6; }
4361 SET_MAKE=
4362else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364$as_echo "no" >&6; }
4365 SET_MAKE="MAKE=${MAKE-make}"
4366fi
4367
235d1c46
RO
4368rm -rf .tst 2>/dev/null
4369mkdir .tst 2>/dev/null
4370if test -d .tst; then
4371 am__leading_dot=.
4372else
4373 am__leading_dot=_
4374fi
4375rmdir .tst 2>/dev/null
b4c522fa 4376
235d1c46
RO
4377# Check whether --enable-silent-rules was given.
4378if test "${enable_silent_rules+set}" = set; then :
4379 enableval=$enable_silent_rules;
4380fi
b4c522fa 4381
235d1c46
RO
4382case $enable_silent_rules in # (((
4383 yes) AM_DEFAULT_VERBOSITY=0;;
4384 no) AM_DEFAULT_VERBOSITY=1;;
4385 *) AM_DEFAULT_VERBOSITY=1;;
b4c522fa 4386esac
235d1c46
RO
4387am_make=${MAKE-make}
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4389$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4390if ${am_cv_make_support_nested_variables+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392else
4393 if $as_echo 'TRUE=$(BAR$(V))
4394BAR0=false
4395BAR1=true
4396V=1
4397am__doit:
4398 @$(TRUE)
4399.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4400 am_cv_make_support_nested_variables=yes
4401else
4402 am_cv_make_support_nested_variables=no
4403fi
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4406$as_echo "$am_cv_make_support_nested_variables" >&6; }
4407if test $am_cv_make_support_nested_variables = yes; then
4408 AM_V='$(V)'
4409 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4410else
4411 AM_V=$AM_DEFAULT_VERBOSITY
4412 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4413fi
4414AM_BACKSLASH='\'
b4c522fa 4415
235d1c46
RO
4416if test "`cd $srcdir && pwd`" != "`pwd`"; then
4417 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4418 # is not polluted with repeated "-I."
4419 am__isrc=' -I$(srcdir)'
4420 # test to see if srcdir already configured
4421 if test -f $srcdir/config.status; then
4422 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4423 fi
4424fi
b4c522fa 4425
235d1c46
RO
4426# test whether we have cygpath
4427if test -z "$CYGPATH_W"; then
4428 if (cygpath --version) >/dev/null 2>/dev/null; then
4429 CYGPATH_W='cygpath -w'
4430 else
4431 CYGPATH_W=echo
4432 fi
4433fi
b4c522fa 4434
b4c522fa 4435
235d1c46
RO
4436# Define the identity of the package.
4437 PACKAGE='libphobos'
4438 VERSION='version-unused'
b4c522fa
IB
4439
4440
235d1c46 4441# Some tools Automake needs.
b4c522fa 4442
235d1c46 4443ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b4c522fa
IB
4444
4445
235d1c46 4446AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
b4c522fa
IB
4447
4448
235d1c46 4449AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
b4c522fa
IB
4450
4451
235d1c46 4452AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
b4c522fa
IB
4453
4454
235d1c46 4455MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
b4c522fa 4456
235d1c46
RO
4457# For better backward compatibility. To be removed once Automake 1.9.x
4458# dies out for good. For more background, see:
4459# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4460# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4461mkdir_p='$(MKDIR_P)'
b4c522fa 4462
235d1c46
RO
4463# We need awk for the "check" target (and possibly the TAP driver). The
4464# system "awk" is bad on some platforms.
4465# Always define AMTAR for backward compatibility. Yes, it's still used
4466# in the wild :-( We should find a proper way to deprecate it ...
4467AMTAR='$${TAR-tar}'
b4c522fa 4468
b4c522fa 4469
235d1c46
RO
4470# We'll loop over all known methods to create a tar archive until one works.
4471_am_tools='gnutar pax cpio none'
b4c522fa 4472
235d1c46 4473am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b4c522fa 4474
b4c522fa 4475
b4c522fa 4476
b4c522fa 4477
b4c522fa 4478
b4c522fa 4479
235d1c46
RO
4480# POSIX will say in a future version that running "rm -f" with no argument
4481# is OK; and we want to be able to make that assumption in our Makefile
4482# recipes. So use an aggressive probe to check that the usage we want is
4483# actually supported "in the wild" to an acceptable degree.
4484# See automake bug#10828.
4485# To make any issue more visible, cause the running configure to be aborted
4486# by default if the 'rm' program in use doesn't match our expectations; the
4487# user can still override this though.
4488if rm -f && rm -fr && rm -rf; then : OK; else
4489 cat >&2 <<'END'
4490Oops!
4491
4492Your 'rm' program seems unable to run without file operands specified
4493on the command line, even when the '-f' option is present. This is contrary
4494to the behaviour of most rm programs out there, and not conforming with
4495the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
b4c522fa 4496
235d1c46
RO
4497Please tell bug-automake@gnu.org about your system, including the value
4498of your $PATH and any error possibly output before this message. This
4499can help us improve future automake versions.
b4c522fa 4500
235d1c46
RO
4501END
4502 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4503 echo 'Configuration will proceed anyway, since you have set the' >&2
4504 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4505 echo >&2
4506 else
4507 cat >&2 <<'END'
4508Aborting the configuration process, to ensure you take notice of the issue.
b4c522fa 4509
235d1c46
RO
4510You can download and install GNU coreutils to get an 'rm' implementation
4511that behaves properly: <http://www.gnu.org/software/coreutils/>.
b4c522fa 4512
235d1c46
RO
4513If you want to complete the configuration process using your problematic
4514'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4515to "yes", and re-run configure.
b4c522fa 4516
235d1c46
RO
4517END
4518 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4519 fi
4520fi
b4c522fa
IB
4521
4522
4523
4524
235d1c46 4525# By default we simply use the C compiler to build assembly code.
b4c522fa 4526
235d1c46
RO
4527test "${CCAS+set}" = set || CCAS=$CC
4528test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
b4c522fa
IB
4529
4530
4531
235d1c46
RO
4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4539set dummy ${ac_tool_prefix}gcc; ac_word=$2
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541$as_echo_n "checking for $ac_word... " >&6; }
4542if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4543 $as_echo_n "(cached) " >&6
4544else
235d1c46
RO
4545 if test -n "$CC"; then
4546 ac_cv_prog_CC="$CC" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
b4c522fa 4553 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
b4c522fa
IB
4560 done
4561IFS=$as_save_IFS
b4c522fa
IB
4562
4563fi
235d1c46
RO
4564fi
4565CC=$ac_cv_prog_CC
4566if test -n "$CC"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4568$as_echo "$CC" >&6; }
4569else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571$as_echo "no" >&6; }
4572fi
b4c522fa
IB
4573
4574
235d1c46
RO
4575fi
4576if test -z "$ac_cv_prog_CC"; then
4577 ac_ct_CC=$CC
4578 # Extract the first word of "gcc", so it can be a program name with args.
4579set dummy gcc; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4583 $as_echo_n "(cached) " >&6
4584else
235d1c46
RO
4585 if test -n "$ac_ct_CC"; then
4586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
b4c522fa
IB
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
b4c522fa 4593 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_CC="gcc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
b4c522fa
IB
4600 done
4601IFS=$as_save_IFS
235d1c46
RO
4602
4603fi
4604fi
4605ac_ct_CC=$ac_cv_prog_ac_ct_CC
4606if test -n "$ac_ct_CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608$as_echo "$ac_ct_CC" >&6; }
b4c522fa 4609else
235d1c46
RO
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
b4c522fa
IB
4612fi
4613
235d1c46
RO
4614 if test "x$ac_ct_CC" = x; then
4615 CC=""
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618yes:)
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621ac_tool_warned=yes ;;
4622esac
4623 CC=$ac_ct_CC
4624 fi
4625else
4626 CC="$ac_cv_prog_CC"
b4c522fa 4627fi
b4c522fa 4628
235d1c46
RO
4629if test -z "$CC"; then
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4632set dummy ${ac_tool_prefix}cc; ac_word=$2
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
4635if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4636 $as_echo_n "(cached) " >&6
4637else
235d1c46
RO
4638 if test -n "$CC"; then
4639 ac_cv_prog_CC="$CC" # Let the user override the test.
4640else
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
b4c522fa
IB
4643do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
b4c522fa 4646 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_CC="${ac_tool_prefix}cc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652done
b4c522fa
IB
4653 done
4654IFS=$as_save_IFS
b4c522fa 4655
b4c522fa 4656fi
235d1c46
RO
4657fi
4658CC=$ac_cv_prog_CC
4659if test -n "$CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4661$as_echo "$CC" >&6; }
4662else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
b4c522fa
IB
4666
4667
235d1c46
RO
4668 fi
4669fi
4670if test -z "$CC"; then
4671 # Extract the first word of "cc", so it can be a program name with args.
4672set dummy cc; ac_word=$2
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674$as_echo_n "checking for $ac_word... " >&6; }
4675if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4676 $as_echo_n "(cached) " >&6
4677else
235d1c46
RO
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680else
4681 ac_prog_rejected=no
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
b4c522fa
IB
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
b4c522fa 4687 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4690 ac_prog_rejected=yes
4691 continue
4692 fi
4693 ac_cv_prog_CC="cc"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
b4c522fa
IB
4698 done
4699IFS=$as_save_IFS
b4c522fa 4700
235d1c46
RO
4701if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_CC
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set CC to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4711 fi
b4c522fa 4712fi
b4c522fa
IB
4713fi
4714fi
235d1c46
RO
4715CC=$ac_cv_prog_CC
4716if test -n "$CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4718$as_echo "$CC" >&6; }
b4c522fa
IB
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
b4c522fa
IB
4723
4724
b4c522fa 4725fi
235d1c46
RO
4726if test -z "$CC"; then
4727 if test -n "$ac_tool_prefix"; then
4728 for ac_prog in cl.exe
b4c522fa
IB
4729 do
4730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4734if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4735 $as_echo_n "(cached) " >&6
4736else
235d1c46
RO
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752 done
4753IFS=$as_save_IFS
4754
4755fi
4756fi
235d1c46
RO
4757CC=$ac_cv_prog_CC
4758if test -n "$CC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760$as_echo "$CC" >&6; }
b4c522fa
IB
4761else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765
4766
235d1c46 4767 test -n "$CC" && break
b4c522fa
IB
4768 done
4769fi
235d1c46
RO
4770if test -z "$CC"; then
4771 ac_ct_CC=$CC
4772 for ac_prog in cl.exe
b4c522fa
IB
4773do
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775set dummy $ac_prog; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4778if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4779 $as_echo_n "(cached) " >&6
4780else
235d1c46
RO
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4791 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795done
4796 done
4797IFS=$as_save_IFS
4798
4799fi
4800fi
235d1c46
RO
4801ac_ct_CC=$ac_cv_prog_ac_ct_CC
4802if test -n "$ac_ct_CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4804$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
4805else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
235d1c46 4811 test -n "$ac_ct_CC" && break
b4c522fa
IB
4812done
4813
235d1c46
RO
4814 if test "x$ac_ct_CC" = x; then
4815 CC=""
b4c522fa
IB
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818yes:)
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821ac_tool_warned=yes ;;
4822esac
235d1c46 4823 CC=$ac_ct_CC
b4c522fa
IB
4824 fi
4825fi
4826
b4c522fa 4827fi
b4c522fa
IB
4828
4829
235d1c46
RO
4830test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4832as_fn_error $? "no acceptable C compiler found in \$PATH
4833See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 4834
235d1c46
RO
4835# Provide some information about the compiler.
4836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4837set X $ac_compile
4838ac_compiler=$2
4839for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4841case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844esac
4845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846$as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4848 ac_status=$?
4849 if test -s conftest.err; then
4850 sed '10a\
4851... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 fi
4855 rm -f conftest.er1 conftest.err
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4858done
b4c522fa 4859
235d1c46
RO
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4861$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4862if ${ac_cv_c_compiler_gnu+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h. */
b4c522fa 4867
235d1c46
RO
4868int
4869main ()
4870{
4871#ifndef __GNUC__
4872 choke me
4873#endif
b4c522fa 4874
235d1c46
RO
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_compiler_gnu=yes
b4c522fa 4881else
235d1c46 4882 ac_compiler_gnu=no
b4c522fa 4883fi
235d1c46
RO
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885ac_cv_c_compiler_gnu=$ac_compiler_gnu
b4c522fa 4886
235d1c46
RO
4887fi
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4889$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4890if test $ac_compiler_gnu = yes; then
4891 GCC=yes
b4c522fa 4892else
235d1c46 4893 GCC=
b4c522fa 4894fi
235d1c46
RO
4895ac_test_CFLAGS=${CFLAGS+set}
4896ac_save_CFLAGS=$CFLAGS
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4898$as_echo_n "checking whether $CC accepts -g... " >&6; }
4899if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4900 $as_echo_n "(cached) " >&6
4901else
235d1c46
RO
4902 ac_save_c_werror_flag=$ac_c_werror_flag
4903 ac_c_werror_flag=yes
4904 ac_cv_prog_cc_g=no
4905 CFLAGS="-g"
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
b4c522fa 4908
235d1c46
RO
4909int
4910main ()
4911{
b4c522fa 4912
235d1c46
RO
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_g=yes
4919else
4920 CFLAGS=""
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h. */
b4c522fa 4923
235d1c46
RO
4924int
4925main ()
4926{
b4c522fa 4927
235d1c46
RO
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932if ac_fn_c_try_compile "$LINENO"; then :
b4c522fa 4933
235d1c46
RO
4934else
4935 ac_c_werror_flag=$ac_save_c_werror_flag
4936 CFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h. */
b4c522fa 4939
235d1c46
RO
4940int
4941main ()
4942{
b4c522fa 4943
235d1c46
RO
4944 ;
4945 return 0;
4946}
4947_ACEOF
4948if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_cv_prog_cc_g=yes
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_c_werror_flag=$ac_save_c_werror_flag
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4959$as_echo "$ac_cv_prog_cc_g" >&6; }
4960if test "$ac_test_CFLAGS" = set; then
4961 CFLAGS=$ac_save_CFLAGS
4962elif test $ac_cv_prog_cc_g = yes; then
4963 if test "$GCC" = yes; then
4964 CFLAGS="-g -O2"
4965 else
4966 CFLAGS="-g"
4967 fi
4968else
4969 if test "$GCC" = yes; then
4970 CFLAGS="-O2"
4971 else
4972 CFLAGS=
4973 fi
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4976$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4977if ${ac_cv_prog_cc_c89+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979else
4980 ac_cv_prog_cc_c89=no
4981ac_save_CC=$CC
4982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984#include <stdarg.h>
4985#include <stdio.h>
4986struct stat;
4987/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4988struct buf { int x; };
4989FILE * (*rcsopen) (struct buf *, struct stat *, int);
4990static char *e (p, i)
4991 char **p;
4992 int i;
4993{
4994 return p[i];
4995}
4996static char *f (char * (*g) (char **, int), char **p, ...)
4997{
4998 char *s;
4999 va_list v;
5000 va_start (v,p);
5001 s = g (p, va_arg (v,int));
5002 va_end (v);
5003 return s;
5004}
5005
5006/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5007 function prototypes and stuff, but not '\xHH' hex character constants.
5008 These don't provoke an error unfortunately, instead are silently treated
5009 as 'x'. The following induces an error, until -std is added to get
5010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5011 array size at least. It's necessary to write '\x00'==0 to get something
5012 that's true only with -std. */
5013int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5014
5015/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5016 inside strings and character constants. */
5017#define FOO(x) 'x'
5018int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5019
5020int test (int i, double x);
5021struct s1 {int (*f) (int a);};
5022struct s2 {int (*f) (double a);};
5023int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5024int argc;
5025char **argv;
5026int
5027main ()
5028{
5029return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5036do
5037 CC="$ac_save_CC $ac_arg"
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_c89=$ac_arg
5040fi
5041rm -f core conftest.err conftest.$ac_objext
5042 test "x$ac_cv_prog_cc_c89" != "xno" && break
5043done
5044rm -f conftest.$ac_ext
5045CC=$ac_save_CC
5046
5047fi
5048# AC_CACHE_VAL
5049case "x$ac_cv_prog_cc_c89" in
5050 x)
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5052$as_echo "none needed" >&6; } ;;
5053 xno)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5055$as_echo "unsupported" >&6; } ;;
5056 *)
5057 CC="$CC $ac_cv_prog_cc_c89"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5059$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5060esac
5061if test "x$ac_cv_prog_cc_c89" != xno; then :
5062
5063fi
5064
5065ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5077$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5078if ${am_cv_prog_cc_c_o+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h. */
5083
5084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092 # Make sure it works both with $CC and with simple cc.
5093 # Following AC_PROG_CC_C_O, we do the test twice because some
5094 # compilers refuse to overwrite an existing .o file with -o,
5095 # though they will create one.
5096 am_cv_prog_cc_c_o=yes
5097 for am_i in 1 2; do
5098 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5099 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } \
5103 && test -f conftest2.$ac_objext; then
5104 : OK
5105 else
5106 am_cv_prog_cc_c_o=no
5107 break
5108 fi
5109 done
5110 rm -f core conftest*
5111 unset am_i
5112fi
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5114$as_echo "$am_cv_prog_cc_c_o" >&6; }
5115if test "$am_cv_prog_cc_c_o" != yes; then
5116 # Losing compiler, so override with the script.
5117 # FIXME: It is wrong to rewrite CC.
5118 # But if we don't then we get into trouble of one sort or another.
5119 # A longer-term fix would be to have automake use am__CC in this case,
5120 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5121 CC="$am_aux_dir/compile $CC"
5122fi
5123ac_ext=c
5124ac_cpp='$CPP $CPPFLAGS'
5125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129
5130ac_ext=d
5131ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5132ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133ac_compiler_gnu=yes
5134if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}gdc; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if ${ac_cv_prog_GDC+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141else
5142 if test -n "$GDC"; then
5143 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156done
5157 done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162GDC=$ac_cv_prog_GDC
5163if test -n "$GDC"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5165$as_echo "$GDC" >&6; }
5166else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172fi
5173if test -z "$ac_cv_prog_GDC"; then
5174 ac_ct_GDC=$GDC
5175 # Extract the first word of "gdc", so it can be a program name with args.
5176set dummy gdc; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181else
5182 if test -n "$ac_ct_GDC"; then
5183 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_GDC="gdc"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197 done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5203if test -n "$ac_ct_GDC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5205$as_echo "$ac_ct_GDC" >&6; }
5206else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211 if test "x$ac_ct_GDC" = x; then
5212 GDC=""
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 GDC=$ac_ct_GDC
5221 fi
5222else
5223 GDC="$ac_cv_prog_GDC"
5224fi
5225
5226if test -z "$GDC"; then
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}gdc; ac_word=$2
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if ${ac_cv_prog_GDC+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234else
5235 if test -n "$GDC"; then
5236 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250 done
5251IFS=$as_save_IFS
5252
5253fi
5254fi
5255GDC=$ac_cv_prog_GDC
5256if test -n "$GDC"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5258$as_echo "$GDC" >&6; }
5259else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265 fi
5266fi
5267if test -z "$GDC"; then
5268 # Extract the first word of "gdc", so it can be a program name with args.
5269set dummy gdc; ac_word=$2
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if ${ac_cv_prog_GDC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5277else
5278 ac_prog_rejected=no
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5287 ac_prog_rejected=yes
5288 continue
5289 fi
5290 ac_cv_prog_GDC="gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294done
5295 done
5296IFS=$as_save_IFS
5297
5298if test $ac_prog_rejected = yes; then
5299 # We found a bogon in the path, so make sure we never use it.
5300 set dummy $ac_cv_prog_GDC
5301 shift
5302 if test $# != 0; then
5303 # We chose a different compiler from the bogus one.
5304 # However, it has the same basename, so the bogon will be chosen
5305 # first if we set GDC to just the basename; use the full file name.
5306 shift
5307 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5308 fi
5309fi
5310fi
5311fi
5312GDC=$ac_cv_prog_GDC
5313if test -n "$GDC"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5315$as_echo "$GDC" >&6; }
5316else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
5319fi
5320
5321
5322fi
5323
5324
5325# Provide some information about the compiler.
5326$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5327set X $ac_compile
5328ac_compiler=$2
5329{ { ac_try="$ac_compiler --version >&5"
5330case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333esac
5334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335$as_echo "$ac_try_echo"; } >&5
5336 (eval "$ac_compiler --version >&5") 2>conftest.err
5337 ac_status=$?
5338 if test -s conftest.err; then
5339 sed '10a\
5340... rest of stderr output deleted ...
5341 10q' conftest.err >conftest.er1
5342 cat conftest.er1 >&5
5343 fi
5344 rm -f conftest.er1 conftest.err
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }
5347ac_ext=c
5348ac_cpp='$CPP $CPPFLAGS'
5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5355$as_echo_n "checking for absolute libphobos source path... " >&6; }
5356if ${phobos_cv_abs_srcdir+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5362$as_echo "$phobos_cv_abs_srcdir" >&6; }
5363 if test -d "$phobos_cv_abs_srcdir"; then :
5364
5365else
5366 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5367fi
5368
5369
5370
5371
5372 gdc_save_DFLAGS=$GDCFLAGS
5373 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5374
5375 ac_ext=d
5376ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5377ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=yes
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5381$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5382 cat > conftest.$ac_ext <<_ACEOF
5383module mod;
5384
5385
5386extern(C) int main() {
5387 return 0;
5388}
5389_ACEOF
5390if ac_fn_d_try_compile "$LINENO"; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392$as_echo "yes" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5397fi
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406 GDCFLAGS=$gdc_save_DFLAGS
5407
5408
5409
5410
5411
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5414$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5415 # Check whether --enable-maintainer-mode was given.
5416if test "${enable_maintainer_mode+set}" = set; then :
5417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5418else
5419 USE_MAINTAINER_MODE=no
5420fi
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5423$as_echo "$USE_MAINTAINER_MODE" >&6; }
5424 if test $USE_MAINTAINER_MODE = yes; then
5425 MAINTAINER_MODE_TRUE=
5426 MAINTAINER_MODE_FALSE='#'
5427else
5428 MAINTAINER_MODE_TRUE='#'
5429 MAINTAINER_MODE_FALSE=
5430fi
5431
5432 MAINT=$MAINTAINER_MODE_TRUE
5433
5434
5435if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5437set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_RANLIB+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442else
5443 if test -n "$RANLIB"; then
5444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457done
5458 done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463RANLIB=$ac_cv_prog_RANLIB
5464if test -n "$RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5466$as_echo "$RANLIB" >&6; }
5467else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472
5473fi
5474if test -z "$ac_cv_prog_RANLIB"; then
5475 ac_ct_RANLIB=$RANLIB
5476 # Extract the first word of "ranlib", so it can be a program name with args.
5477set dummy ranlib; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 if test -n "$ac_ct_RANLIB"; then
5484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_RANLIB="ranlib"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498 done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5504if test -n "$ac_ct_RANLIB"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5506$as_echo "$ac_ct_RANLIB" >&6; }
5507else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512 if test "x$ac_ct_RANLIB" = x; then
5513 RANLIB=":"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516yes:)
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519ac_tool_warned=yes ;;
5520esac
5521 RANLIB=$ac_ct_RANLIB
5522 fi
5523else
5524 RANLIB="$ac_cv_prog_RANLIB"
5525fi
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5529$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5530set x ${MAKE-make}
5531ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5532if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534else
5535 cat >conftest.make <<\_ACEOF
5536SHELL = /bin/sh
5537all:
5538 @echo '@@@%%%=$(MAKE)=@@@%%%'
5539_ACEOF
5540# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5541case `${MAKE-make} -f conftest.make 2>/dev/null` in
5542 *@@@%%%=?*=@@@%%%*)
5543 eval ac_cv_prog_make_${ac_make}_set=yes;;
5544 *)
5545 eval ac_cv_prog_make_${ac_make}_set=no;;
5546esac
5547rm -f conftest.make
5548fi
5549if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551$as_echo "yes" >&6; }
5552 SET_MAKE=
5553else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555$as_echo "no" >&6; }
5556 SET_MAKE="MAKE=${MAKE-make}"
5557fi
5558
5559
5560# This should be inherited in the recursive make, but ensure it is defined.
5561test "$AR" || AR=ar
5562
5563
5564CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5565
5566
5567
5568# Enable libtool
5569case `pwd` in
5570 *\ * | *\ *)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5572$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5573esac
5574
5575
5576
5577macro_version='2.2.7a'
5578macro_revision='1.3134'
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592ltmain="$ac_aux_dir/ltmain.sh"
5593
5594# Backslashify metacharacters that are still active within
5595# double-quoted strings.
5596sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5597
5598# Same as above, but do not quote variable references.
5599double_quote_subst='s/\(["`\\]\)/\\\1/g'
5600
5601# Sed substitution to delay expansion of an escaped shell variable in a
5602# double_quote_subst'ed string.
5603delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5604
5605# Sed substitution to delay expansion of an escaped single quote.
5606delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5607
5608# Sed substitution to avoid accidental globbing in evaled expressions
5609no_glob_subst='s/\*/\\\*/g'
5610
5611ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5612ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5613ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5616$as_echo_n "checking how to print strings... " >&6; }
5617# Test print first, because it will be a builtin if present.
5618if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5619 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5620 ECHO='print -r --'
5621elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5622 ECHO='printf %s\n'
5623else
5624 # Use this function as a fallback that always works.
5625 func_fallback_echo ()
5626 {
5627 eval 'cat <<_LTECHO_EOF
5628$1
5629_LTECHO_EOF'
5630 }
5631 ECHO='func_fallback_echo'
5632fi
5633
5634# func_echo_all arg...
5635# Invoke $ECHO with all args, space-separated.
5636func_echo_all ()
5637{
5638 $ECHO ""
5639}
5640
5641case "$ECHO" in
5642 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5643$as_echo "printf" >&6; } ;;
5644 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5645$as_echo "print -r" >&6; } ;;
5646 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5647$as_echo "cat" >&6; } ;;
5648esac
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5664$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5665if ${ac_cv_path_SED+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667else
5668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5669 for ac_i in 1 2 3 4 5 6 7; do
5670 ac_script="$ac_script$as_nl$ac_script"
5671 done
5672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5673 { ac_script=; unset ac_script;}
5674 if test -z "$SED"; then
5675 ac_path_SED_found=false
5676 # Loop through the user's path and test for each of PROGNAME-LIST
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_prog in sed gsed; do
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5685 as_fn_executable_p "$ac_path_SED" || continue
5686# Check for GNU ac_path_SED and select it if it is found.
5687 # Check for GNU $ac_path_SED
5688case `"$ac_path_SED" --version 2>&1` in
5689*GNU*)
5690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5691*)
5692 ac_count=0
5693 $as_echo_n 0123456789 >"conftest.in"
5694 while :
5695 do
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 $as_echo '' >> "conftest.nl"
5700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5702 as_fn_arith $ac_count + 1 && ac_count=$as_val
5703 if test $ac_count -gt ${ac_path_SED_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_SED="$ac_path_SED"
5706 ac_path_SED_max=$ac_count
5707 fi
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5710 done
5711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5712esac
5713
5714 $ac_path_SED_found && break 3
5715 done
5716 done
5717 done
5718IFS=$as_save_IFS
5719 if test -z "$ac_cv_path_SED"; then
5720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5721 fi
5722else
5723 ac_cv_path_SED=$SED
5724fi
5725
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5728$as_echo "$ac_cv_path_SED" >&6; }
5729 SED="$ac_cv_path_SED"
5730 rm -f conftest.sed
5731
5732test -z "$SED" && SED=sed
5733Xsed="$SED -e 1s/^X//"
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5746$as_echo_n "checking for fgrep... " >&6; }
5747if ${ac_cv_path_FGREP+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5751 then ac_cv_path_FGREP="$GREP -F"
5752 else
5753 if test -z "$FGREP"; then
5754 ac_path_FGREP_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_prog in fgrep; do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5764 as_fn_executable_p "$ac_path_FGREP" || continue
5765# Check for GNU ac_path_FGREP and select it if it is found.
5766 # Check for GNU $ac_path_FGREP
5767case `"$ac_path_FGREP" --version 2>&1` in
5768*GNU*)
5769 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5770*)
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'FGREP' >> "conftest.nl"
5779 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_FGREP="$ac_path_FGREP"
5785 ac_path_FGREP_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791esac
5792
5793 $ac_path_FGREP_found && break 3
5794 done
5795 done
5796 done
5797IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_FGREP"; then
5799 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5800 fi
5801else
5802 ac_cv_path_FGREP=$FGREP
5803fi
5804
5805 fi
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5808$as_echo "$ac_cv_path_FGREP" >&6; }
5809 FGREP="$ac_cv_path_FGREP"
5810
5811
5812test -z "$GREP" && GREP=grep
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832# Check whether --with-gnu-ld was given.
5833if test "${with_gnu_ld+set}" = set; then :
5834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5835else
5836 with_gnu_ld=no
5837fi
5838
5839ac_prog=ld
5840if test "$GCC" = yes; then
5841 # Check if gcc -print-prog-name=ld gives a path.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5843$as_echo_n "checking for ld used by $CC... " >&6; }
5844 case $host in
5845 *-*-mingw*)
5846 # gcc leaves a trailing carriage return which upsets mingw
5847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5848 *)
5849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5850 esac
5851 case $ac_prog in
5852 # Accept absolute paths.
5853 [\\/]* | ?:[\\/]*)
5854 re_direlt='/[^/][^/]*/\.\./'
5855 # Canonicalize the pathname of ld
5856 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5857 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5858 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5859 done
5860 test -z "$LD" && LD="$ac_prog"
5861 ;;
5862 "")
5863 # If it fails, then pretend we aren't using GCC.
5864 ac_prog=ld
5865 ;;
5866 *)
5867 # If it is relative, then search for the first ld in PATH.
5868 with_gnu_ld=unknown
5869 ;;
5870 esac
5871elif test "$with_gnu_ld" = yes; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5873$as_echo_n "checking for GNU ld... " >&6; }
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5876$as_echo_n "checking for non-GNU ld... " >&6; }
5877fi
5878if ${lt_cv_path_LD+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880else
5881 if test -z "$LD"; then
5882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5883 for ac_dir in $PATH; do
5884 IFS="$lt_save_ifs"
5885 test -z "$ac_dir" && ac_dir=.
5886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5887 lt_cv_path_LD="$ac_dir/$ac_prog"
5888 # Check to see if the program is GNU ld. I'd rather use --version,
5889 # but apparently some variants of GNU ld only accept -v.
5890 # Break only if it was the GNU/non-GNU ld that we prefer.
5891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5892 *GNU* | *'with BFD'*)
5893 test "$with_gnu_ld" != no && break
5894 ;;
5895 *)
5896 test "$with_gnu_ld" != yes && break
5897 ;;
5898 esac
5899 fi
5900 done
5901 IFS="$lt_save_ifs"
5902else
5903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5904fi
5905fi
5906
5907LD="$lt_cv_path_LD"
5908if test -n "$LD"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5910$as_echo "$LD" >&6; }
5911else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5917$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5918if ${lt_cv_prog_gnu_ld+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920else
5921 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5922case `$LD -v 2>&1 </dev/null` in
5923*GNU* | *'with BFD'*)
5924 lt_cv_prog_gnu_ld=yes
5925 ;;
5926*)
5927 lt_cv_prog_gnu_ld=no
5928 ;;
5929esac
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5932$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5933with_gnu_ld=$lt_cv_prog_gnu_ld
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5944$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5945if ${lt_cv_path_NM+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947else
5948 if test -n "$NM"; then
5949 # Let the user override the test.
5950 lt_cv_path_NM="$NM"
5951else
5952 lt_nm_to_check="${ac_tool_prefix}nm"
5953 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5954 lt_nm_to_check="$lt_nm_to_check nm"
5955 fi
5956 for lt_tmp_nm in $lt_nm_to_check; do
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5959 IFS="$lt_save_ifs"
5960 test -z "$ac_dir" && ac_dir=.
5961 tmp_nm="$ac_dir/$lt_tmp_nm"
5962 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5963 # Check to see if the nm accepts a BSD-compat flag.
5964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5965 # nm: unknown option "B" ignored
5966 # Tru64's nm complains that /dev/null is an invalid object file
5967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5968 */dev/null* | *'Invalid file or object type'*)
5969 lt_cv_path_NM="$tmp_nm -B"
5970 break
5971 ;;
5972 *)
5973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5974 */dev/null*)
5975 lt_cv_path_NM="$tmp_nm -p"
5976 break
5977 ;;
5978 *)
5979 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5980 continue # so that we can try to find one that supports BSD flags
5981 ;;
5982 esac
5983 ;;
5984 esac
5985 fi
5986 done
5987 IFS="$lt_save_ifs"
5988 done
5989 : ${lt_cv_path_NM=no}
5990fi
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5993$as_echo "$lt_cv_path_NM" >&6; }
5994if test "$lt_cv_path_NM" != "no"; then
5995 NM="$lt_cv_path_NM"
5996else
5997 # Didn't find any BSD compatible name lister, look for dumpbin.
5998 if test -n "$DUMPBIN"; then :
5999 # Let the user override the test.
6000 else
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in dumpbin "link -dump"
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_prog_DUMPBIN+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010else
6011 if test -n "$DUMPBIN"; then
6012 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025done
6026 done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031DUMPBIN=$ac_cv_prog_DUMPBIN
6032if test -n "$DUMPBIN"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6034$as_echo "$DUMPBIN" >&6; }
6035else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040
6041 test -n "$DUMPBIN" && break
6042 done
6043fi
6044if test -z "$DUMPBIN"; then
6045 ac_ct_DUMPBIN=$DUMPBIN
6046 for ac_prog in dumpbin "link -dump"
6047do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049set dummy $ac_prog; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6076if test -n "$ac_ct_DUMPBIN"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6078$as_echo "$ac_ct_DUMPBIN" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085 test -n "$ac_ct_DUMPBIN" && break
6086done
6087
6088 if test "x$ac_ct_DUMPBIN" = x; then
6089 DUMPBIN=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097 DUMPBIN=$ac_ct_DUMPBIN
6098 fi
6099fi
6100
6101 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6102 *COFF*)
6103 DUMPBIN="$DUMPBIN -symbols"
6104 ;;
6105 *)
6106 DUMPBIN=:
6107 ;;
6108 esac
6109 fi
6110
6111 if test "$DUMPBIN" != ":"; then
6112 NM="$DUMPBIN"
6113 fi
6114fi
6115test -z "$NM" && NM=nm
6116
6117
6118
6119
6120
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124if ${lt_cv_nm_interface+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126else
6127 lt_cv_nm_interface="BSD nm"
6128 echo "int some_variable = 0;" > conftest.$ac_ext
6129 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6130 (eval "$ac_compile" 2>conftest.err)
6131 cat conftest.err >&5
6132 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6134 cat conftest.err >&5
6135 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6136 cat conftest.out >&5
6137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6138 lt_cv_nm_interface="MS dumpbin"
6139 fi
6140 rm -f conftest*
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143$as_echo "$lt_cv_nm_interface" >&6; }
6144
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146$as_echo_n "checking whether ln -s works... " >&6; }
6147LN_S=$as_ln_s
6148if test "$LN_S" = "ln -s"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150$as_echo "yes" >&6; }
6151else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153$as_echo "no, using $LN_S" >&6; }
6154fi
6155
6156# find the maximum length of command line arguments
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159if ${lt_cv_sys_max_cmd_len+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 i=0
6163 teststring="ABCD"
6164
6165 case $build_os in
6166 msdosdjgpp*)
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 ;;
6173
6174 gnu*)
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len=-1;
6179 ;;
6180
6181 cygwin* | mingw* | cegcc*)
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len=8192;
6190 ;;
6191
6192 mint*)
6193 # On MiNT this can take a long time and run out of memory.
6194 lt_cv_sys_max_cmd_len=8192;
6195 ;;
6196
6197 amigaos*)
6198 # On AmigaOS with pdksh, this test takes hours, literally.
6199 # So we just punt and use a minimum line length of 8192.
6200 lt_cv_sys_max_cmd_len=8192;
6201 ;;
6202
6203 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6204 # This has been around since 386BSD, at least. Likely further.
6205 if test -x /sbin/sysctl; then
6206 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6207 elif test -x /usr/sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209 else
6210 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6211 fi
6212 # And add a safety zone
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215 ;;
6216
6217 interix*)
6218 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6219 lt_cv_sys_max_cmd_len=196608
6220 ;;
6221
6222 osf*)
6223 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6224 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6225 # nice to cause kernel panics so lets avoid the loop below.
6226 # First set a reasonable default.
6227 lt_cv_sys_max_cmd_len=16384
6228 #
6229 if test -x /sbin/sysconfig; then
6230 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6231 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6232 esac
6233 fi
6234 ;;
6235 sco3.2v5*)
6236 lt_cv_sys_max_cmd_len=102400
6237 ;;
6238 sysv5* | sco5v6* | sysv4.2uw2*)
6239 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6240 if test -n "$kargmax"; then
6241 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6242 else
6243 lt_cv_sys_max_cmd_len=32768
6244 fi
6245 ;;
6246 *)
6247 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6248 if test -n "$lt_cv_sys_max_cmd_len"; then
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251 else
6252 # Make teststring a little bigger before we do anything with it.
6253 # a 1K string should be a reasonable start.
6254 for i in 1 2 3 4 5 6 7 8 ; do
6255 teststring=$teststring$teststring
6256 done
6257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6258 # If test is not a shell built-in, we'll probably end up computing a
6259 # maximum length that is only half of the actual maximum length, but
6260 # we can't tell.
6261 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6262 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6263 test $i != 17 # 1/2 MB should be enough
6264 do
6265 i=`expr $i + 1`
b4c522fa
IB
6266 teststring=$teststring$teststring
6267 done
6268 # Only check the string length outside the loop.
6269 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6270 teststring=
6271 # Add a significant safety factor because C++ compilers can tack on
6272 # massive amounts of additional arguments before passing them to the
6273 # linker. It appears as though 1/2 is a usable value.
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6275 fi
6276 ;;
6277 esac
6278
6279fi
6280
6281if test -n $lt_cv_sys_max_cmd_len ; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6284else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286$as_echo "none" >&6; }
6287fi
6288max_cmd_len=$lt_cv_sys_max_cmd_len
6289
6290
6291
6292
6293
6294
6295: ${CP="cp -f"}
6296: ${MV="mv -f"}
6297: ${RM="rm -f"}
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6300$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6301# Try some XSI features
6302xsi_shell=no
6303( _lt_dummy="a/b/c"
6304 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6305 = c,a/b,, \
6306 && eval 'test $(( 1 + 1 )) -eq 2 \
6307 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6308 && xsi_shell=yes
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6310$as_echo "$xsi_shell" >&6; }
6311
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6314$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6315lt_shell_append=no
6316( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6317 >/dev/null 2>&1 \
6318 && lt_shell_append=yes
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6320$as_echo "$lt_shell_append" >&6; }
6321
6322
6323if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6324 lt_unset=unset
6325else
6326 lt_unset=false
6327fi
6328
6329
6330
6331
6332
6333# test EBCDIC or ASCII
6334case `echo X|tr X '\101'` in
6335 A) # ASCII based system
6336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6337 lt_SP2NL='tr \040 \012'
6338 lt_NL2SP='tr \015\012 \040\040'
6339 ;;
6340 *) # EBCDIC based system
6341 lt_SP2NL='tr \100 \n'
6342 lt_NL2SP='tr \r\n \100\100'
6343 ;;
6344esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6355$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6356if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
6357 $as_echo_n "(cached) " >&6
6358else
6359 lt_cv_ld_reload_flag='-r'
6360fi
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6362$as_echo "$lt_cv_ld_reload_flag" >&6; }
6363reload_flag=$lt_cv_ld_reload_flag
6364case $reload_flag in
6365"" | " "*) ;;
6366*) reload_flag=" $reload_flag" ;;
6367esac
6368reload_cmds='$LD$reload_flag -o $output$reload_objs'
6369case $host_os in
6370 darwin*)
6371 if test "$GCC" = yes; then
6372 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6373 else
6374 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375 fi
6376 ;;
6377esac
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6389set dummy ${ac_tool_prefix}objdump; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6392if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
6393 $as_echo_n "(cached) " >&6
6394else
6395 if test -n "$OBJDUMP"; then
6396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6405 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410 done
6411IFS=$as_save_IFS
6412
6413fi
6414fi
6415OBJDUMP=$ac_cv_prog_OBJDUMP
6416if test -n "$OBJDUMP"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6418$as_echo "$OBJDUMP" >&6; }
6419else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425fi
6426if test -z "$ac_cv_prog_OBJDUMP"; then
6427 ac_ct_OBJDUMP=$OBJDUMP
6428 # Extract the first word of "objdump", so it can be a program name with args.
6429set dummy objdump; ac_word=$2
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6432if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6433 $as_echo_n "(cached) " >&6
6434else
6435 if test -n "$ac_ct_OBJDUMP"; then
6436 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6445 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450 done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6456if test -n "$ac_ct_OBJDUMP"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6458$as_echo "$ac_ct_OBJDUMP" >&6; }
6459else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
6462fi
6463
6464 if test "x$ac_ct_OBJDUMP" = x; then
6465 OBJDUMP="false"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468yes:)
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471ac_tool_warned=yes ;;
6472esac
6473 OBJDUMP=$ac_ct_OBJDUMP
6474 fi
6475else
6476 OBJDUMP="$ac_cv_prog_OBJDUMP"
6477fi
6478
6479test -z "$OBJDUMP" && OBJDUMP=objdump
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6490$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6491if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6492 $as_echo_n "(cached) " >&6
6493else
6494 lt_cv_file_magic_cmd='$MAGIC_CMD'
6495lt_cv_file_magic_test_file=
6496lt_cv_deplibs_check_method='unknown'
6497# Need to set the preceding variable on all platforms that support
6498# interlibrary dependencies.
6499# 'none' -- dependencies not supported.
6500# `unknown' -- same as none, but documents that we really don't know.
6501# 'pass_all' -- all dependencies passed with no checks.
6502# 'test_compile' -- check by making test program.
6503# 'file_magic [[regex]]' -- check by looking for files in library path
6504# which responds to the $file_magic_cmd with a given extended regex.
6505# If you have `file' or equivalent on your system and you're not sure
6506# whether `pass_all' will *always* work, you probably want this one.
6507
6508case $host_os in
6509aix[4-9]*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513beos*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517bsdi[45]*)
6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6520 lt_cv_file_magic_test_file=/shlib/libc.so
6521 ;;
6522
6523cygwin*)
6524 # func_win32_libid is a shell function defined in ltmain.sh
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6527 ;;
6528
6529mingw* | pw32*)
6530 # Base MSYS/MinGW do not provide the 'file' command needed by
6531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532 # unless we find 'file', for example because we are cross-compiling.
6533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6534 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536 lt_cv_file_magic_cmd='func_win32_libid'
6537 else
6538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6539 lt_cv_file_magic_cmd='$OBJDUMP -f'
6540 fi
6541 ;;
6542
6543cegcc*)
6544 # use the weaker test based on 'objdump'. See mingw*.
6545 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6546 lt_cv_file_magic_cmd='$OBJDUMP -f'
6547 ;;
6548
6549darwin* | rhapsody*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553freebsd* | dragonfly*)
6554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6555 case $host_cpu in
6556 i*86 )
6557 # Not sure whether the presence of OpenBSD here was a mistake.
6558 # Let's accept both of them until this is cleared up.
6559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560 lt_cv_file_magic_cmd=/usr/bin/file
6561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6562 ;;
6563 esac
6564 else
6565 lt_cv_deplibs_check_method=pass_all
6566 fi
6567 ;;
6568
6569gnu*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573haiku*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577hpux10.20* | hpux11*)
6578 lt_cv_file_magic_cmd=/usr/bin/file
6579 case $host_cpu in
6580 ia64*)
6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583 ;;
6584 hppa*64*)
6585 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]'
6586 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587 ;;
6588 *)
6589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6591 ;;
6592 esac
6593 ;;
6594
6595interix[3-9]*)
6596 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598 ;;
6599
6600irix5* | irix6* | nonstopux*)
6601 case $LD in
6602 *-32|*"-32 ") libmagic=32-bit;;
6603 *-n32|*"-n32 ") libmagic=N32;;
6604 *-64|*"-64 ") libmagic=64-bit;;
6605 *) libmagic=never-match;;
6606 esac
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610# This must be Linux ELF.
e9085da5 6611linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615netbsd*)
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618 else
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620 fi
6621 ;;
6622
6623newos6*)
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627 ;;
6628
6629*nto* | *qnx*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633openbsd*)
6634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6636 else
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 fi
6639 ;;
6640
6641osf3* | osf4* | osf5*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645rdos*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649solaris*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657sysv4 | sysv4.3*)
6658 case $host_vendor in
6659 motorola)
6660 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]'
6661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662 ;;
6663 ncr)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 sequent)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669 ;;
6670 sni)
6671 lt_cv_file_magic_cmd='/bin/file'
6672 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6673 lt_cv_file_magic_test_file=/lib/libc.so
6674 ;;
6675 siemens)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678 pc)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681 esac
6682 ;;
6683
6684tpf*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687esac
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6691$as_echo "$lt_cv_deplibs_check_method" >&6; }
6692file_magic_cmd=$lt_cv_file_magic_cmd
6693deplibs_check_method=$lt_cv_deplibs_check_method
6694test -z "$deplibs_check_method" && deplibs_check_method=unknown
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6709set dummy ${ac_tool_prefix}ar; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6712if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6713 $as_echo_n "(cached) " >&6
6714else
6715 if test -n "$AR"; then
6716 ac_cv_prog_AR="$AR" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6725 ac_cv_prog_AR="${ac_tool_prefix}ar"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730 done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735AR=$ac_cv_prog_AR
6736if test -n "$AR"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6738$as_echo "$AR" >&6; }
6739else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744
6745fi
6746if test -z "$ac_cv_prog_AR"; then
6747 ac_ct_AR=$AR
6748 # Extract the first word of "ar", so it can be a program name with args.
6749set dummy ar; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6752if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6753 $as_echo_n "(cached) " >&6
6754else
6755 if test -n "$ac_ct_AR"; then
6756 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6765 ac_cv_prog_ac_ct_AR="ar"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770 done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776if test -n "$ac_ct_AR"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6778$as_echo "$ac_ct_AR" >&6; }
6779else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784 if test "x$ac_ct_AR" = x; then
6785 AR="false"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793 AR=$ac_ct_AR
6794 fi
6795else
6796 AR="$ac_cv_prog_AR"
6797fi
6798
6799test -z "$AR" && AR=ar
6800test -z "$AR_FLAGS" && AR_FLAGS=cru
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6814set dummy ${ac_tool_prefix}strip; ac_word=$2
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6817if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6818 $as_echo_n "(cached) " >&6
6819else
6820 if test -n "$STRIP"; then
6821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834done
6835 done
6836IFS=$as_save_IFS
6837
6838fi
6839fi
6840STRIP=$ac_cv_prog_STRIP
6841if test -n "$STRIP"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6843$as_echo "$STRIP" >&6; }
6844else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6847fi
6848
6849
6850fi
6851if test -z "$ac_cv_prog_STRIP"; then
6852 ac_ct_STRIP=$STRIP
6853 # Extract the first word of "strip", so it can be a program name with args.
6854set dummy strip; ac_word=$2
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6857if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
6858 $as_echo_n "(cached) " >&6
6859else
6860 if test -n "$ac_ct_STRIP"; then
6861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6870 ac_cv_prog_ac_ct_STRIP="strip"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875 done
6876IFS=$as_save_IFS
6877
6878fi
6879fi
6880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6881if test -n "$ac_ct_STRIP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6883$as_echo "$ac_ct_STRIP" >&6; }
6884else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
6887fi
6888
6889 if test "x$ac_ct_STRIP" = x; then
6890 STRIP=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893yes:)
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898 STRIP=$ac_ct_STRIP
6899 fi
6900else
6901 STRIP="$ac_cv_prog_STRIP"
6902fi
6903
6904test -z "$STRIP" && STRIP=:
6905
6906
6907
6908
6909
6910
6911if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6913set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6916if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$RANLIB"; then
6920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939RANLIB=$ac_cv_prog_RANLIB
6940if test -n "$RANLIB"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6942$as_echo "$RANLIB" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948
6949fi
6950if test -z "$ac_cv_prog_RANLIB"; then
6951 ac_ct_RANLIB=$RANLIB
6952 # Extract the first word of "ranlib", so it can be a program name with args.
6953set dummy ranlib; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6956if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$ac_ct_RANLIB"; then
6960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6969 ac_cv_prog_ac_ct_RANLIB="ranlib"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974 done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6980if test -n "$ac_ct_RANLIB"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6982$as_echo "$ac_ct_RANLIB" >&6; }
6983else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988 if test "x$ac_ct_RANLIB" = x; then
6989 RANLIB=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992yes:)
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995ac_tool_warned=yes ;;
6996esac
6997 RANLIB=$ac_ct_RANLIB
6998 fi
6999else
7000 RANLIB="$ac_cv_prog_RANLIB"
7001fi
7002
7003test -z "$RANLIB" && RANLIB=:
7004
7005
7006
7007
7008
7009
7010# Determine commands to create old-style static archives.
7011old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012old_postinstall_cmds='chmod 644 $oldlib'
7013old_postuninstall_cmds=
7014
7015if test -n "$RANLIB"; then
7016 case $host_os in
7017 openbsd*)
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019 ;;
7020 *)
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022 ;;
7023 esac
7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025fi
7026
7027case $host_os in
7028 darwin*)
7029 lock_old_archive_extraction=yes ;;
7030 *)
7031 lock_old_archive_extraction=no ;;
7032esac
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072# If no C compiler was specified, use CC.
7073LTCC=${LTCC-"$CC"}
7074
7075# If no C compiler flags were specified, use CFLAGS.
7076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077
7078# Allow CC to be a program name with arguments.
7079compiler=$CC
7080
7081
7082# Check for command to grab the raw symbol name followed by C symbol from nm.
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7084$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7085if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
7086 $as_echo_n "(cached) " >&6
7087else
7088
7089# These are sane defaults that work on at least a few old systems.
7090# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7091
7092# Character class describing NM global symbol codes.
7093symcode='[BCDEGRST]'
7094
7095# Regexp to match symbols that can be accessed directly from C.
7096sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7097
7098# Define system-specific variables.
7099case $host_os in
7100aix*)
7101 symcode='[BCDT]'
7102 ;;
7103cygwin* | mingw* | pw32* | cegcc*)
7104 symcode='[ABCDGISTW]'
7105 ;;
7106hpux*)
7107 if test "$host_cpu" = ia64; then
7108 symcode='[ABCDEGRST]'
7109 fi
7110 ;;
7111irix* | nonstopux*)
7112 symcode='[BCDEGRST]'
7113 ;;
7114osf*)
7115 symcode='[BCDEGQRST]'
7116 ;;
7117solaris*)
7118 symcode='[BDRT]'
7119 ;;
7120sco3.2v5*)
7121 symcode='[DT]'
7122 ;;
7123sysv4.2uw2*)
7124 symcode='[DT]'
7125 ;;
7126sysv5* | sco5v6* | unixware* | OpenUNIX*)
7127 symcode='[ABDT]'
7128 ;;
7129sysv4)
7130 symcode='[DFNSTU]'
7131 ;;
7132esac
7133
7134# If we're using GNU nm, then use its standard symbol codes.
7135case `$NM -V 2>&1` in
7136*GNU* | *'with BFD'*)
7137 symcode='[ABCDGIRSTW]' ;;
7138esac
7139
7140# Transform an extracted symbol line into a proper C declaration.
7141# Some systems (esp. on ia64) link data and code symbols differently,
7142# so use this general approach.
7143lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7144
7145# Transform an extracted symbol line into symbol name and symbol address
7146lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7147lt_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'"
7148
7149# Handle CRLF in mingw tool chain
7150opt_cr=
7151case $build_os in
7152mingw*)
7153 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7154 ;;
7155esac
7156
7157# Try without a prefix underscore, then with it.
7158for ac_symprfx in "" "_"; do
7159
7160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7161 symxfrm="\\1 $ac_symprfx\\2 \\2"
7162
7163 # Write the raw and C identifiers.
7164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7165 # Fake it for dumpbin and say T for any non-static function
7166 # and D for any global variable.
7167 # Also find C++ and __fastcall symbols from MSVC++,
7168 # which start with @ or ?.
7169 lt_cv_sys_global_symbol_pipe="$AWK '"\
7170" {last_section=section; section=\$ 3};"\
7171" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7172" \$ 0!~/External *\|/{next};"\
7173" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7174" {if(hide[section]) next};"\
7175" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7176" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7177" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7178" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7179" ' prfx=^$ac_symprfx"
7180 else
7181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7182 fi
7183
7184 # Check to see that the pipe works correctly.
7185 pipe_works=no
7186
7187 rm -f conftest*
7188 cat > conftest.$ac_ext <<_LT_EOF
7189#ifdef __cplusplus
7190extern "C" {
7191#endif
7192char nm_test_var;
7193void nm_test_func(void);
7194void nm_test_func(void){}
7195#ifdef __cplusplus
7196}
7197#endif
7198int main(){nm_test_var='a';nm_test_func();return(0);}
7199_LT_EOF
7200
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 # Now try to grab the symbols.
7207 nlist=conftest.nm
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7210 ac_status=$?
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; } && test -s "$nlist"; then
7213 # Try sorting and uniquifying the output.
7214 if sort "$nlist" | uniq > "$nlist"T; then
7215 mv -f "$nlist"T "$nlist"
7216 else
7217 rm -f "$nlist"T
7218 fi
7219
7220 # Make sure that we snagged all the symbols we need.
7221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7223 cat <<_LT_EOF > conftest.$ac_ext
7224#ifdef __cplusplus
7225extern "C" {
7226#endif
7227
7228_LT_EOF
7229 # Now generate the symbol file.
7230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7231
7232 cat <<_LT_EOF >> conftest.$ac_ext
7233
7234/* The mapping between symbol names and symbols. */
7235const struct {
7236 const char *name;
7237 void *address;
7238}
7239lt__PROGRAM__LTX_preloaded_symbols[] =
7240{
7241 { "@PROGRAM@", (void *) 0 },
7242_LT_EOF
7243 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7244 cat <<\_LT_EOF >> conftest.$ac_ext
7245 {0, (void *) 0}
7246};
7247
7248/* This works around a problem in FreeBSD linker */
7249#ifdef FREEBSD_WORKAROUND
7250static const void *lt_preloaded_setup() {
7251 return lt__PROGRAM__LTX_preloaded_symbols;
7252}
7253#endif
7254
7255#ifdef __cplusplus
7256}
7257#endif
7258_LT_EOF
7259 # Now try linking the two files.
7260 mv conftest.$ac_objext conftstm.$ac_objext
7261 lt_save_LIBS="$LIBS"
7262 lt_save_CFLAGS="$CFLAGS"
7263 LIBS="conftstm.$ac_objext"
7264 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7266 (eval $ac_link) 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7270 pipe_works=yes
7271 fi
7272 LIBS="$lt_save_LIBS"
7273 CFLAGS="$lt_save_CFLAGS"
7274 else
7275 echo "cannot find nm_test_func in $nlist" >&5
7276 fi
7277 else
7278 echo "cannot find nm_test_var in $nlist" >&5
7279 fi
7280 else
7281 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7282 fi
7283 else
7284 echo "$progname: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 fi
7287 rm -rf conftest* conftst*
7288
7289 # Do not use the global_symbol_pipe unless it works.
7290 if test "$pipe_works" = yes; then
7291 break
7292 else
7293 lt_cv_sys_global_symbol_pipe=
7294 fi
7295done
7296
7297fi
7298
7299if test -z "$lt_cv_sys_global_symbol_pipe"; then
7300 lt_cv_sys_global_symbol_to_cdecl=
7301fi
7302if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7304$as_echo "failed" >&6; }
7305else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7307$as_echo "ok" >&6; }
7308fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
b4c522fa
IB
7329
7330
7331# Check whether --enable-libtool-lock was given.
7332if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7334fi
7335
7336test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338# Some flags need to be propagated to the compiler or linker for good
7339# libtool support.
7340case $host in
7341ia64-*-hpux*)
7342 # Find out which ABI we are using.
7343 echo 'int i;' > conftest.$ac_ext
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7350 *ELF-32*)
7351 HPUX_IA64_MODE="32"
7352 ;;
7353 *ELF-64*)
7354 HPUX_IA64_MODE="64"
7355 ;;
7356 esac
7357 fi
7358 rm -rf conftest*
7359 ;;
7360*-*-irix6*)
7361 # Find out which ABI we are using.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test "$lt_cv_prog_gnu_ld" = yes; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -melf32bsmip"
7372 ;;
7373 *N32*)
7374 LD="${LD-ld} -melf32bmipn32"
7375 ;;
7376 *64-bit*)
7377 LD="${LD-ld} -melf64bmip"
7378 ;;
7379 esac
7380 else
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -32"
7384 ;;
7385 *N32*)
7386 LD="${LD-ld} -n32"
7387 ;;
7388 *64-bit*)
7389 LD="${LD-ld} -64"
7390 ;;
7391 esac
7392 fi
7393 fi
7394 rm -rf conftest*
7395 ;;
7396
7397x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7398s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7407 *32-bit*)
7408 case $host in
7409 x86_64-*kfreebsd*-gnu)
7410 LD="${LD-ld} -m elf_i386_fbsd"
7411 ;;
7412 x86_64-*linux*)
7413 case `/usr/bin/file conftest.o` in
7414 *x86-64*)
7415 LD="${LD-ld} -m elf32_x86_64"
7416 ;;
7417 *)
7418 LD="${LD-ld} -m elf_i386"
7419 ;;
7420 esac
7421 ;;
7422 powerpc64le-*linux*)
7423 LD="${LD-ld} -m elf32lppclinux"
7424 ;;
7425 powerpc64-*linux*)
7426 LD="${LD-ld} -m elf32ppclinux"
7427 ;;
7428 s390x-*linux*)
7429 LD="${LD-ld} -m elf_s390"
7430 ;;
7431 sparc64-*linux*)
7432 LD="${LD-ld} -m elf32_sparc"
7433 ;;
7434 esac
7435 ;;
7436 *64-bit*)
7437 case $host in
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_x86_64_fbsd"
7440 ;;
7441 x86_64-*linux*)
7442 LD="${LD-ld} -m elf_x86_64"
7443 ;;
7444 powerpcle-*linux*)
7445 LD="${LD-ld} -m elf64lppc"
7446 ;;
7447 powerpc-*linux*)
7448 LD="${LD-ld} -m elf64ppc"
7449 ;;
7450 s390*-*linux*|s390*-*tpf*)
7451 LD="${LD-ld} -m elf64_s390"
7452 ;;
7453 sparc*-*linux*)
7454 LD="${LD-ld} -m elf64_sparc"
7455 ;;
7456 esac
7457 ;;
7458 esac
7459 fi
7460 rm -rf conftest*
7461 ;;
7462
7463*-*-sco3.2v5*)
7464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465 SAVE_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS -belf"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7468$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7469if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7470 $as_echo_n "(cached) " >&6
7471else
7472 ac_ext=c
7473ac_cpp='$CPP $CPPFLAGS'
7474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480
7481int
7482main ()
7483{
7484
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_link "$LINENO"; then :
7490 lt_cv_cc_needs_belf=yes
7491else
7492 lt_cv_cc_needs_belf=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496 ac_ext=c
7497ac_cpp='$CPP $CPPFLAGS'
7498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7504$as_echo "$lt_cv_cc_needs_belf" >&6; }
7505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7507 CFLAGS="$SAVE_CFLAGS"
7508 fi
7509 ;;
7510sparc*-*solaris*)
7511 # Find out which ABI we are using.
7512 echo 'int i;' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 case `/usr/bin/file conftest.o` in
7519 *64-bit*)
7520 case $lt_cv_prog_gnu_ld in
7521 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7522 *)
7523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7524 LD="${LD-ld} -64"
7525 fi
7526 ;;
7527 esac
7528 ;;
7529 esac
7530 fi
7531 rm -rf conftest*
7532 ;;
7533esac
7534
7535need_locks="$enable_libtool_lock"
7536
7537
7538 case $host_os in
7539 rhapsody* | darwin*)
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7545if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7546 $as_echo_n "(cached) " >&6
7547else
7548 if test -n "$DSYMUTIL"; then
7549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563 done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568DSYMUTIL=$ac_cv_prog_DSYMUTIL
7569if test -n "$DSYMUTIL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7571$as_echo "$DSYMUTIL" >&6; }
7572else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577
7578fi
7579if test -z "$ac_cv_prog_DSYMUTIL"; then
7580 ac_ct_DSYMUTIL=$DSYMUTIL
7581 # Extract the first word of "dsymutil", so it can be a program name with args.
7582set dummy dsymutil; ac_word=$2
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7585if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7586 $as_echo_n "(cached) " >&6
7587else
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b4c522fa
IB
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602done
7603 done
7604IFS=$as_save_IFS
7605
7606fi
7607fi
235d1c46
RO
7608ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7609if test -n "$ac_ct_DSYMUTIL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7611$as_echo "$ac_ct_DSYMUTIL" >&6; }
b4c522fa
IB
7612else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
235d1c46
RO
7617 if test "x$ac_ct_DSYMUTIL" = x; then
7618 DSYMUTIL=":"
b4c522fa
IB
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621yes:)
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624ac_tool_warned=yes ;;
7625esac
235d1c46 7626 DSYMUTIL=$ac_ct_DSYMUTIL
b4c522fa
IB
7627 fi
7628else
235d1c46 7629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b4c522fa
IB
7630fi
7631
7632 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7634set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b4c522fa
IB
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7637if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7638 $as_echo_n "(cached) " >&6
7639else
235d1c46
RO
7640 if test -n "$NMEDIT"; then
7641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b4c522fa
IB
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b4c522fa
IB
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654done
7655 done
7656IFS=$as_save_IFS
7657
7658fi
7659fi
235d1c46
RO
7660NMEDIT=$ac_cv_prog_NMEDIT
7661if test -n "$NMEDIT"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7663$as_echo "$NMEDIT" >&6; }
b4c522fa
IB
7664else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666$as_echo "no" >&6; }
7667fi
7668
7669
7670fi
235d1c46
RO
7671if test -z "$ac_cv_prog_NMEDIT"; then
7672 ac_ct_NMEDIT=$NMEDIT
7673 # Extract the first word of "nmedit", so it can be a program name with args.
7674set dummy nmedit; ac_word=$2
b4c522fa
IB
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7677if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7678 $as_echo_n "(cached) " >&6
7679else
235d1c46
RO
7680 if test -n "$ac_ct_NMEDIT"; then
7681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b4c522fa
IB
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7690 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b4c522fa
IB
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695 done
7696IFS=$as_save_IFS
7697
7698fi
7699fi
235d1c46
RO
7700ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7701if test -n "$ac_ct_NMEDIT"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7703$as_echo "$ac_ct_NMEDIT" >&6; }
b4c522fa
IB
7704else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706$as_echo "no" >&6; }
7707fi
7708
235d1c46
RO
7709 if test "x$ac_ct_NMEDIT" = x; then
7710 NMEDIT=":"
b4c522fa
IB
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713yes:)
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716ac_tool_warned=yes ;;
7717esac
235d1c46 7718 NMEDIT=$ac_ct_NMEDIT
b4c522fa
IB
7719 fi
7720else
235d1c46 7721 NMEDIT="$ac_cv_prog_NMEDIT"
b4c522fa
IB
7722fi
7723
7724 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7725 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7726set dummy ${ac_tool_prefix}lipo; ac_word=$2
b4c522fa
IB
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7729if ${ac_cv_prog_LIPO+:} false; then :
b4c522fa
IB
7730 $as_echo_n "(cached) " >&6
7731else
235d1c46
RO
7732 if test -n "$LIPO"; then
7733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b4c522fa
IB
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b4c522fa
IB
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747 done
7748IFS=$as_save_IFS
7749
7750fi
7751fi
235d1c46
RO
7752LIPO=$ac_cv_prog_LIPO
7753if test -n "$LIPO"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7755$as_echo "$LIPO" >&6; }
b4c522fa
IB
7756else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759fi
7760
7761
7762fi
235d1c46
RO
7763if test -z "$ac_cv_prog_LIPO"; then
7764 ac_ct_LIPO=$LIPO
7765 # Extract the first word of "lipo", so it can be a program name with args.
7766set dummy lipo; ac_word=$2
b4c522fa
IB
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7769if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b4c522fa
IB
7770 $as_echo_n "(cached) " >&6
7771else
235d1c46
RO
7772 if test -n "$ac_ct_LIPO"; then
7773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b4c522fa
IB
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7782 ac_cv_prog_ac_ct_LIPO="lipo"
b4c522fa
IB
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786done
7787 done
7788IFS=$as_save_IFS
7789
7790fi
7791fi
235d1c46
RO
7792ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7793if test -n "$ac_ct_LIPO"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7795$as_echo "$ac_ct_LIPO" >&6; }
b4c522fa
IB
7796else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
7799fi
7800
235d1c46
RO
7801 if test "x$ac_ct_LIPO" = x; then
7802 LIPO=":"
b4c522fa
IB
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805yes:)
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808ac_tool_warned=yes ;;
7809esac
235d1c46 7810 LIPO=$ac_ct_LIPO
b4c522fa
IB
7811 fi
7812else
235d1c46 7813 LIPO="$ac_cv_prog_LIPO"
b4c522fa
IB
7814fi
7815
235d1c46
RO
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7818set dummy ${ac_tool_prefix}otool; ac_word=$2
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820$as_echo_n "checking for $ac_word... " >&6; }
7821if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7822 $as_echo_n "(cached) " >&6
7823else
235d1c46
RO
7824 if test -n "$OTOOL"; then
7825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b4c522fa 7826else
235d1c46
RO
7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838done
7839 done
7840IFS=$as_save_IFS
b4c522fa 7841
b4c522fa 7842fi
b4c522fa 7843fi
235d1c46
RO
7844OTOOL=$ac_cv_prog_OTOOL
7845if test -n "$OTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7847$as_echo "$OTOOL" >&6; }
b4c522fa 7848else
235d1c46
RO
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
b4c522fa 7851fi
b4c522fa 7852
235d1c46 7853
b4c522fa 7854fi
235d1c46
RO
7855if test -z "$ac_cv_prog_OTOOL"; then
7856 ac_ct_OTOOL=$OTOOL
7857 # Extract the first word of "otool", so it can be a program name with args.
7858set dummy otool; ac_word=$2
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860$as_echo_n "checking for $ac_word... " >&6; }
7861if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
7862 $as_echo_n "(cached) " >&6
7863else
235d1c46
RO
7864 if test -n "$ac_ct_OTOOL"; then
7865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7866else
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
b4c522fa 7869do
235d1c46
RO
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_OTOOL="otool"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878done
7879 done
7880IFS=$as_save_IFS
b4c522fa 7881
235d1c46
RO
7882fi
7883fi
7884ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7885if test -n "$ac_ct_OTOOL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7887$as_echo "$ac_ct_OTOOL" >&6; }
b4c522fa 7888else
235d1c46
RO
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
b4c522fa 7891fi
b4c522fa 7892
235d1c46
RO
7893 if test "x$ac_ct_OTOOL" = x; then
7894 OTOOL=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897yes:)
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900ac_tool_warned=yes ;;
7901esac
7902 OTOOL=$ac_ct_OTOOL
7903 fi
b4c522fa 7904else
235d1c46 7905 OTOOL="$ac_cv_prog_OTOOL"
b4c522fa 7906fi
b4c522fa 7907
235d1c46
RO
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7910set dummy ${ac_tool_prefix}otool64; ac_word=$2
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912$as_echo_n "checking for $ac_word... " >&6; }
7913if ${ac_cv_prog_OTOOL64+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915else
7916 if test -n "$OTOOL64"; then
7917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7918else
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
b4c522fa 7930done
235d1c46
RO
7931 done
7932IFS=$as_save_IFS
7933
7934fi
7935fi
7936OTOOL64=$ac_cv_prog_OTOOL64
7937if test -n "$OTOOL64"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7939$as_echo "$OTOOL64" >&6; }
7940else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
b4c522fa
IB
7943fi
7944
b4c522fa
IB
7945
7946fi
235d1c46
RO
7947if test -z "$ac_cv_prog_OTOOL64"; then
7948 ac_ct_OTOOL64=$OTOOL64
7949 # Extract the first word of "otool64", so it can be a program name with args.
7950set dummy otool64; ac_word=$2
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952$as_echo_n "checking for $ac_word... " >&6; }
7953if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7954 $as_echo_n "(cached) " >&6
b4c522fa 7955else
235d1c46
RO
7956 if test -n "$ac_ct_OTOOL64"; then
7957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7958else
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
b4c522fa 7961do
235d1c46
RO
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OTOOL64="otool64"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970done
7971 done
7972IFS=$as_save_IFS
b4c522fa 7973
b4c522fa 7974fi
235d1c46
RO
7975fi
7976ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7977if test -n "$ac_ct_OTOOL64"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7979$as_echo "$ac_ct_OTOOL64" >&6; }
b4c522fa 7980else
235d1c46
RO
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
b4c522fa 7983fi
b4c522fa 7984
235d1c46
RO
7985 if test "x$ac_ct_OTOOL64" = x; then
7986 OTOOL64=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989yes:)
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992ac_tool_warned=yes ;;
7993esac
7994 OTOOL64=$ac_ct_OTOOL64
7995 fi
b4c522fa 7996else
235d1c46 7997 OTOOL64="$ac_cv_prog_OTOOL64"
b4c522fa
IB
7998fi
7999
b4c522fa
IB
8000
8001
b4c522fa 8002
b4c522fa 8003
b4c522fa 8004
b4c522fa 8005
b4c522fa 8006
b4c522fa 8007
b4c522fa 8008
b4c522fa 8009
b4c522fa 8010
b4c522fa 8011
b4c522fa 8012
235d1c46
RO
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8027$as_echo_n "checking for -single_module linker flag... " >&6; }
8028if ${lt_cv_apple_cc_single_mod+:} false; then :
8029 $as_echo_n "(cached) " >&6
b4c522fa 8030else
235d1c46
RO
8031 lt_cv_apple_cc_single_mod=no
8032 if test -z "${LT_MULTI_MODULE}"; then
8033 # By default we will add the -single_module flag. You can override
8034 # by either setting the environment variable LT_MULTI_MODULE
8035 # non-empty at configure time, or by adding -multi_module to the
8036 # link flags.
8037 rm -rf libconftest.dylib*
8038 echo "int foo(void){return 1;}" > conftest.c
8039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040-dynamiclib -Wl,-single_module conftest.c" >&5
8041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8043 _lt_result=$?
8044 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8045 lt_cv_apple_cc_single_mod=yes
8046 else
8047 cat conftest.err >&5
8048 fi
8049 rm -rf libconftest.dylib*
8050 rm -f conftest.*
8051 fi
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8054$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8056$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8057if ${lt_cv_ld_exported_symbols_list+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 lt_cv_ld_exported_symbols_list=no
8061 save_LDFLAGS=$LDFLAGS
8062 echo "_main" > conftest.sym
8063 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 8065/* end confdefs.h. */
b4c522fa 8066
b4c522fa
IB
8067int
8068main ()
8069{
235d1c46
RO
8070
8071 ;
b4c522fa
IB
8072 return 0;
8073}
8074_ACEOF
235d1c46
RO
8075if ac_fn_c_try_link "$LINENO"; then :
8076 lt_cv_ld_exported_symbols_list=yes
b4c522fa 8077else
235d1c46 8078 lt_cv_ld_exported_symbols_list=no
b4c522fa 8079fi
235d1c46
RO
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS="$save_LDFLAGS"
b4c522fa
IB
8083
8084fi
235d1c46
RO
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8086$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8088$as_echo_n "checking for -force_load linker flag... " >&6; }
8089if ${lt_cv_ld_force_load+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091else
8092 lt_cv_ld_force_load=no
8093 cat > conftest.c << _LT_EOF
8094int forced_loaded() { return 2;}
8095_LT_EOF
8096 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8098 echo "$AR cru libconftest.a conftest.o" >&5
8099 $AR cru libconftest.a conftest.o 2>&5
8100 cat > conftest.c << _LT_EOF
8101int main() { return 0;}
8102_LT_EOF
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8105 _lt_result=$?
8106 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8107 lt_cv_ld_force_load=yes
8108 else
8109 cat conftest.err >&5
8110 fi
8111 rm -f conftest.err libconftest.a conftest conftest.c
8112 rm -rf conftest.dSYM
b4c522fa
IB
8113
8114fi
235d1c46
RO
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8116$as_echo "$lt_cv_ld_force_load" >&6; }
8117 case $host_os in
8118 rhapsody* | darwin1.[012])
8119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8120 darwin1.*)
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122 darwin*) # darwin 5.x on
8123 # if running on 10.5 or later, the deployment target defaults
8124 # to the OS version, if on x86, and 10.4, the deployment
8125 # target defaults to 10.4. Don't you love it?
8126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129 10.[012][,.]*)
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8131 10.*)
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133 esac
8134 ;;
8135 esac
8136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137 _lt_dar_single_mod='$single_module'
8138 fi
8139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8141 else
8142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8143 fi
8144 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8145 _lt_dsymutil='~$DSYMUTIL $lib || :'
8146 else
8147 _lt_dsymutil=
8148 fi
8149 ;;
8150 esac
b4c522fa
IB
8151
8152for ac_header in dlfcn.h
8153do :
8154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8155"
22e05272 8156if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8157 cat >>confdefs.h <<_ACEOF
8158#define HAVE_DLFCN_H 1
8159_ACEOF
8160
8161fi
8162
8163done
8164
8165
8166
8167
8168
8169# Set options
8170enable_dlopen=yes
8171
8172
8173
8174
8175 enable_win32_dll=no
8176
8177
8178 # Check whether --enable-shared was given.
8179if test "${enable_shared+set}" = set; then :
8180 enableval=$enable_shared; p=${PACKAGE-default}
8181 case $enableval in
8182 yes) enable_shared=yes ;;
8183 no) enable_shared=no ;;
8184 *)
8185 enable_shared=no
8186 # Look at the argument we got. We use all the common list separators.
8187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188 for pkg in $enableval; do
8189 IFS="$lt_save_ifs"
8190 if test "X$pkg" = "X$p"; then
8191 enable_shared=yes
8192 fi
8193 done
8194 IFS="$lt_save_ifs"
8195 ;;
8196 esac
8197else
8198 enable_shared=yes
8199fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 # Check whether --enable-static was given.
8210if test "${enable_static+set}" = set; then :
8211 enableval=$enable_static; p=${PACKAGE-default}
8212 case $enableval in
8213 yes) enable_static=yes ;;
8214 no) enable_static=no ;;
8215 *)
8216 enable_static=no
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8220 IFS="$lt_save_ifs"
8221 if test "X$pkg" = "X$p"; then
8222 enable_static=yes
8223 fi
8224 done
8225 IFS="$lt_save_ifs"
8226 ;;
8227 esac
8228else
8229 enable_static=yes
8230fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241# Check whether --with-pic was given.
8242if test "${with_pic+set}" = set; then :
8243 withval=$with_pic; pic_mode="$withval"
8244else
8245 pic_mode=default
8246fi
8247
8248
8249test -z "$pic_mode" && pic_mode=default
8250
8251
8252
8253
8254
8255
8256
8257 # Check whether --enable-fast-install was given.
8258if test "${enable_fast_install+set}" = set; then :
8259 enableval=$enable_fast_install; p=${PACKAGE-default}
8260 case $enableval in
8261 yes) enable_fast_install=yes ;;
8262 no) enable_fast_install=no ;;
8263 *)
8264 enable_fast_install=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8268 IFS="$lt_save_ifs"
8269 if test "X$pkg" = "X$p"; then
8270 enable_fast_install=yes
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 ;;
8275 esac
8276else
8277 enable_fast_install=yes
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290# This can be used to rebuild libtool when needed
8291LIBTOOL_DEPS="$ltmain"
8292
8293# Always use our own libtool.
8294LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321test -z "$LN_S" && LN_S="ln -s"
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336if test -n "${ZSH_VERSION+set}" ; then
8337 setopt NO_GLOB_SUBST
8338fi
8339
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8341$as_echo_n "checking for objdir... " >&6; }
22e05272 8342if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8343 $as_echo_n "(cached) " >&6
8344else
8345 rm -f .libs 2>/dev/null
8346mkdir .libs 2>/dev/null
8347if test -d .libs; then
8348 lt_cv_objdir=.libs
8349else
8350 # MS-DOS does not allow filenames that begin with a dot.
8351 lt_cv_objdir=_libs
8352fi
8353rmdir .libs 2>/dev/null
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8356$as_echo "$lt_cv_objdir" >&6; }
8357objdir=$lt_cv_objdir
8358
8359
8360
8361
8362
8363cat >>confdefs.h <<_ACEOF
8364#define LT_OBJDIR "$lt_cv_objdir/"
8365_ACEOF
8366
8367
8368
8369
8370case $host_os in
8371aix3*)
8372 # AIX sometimes has problems with the GCC collect2 program. For some
8373 # reason, if we set the COLLECT_NAMES environment variable, the problems
8374 # vanish in a puff of smoke.
8375 if test "X${COLLECT_NAMES+set}" != Xset; then
8376 COLLECT_NAMES=
8377 export COLLECT_NAMES
8378 fi
8379 ;;
8380esac
8381
8382# Global variables:
8383ofile=libtool
8384can_build_shared=yes
8385
8386# All known linkers require a `.a' archive for static linking (except MSVC,
8387# which needs '.lib').
8388libext=a
8389
8390with_gnu_ld="$lt_cv_prog_gnu_ld"
8391
8392old_CC="$CC"
8393old_CFLAGS="$CFLAGS"
8394
8395# Set sane defaults for various variables
8396test -z "$CC" && CC=cc
8397test -z "$LTCC" && LTCC=$CC
8398test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8399test -z "$LD" && LD=ld
8400test -z "$ac_objext" && ac_objext=o
8401
8402for cc_temp in $compiler""; do
8403 case $cc_temp in
8404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8406 \-*) ;;
8407 *) break;;
8408 esac
8409done
8410cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8411
8412
8413# Only perform the check for file, if the check method requires it
8414test -z "$MAGIC_CMD" && MAGIC_CMD=file
8415case $deplibs_check_method in
8416file_magic*)
8417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8419$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8420if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8421 $as_echo_n "(cached) " >&6
8422else
8423 case $MAGIC_CMD in
8424[\\/*] | ?:[\\/]*)
8425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8426 ;;
8427*)
8428 lt_save_MAGIC_CMD="$MAGIC_CMD"
8429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8431 for ac_dir in $ac_dummy; do
8432 IFS="$lt_save_ifs"
8433 test -z "$ac_dir" && ac_dir=.
8434 if test -f $ac_dir/${ac_tool_prefix}file; then
8435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8436 if test -n "$file_magic_test_file"; then
8437 case $deplibs_check_method in
8438 "file_magic "*)
8439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442 $EGREP "$file_magic_regex" > /dev/null; then
8443 :
8444 else
8445 cat <<_LT_EOF 1>&2
8446
8447*** Warning: the command libtool uses to detect shared libraries,
8448*** $file_magic_cmd, produces output that libtool cannot recognize.
8449*** The result is that libtool may fail to recognize shared libraries
8450*** as such. This will affect the creation of libtool libraries that
8451*** depend on shared libraries, but programs linked with such libtool
8452*** libraries will work regardless of this problem. Nevertheless, you
8453*** may want to report the problem to your system manager and/or to
8454*** bug-libtool@gnu.org
8455
8456_LT_EOF
8457 fi ;;
8458 esac
8459 fi
8460 break
8461 fi
8462 done
8463 IFS="$lt_save_ifs"
8464 MAGIC_CMD="$lt_save_MAGIC_CMD"
8465 ;;
8466esac
8467fi
8468
8469MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470if test -n "$MAGIC_CMD"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8472$as_echo "$MAGIC_CMD" >&6; }
8473else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478
8479
8480
8481
8482if test -z "$lt_cv_path_MAGIC_CMD"; then
8483 if test -n "$ac_tool_prefix"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8485$as_echo_n "checking for file... " >&6; }
22e05272 8486if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8487 $as_echo_n "(cached) " >&6
8488else
8489 case $MAGIC_CMD in
8490[\\/*] | ?:[\\/]*)
8491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8492 ;;
8493*)
8494 lt_save_MAGIC_CMD="$MAGIC_CMD"
8495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8497 for ac_dir in $ac_dummy; do
8498 IFS="$lt_save_ifs"
8499 test -z "$ac_dir" && ac_dir=.
8500 if test -f $ac_dir/file; then
8501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8502 if test -n "$file_magic_test_file"; then
8503 case $deplibs_check_method in
8504 "file_magic "*)
8505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8508 $EGREP "$file_magic_regex" > /dev/null; then
8509 :
8510 else
8511 cat <<_LT_EOF 1>&2
8512
8513*** Warning: the command libtool uses to detect shared libraries,
8514*** $file_magic_cmd, produces output that libtool cannot recognize.
8515*** The result is that libtool may fail to recognize shared libraries
8516*** as such. This will affect the creation of libtool libraries that
8517*** depend on shared libraries, but programs linked with such libtool
8518*** libraries will work regardless of this problem. Nevertheless, you
8519*** may want to report the problem to your system manager and/or to
8520*** bug-libtool@gnu.org
8521
8522_LT_EOF
8523 fi ;;
8524 esac
8525 fi
8526 break
8527 fi
8528 done
8529 IFS="$lt_save_ifs"
8530 MAGIC_CMD="$lt_save_MAGIC_CMD"
8531 ;;
8532esac
8533fi
8534
8535MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536if test -n "$MAGIC_CMD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8538$as_echo "$MAGIC_CMD" >&6; }
8539else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543
8544
8545 else
8546 MAGIC_CMD=:
8547 fi
8548fi
8549
8550 fi
8551 ;;
8552esac
8553
8554# Use C for the default configuration in the libtool script
8555
8556lt_save_CC="$CC"
8557ac_ext=c
8558ac_cpp='$CPP $CPPFLAGS'
8559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563
8564# Source file extension for C test sources.
8565ac_ext=c
8566
8567# Object file extension for compiled C test sources.
8568objext=o
8569objext=$objext
8570
8571# Code to be used in simple compile tests
8572lt_simple_compile_test_code="int some_variable = 0;"
8573
8574# Code to be used in simple link tests
8575lt_simple_link_test_code='int main(){return(0);}'
8576
8577
8578
8579
8580
8581
8582
8583# If no C compiler was specified, use CC.
8584LTCC=${LTCC-"$CC"}
8585
8586# If no C compiler flags were specified, use CFLAGS.
8587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8588
8589# Allow CC to be a program name with arguments.
8590compiler=$CC
8591
8592# Save the default compiler, since it gets overwritten when the other
8593# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8594compiler_DEFAULT=$CC
8595
8596# save warnings/boilerplate of simple test code
8597ac_outfile=conftest.$ac_objext
8598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600_lt_compiler_boilerplate=`cat conftest.err`
8601$RM conftest*
8602
8603ac_outfile=conftest.$ac_objext
8604echo "$lt_simple_link_test_code" >conftest.$ac_ext
8605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606_lt_linker_boilerplate=`cat conftest.err`
8607$RM -r conftest*
8608
8609
8610## CAVEAT EMPTOR:
8611## There is no encapsulation within the following macros, do not change
8612## the running order or otherwise move them around unless you know exactly
8613## what you are doing...
8614if test -n "$compiler"; then
8615
8616lt_prog_compiler_no_builtin_flag=
8617
8618if test "$GCC" = yes; then
8619 case $cc_basename in
8620 nvcc*)
8621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8622 *)
8623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8624 esac
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8628if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8629 $as_echo_n "(cached) " >&6
8630else
8631 lt_cv_prog_compiler_rtti_exceptions=no
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8634 lt_compiler_flag="-fno-rtti -fno-exceptions"
8635 # Insert the option either (1) after the last *FLAGS variable, or
8636 # (2) before a word containing "conftest.", or (3) at the end.
8637 # Note that $ac_compile itself does not contain backslashes and begins
8638 # with a dollar sign (not a hyphen), so the echo should work correctly.
8639 # The option is referenced via a variable to avoid confusing sed.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>conftest.err)
8646 ac_status=$?
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 if (exit $ac_status) && test -s "$ac_outfile"; then
8650 # The compiler can only warn and ignore the option if not recognized
8651 # So say no if there are warnings other than the usual output.
8652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_cv_prog_compiler_rtti_exceptions=yes
8656 fi
8657 fi
8658 $RM conftest*
8659
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8663
8664if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666else
8667 :
8668fi
8669
8670fi
8671
8672
8673
8674
8675
8676
8677 lt_prog_compiler_wl=
8678lt_prog_compiler_pic=
8679lt_prog_compiler_static=
8680
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8682$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8683
8684 if test "$GCC" = yes; then
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_static='-static'
8687
8688 case $host_os in
8689 aix*)
8690 # All AIX code is PIC.
8691 if test "$host_cpu" = ia64; then
8692 # AIX 5 now supports IA64 processor
8693 lt_prog_compiler_static='-Bstatic'
8694 fi
8695 lt_prog_compiler_pic='-fPIC'
8696 ;;
8697
8698 amigaos*)
8699 case $host_cpu in
8700 powerpc)
8701 # see comment about AmigaOS4 .so support
8702 lt_prog_compiler_pic='-fPIC'
8703 ;;
8704 m68k)
8705 # FIXME: we need at least 68020 code to build shared libraries, but
8706 # adding the `-m68020' flag to GCC prevents building anything better,
8707 # like `-m68040'.
8708 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8709 ;;
8710 esac
8711 ;;
8712
8713 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8714 # PIC is the default for these OSes.
8715 ;;
8716
8717 mingw* | cygwin* | pw32* | os2* | cegcc*)
8718 # This hack is so that the source file can tell whether it is being
8719 # built for inclusion in a dll (and should export symbols for example).
8720 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8721 # (--disable-auto-import) libraries
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8723 ;;
8724
8725 darwin* | rhapsody*)
8726 # PIC is the default on this platform
8727 # Common symbols not allowed in MH_DYLIB files
8728 lt_prog_compiler_pic='-fno-common'
8729 ;;
8730
8731 haiku*)
8732 # PIC is the default for Haiku.
8733 # The "-static" flag exists, but is broken.
8734 lt_prog_compiler_static=
8735 ;;
8736
8737 hpux*)
8738 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8739 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8740 # sets the default TLS model and affects inlining.
8741 case $host_cpu in
8742 hppa*64*)
8743 # +Z the default
8744 ;;
8745 *)
8746 lt_prog_compiler_pic='-fPIC'
8747 ;;
8748 esac
8749 ;;
8750
8751 interix[3-9]*)
8752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8753 # Instead, we relocate shared libraries at runtime.
8754 ;;
8755
8756 msdosdjgpp*)
8757 # Just because we use GCC doesn't mean we suddenly get shared libraries
8758 # on systems that don't support them.
8759 lt_prog_compiler_can_build_shared=no
8760 enable_shared=no
8761 ;;
8762
8763 *nto* | *qnx*)
8764 # QNX uses GNU C++, but need to define -shared option too, otherwise
8765 # it will coredump.
8766 lt_prog_compiler_pic='-fPIC -shared'
8767 ;;
8768
8769 sysv4*MP*)
8770 if test -d /usr/nec; then
8771 lt_prog_compiler_pic=-Kconform_pic
8772 fi
8773 ;;
8774
8775 *)
8776 lt_prog_compiler_pic='-fPIC'
8777 ;;
8778 esac
8779
8780 case $cc_basename in
8781 nvcc*) # Cuda Compiler Driver 2.2
8782 lt_prog_compiler_wl='-Xlinker '
8783 lt_prog_compiler_pic='-Xcompiler -fPIC'
8784 ;;
8785 esac
8786 else
8787 # PORTME Check for flag to pass linker flags through the system compiler.
8788 case $host_os in
8789 aix*)
8790 lt_prog_compiler_wl='-Wl,'
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8794 else
8795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8796 fi
8797 ;;
8798
8799 mingw* | cygwin* | pw32* | os2* | cegcc*)
8800 # This hack is so that the source file can tell whether it is being
8801 # built for inclusion in a dll (and should export symbols for example).
8802 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 ;;
8804
8805 hpux9* | hpux10* | hpux11*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8808 # not for PA HP-UX.
8809 case $host_cpu in
8810 hppa*64*|ia64*)
8811 # +Z the default
8812 ;;
8813 *)
8814 lt_prog_compiler_pic='+Z'
8815 ;;
8816 esac
8817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8818 lt_prog_compiler_static='${wl}-a ${wl}archive'
8819 ;;
8820
8821 irix5* | irix6* | nonstopux*)
8822 lt_prog_compiler_wl='-Wl,'
8823 # PIC (with -KPIC) is the default.
8824 lt_prog_compiler_static='-non_shared'
8825 ;;
8826
8827 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8828 case $cc_basename in
8829 # old Intel for x86_64 which still supported -KPIC.
8830 ecc*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-static'
8834 ;;
8835 # icc used to be incompatible with GCC.
8836 # ICC 10 doesn't accept -KPIC any more.
8837 icc* | ifort*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fPIC'
8840 lt_prog_compiler_static='-static'
8841 ;;
8842 # Lahey Fortran 8.1.
8843 lf95*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='--shared'
8846 lt_prog_compiler_static='--static'
8847 ;;
8848 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8849 # Portland Group compilers (*not* the Pentium gcc compiler,
8850 # which looks to be a dead project)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-fpic'
8853 lt_prog_compiler_static='-Bstatic'
8854 ;;
8855 ccc*)
8856 lt_prog_compiler_wl='-Wl,'
8857 # All Alpha code is PIC.
8858 lt_prog_compiler_static='-non_shared'
8859 ;;
8860 xl* | bgxl* | bgf* | mpixl*)
8861 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-qpic'
8864 lt_prog_compiler_static='-qstaticlink'
8865 ;;
8866 *)
8867 case `$CC -V 2>&1 | sed 5q` in
8868 *Sun\ F* | *Sun*Fortran*)
8869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl=''
8873 ;;
8874 *Sun\ C*)
8875 # Sun C 5.9
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 ;;
8880 esac
8881 ;;
8882 esac
8883 ;;
8884
8885 newsos6)
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8894 ;;
8895
8896 osf3* | osf4* | osf5*)
8897 lt_prog_compiler_wl='-Wl,'
8898 # All OSF/1 code is PIC.
8899 lt_prog_compiler_static='-non_shared'
8900 ;;
8901
8902 rdos*)
8903 lt_prog_compiler_static='-non_shared'
8904 ;;
8905
8906 solaris*)
8907 lt_prog_compiler_pic='-KPIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 case $cc_basename in
8910 f77* | f90* | f95*)
8911 lt_prog_compiler_wl='-Qoption ld ';;
8912 *)
8913 lt_prog_compiler_wl='-Wl,';;
8914 esac
8915 ;;
8916
8917 sunos4*)
8918 lt_prog_compiler_wl='-Qoption ld '
8919 lt_prog_compiler_pic='-PIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 sysv4 | sysv4.2uw2* | sysv4.3*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 sysv4*MP*)
8930 if test -d /usr/nec ;then
8931 lt_prog_compiler_pic='-Kconform_pic'
8932 lt_prog_compiler_static='-Bstatic'
8933 fi
8934 ;;
8935
8936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8940 ;;
8941
8942 unicos*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_can_build_shared=no
8945 ;;
8946
8947 uts4*)
8948 lt_prog_compiler_pic='-pic'
8949 lt_prog_compiler_static='-Bstatic'
8950 ;;
8951
8952 *)
8953 lt_prog_compiler_can_build_shared=no
8954 ;;
8955 esac
8956 fi
8957
8958case $host_os in
8959 # For platforms which do not support PIC, -DPIC is meaningless:
8960 *djgpp*)
8961 lt_prog_compiler_pic=
8962 ;;
8963 *)
8964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8965 ;;
8966esac
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8968$as_echo "$lt_prog_compiler_pic" >&6; }
8969
8970
8971
8972
8973
8974
8975#
8976# Check to make sure the PIC flag actually works.
8977#
8978if test -n "$lt_prog_compiler_pic"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8980$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8981if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
8982 $as_echo_n "(cached) " >&6
8983else
8984 lt_cv_prog_compiler_pic_works=no
8985 ac_outfile=conftest.$ac_objext
8986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8988 # Insert the option either (1) after the last *FLAGS variable, or
8989 # (2) before a word containing "conftest.", or (3) at the end.
8990 # Note that $ac_compile itself does not contain backslashes and begins
8991 # with a dollar sign (not a hyphen), so the echo should work correctly.
8992 # The option is referenced via a variable to avoid confusing sed.
8993 lt_compile=`echo "$ac_compile" | $SED \
8994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996 -e 's:$: $lt_compiler_flag:'`
8997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8998 (eval "$lt_compile" 2>conftest.err)
8999 ac_status=$?
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 if (exit $ac_status) && test -s "$ac_outfile"; then
9003 # The compiler can only warn and ignore the option if not recognized
9004 # So say no if there are warnings other than the usual output.
9005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008 lt_cv_prog_compiler_pic_works=yes
9009 fi
9010 fi
9011 $RM conftest*
9012
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9015$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9016
9017if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9018 case $lt_prog_compiler_pic in
9019 "" | " "*) ;;
9020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9021 esac
9022else
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_can_build_shared=no
9025fi
9026
9027fi
9028
9029
9030
9031
9032
9033
9034#
9035# Check to make sure the static flag actually works.
9036#
9037wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9039$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9040if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
9041 $as_echo_n "(cached) " >&6
9042else
9043 lt_cv_prog_compiler_static_works=no
9044 save_LDFLAGS="$LDFLAGS"
9045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048 # The linker can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 if test -s conftest.err; then
9051 # Append any errors to the config.log.
9052 cat conftest.err 1>&5
9053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055 if diff conftest.exp conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler_static_works=yes
9057 fi
9058 else
9059 lt_cv_prog_compiler_static_works=yes
9060 fi
9061 fi
9062 $RM -r conftest*
9063 LDFLAGS="$save_LDFLAGS"
9064
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9067$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9068
9069if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9070 :
9071else
9072 lt_prog_compiler_static=
9073fi
9074
9075
9076
9077
9078
9079
9080
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9083if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9084 $as_echo_n "(cached) " >&6
9085else
9086 lt_cv_prog_compiler_c_o=no
9087 $RM -r conftest 2>/dev/null
9088 mkdir conftest
9089 cd conftest
9090 mkdir out
9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092
9093 lt_compiler_flag="-o out/conftest2.$ac_objext"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 lt_compile=`echo "$ac_compile" | $SED \
9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101 -e 's:$: $lt_compiler_flag:'`
9102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103 (eval "$lt_compile" 2>out/conftest.err)
9104 ac_status=$?
9105 cat out/conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9108 then
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_c_o=yes
9115 fi
9116 fi
9117 chmod u+w . 2>&5
9118 $RM conftest*
9119 # SGI C++ compiler will create directory out/ii_files/ for
9120 # template instantiation
9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122 $RM out/* && rmdir out
9123 cd ..
9124 $RM -r conftest
9125 $RM conftest*
9126
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9130
9131
9132
9133
9134
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9137$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9138if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9139 $as_echo_n "(cached) " >&6
9140else
9141 lt_cv_prog_compiler_c_o=no
9142 $RM -r conftest 2>/dev/null
9143 mkdir conftest
9144 cd conftest
9145 mkdir out
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148 lt_compiler_flag="-o out/conftest2.$ac_objext"
9149 # Insert the option either (1) after the last *FLAGS variable, or
9150 # (2) before a word containing "conftest.", or (3) at the end.
9151 # Note that $ac_compile itself does not contain backslashes and begins
9152 # with a dollar sign (not a hyphen), so the echo should work correctly.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>out/conftest.err)
9159 ac_status=$?
9160 cat out/conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9163 then
9164 # The compiler can only warn and ignore the option if not recognized
9165 # So say no if there are warnings
9166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9169 lt_cv_prog_compiler_c_o=yes
9170 fi
9171 fi
9172 chmod u+w . 2>&5
9173 $RM conftest*
9174 # SGI C++ compiler will create directory out/ii_files/ for
9175 # template instantiation
9176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9177 $RM out/* && rmdir out
9178 cd ..
9179 $RM -r conftest
9180 $RM conftest*
9181
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9184$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185
9186
9187
9188
9189hard_links="nottested"
9190if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191 # do not overwrite the value of need_locks provided by the user
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9193$as_echo_n "checking if we can lock with hard links... " >&6; }
9194 hard_links=yes
9195 $RM conftest*
9196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9197 touch conftest.a
9198 ln conftest.a conftest.b 2>&5 || hard_links=no
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9201$as_echo "$hard_links" >&6; }
9202 if test "$hard_links" = no; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9204$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9205 need_locks=warn
9206 fi
9207else
9208 need_locks=no
9209fi
9210
9211
9212
9213
9214
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9217$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218
9219 runpath_var=
9220 allow_undefined_flag=
9221 always_export_symbols=no
9222 archive_cmds=
9223 archive_expsym_cmds=
9224 compiler_needs_object=no
9225 enable_shared_with_static_runtimes=no
9226 export_dynamic_flag_spec=
9227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9228 hardcode_automatic=no
9229 hardcode_direct=no
9230 hardcode_direct_absolute=no
9231 hardcode_libdir_flag_spec=
9232 hardcode_libdir_flag_spec_ld=
9233 hardcode_libdir_separator=
9234 hardcode_minus_L=no
9235 hardcode_shlibpath_var=unsupported
9236 inherit_rpath=no
9237 link_all_deplibs=unknown
9238 module_cmds=
9239 module_expsym_cmds=
9240 old_archive_from_new_cmds=
9241 old_archive_from_expsyms_cmds=
9242 thread_safe_flag_spec=
9243 whole_archive_flag_spec=
9244 # include_expsyms should be a list of space-separated symbols to be *always*
9245 # included in the symbol list
9246 include_expsyms=
9247 # exclude_expsyms can be an extended regexp of symbols to exclude
9248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9250 # as well as any symbol that contains `d'.
9251 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9253 # platforms (ab)use it in PIC code, but their linkers get confused if
9254 # the symbol is explicitly referenced. Since portable code cannot
9255 # rely on this symbol name, it's probably fine to never include it in
9256 # preloaded symbol tables.
9257 # Exclude shared library initialization/finalization symbols.
9258 extract_expsyms_cmds=
9259
9260 case $host_os in
9261 cygwin* | mingw* | pw32* | cegcc*)
9262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9263 # When not using gcc, we currently assume that we are using
9264 # Microsoft Visual C++.
9265 if test "$GCC" != yes; then
9266 with_gnu_ld=no
9267 fi
9268 ;;
9269 interix*)
9270 # we just hope/assume this is gcc and not c89 (= MSVC++)
9271 with_gnu_ld=yes
9272 ;;
9273 openbsd*)
9274 with_gnu_ld=no
9275 ;;
9276 esac
9277
9278 ld_shlibs=yes
9279
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface=no
9283 if test "$with_gnu_ld" = yes; then
9284 case $host_os in
9285 aix*)
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9294 *)
9295 lt_use_gnu_ld_interface=yes
9296 ;;
9297 esac
9298 ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 fi
9304
9305 if test "$lt_use_gnu_ld_interface" = yes; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9307 wlarc='${wl}'
9308
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var=LD_RUN_PATH
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 export_dynamic_flag_spec='${wl}--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9318 else
9319 whole_archive_flag_spec=
9320 fi
9321 supports_anon_versioning=no
9322 case `$LD -v 2>&1` in
9323 *GNU\ gold*) supports_anon_versioning=yes ;;
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327 *\ 2.11.*) ;; # other 2.11 versions
9328 *) supports_anon_versioning=yes ;;
9329 esac
9330
9331 # See if GNU ld supports shared libraries.
9332 case $host_os in
9333 aix[3-9]*)
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test "$host_cpu" != ia64; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339*** Warning: the GNU linker, at least up to release 2.19, is reported
9340*** to be unable to reliably create shared libraries on AIX.
9341*** Therefore, libtool is disabling shared libraries support. If you
9342*** really care for shared libraries, you may want to install binutils
9343*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344*** You will then need to restart the configuration process.
9345
9346_LT_EOF
9347 fi
9348 ;;
9349
9350 amigaos*)
9351 case $host_cpu in
9352 powerpc)
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 archive_expsym_cmds=''
9356 ;;
9357 m68k)
9358 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)'
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_minus_L=yes
9361 ;;
9362 esac
9363 ;;
9364
9365 beos*)
9366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 allow_undefined_flag=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375
9376 cygwin* | mingw* | pw32* | cegcc*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 export_dynamic_flag_spec='${wl}--export-all-symbols'
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=no
9383 enable_shared_with_static_runtimes=yes
9384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9385
9386 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9388 # If the export-symbols file already is a .def file (1st line
9389 # is EXPORTS), use it as is; otherwise, prepend...
9390 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9391 cp $export_symbols $output_objdir/$soname.def;
9392 else
9393 echo EXPORTS > $output_objdir/$soname.def;
9394 cat $export_symbols >> $output_objdir/$soname.def;
9395 fi~
9396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401
9402 haiku*)
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 link_all_deplibs=yes
9405 ;;
9406
9407 interix[3-9]*)
9408 hardcode_direct=no
9409 hardcode_shlibpath_var=no
9410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9411 export_dynamic_flag_spec='${wl}-E'
9412 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9413 # Instead, shared libraries are loaded at an image base (0x10000000 by
9414 # default) and relocated if they conflict, which is a slow very memory
9415 # consuming and fragmenting process. To avoid this, we pick a random,
9416 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9417 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9419 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'
9420 ;;
9421
e9085da5 9422 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
9423 tmp_diet=no
9424 if test "$host_os" = linux-dietlibc; then
9425 case $cc_basename in
9426 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9427 esac
9428 fi
9429 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9430 && test "$tmp_diet" = no
9431 then
9432 tmp_addflag=' $pic_flag'
9433 tmp_sharedflag='-shared'
9434 case $cc_basename,$host_cpu in
9435 pgcc*) # Portland Group C compiler
9436 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'
9437 tmp_addflag=' $pic_flag'
9438 ;;
9439 pgf77* | pgf90* | pgf95* | pgfortran*)
9440 # Portland Group f77 and f90 compilers
9441 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'
9442 tmp_addflag=' $pic_flag -Mnomain' ;;
9443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9444 tmp_addflag=' -i_dynamic' ;;
9445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9446 tmp_addflag=' -i_dynamic -nofor_main' ;;
9447 ifc* | ifort*) # Intel Fortran compiler
9448 tmp_addflag=' -nofor_main' ;;
9449 lf95*) # Lahey Fortran 8.1
9450 whole_archive_flag_spec=
9451 tmp_sharedflag='--shared' ;;
9452 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9453 tmp_sharedflag='-qmkshrobj'
9454 tmp_addflag= ;;
9455 nvcc*) # Cuda Compiler Driver 2.2
9456 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'
9457 compiler_needs_object=yes
9458 ;;
9459 esac
9460 case `$CC -V 2>&1 | sed 5q` in
9461 *Sun\ C*) # Sun C 5.9
9462 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'
9463 compiler_needs_object=yes
9464 tmp_sharedflag='-G' ;;
9465 *Sun\ F*) # Sun Fortran 8.3
9466 tmp_sharedflag='-G' ;;
9467 esac
9468 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469
9470 if test "x$supports_anon_versioning" = xyes; then
9471 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9473 echo "local: *; };" >> $output_objdir/$libname.ver~
9474 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9475 fi
9476
9477 case $cc_basename in
9478 xlf* | bgf* | bgxlf* | mpixlf*)
9479 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9480 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9481 hardcode_libdir_flag_spec=
9482 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9483 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9484 if test "x$supports_anon_versioning" = xyes; then
9485 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9487 echo "local: *; };" >> $output_objdir/$libname.ver~
9488 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9489 fi
9490 ;;
9491 esac
9492 else
9493 ld_shlibs=no
9494 fi
9495 ;;
9496
9497 netbsd*)
9498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9500 wlarc=
9501 else
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 fi
9505 ;;
9506
9507 solaris*)
9508 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9513*** create shared libraries on Solaris systems. Therefore, libtool
9514*** is disabling shared libraries support. We urge you to upgrade GNU
9515*** binutils to release 2.9.1 or newer. Another option is to modify
9516*** your PATH or compiler configuration so that the native linker is
9517*** used, and then restart.
9518
9519_LT_EOF
9520 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523 else
9524 ld_shlibs=no
9525 fi
9526 ;;
9527
9528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9529 case `$LD -v 2>&1` in
9530 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9531 ld_shlibs=no
9532 cat <<_LT_EOF 1>&2
9533
9534*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9535*** reliably create shared libraries on SCO systems. Therefore, libtool
9536*** is disabling shared libraries support. We urge you to upgrade GNU
9537*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9538*** your PATH or compiler configuration so that the native linker is
9539*** used, and then restart.
9540
9541_LT_EOF
9542 ;;
9543 *)
9544 # For security reasons, it is highly recommended that you always
9545 # use absolute paths for naming shared libraries, and exclude the
9546 # DT_RUNPATH tag from executables and libraries. But doing so
9547 # requires that you compile everything twice, which is a pain.
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9552 else
9553 ld_shlibs=no
9554 fi
9555 ;;
9556 esac
9557 ;;
9558
9559 sunos4*)
9560 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9561 wlarc=
9562 hardcode_direct=yes
9563 hardcode_shlibpath_var=no
9564 ;;
9565
9566 *)
9567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9570 else
9571 ld_shlibs=no
9572 fi
9573 ;;
9574 esac
9575
9576 if test "$ld_shlibs" = no; then
9577 runpath_var=
9578 hardcode_libdir_flag_spec=
9579 export_dynamic_flag_spec=
9580 whole_archive_flag_spec=
9581 fi
9582 else
9583 # PORTME fill in a description of your system's linker (not GNU ld)
9584 case $host_os in
9585 aix3*)
9586 allow_undefined_flag=unsupported
9587 always_export_symbols=yes
9588 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'
9589 # Note: this linker hardcodes the directories in LIBPATH if there
9590 # are no directories specified by -L.
9591 hardcode_minus_L=yes
9592 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9593 # Neither direct hardcoding nor static linking is supported with a
9594 # broken collect2.
9595 hardcode_direct=unsupported
9596 fi
9597 ;;
9598
9599 aix[4-9]*)
9600 if test "$host_cpu" = ia64; then
9601 # On IA64, the linker does run time linking by default, so we don't
9602 # have to do anything special.
9603 aix_use_runtimelinking=no
9604 exp_sym_flag='-Bexport'
9605 no_entry_flag=""
9606 else
9607 # If we're using GNU nm, then we don't want the "-C" option.
9608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9609 # Also, AIX nm treats weak defined symbols like other global
9610 # defined symbols, whereas GNU nm marks them as "W".
9611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9612 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'
9613 else
9614 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'
9615 fi
9616 aix_use_runtimelinking=no
9617
9618 # Test if we are trying to use run time linking or normal
9619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9620 # need to do runtime linking.
9621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9622 for ld_flag in $LDFLAGS; do
9623 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9624 aix_use_runtimelinking=yes
9625 break
9626 fi
9627 done
9628 ;;
9629 esac
9630
9631 exp_sym_flag='-bexport'
9632 no_entry_flag='-bnoentry'
9633 fi
9634
9635 # When large executables or shared objects are built, AIX ld can
9636 # have problems creating the table of contents. If linking a library
9637 # or program results in "error TOC overflow" add -mminimal-toc to
9638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9640
9641 archive_cmds=''
9642 hardcode_direct=yes
9643 hardcode_direct_absolute=yes
9644 hardcode_libdir_separator=':'
9645 link_all_deplibs=yes
9646 file_list_spec='${wl}-f,'
9647
9648 if test "$GCC" = yes; then
9649 case $host_os in aix4.[012]|aix4.[012].*)
9650 # We only want to do this on AIX 4.2 and lower, the check
9651 # below for broken collect2 doesn't work under 4.3+
9652 collect2name=`${CC} -print-prog-name=collect2`
9653 if test -f "$collect2name" &&
9654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9655 then
9656 # We have reworked collect2
9657 :
9658 else
9659 # We have old collect2
9660 hardcode_direct=unsupported
9661 # It fails to find uninstalled libraries when the uninstalled
9662 # path is not listed in the libpath. Setting hardcode_minus_L
9663 # to unsupported forces relinking
9664 hardcode_minus_L=yes
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_libdir_separator=
9667 fi
9668 ;;
9669 esac
9670 shared_flag='-shared'
9671 if test "$aix_use_runtimelinking" = yes; then
9672 shared_flag="$shared_flag "'${wl}-G'
9673 fi
9674 else
9675 # not using gcc
9676 if test "$host_cpu" = ia64; then
9677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9678 # chokes on -Wl,-G. The following line is correct:
9679 shared_flag='-G'
9680 else
9681 if test "$aix_use_runtimelinking" = yes; then
9682 shared_flag='${wl}-G'
9683 else
9684 shared_flag='${wl}-bM:SRE'
9685 fi
9686 fi
9687 fi
9688
9689 export_dynamic_flag_spec='${wl}-bexpall'
9690 # It seems that -bexpall does not export symbols beginning with
9691 # underscore (_), so it is better to generate a list of symbols to export.
9692 always_export_symbols=yes
9693 if test "$aix_use_runtimelinking" = yes; then
9694 # Warning - without using the other runtime loading flags (-brtl),
9695 # -berok will link without error, but may produce a broken library.
9696 allow_undefined_flag='-berok'
9697 # Determine the default libpath from the value encoded in an
9698 # empty executable.
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h. */
9701
9702int
9703main ()
9704{
9705
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710if ac_fn_c_try_link "$LINENO"; then :
9711
9712lt_aix_libpath_sed='
9713 /Import File Strings/,/^$/ {
9714 /^0/ {
9715 s/^0 *\(.*\)$/\1/
9716 p
9717 }
9718 }'
9719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720# Check for a 64-bit object if we didn't find anything.
9721if test -z "$aix_libpath"; then
9722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723fi
9724fi
9725rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9730 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"
9731 else
9732 if test "$host_cpu" = ia64; then
9733 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9734 allow_undefined_flag="-z nodefs"
9735 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"
9736 else
9737 # Determine the default libpath from the value encoded in an
9738 # empty executable.
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h. */
9741
9742int
9743main ()
9744{
9745
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_link "$LINENO"; then :
9751
9752lt_aix_libpath_sed='
9753 /Import File Strings/,/^$/ {
9754 /^0/ {
9755 s/^0 *\(.*\)$/\1/
9756 p
9757 }
9758 }'
9759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760# Check for a 64-bit object if we didn't find anything.
9761if test -z "$aix_libpath"; then
9762 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763fi
9764fi
9765rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9768
9769 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9770 # Warning - without using the other run time loading flags,
9771 # -berok will link without error, but may produce a broken library.
9772 no_undefined_flag=' ${wl}-bernotok'
9773 allow_undefined_flag=' ${wl}-berok'
9774 if test "$with_gnu_ld" = yes; then
9775 # We only use this code for GNU lds that support --whole-archive.
9776 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9777 else
9778 # Exported symbols can be pulled into shared objects from archives
9779 whole_archive_flag_spec='$convenience'
9780 fi
9781 archive_cmds_need_lc=yes
9782 # This is similar to how AIX traditionally builds its shared libraries.
9783 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'
9784 fi
9785 fi
9786 ;;
9787
9788 amigaos*)
9789 case $host_cpu in
9790 powerpc)
9791 # see comment about AmigaOS4 .so support
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 archive_expsym_cmds=''
9794 ;;
9795 m68k)
9796 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)'
9797 hardcode_libdir_flag_spec='-L$libdir'
9798 hardcode_minus_L=yes
9799 ;;
9800 esac
9801 ;;
9802
9803 bsdi[45]*)
9804 export_dynamic_flag_spec=-rdynamic
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 # When not using gcc, we currently assume that we are using
9809 # Microsoft Visual C++.
9810 # hardcode_libdir_flag_spec is actually meaningless, as there is
9811 # no search path for DLLs.
9812 hardcode_libdir_flag_spec=' '
9813 allow_undefined_flag=unsupported
9814 # Tell ltmain to make .lib files, not .a files.
9815 libext=lib
9816 # Tell ltmain to make .dll files, not .so files.
9817 shrext_cmds=".dll"
9818 # FIXME: Setting linknames here is a bad hack.
9819 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9820 # The linker will automatically build a .lib file if we build a DLL.
9821 old_archive_from_new_cmds='true'
9822 # FIXME: Should let the user specify the lib program.
9823 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9824 fix_srcfile_path='`cygpath -w "$srcfile"`'
9825 enable_shared_with_static_runtimes=yes
9826 ;;
9827
9828 darwin* | rhapsody*)
9829
9830
9831 archive_cmds_need_lc=no
9832 hardcode_direct=no
9833 hardcode_automatic=yes
9834 hardcode_shlibpath_var=unsupported
9835 if test "$lt_cv_ld_force_load" = "yes"; then
9836 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\"`'
9837 else
9838 whole_archive_flag_spec=''
9839 fi
9840 link_all_deplibs=yes
9841 allow_undefined_flag="$_lt_dar_allow_undefined"
9842 case $cc_basename in
9843 ifort*) _lt_dar_can_shared=yes ;;
9844 *) _lt_dar_can_shared=$GCC ;;
9845 esac
9846 if test "$_lt_dar_can_shared" = "yes"; then
9847 output_verbose_link_cmd=func_echo_all
9848 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9849 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9850 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}"
9851 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}"
9852
9853 else
9854 ld_shlibs=no
9855 fi
9856
9857 ;;
9858
9859 dgux*)
9860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_libdir_flag_spec='-L$libdir'
9862 hardcode_shlibpath_var=no
9863 ;;
9864
9865 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9866 # support. Future versions do this automatically, but an explicit c++rt0.o
9867 # does not break anything, and helps significantly (at the cost of a little
9868 # extra space).
9869 freebsd2.2*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9877 freebsd2.*)
9878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_direct=yes
9880 hardcode_minus_L=yes
9881 hardcode_shlibpath_var=no
9882 ;;
9883
9884 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9885 freebsd* | dragonfly*)
9886 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9887 hardcode_libdir_flag_spec='-R$libdir'
9888 hardcode_direct=yes
9889 hardcode_shlibpath_var=no
9890 ;;
9891
9892 hpux9*)
9893 if test "$GCC" = yes; then
9894 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'
9895 else
9896 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'
9897 fi
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 hardcode_direct=yes
9901
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9905 export_dynamic_flag_spec='${wl}-E'
9906 ;;
9907
9908 hpux10*)
9909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9910 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9911 else
9912 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9913 fi
9914 if test "$with_gnu_ld" = no; then
9915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9916 hardcode_libdir_flag_spec_ld='+b $libdir'
9917 hardcode_libdir_separator=:
9918 hardcode_direct=yes
9919 hardcode_direct_absolute=yes
9920 export_dynamic_flag_spec='${wl}-E'
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9924 fi
9925 ;;
9926
9927 hpux11*)
9928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9929 case $host_cpu in
9930 hppa*64*)
9931 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 ;;
9933 ia64*)
9934 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 *)
9937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 esac
9940 else
9941 case $host_cpu in
9942 hppa*64*)
9943 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 ;;
9945 ia64*)
9946 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 *)
9949
9950 # Older versions of the 11.00 compiler do not understand -b yet
9951 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9953$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9954if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
9955 $as_echo_n "(cached) " >&6
9956else
9957 lt_cv_prog_compiler__b=no
9958 save_LDFLAGS="$LDFLAGS"
9959 LDFLAGS="$LDFLAGS -b"
9960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9962 # The linker can only warn and ignore the option if not recognized
9963 # So say no if there are warnings
9964 if test -s conftest.err; then
9965 # Append any errors to the config.log.
9966 cat conftest.err 1>&5
9967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9969 if diff conftest.exp conftest.er2 >/dev/null; then
9970 lt_cv_prog_compiler__b=yes
9971 fi
9972 else
9973 lt_cv_prog_compiler__b=yes
9974 fi
9975 fi
9976 $RM -r conftest*
9977 LDFLAGS="$save_LDFLAGS"
9978
9979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9981$as_echo "$lt_cv_prog_compiler__b" >&6; }
9982
9983if test x"$lt_cv_prog_compiler__b" = xyes; then
9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985else
9986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9987fi
9988
9989 ;;
9990 esac
9991 fi
9992 if test "$with_gnu_ld" = no; then
9993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_separator=:
9995
9996 case $host_cpu in
9997 hppa*64*|ia64*)
9998 hardcode_direct=no
9999 hardcode_shlibpath_var=no
10000 ;;
10001 *)
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005
10006 # hardcode_minus_L: Not really in the search PATH,
10007 # but as the default location of the library.
10008 hardcode_minus_L=yes
10009 ;;
10010 esac
10011 fi
10012 ;;
10013
10014 irix5* | irix6* | nonstopux*)
10015 if test "$GCC" = yes; then
10016 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'
10017 # Try to use the -exported_symbol ld option, if it does not
10018 # work, assume that -exports_file does not work either and
10019 # implicitly export all symbols.
10020 save_LDFLAGS="$LDFLAGS"
10021 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h. */
10024int foo(void) {}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027 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'
10028
10029fi
10030rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LDFLAGS="$save_LDFLAGS"
10033 else
10034 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'
10035 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'
10036 fi
10037 archive_cmds_need_lc='no'
10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 inherit_rpath=yes
10041 link_all_deplibs=yes
10042 ;;
10043
10044 netbsd*)
10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10047 else
10048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10049 fi
10050 hardcode_libdir_flag_spec='-R$libdir'
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 ;;
10054
10055 newsos6)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes
10058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *nto* | *qnx*)
10064 ;;
10065
10066 openbsd*)
10067 if test -f /usr/libexec/ld.so; then
10068 hardcode_direct=yes
10069 hardcode_shlibpath_var=no
10070 hardcode_direct_absolute=yes
10071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10075 export_dynamic_flag_spec='${wl}-E'
10076 else
10077 case $host_os in
10078 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 ;;
10082 *)
10083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10085 ;;
10086 esac
10087 fi
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092
10093 os2*)
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_minus_L=yes
10096 allow_undefined_flag=unsupported
10097 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'
10098 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10099 ;;
10100
10101 osf3*)
10102 if test "$GCC" = yes; then
10103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10104 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'
10105 else
10106 allow_undefined_flag=' -expect_unresolved \*'
10107 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'
10108 fi
10109 archive_cmds_need_lc='no'
10110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111 hardcode_libdir_separator=:
10112 ;;
10113
10114 osf4* | osf5*) # as osf3* with the addition of -msym flag
10115 if test "$GCC" = yes; then
10116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10117 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'
10118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10119 else
10120 allow_undefined_flag=' -expect_unresolved \*'
10121 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'
10122 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~
10123 $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'
10124
10125 # Both c and cxx compiler support -rpath directly
10126 hardcode_libdir_flag_spec='-rpath $libdir'
10127 fi
10128 archive_cmds_need_lc='no'
10129 hardcode_libdir_separator=:
10130 ;;
10131
10132 solaris*)
10133 no_undefined_flag=' -z defs'
10134 if test "$GCC" = yes; then
10135 wlarc='${wl}'
10136 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10138 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10139 else
10140 case `$CC -V 2>&1` in
10141 *"Compilers 5.0"*)
10142 wlarc=''
10143 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10146 ;;
10147 *)
10148 wlarc='${wl}'
10149 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10152 ;;
10153 esac
10154 fi
10155 hardcode_libdir_flag_spec='-R$libdir'
10156 hardcode_shlibpath_var=no
10157 case $host_os in
10158 solaris2.[0-5] | solaris2.[0-5].*) ;;
10159 *)
10160 # The compiler driver will combine and reorder linker options,
10161 # but understands `-z linker_flag'. GCC discards it without `$wl',
10162 # but is careful enough not to reorder.
10163 # Supported since Solaris 2.6 (maybe 2.5.1?)
10164 if test "$GCC" = yes; then
10165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10166 else
10167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10168 fi
10169 ;;
10170 esac
10171 link_all_deplibs=yes
10172 ;;
10173
10174 sunos4*)
10175 if test "x$host_vendor" = xsequent; then
10176 # Use $CC to link under sequent, because it throws in some extra .o
10177 # files that make .init and .fini sections work.
10178 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10181 fi
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_direct=yes
10184 hardcode_minus_L=yes
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 sysv4)
10189 case $host_vendor in
10190 sni)
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_direct=yes # is this really true???
10193 ;;
10194 siemens)
10195 ## LD is ld it makes a PLAMLIB
10196 ## CC just makes a GrossModule.
10197 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10198 reload_cmds='$CC -r -o $output$reload_objs'
10199 hardcode_direct=no
10200 ;;
10201 motorola)
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10204 ;;
10205 esac
10206 runpath_var='LD_RUN_PATH'
10207 hardcode_shlibpath_var=no
10208 ;;
10209
10210 sysv4.3*)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_shlibpath_var=no
10213 export_dynamic_flag_spec='-Bexport'
10214 ;;
10215
10216 sysv4*MP*)
10217 if test -d /usr/nec; then
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_shlibpath_var=no
10220 runpath_var=LD_RUN_PATH
10221 hardcode_runpath_var=yes
10222 ld_shlibs=yes
10223 fi
10224 ;;
10225
10226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10227 no_undefined_flag='${wl}-z,text'
10228 archive_cmds_need_lc=no
10229 hardcode_shlibpath_var=no
10230 runpath_var='LD_RUN_PATH'
10231
10232 if test "$GCC" = yes; then
10233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 else
10236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 fi
10239 ;;
10240
10241 sysv5* | sco3.2v5* | sco5v6*)
10242 # Note: We can NOT use -z defs as we might desire, because we do not
10243 # link with -lc, and that would cause any symbols used from libc to
10244 # always be unresolved, which means just about no library would
10245 # ever link correctly. If we're not using GNU ld we use -z text
10246 # though, which does catch some bad symbols but isn't as heavy-handed
10247 # as -z defs.
10248 no_undefined_flag='${wl}-z,text'
10249 allow_undefined_flag='${wl}-z,nodefs'
10250 archive_cmds_need_lc=no
10251 hardcode_shlibpath_var=no
10252 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10253 hardcode_libdir_separator=':'
10254 link_all_deplibs=yes
10255 export_dynamic_flag_spec='${wl}-Bexport'
10256 runpath_var='LD_RUN_PATH'
10257
10258 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 else
10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 fi
10265 ;;
10266
10267 uts4*)
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 hardcode_shlibpath_var=no
10271 ;;
10272
10273 *)
10274 ld_shlibs=no
10275 ;;
10276 esac
10277
10278 if test x$host_vendor = xsni; then
10279 case $host in
10280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10281 export_dynamic_flag_spec='${wl}-Blargedynsym'
10282 ;;
10283 esac
10284 fi
10285 fi
10286
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10288$as_echo "$ld_shlibs" >&6; }
10289test "$ld_shlibs" = no && can_build_shared=no
10290
10291with_gnu_ld=$with_gnu_ld
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307#
10308# Do we need to explicitly link libc?
10309#
10310case "x$archive_cmds_need_lc" in
10311x|xyes)
10312 # Assume -lc should be added
10313 archive_cmds_need_lc=yes
10314
10315 if test "$enable_shared" = yes && test "$GCC" = yes; then
10316 case $archive_cmds in
10317 *'~'*)
10318 # FIXME: we may have to deal with multi-command sequences.
10319 ;;
10320 '$CC '*)
10321 # Test whether the compiler implicitly links with -lc since on some
10322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10323 # to ld, don't add -lc before -lgcc.
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10325$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10326if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10327 $as_echo_n "(cached) " >&6
10328else
10329 $RM conftest*
10330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10331
10332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10336 test $ac_status = 0; } 2>conftest.err; then
10337 soname=conftest
10338 lib=conftest
10339 libobjs=conftest.$ac_objext
10340 deplibs=
10341 wl=$lt_prog_compiler_wl
10342 pic_flag=$lt_prog_compiler_pic
10343 compiler_flags=-v
10344 linker_flags=-v
10345 verstring=
10346 output_objdir=.
10347 libname=conftest
10348 lt_save_allow_undefined_flag=$allow_undefined_flag
10349 allow_undefined_flag=
10350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10351 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10352 ac_status=$?
10353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354 test $ac_status = 0; }
10355 then
10356 lt_cv_archive_cmds_need_lc=no
10357 else
10358 lt_cv_archive_cmds_need_lc=yes
10359 fi
10360 allow_undefined_flag=$lt_save_allow_undefined_flag
10361 else
10362 cat conftest.err 1>&5
10363 fi
10364 $RM conftest*
10365
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10368$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10369 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10370 ;;
10371 esac
10372 fi
10373 ;;
10374esac
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533$as_echo_n "checking dynamic linker characteristics... " >&6; }
10534
10535if test "$GCC" = yes; then
10536 case $host_os in
10537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10538 *) lt_awk_arg="/^libraries:/" ;;
10539 esac
10540 case $host_os in
10541 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10542 *) lt_sed_strip_eq="s,=/,/,g" ;;
10543 esac
10544 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545 case $lt_search_path_spec in
10546 *\;*)
10547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10552 ;;
10553 *)
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10555 ;;
10556 esac
10557 # Ok, now we have the path, separated by spaces, we can step through it
10558 # and add multilib dir if necessary.
10559 lt_tmp_lt_search_path_spec=
10560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561 for lt_sys_path in $lt_search_path_spec; do
10562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10564 else
10565 test -d "$lt_sys_path" && \
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10567 fi
10568 done
10569 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10570BEGIN {RS=" "; FS="/|\n";} {
10571 lt_foo="";
10572 lt_count=0;
10573 for (lt_i = NF; lt_i > 0; lt_i--) {
10574 if ($lt_i != "" && $lt_i != ".") {
10575 if ($lt_i == "..") {
10576 lt_count++;
10577 } else {
10578 if (lt_count == 0) {
10579 lt_foo="/" $lt_i lt_foo;
10580 } else {
10581 lt_count--;
10582 }
10583 }
10584 }
10585 }
10586 if (lt_foo != "") { lt_freq[lt_foo]++; }
10587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10588}'`
10589 # AWK program above erroneously prepends '/' to C:/dos/paths
10590 # for these hosts.
10591 case $host_os in
10592 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10593 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10594 esac
10595 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10596else
10597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10598fi
10599library_names_spec=
10600libname_spec='lib$name'
10601soname_spec=
10602shrext_cmds=".so"
10603postinstall_cmds=
10604postuninstall_cmds=
10605finish_cmds=
10606finish_eval=
10607shlibpath_var=
10608shlibpath_overrides_runpath=unknown
10609version_type=none
10610dynamic_linker="$host_os ld.so"
10611sys_lib_dlsearch_path_spec="/lib /usr/lib"
10612need_lib_prefix=unknown
10613hardcode_into_libs=no
10614
10615# when you set need_version to no, make sure it does not cause -set_version
10616# flags to be left without arguments
10617need_version=unknown
10618
10619case $host_os in
10620aix3*)
10621 version_type=linux
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10624
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 ;;
10628
10629aix[4-9]*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 else
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10644 case $host_os in
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10647 echo ' yes '
10648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10649 :
10650 else
10651 can_build_shared=no
10652 fi
10653 ;;
10654 esac
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 else
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 fi
10669 shlibpath_var=LIBPATH
10670 fi
10671 ;;
10672
10673amigaos*)
10674 case $host_cpu in
10675 powerpc)
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 ;;
10680 m68k)
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 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'
10684 ;;
10685 esac
10686 ;;
10687
10688beos*)
10689 library_names_spec='${libname}${shared_ext}'
10690 dynamic_linker="$host_os ld.so"
10691 shlibpath_var=LIBRARY_PATH
10692 ;;
10693
10694bsdi[45]*)
10695 version_type=linux
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10706 ;;
10707
10708cygwin* | mingw* | pw32* | cegcc*)
10709 version_type=windows
10710 shrext_cmds=".dll"
10711 need_version=no
10712 need_lib_prefix=no
10713
10714 case $GCC,$host_os in
10715 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10716 library_names_spec='$libname.dll.a'
10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718 postinstall_cmds='base_file=`basename \${file}`~
10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720 dldir=$destdir/`dirname \$dlpath`~
10721 test -d \$dldir || mkdir -p \$dldir~
10722 $install_prog $dir/$dlname \$dldir/$dlname~
10723 chmod a+x \$dldir/$dlname~
10724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10726 fi'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10729 $RM \$dlpath'
10730 shlibpath_overrides_runpath=yes
10731
10732 case $host_os in
10733 cygwin*)
10734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10738 ;;
10739 mingw* | cegcc*)
10740 # MinGW DLLs use traditional 'lib' prefix
10741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 ;;
10743 pw32*)
10744 # pw32 DLLs use 'pw' prefix rather than 'lib'
10745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 ;;
10747 esac
10748 ;;
10749
10750 *)
10751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10752 ;;
10753 esac
10754 dynamic_linker='Win32 ld.exe'
10755 # FIXME: first we should search . and the directory the executable is in
10756 shlibpath_var=PATH
10757 ;;
10758
10759darwin* | rhapsody*)
10760 dynamic_linker="$host_os dyld"
10761 version_type=darwin
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10765 soname_spec='${libname}${release}${major}$shared_ext'
10766 shlibpath_overrides_runpath=yes
10767 shlibpath_var=DYLD_LIBRARY_PATH
10768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10769
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10772 ;;
10773
10774dgux*)
10775 version_type=linux
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 ;;
10782
10783freebsd* | dragonfly*)
10784 # DragonFly does not have aout. When/if they implement a new
10785 # versioning mechanism, adjust this.
10786 if test -x /usr/bin/objformat; then
10787 objformat=`/usr/bin/objformat`
10788 else
10789 case $host_os in
10790 freebsd[23].*) objformat=aout ;;
10791 *) objformat=elf ;;
10792 esac
10793 fi
10794 version_type=freebsd-$objformat
10795 case $version_type in
10796 freebsd-elf*)
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10798 need_version=no
10799 need_lib_prefix=no
10800 ;;
10801 freebsd-*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10803 need_version=yes
10804 ;;
10805 esac
10806 shlibpath_var=LD_LIBRARY_PATH
10807 case $host_os in
10808 freebsd2.*)
10809 shlibpath_overrides_runpath=yes
10810 ;;
10811 freebsd3.[01]* | freebsdelf3.[01]*)
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 ;;
10815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10819 ;;
10820 *) # from 4.6 on, and DragonFly
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824 esac
10825 ;;
10826
10827gnu*)
10828 version_type=linux
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 hardcode_into_libs=yes
10835 ;;
10836
10837haiku*)
10838 version_type=linux
10839 need_lib_prefix=no
10840 need_version=no
10841 dynamic_linker="$host_os runtime_loader"
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 shlibpath_var=LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes
10846 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10847 hardcode_into_libs=yes
10848 ;;
10849
10850hpux9* | hpux10* | hpux11*)
10851 # Give a soname corresponding to the major version so that dld.sl refuses to
10852 # link against other versions.
10853 version_type=sunos
10854 need_lib_prefix=no
10855 need_version=no
10856 case $host_cpu in
10857 ia64*)
10858 shrext_cmds='.so'
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.so"
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 if test "X$HPUX_IA64_MODE" = X32; then
10866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10867 else
10868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10869 fi
10870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10871 ;;
10872 hppa*64*)
10873 shrext_cmds='.sl'
10874 hardcode_into_libs=yes
10875 dynamic_linker="$host_os dld.sl"
10876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10882 ;;
10883 *)
10884 shrext_cmds='.sl'
10885 dynamic_linker="$host_os dld.sl"
10886 shlibpath_var=SHLIB_PATH
10887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 ;;
10891 esac
10892 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10893 postinstall_cmds='chmod 555 $lib'
10894 # or fails outright, so override atomically:
10895 install_override_mode=555
10896 ;;
10897
10898interix[3-9]*)
10899 version_type=linux
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=no
10907 hardcode_into_libs=yes
10908 ;;
10909
10910irix5* | irix6* | nonstopux*)
10911 case $host_os in
10912 nonstopux*) version_type=nonstopux ;;
10913 *)
10914 if test "$lt_cv_prog_gnu_ld" = yes; then
10915 version_type=linux
10916 else
10917 version_type=irix
10918 fi ;;
10919 esac
10920 need_lib_prefix=no
10921 need_version=no
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10924 case $host_os in
10925 irix5* | nonstopux*)
10926 libsuff= shlibsuff=
10927 ;;
10928 *)
10929 case $LD in # libtool.m4 will add one of these switches to LD
10930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10931 libsuff= shlibsuff= libmagic=32-bit;;
10932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10933 libsuff=32 shlibsuff=N32 libmagic=N32;;
10934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10936 *) libsuff= shlibsuff= libmagic=never-match;;
10937 esac
10938 ;;
10939 esac
10940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10941 shlibpath_overrides_runpath=no
10942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10944 hardcode_into_libs=yes
10945 ;;
10946
10947# No shared lib support for Linux oldld, aout, or coff.
10948linux*oldld* | linux*aout* | linux*coff*)
10949 dynamic_linker=no
10950 ;;
10951
10952# This must be Linux ELF.
e9085da5
MR
10953
10954# uclinux* changes (here and below) have been submitted to the libtool
10955# project, but have not yet been accepted: they are GCC-local changes
10956# for the time being. (See
10957# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10958linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967
10968 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10969 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
10970 $as_echo_n "(cached) " >&6
10971else
10972 lt_cv_shlibpath_overrides_runpath=no
10973 save_LDFLAGS=$LDFLAGS
10974 save_libdir=$libdir
10975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h. */
10979
10980int
10981main ()
10982{
10983
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988if ac_fn_c_try_link "$LINENO"; then :
10989 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10990 lt_cv_shlibpath_overrides_runpath=yes
10991fi
10992fi
10993rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LDFLAGS=$save_LDFLAGS
10996 libdir=$save_libdir
10997
10998fi
10999
11000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11001
11002 # This implies no fast_install, which is unacceptable.
11003 # Some rework will be needed to allow for fast_install
11004 # before this can be enabled.
11005 hardcode_into_libs=yes
11006
11007 # Append ld.so.conf contents to the search path
11008 if test -f /etc/ld.so.conf; then
11009 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' ' '`
11010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11011 fi
11012
11013 # We used to test for /lib/ld.so.1 and disable shared libraries on
11014 # powerpc, because MkLinux only supported shared libraries with the
11015 # GNU dynamic linker. Since this was broken with cross compilers,
11016 # most powerpc-linux boxes support dynamic linking these days and
11017 # people can always --disable-shared, the test was removed, and we
11018 # assume the GNU/Linux dynamic linker is in use.
11019 dynamic_linker='GNU/Linux ld.so'
11020 ;;
11021
11022netbsd*)
11023 version_type=sunos
11024 need_lib_prefix=no
11025 need_version=no
11026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11029 dynamic_linker='NetBSD (a.out) ld.so'
11030 else
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 dynamic_linker='NetBSD ld.elf_so'
11034 fi
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 hardcode_into_libs=yes
11038 ;;
11039
11040newsos6)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 ;;
11046
11047*nto* | *qnx*)
11048 version_type=qnx
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11056 dynamic_linker='ldqnx.so'
11057 ;;
11058
11059openbsd*)
11060 version_type=sunos
11061 sys_lib_dlsearch_path_spec="/usr/lib"
11062 need_lib_prefix=no
11063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11064 case $host_os in
11065 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11066 *) need_version=no ;;
11067 esac
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11072 case $host_os in
11073 openbsd2.[89] | openbsd2.[89].*)
11074 shlibpath_overrides_runpath=no
11075 ;;
11076 *)
11077 shlibpath_overrides_runpath=yes
11078 ;;
11079 esac
11080 else
11081 shlibpath_overrides_runpath=yes
11082 fi
11083 ;;
11084
11085os2*)
11086 libname_spec='$name'
11087 shrext_cmds=".dll"
11088 need_lib_prefix=no
11089 library_names_spec='$libname${shared_ext} $libname.a'
11090 dynamic_linker='OS/2 ld.exe'
11091 shlibpath_var=LIBPATH
11092 ;;
11093
11094osf3* | osf4* | osf5*)
11095 version_type=osf
11096 need_lib_prefix=no
11097 need_version=no
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11103 ;;
11104
11105rdos*)
11106 dynamic_linker=no
11107 ;;
11108
11109solaris*)
11110 version_type=linux
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 # ldd complains unless libraries are executable
11119 postinstall_cmds='chmod +x $lib'
11120 ;;
11121
11122sunos4*)
11123 version_type=sunos
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 if test "$with_gnu_ld" = yes; then
11129 need_lib_prefix=no
11130 fi
11131 need_version=yes
11132 ;;
11133
11134sysv4 | sysv4.3*)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 case $host_vendor in
11140 sni)
11141 shlibpath_overrides_runpath=no
11142 need_lib_prefix=no
11143 runpath_var=LD_RUN_PATH
11144 ;;
11145 siemens)
11146 need_lib_prefix=no
11147 ;;
11148 motorola)
11149 need_lib_prefix=no
11150 need_version=no
11151 shlibpath_overrides_runpath=no
11152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11153 ;;
11154 esac
11155 ;;
11156
11157sysv4*MP*)
11158 if test -d /usr/nec ;then
11159 version_type=linux
11160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11161 soname_spec='$libname${shared_ext}.$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 fi
11164 ;;
11165
11166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11167 version_type=freebsd-elf
11168 need_lib_prefix=no
11169 need_version=no
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=yes
11174 hardcode_into_libs=yes
11175 if test "$with_gnu_ld" = yes; then
11176 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11177 else
11178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11179 case $host_os in
11180 sco3.2v5*)
11181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11182 ;;
11183 esac
11184 fi
11185 sys_lib_dlsearch_path_spec='/usr/lib'
11186 ;;
11187
11188tpf*)
11189 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=no
11196 hardcode_into_libs=yes
11197 ;;
11198
11199uts4*)
11200 version_type=linux
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 ;;
11205
11206*)
11207 dynamic_linker=no
11208 ;;
11209esac
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11211$as_echo "$dynamic_linker" >&6; }
11212test "$dynamic_linker" = no && can_build_shared=no
11213
11214variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11215if test "$GCC" = yes; then
11216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11217fi
11218
11219if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11220 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11221fi
11222if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11223 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11224fi
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11318$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11319hardcode_action=
11320if test -n "$hardcode_libdir_flag_spec" ||
11321 test -n "$runpath_var" ||
11322 test "X$hardcode_automatic" = "Xyes" ; then
11323
11324 # We can hardcode non-existent directories.
11325 if test "$hardcode_direct" != no &&
11326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11327 # have to relink, otherwise we might link with an installed library
11328 # when we should be linking with a yet-to-be-installed one
11329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11330 test "$hardcode_minus_L" != no; then
11331 # Linking always hardcodes the temporary library directory.
11332 hardcode_action=relink
11333 else
11334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11335 hardcode_action=immediate
11336 fi
11337else
11338 # We cannot hardcode anything, or else we can only hardcode existing
11339 # directories.
11340 hardcode_action=unsupported
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11343$as_echo "$hardcode_action" >&6; }
11344
11345if test "$hardcode_action" = relink ||
11346 test "$inherit_rpath" = yes; then
11347 # Fast installation is not supported
11348 enable_fast_install=no
11349elif test "$shlibpath_overrides_runpath" = yes ||
11350 test "$enable_shared" = no; then
11351 # Fast installation is not necessary
11352 enable_fast_install=needless
11353fi
11354
11355
11356
11357
11358
11359
11360 if test "x$enable_dlopen" != xyes; then
11361 enable_dlopen=unknown
11362 enable_dlopen_self=unknown
11363 enable_dlopen_self_static=unknown
11364else
11365 lt_cv_dlopen=no
11366 lt_cv_dlopen_libs=
11367
11368 case $host_os in
11369 beos*)
11370 lt_cv_dlopen="load_add_on"
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=yes
11373 ;;
11374
11375 mingw* | pw32* | cegcc*)
11376 lt_cv_dlopen="LoadLibrary"
11377 lt_cv_dlopen_libs=
11378 ;;
11379
11380 cygwin*)
11381 lt_cv_dlopen="dlopen"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 darwin*)
11386 # if libdl is installed we need to link against it
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11389if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11390 $as_echo_n "(cached) " >&6
11391else
11392 ac_check_lib_save_LIBS=$LIBS
11393LIBS="-ldl $LIBS"
11394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395/* end confdefs.h. */
11396
11397/* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400#ifdef __cplusplus
11401extern "C"
11402#endif
11403char dlopen ();
11404int
11405main ()
11406{
11407return dlopen ();
11408 ;
11409 return 0;
11410}
11411_ACEOF
11412if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_dl_dlopen=yes
11414else
11415 ac_cv_lib_dl_dlopen=no
11416fi
11417rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419LIBS=$ac_check_lib_save_LIBS
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11423if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11425else
11426
11427 lt_cv_dlopen="dyld"
11428 lt_cv_dlopen_libs=
11429 lt_cv_dlopen_self=yes
11430
11431fi
11432
11433 ;;
11434
11435 *)
11436 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11437if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11438 lt_cv_dlopen="shl_load"
11439else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11441$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11442if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11443 $as_echo_n "(cached) " >&6
11444else
11445 ac_check_lib_save_LIBS=$LIBS
11446LIBS="-ldld $LIBS"
11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h. */
11449
11450/* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456char shl_load ();
11457int
11458main ()
11459{
11460return shl_load ();
11461 ;
11462 return 0;
11463}
11464_ACEOF
11465if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dld_shl_load=yes
11467else
11468 ac_cv_lib_dld_shl_load=no
11469fi
11470rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472LIBS=$ac_check_lib_save_LIBS
11473fi
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11475$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11476if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11477 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11478else
11479 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11480if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11481 lt_cv_dlopen="dlopen"
11482else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11485if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11486 $as_echo_n "(cached) " >&6
11487else
11488 ac_check_lib_save_LIBS=$LIBS
11489LIBS="-ldl $LIBS"
11490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491/* end confdefs.h. */
11492
11493/* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496#ifdef __cplusplus
11497extern "C"
11498#endif
11499char dlopen ();
11500int
11501main ()
11502{
11503return dlopen ();
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_dl_dlopen=yes
11510else
11511 ac_cv_lib_dl_dlopen=no
11512fi
11513rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515LIBS=$ac_check_lib_save_LIBS
11516fi
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11519if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11521else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11523$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11524if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11525 $as_echo_n "(cached) " >&6
11526else
11527 ac_check_lib_save_LIBS=$LIBS
11528LIBS="-lsvld $LIBS"
11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h. */
11531
11532/* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535#ifdef __cplusplus
11536extern "C"
11537#endif
11538char dlopen ();
11539int
11540main ()
11541{
11542return dlopen ();
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_svld_dlopen=yes
11549else
11550 ac_cv_lib_svld_dlopen=no
11551fi
11552rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554LIBS=$ac_check_lib_save_LIBS
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11557$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11558if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11560else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11562$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11563if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11564 $as_echo_n "(cached) " >&6
11565else
11566 ac_check_lib_save_LIBS=$LIBS
11567LIBS="-ldld $LIBS"
11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h. */
11570
11571/* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char dld_link ();
11578int
11579main ()
11580{
11581return dld_link ();
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dld_dld_link=yes
11588else
11589 ac_cv_lib_dld_dld_link=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593LIBS=$ac_check_lib_save_LIBS
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11596$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11597if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11598 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607
11608fi
11609
11610
11611fi
11612
11613
11614fi
11615
11616 ;;
11617 esac
11618
11619 if test "x$lt_cv_dlopen" != xno; then
11620 enable_dlopen=yes
11621 else
11622 enable_dlopen=no
11623 fi
11624
11625 case $lt_cv_dlopen in
11626 dlopen)
11627 save_CPPFLAGS="$CPPFLAGS"
11628 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11629
11630 save_LDFLAGS="$LDFLAGS"
11631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11632
11633 save_LIBS="$LIBS"
11634 LIBS="$lt_cv_dlopen_libs $LIBS"
11635
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11637$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11638if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11639 $as_echo_n "(cached) " >&6
11640else
11641 if test "$cross_compiling" = yes; then :
11642 lt_cv_dlopen_self=cross
11643else
11644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11645 lt_status=$lt_dlunknown
11646 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 11647#line 11647 "configure"
b4c522fa
IB
11648#include "confdefs.h"
11649
11650#if HAVE_DLFCN_H
11651#include <dlfcn.h>
11652#endif
11653
11654#include <stdio.h>
11655
11656#ifdef RTLD_GLOBAL
11657# define LT_DLGLOBAL RTLD_GLOBAL
11658#else
11659# ifdef DL_GLOBAL
11660# define LT_DLGLOBAL DL_GLOBAL
11661# else
11662# define LT_DLGLOBAL 0
11663# endif
11664#endif
11665
11666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667 find out it does not work in some platform. */
11668#ifndef LT_DLLAZY_OR_NOW
11669# ifdef RTLD_LAZY
11670# define LT_DLLAZY_OR_NOW RTLD_LAZY
11671# else
11672# ifdef DL_LAZY
11673# define LT_DLLAZY_OR_NOW DL_LAZY
11674# else
11675# ifdef RTLD_NOW
11676# define LT_DLLAZY_OR_NOW RTLD_NOW
11677# else
11678# ifdef DL_NOW
11679# define LT_DLLAZY_OR_NOW DL_NOW
11680# else
11681# define LT_DLLAZY_OR_NOW 0
11682# endif
11683# endif
11684# endif
11685# endif
11686#endif
11687
11688/* When -fvisbility=hidden is used, assume the code has been annotated
11689 correspondingly for the symbols needed. */
11690#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11691void fnord () __attribute__((visibility("default")));
11692#endif
11693
11694void fnord () { int i=42; }
11695int main ()
11696{
11697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11698 int status = $lt_dlunknown;
11699
11700 if (self)
11701 {
11702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11703 else
11704 {
11705 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11706 else puts (dlerror ());
11707 }
11708 /* dlclose (self); */
11709 }
11710 else
11711 puts (dlerror ());
11712
11713 return status;
11714}
11715_LT_EOF
11716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11721 (./conftest; exit; ) >&5 2>/dev/null
11722 lt_status=$?
11723 case x$lt_status in
11724 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11725 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11726 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11727 esac
11728 else :
11729 # compilation failed
11730 lt_cv_dlopen_self=no
11731 fi
11732fi
11733rm -fr conftest*
11734
11735
11736fi
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11738$as_echo "$lt_cv_dlopen_self" >&6; }
11739
11740 if test "x$lt_cv_dlopen_self" = xyes; then
11741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11743$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11744if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11745 $as_echo_n "(cached) " >&6
11746else
11747 if test "$cross_compiling" = yes; then :
11748 lt_cv_dlopen_self_static=cross
11749else
11750 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11751 lt_status=$lt_dlunknown
11752 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 11753#line 11753 "configure"
b4c522fa
IB
11754#include "confdefs.h"
11755
11756#if HAVE_DLFCN_H
11757#include <dlfcn.h>
11758#endif
11759
11760#include <stdio.h>
11761
11762#ifdef RTLD_GLOBAL
11763# define LT_DLGLOBAL RTLD_GLOBAL
11764#else
11765# ifdef DL_GLOBAL
11766# define LT_DLGLOBAL DL_GLOBAL
11767# else
11768# define LT_DLGLOBAL 0
11769# endif
11770#endif
11771
11772/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11773 find out it does not work in some platform. */
11774#ifndef LT_DLLAZY_OR_NOW
11775# ifdef RTLD_LAZY
11776# define LT_DLLAZY_OR_NOW RTLD_LAZY
11777# else
11778# ifdef DL_LAZY
11779# define LT_DLLAZY_OR_NOW DL_LAZY
11780# else
11781# ifdef RTLD_NOW
11782# define LT_DLLAZY_OR_NOW RTLD_NOW
11783# else
11784# ifdef DL_NOW
11785# define LT_DLLAZY_OR_NOW DL_NOW
11786# else
11787# define LT_DLLAZY_OR_NOW 0
11788# endif
11789# endif
11790# endif
11791# endif
11792#endif
11793
11794/* When -fvisbility=hidden is used, assume the code has been annotated
11795 correspondingly for the symbols needed. */
11796#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11797void fnord () __attribute__((visibility("default")));
11798#endif
11799
11800void fnord () { int i=42; }
11801int main ()
11802{
11803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11804 int status = $lt_dlunknown;
11805
11806 if (self)
11807 {
11808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11809 else
11810 {
11811 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11812 else puts (dlerror ());
11813 }
11814 /* dlclose (self); */
11815 }
11816 else
11817 puts (dlerror ());
11818
11819 return status;
11820}
11821_LT_EOF
11822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11823 (eval $ac_link) 2>&5
11824 ac_status=$?
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11827 (./conftest; exit; ) >&5 2>/dev/null
11828 lt_status=$?
11829 case x$lt_status in
11830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11833 esac
11834 else :
11835 # compilation failed
11836 lt_cv_dlopen_self_static=no
11837 fi
11838fi
11839rm -fr conftest*
11840
11841
11842fi
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11844$as_echo "$lt_cv_dlopen_self_static" >&6; }
11845 fi
11846
11847 CPPFLAGS="$save_CPPFLAGS"
11848 LDFLAGS="$save_LDFLAGS"
11849 LIBS="$save_LIBS"
11850 ;;
11851 esac
11852
11853 case $lt_cv_dlopen_self in
11854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11855 *) enable_dlopen_self=unknown ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self_static in
11859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11860 *) enable_dlopen_self_static=unknown ;;
11861 esac
11862fi
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880striplib=
11881old_striplib=
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11883$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11884if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
11889else
11890# FIXME - insert some real tests, host_os isn't really good enough
11891 case $host_os in
11892 darwin*)
11893 if test -n "$STRIP" ; then
11894 striplib="$STRIP -x"
11895 old_striplib="$STRIP -S"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897$as_echo "yes" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901 fi
11902 ;;
11903 *)
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
11906 ;;
11907 esac
11908fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 # Report which library types will actually be built
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11923$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11925$as_echo "$can_build_shared" >&6; }
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11928$as_echo_n "checking whether to build shared libraries... " >&6; }
11929 test "$can_build_shared" = "no" && enable_shared=no
11930
11931 # On AIX, shared libraries and static libraries use the same namespace, and
11932 # are all built from PIC.
11933 case $host_os in
11934 aix3*)
11935 test "$enable_shared" = yes && enable_static=no
11936 if test -n "$RANLIB"; then
11937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11938 postinstall_cmds='$RANLIB $lib'
11939 fi
11940 ;;
11941
11942 aix[4-9]*)
11943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11944 test "$enable_shared" = yes && enable_static=no
11945 fi
11946 ;;
11947 esac
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11949$as_echo "$enable_shared" >&6; }
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11952$as_echo_n "checking whether to build static libraries... " >&6; }
11953 # Make sure either enable_shared or enable_static is yes.
11954 test "$enable_shared" = yes || enable_static=yes
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11956$as_echo "$enable_static" >&6; }
11957
11958
11959
11960
11961fi
11962ac_ext=c
11963ac_cpp='$CPP $CPPFLAGS'
11964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968CC="$lt_save_CC"
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 ac_config_commands="$ac_config_commands libtool"
11983
11984
11985
11986
11987# Only expand once:
11988
11989
11990
11991
11992
11993 gdc_save_DFLAGS=$GDCFLAGS
11994 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11995
11996
11997# Source file extension for D test sources.
11998ac_ext=d
11999
12000# Object file extension for compiled D test sources.
12001objext=o
12002objext_D=$objext
12003
12004# Code to be used in simple compile tests
9bedfe18
IB
12005lt_simple_compile_test_code="\
12006 module object;
12007 shared int some_variable = 0;
12008"
b4c522fa
IB
12009
12010# Code to be used in simple link tests
9bedfe18
IB
12011lt_simple_link_test_code="\
12012 module object;
12013 extern(C) int main() { return 0; }
12014"
b4c522fa
IB
12015
12016# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12017
12018
12019
12020
12021
12022
12023# If no C compiler was specified, use CC.
12024LTCC=${LTCC-"$CC"}
12025
12026# If no C compiler flags were specified, use CFLAGS.
12027LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12028
12029# Allow CC to be a program name with arguments.
12030compiler=$CC
12031
12032
12033# save warnings/boilerplate of simple test code
12034ac_outfile=conftest.$ac_objext
12035echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12037_lt_compiler_boilerplate=`cat conftest.err`
12038$RM conftest*
12039
12040ac_outfile=conftest.$ac_objext
12041echo "$lt_simple_link_test_code" >conftest.$ac_ext
12042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12043_lt_linker_boilerplate=`cat conftest.err`
12044$RM -r conftest*
12045
12046
12047# Allow CC to be a program name with arguments.
12048lt_save_CC=$CC
12049lt_save_CFLAGS=$CFLAGS
b4c522fa
IB
12050lt_save_GCC=$GCC
12051GCC=yes
12052CC=${GDC-"gdc"}
b4c522fa
IB
12053CFLAGS=$GDCFLAGS
12054compiler=$CC
12055compiler_D=$CC
12056LD_D=$CC
12057for cc_temp in $compiler""; do
12058 case $cc_temp in
12059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12061 \-*) ;;
12062 *) break;;
12063 esac
12064done
12065cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12066
12067
12068# GDC did not exist at the time GCC didn't implicitly link libc in.
12069archive_cmds_need_lc_D=no
12070
12071old_archive_cmds_D=$old_archive_cmds
12072reload_flag_D=$reload_flag
12073reload_cmds_D=$reload_cmds
12074
12075## CAVEAT EMPTOR:
12076## There is no encapsulation within the following macros, do not change
12077## the running order or otherwise move them around unless you know exactly
12078## what you are doing...
12079if test -n "$compiler"; then
12080
12081lt_prog_compiler_no_builtin_flag_D=
12082
12083if test "$GCC" = yes; then
12084 case $cc_basename in
12085 nvcc*)
12086 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12087 *)
12088 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12089 esac
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12092$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 12093if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
12094 $as_echo_n "(cached) " >&6
12095else
12096 lt_cv_prog_compiler_rtti_exceptions=no
12097 ac_outfile=conftest.$ac_objext
12098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12099 lt_compiler_flag="-fno-rtti -fno-exceptions"
12100 # Insert the option either (1) after the last *FLAGS variable, or
12101 # (2) before a word containing "conftest.", or (3) at the end.
12102 # Note that $ac_compile itself does not contain backslashes and begins
12103 # with a dollar sign (not a hyphen), so the echo should work correctly.
12104 # The option is referenced via a variable to avoid confusing sed.
12105 lt_compile=`echo "$ac_compile" | $SED \
12106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12108 -e 's:$: $lt_compiler_flag:'`
12109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12110 (eval "$lt_compile" 2>conftest.err)
12111 ac_status=$?
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 if (exit $ac_status) && test -s "$ac_outfile"; then
12115 # The compiler can only warn and ignore the option if not recognized
12116 # So say no if there are warnings other than the usual output.
12117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12120 lt_cv_prog_compiler_rtti_exceptions=yes
12121 fi
12122 fi
12123 $RM conftest*
12124
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12127$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12128
12129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12130 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12131else
12132 :
12133fi
12134
12135fi
12136
12137
12138
12139 lt_prog_compiler_wl_D=
12140lt_prog_compiler_pic_D=
12141lt_prog_compiler_static_D=
12142
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12144$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12145
12146 if test "$GCC" = yes; then
12147 lt_prog_compiler_wl_D='-Wl,'
12148 lt_prog_compiler_static_D='-static'
12149
12150 case $host_os in
12151 aix*)
12152 # All AIX code is PIC.
12153 if test "$host_cpu" = ia64; then
12154 # AIX 5 now supports IA64 processor
12155 lt_prog_compiler_static_D='-Bstatic'
12156 fi
12157 lt_prog_compiler_pic_D='-fPIC'
12158 ;;
12159
12160 amigaos*)
12161 case $host_cpu in
12162 powerpc)
12163 # see comment about AmigaOS4 .so support
12164 lt_prog_compiler_pic_D='-fPIC'
12165 ;;
12166 m68k)
12167 # FIXME: we need at least 68020 code to build shared libraries, but
12168 # adding the `-m68020' flag to GCC prevents building anything better,
12169 # like `-m68040'.
12170 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12171 ;;
12172 esac
12173 ;;
12174
12175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12176 # PIC is the default for these OSes.
12177 ;;
12178
12179 mingw* | cygwin* | pw32* | os2* | cegcc*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12183 # (--disable-auto-import) libraries
12184 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12185 ;;
12186
12187 darwin* | rhapsody*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 lt_prog_compiler_pic_D='-fno-common'
12191 ;;
12192
12193 haiku*)
12194 # PIC is the default for Haiku.
12195 # The "-static" flag exists, but is broken.
12196 lt_prog_compiler_static_D=
12197 ;;
12198
12199 hpux*)
12200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12202 # sets the default TLS model and affects inlining.
12203 case $host_cpu in
12204 hppa*64*)
12205 # +Z the default
12206 ;;
12207 *)
12208 lt_prog_compiler_pic_D='-fPIC'
12209 ;;
12210 esac
12211 ;;
12212
12213 interix[3-9]*)
12214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12215 # Instead, we relocate shared libraries at runtime.
12216 ;;
12217
12218 msdosdjgpp*)
12219 # Just because we use GCC doesn't mean we suddenly get shared libraries
12220 # on systems that don't support them.
12221 lt_prog_compiler_can_build_shared_D=no
12222 enable_shared=no
12223 ;;
12224
12225 *nto* | *qnx*)
12226 # QNX uses GNU C++, but need to define -shared option too, otherwise
12227 # it will coredump.
12228 lt_prog_compiler_pic_D='-fPIC -shared'
12229 ;;
12230
12231 sysv4*MP*)
12232 if test -d /usr/nec; then
12233 lt_prog_compiler_pic_D=-Kconform_pic
12234 fi
12235 ;;
12236
12237 *)
12238 lt_prog_compiler_pic_D='-fPIC'
12239 ;;
12240 esac
12241
12242 case $cc_basename in
12243 nvcc*) # Cuda Compiler Driver 2.2
12244 lt_prog_compiler_wl_D='-Xlinker '
12245 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12246 ;;
12247 esac
12248 else
12249 # PORTME Check for flag to pass linker flags through the system compiler.
12250 case $host_os in
12251 aix*)
12252 lt_prog_compiler_wl_D='-Wl,'
12253 if test "$host_cpu" = ia64; then
12254 # AIX 5 now supports IA64 processor
12255 lt_prog_compiler_static_D='-Bstatic'
12256 else
12257 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12258 fi
12259 ;;
12260
12261 mingw* | cygwin* | pw32* | os2* | cegcc*)
12262 # This hack is so that the source file can tell whether it is being
12263 # built for inclusion in a dll (and should export symbols for example).
12264 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12265 ;;
12266
12267 hpux9* | hpux10* | hpux11*)
12268 lt_prog_compiler_wl_D='-Wl,'
12269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12270 # not for PA HP-UX.
12271 case $host_cpu in
12272 hppa*64*|ia64*)
12273 # +Z the default
12274 ;;
12275 *)
12276 lt_prog_compiler_pic_D='+Z'
12277 ;;
12278 esac
12279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12280 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12281 ;;
12282
12283 irix5* | irix6* | nonstopux*)
12284 lt_prog_compiler_wl_D='-Wl,'
12285 # PIC (with -KPIC) is the default.
12286 lt_prog_compiler_static_D='-non_shared'
12287 ;;
12288
12289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12290 case $cc_basename in
12291 # old Intel for x86_64 which still supported -KPIC.
12292 ecc*)
12293 lt_prog_compiler_wl_D='-Wl,'
12294 lt_prog_compiler_pic_D='-KPIC'
12295 lt_prog_compiler_static_D='-static'
12296 ;;
12297 # icc used to be incompatible with GCC.
12298 # ICC 10 doesn't accept -KPIC any more.
12299 icc* | ifort*)
12300 lt_prog_compiler_wl_D='-Wl,'
12301 lt_prog_compiler_pic_D='-fPIC'
12302 lt_prog_compiler_static_D='-static'
12303 ;;
12304 # Lahey Fortran 8.1.
12305 lf95*)
12306 lt_prog_compiler_wl_D='-Wl,'
12307 lt_prog_compiler_pic_D='--shared'
12308 lt_prog_compiler_static_D='--static'
12309 ;;
12310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12311 # Portland Group compilers (*not* the Pentium gcc compiler,
12312 # which looks to be a dead project)
12313 lt_prog_compiler_wl_D='-Wl,'
12314 lt_prog_compiler_pic_D='-fpic'
12315 lt_prog_compiler_static_D='-Bstatic'
12316 ;;
12317 ccc*)
12318 lt_prog_compiler_wl_D='-Wl,'
12319 # All Alpha code is PIC.
12320 lt_prog_compiler_static_D='-non_shared'
12321 ;;
12322 xl* | bgxl* | bgf* | mpixl*)
12323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12324 lt_prog_compiler_wl_D='-Wl,'
12325 lt_prog_compiler_pic_D='-qpic'
12326 lt_prog_compiler_static_D='-qstaticlink'
12327 ;;
12328 *)
12329 case `$CC -V 2>&1 | sed 5q` in
12330 *Sun\ F* | *Sun*Fortran*)
12331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12332 lt_prog_compiler_pic_D='-KPIC'
12333 lt_prog_compiler_static_D='-Bstatic'
12334 lt_prog_compiler_wl_D=''
12335 ;;
12336 *Sun\ C*)
12337 # Sun C 5.9
12338 lt_prog_compiler_pic_D='-KPIC'
12339 lt_prog_compiler_static_D='-Bstatic'
12340 lt_prog_compiler_wl_D='-Wl,'
12341 ;;
12342 esac
12343 ;;
12344 esac
12345 ;;
12346
12347 newsos6)
12348 lt_prog_compiler_pic_D='-KPIC'
12349 lt_prog_compiler_static_D='-Bstatic'
12350 ;;
12351
12352 *nto* | *qnx*)
12353 # QNX uses GNU C++, but need to define -shared option too, otherwise
12354 # it will coredump.
12355 lt_prog_compiler_pic_D='-fPIC -shared'
12356 ;;
12357
12358 osf3* | osf4* | osf5*)
12359 lt_prog_compiler_wl_D='-Wl,'
12360 # All OSF/1 code is PIC.
12361 lt_prog_compiler_static_D='-non_shared'
12362 ;;
12363
12364 rdos*)
12365 lt_prog_compiler_static_D='-non_shared'
12366 ;;
12367
12368 solaris*)
12369 lt_prog_compiler_pic_D='-KPIC'
12370 lt_prog_compiler_static_D='-Bstatic'
12371 case $cc_basename in
12372 f77* | f90* | f95*)
12373 lt_prog_compiler_wl_D='-Qoption ld ';;
12374 *)
12375 lt_prog_compiler_wl_D='-Wl,';;
12376 esac
12377 ;;
12378
12379 sunos4*)
12380 lt_prog_compiler_wl_D='-Qoption ld '
12381 lt_prog_compiler_pic_D='-PIC'
12382 lt_prog_compiler_static_D='-Bstatic'
12383 ;;
12384
12385 sysv4 | sysv4.2uw2* | sysv4.3*)
12386 lt_prog_compiler_wl_D='-Wl,'
12387 lt_prog_compiler_pic_D='-KPIC'
12388 lt_prog_compiler_static_D='-Bstatic'
12389 ;;
12390
12391 sysv4*MP*)
12392 if test -d /usr/nec ;then
12393 lt_prog_compiler_pic_D='-Kconform_pic'
12394 lt_prog_compiler_static_D='-Bstatic'
12395 fi
12396 ;;
12397
12398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12399 lt_prog_compiler_wl_D='-Wl,'
12400 lt_prog_compiler_pic_D='-KPIC'
12401 lt_prog_compiler_static_D='-Bstatic'
12402 ;;
12403
12404 unicos*)
12405 lt_prog_compiler_wl_D='-Wl,'
12406 lt_prog_compiler_can_build_shared_D=no
12407 ;;
12408
12409 uts4*)
12410 lt_prog_compiler_pic_D='-pic'
12411 lt_prog_compiler_static_D='-Bstatic'
12412 ;;
12413
12414 *)
12415 lt_prog_compiler_can_build_shared_D=no
12416 ;;
12417 esac
12418 fi
12419
12420case $host_os in
12421 # For platforms which do not support PIC, -DPIC is meaningless:
12422 *djgpp*)
12423 lt_prog_compiler_pic_D=
12424 ;;
12425 *)
12426 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12427 ;;
12428esac
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12430$as_echo "$lt_prog_compiler_pic_D" >&6; }
12431
12432
12433
12434#
12435# Check to make sure the PIC flag actually works.
12436#
12437if test -n "$lt_prog_compiler_pic_D"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12439$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12440if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12441 $as_echo_n "(cached) " >&6
12442else
12443 lt_cv_prog_compiler_pic_works_D=no
12444 ac_outfile=conftest.$ac_objext
12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="$lt_prog_compiler_pic_D"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>conftest.err)
12458 ac_status=$?
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_cv_prog_compiler_pic_works_D=yes
12468 fi
12469 fi
12470 $RM conftest*
12471
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12474$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12475
12476if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12477 case $lt_prog_compiler_pic_D in
12478 "" | " "*) ;;
12479 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12480 esac
12481else
12482 lt_prog_compiler_pic_D=
12483 lt_prog_compiler_can_build_shared_D=no
12484fi
12485
12486fi
12487
12488
12489
12490#
12491# Check to make sure the static flag actually works.
12492#
12493wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12495$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12496if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12497 $as_echo_n "(cached) " >&6
12498else
12499 lt_cv_prog_compiler_static_works_D=no
12500 save_LDFLAGS="$LDFLAGS"
12501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12504 # The linker can only warn and ignore the option if not recognized
12505 # So say no if there are warnings
12506 if test -s conftest.err; then
12507 # Append any errors to the config.log.
12508 cat conftest.err 1>&5
12509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12511 if diff conftest.exp conftest.er2 >/dev/null; then
12512 lt_cv_prog_compiler_static_works_D=yes
12513 fi
12514 else
12515 lt_cv_prog_compiler_static_works_D=yes
12516 fi
12517 fi
12518 $RM -r conftest*
12519 LDFLAGS="$save_LDFLAGS"
12520
12521fi
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12523$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12524
12525if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12526 :
12527else
12528 lt_prog_compiler_static_D=
12529fi
12530
12531
12532
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12535$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12536if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12537 $as_echo_n "(cached) " >&6
12538else
12539 lt_cv_prog_compiler_c_o_D=no
12540 $RM -r conftest 2>/dev/null
12541 mkdir conftest
12542 cd conftest
12543 mkdir out
12544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12545
12546 lt_compiler_flag="-o out/conftest2.$ac_objext"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 lt_compile=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
12555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12556 (eval "$lt_compile" 2>out/conftest.err)
12557 ac_status=$?
12558 cat out/conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12561 then
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings
12564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12567 lt_cv_prog_compiler_c_o_D=yes
12568 fi
12569 fi
12570 chmod u+w . 2>&5
12571 $RM conftest*
12572 # SGI C++ compiler will create directory out/ii_files/ for
12573 # template instantiation
12574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12575 $RM out/* && rmdir out
12576 cd ..
12577 $RM -r conftest
12578 $RM conftest*
12579
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12582$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12583
12584
12585
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12588if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12589 $as_echo_n "(cached) " >&6
12590else
12591 lt_cv_prog_compiler_c_o_D=no
12592 $RM -r conftest 2>/dev/null
12593 mkdir conftest
12594 cd conftest
12595 mkdir out
12596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12597
12598 lt_compiler_flag="-o out/conftest2.$ac_objext"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 lt_compile=`echo "$ac_compile" | $SED \
12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
12607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12608 (eval "$lt_compile" 2>out/conftest.err)
12609 ac_status=$?
12610 cat out/conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12613 then
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings
12616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12619 lt_cv_prog_compiler_c_o_D=yes
12620 fi
12621 fi
12622 chmod u+w . 2>&5
12623 $RM conftest*
12624 # SGI C++ compiler will create directory out/ii_files/ for
12625 # template instantiation
12626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12627 $RM out/* && rmdir out
12628 cd ..
12629 $RM -r conftest
12630 $RM conftest*
12631
12632fi
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12634$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12635
12636
12637
12638
12639hard_links="nottested"
12640if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12641 # do not overwrite the value of need_locks provided by the user
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12643$as_echo_n "checking if we can lock with hard links... " >&6; }
12644 hard_links=yes
12645 $RM conftest*
12646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12647 touch conftest.a
12648 ln conftest.a conftest.b 2>&5 || hard_links=no
12649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12651$as_echo "$hard_links" >&6; }
12652 if test "$hard_links" = no; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12654$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12655 need_locks=warn
12656 fi
12657else
12658 need_locks=no
12659fi
12660
12661
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12664$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12665
12666 runpath_var=
12667 allow_undefined_flag_D=
12668 always_export_symbols_D=no
12669 archive_cmds_D=
12670 archive_expsym_cmds_D=
12671 compiler_needs_object_D=no
12672 enable_shared_with_static_runtimes_D=no
12673 export_dynamic_flag_spec_D=
12674 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12675 hardcode_automatic_D=no
12676 hardcode_direct_D=no
12677 hardcode_direct_absolute_D=no
12678 hardcode_libdir_flag_spec_D=
12679 hardcode_libdir_flag_spec_ld_D=
12680 hardcode_libdir_separator_D=
12681 hardcode_minus_L_D=no
12682 hardcode_shlibpath_var_D=unsupported
12683 inherit_rpath_D=no
12684 link_all_deplibs_D=unknown
12685 module_cmds_D=
12686 module_expsym_cmds_D=
12687 old_archive_from_new_cmds_D=
12688 old_archive_from_expsyms_cmds_D=
12689 thread_safe_flag_spec_D=
12690 whole_archive_flag_spec_D=
12691 # include_expsyms should be a list of space-separated symbols to be *always*
12692 # included in the symbol list
12693 include_expsyms_D=
12694 # exclude_expsyms can be an extended regexp of symbols to exclude
12695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12697 # as well as any symbol that contains `d'.
12698 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12700 # platforms (ab)use it in PIC code, but their linkers get confused if
12701 # the symbol is explicitly referenced. Since portable code cannot
12702 # rely on this symbol name, it's probably fine to never include it in
12703 # preloaded symbol tables.
12704 # Exclude shared library initialization/finalization symbols.
12705 extract_expsyms_cmds=
12706
12707 case $host_os in
12708 cygwin* | mingw* | pw32* | cegcc*)
12709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12710 # When not using gcc, we currently assume that we are using
12711 # Microsoft Visual C++.
12712 if test "$GCC" != yes; then
12713 with_gnu_ld=no
12714 fi
12715 ;;
12716 interix*)
12717 # we just hope/assume this is gcc and not c89 (= MSVC++)
12718 with_gnu_ld=yes
12719 ;;
12720 openbsd*)
12721 with_gnu_ld=no
12722 ;;
12723 esac
12724
12725 ld_shlibs_D=yes
12726
12727 # On some targets, GNU ld is compatible enough with the native linker
12728 # that we're better off using the native interface for both.
12729 lt_use_gnu_ld_interface=no
12730 if test "$with_gnu_ld" = yes; then
12731 case $host_os in
12732 aix*)
12733 # The AIX port of GNU ld has always aspired to compatibility
12734 # with the native linker. However, as the warning in the GNU ld
12735 # block says, versions before 2.19.5* couldn't really create working
12736 # shared libraries, regardless of the interface used.
12737 case `$LD -v 2>&1` in
12738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12741 *)
12742 lt_use_gnu_ld_interface=yes
12743 ;;
12744 esac
12745 ;;
12746 *)
12747 lt_use_gnu_ld_interface=yes
12748 ;;
12749 esac
12750 fi
12751
12752 if test "$lt_use_gnu_ld_interface" = yes; then
12753 # If archive_cmds runs LD, not CC, wlarc should be empty
12754 wlarc='${wl}'
12755
12756 # Set some defaults for GNU ld with shared library support. These
12757 # are reset later if shared libraries are not supported. Putting them
12758 # here allows them to be overridden if necessary.
12759 runpath_var=LD_RUN_PATH
12760 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12761 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12762 # ancient GNU ld didn't support --whole-archive et. al.
12763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12764 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12765 else
12766 whole_archive_flag_spec_D=
12767 fi
12768 supports_anon_versioning=no
12769 case `$LD -v 2>&1` in
12770 *GNU\ gold*) supports_anon_versioning=yes ;;
12771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12774 *\ 2.11.*) ;; # other 2.11 versions
12775 *) supports_anon_versioning=yes ;;
12776 esac
12777
12778 # See if GNU ld supports shared libraries.
12779 case $host_os in
12780 aix[3-9]*)
12781 # On AIX/PPC, the GNU linker is very broken
12782 if test "$host_cpu" != ia64; then
12783 ld_shlibs_D=no
12784 cat <<_LT_EOF 1>&2
12785
12786*** Warning: the GNU linker, at least up to release 2.19, is reported
12787*** to be unable to reliably create shared libraries on AIX.
12788*** Therefore, libtool is disabling shared libraries support. If you
12789*** really care for shared libraries, you may want to install binutils
12790*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12791*** You will then need to restart the configuration process.
12792
12793_LT_EOF
12794 fi
12795 ;;
12796
12797 amigaos*)
12798 case $host_cpu in
12799 powerpc)
12800 # see comment about AmigaOS4 .so support
12801 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_D=''
12803 ;;
12804 m68k)
12805 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)'
12806 hardcode_libdir_flag_spec_D='-L$libdir'
12807 hardcode_minus_L_D=yes
12808 ;;
12809 esac
12810 ;;
12811
12812 beos*)
12813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12814 allow_undefined_flag_D=unsupported
12815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12816 # support --undefined. This deserves some investigation. FIXME
12817 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818 else
12819 ld_shlibs_D=no
12820 fi
12821 ;;
12822
12823 cygwin* | mingw* | pw32* | cegcc*)
12824 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12825 # as there is no search path for DLLs.
12826 hardcode_libdir_flag_spec_D='-L$libdir'
12827 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12828 allow_undefined_flag_D=unsupported
12829 always_export_symbols_D=no
12830 enable_shared_with_static_runtimes_D=yes
12831 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12832
12833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12834 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12835 # If the export-symbols file already is a .def file (1st line
12836 # is EXPORTS), use it as is; otherwise, prepend...
12837 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12838 cp $export_symbols $output_objdir/$soname.def;
12839 else
12840 echo EXPORTS > $output_objdir/$soname.def;
12841 cat $export_symbols >> $output_objdir/$soname.def;
12842 fi~
12843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12844 else
12845 ld_shlibs_D=no
12846 fi
12847 ;;
12848
12849 haiku*)
12850 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851 link_all_deplibs_D=yes
12852 ;;
12853
12854 interix[3-9]*)
12855 hardcode_direct_D=no
12856 hardcode_shlibpath_var_D=no
12857 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_D='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 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'
12866 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'
12867 ;;
12868
e9085da5 12869 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
12870 tmp_diet=no
12871 if test "$host_os" = linux-dietlibc; then
12872 case $cc_basename in
12873 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12874 esac
12875 fi
12876 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12877 && test "$tmp_diet" = no
12878 then
12879 tmp_addflag=' $pic_flag'
12880 tmp_sharedflag='-shared'
12881 case $cc_basename,$host_cpu in
12882 pgcc*) # Portland Group C compiler
12883 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'
12884 tmp_addflag=' $pic_flag'
12885 ;;
12886 pgf77* | pgf90* | pgf95* | pgfortran*)
12887 # Portland Group f77 and f90 compilers
12888 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'
12889 tmp_addflag=' $pic_flag -Mnomain' ;;
12890 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12891 tmp_addflag=' -i_dynamic' ;;
12892 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12893 tmp_addflag=' -i_dynamic -nofor_main' ;;
12894 ifc* | ifort*) # Intel Fortran compiler
12895 tmp_addflag=' -nofor_main' ;;
12896 lf95*) # Lahey Fortran 8.1
12897 whole_archive_flag_spec_D=
12898 tmp_sharedflag='--shared' ;;
12899 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12900 tmp_sharedflag='-qmkshrobj'
12901 tmp_addflag= ;;
12902 nvcc*) # Cuda Compiler Driver 2.2
12903 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'
12904 compiler_needs_object_D=yes
12905 ;;
12906 esac
12907 case `$CC -V 2>&1 | sed 5q` in
12908 *Sun\ C*) # Sun C 5.9
12909 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'
12910 compiler_needs_object_D=yes
12911 tmp_sharedflag='-G' ;;
12912 *Sun\ F*) # Sun Fortran 8.3
12913 tmp_sharedflag='-G' ;;
12914 esac
12915 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916
12917 if test "x$supports_anon_versioning" = xyes; then
12918 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12920 echo "local: *; };" >> $output_objdir/$libname.ver~
12921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12922 fi
12923
12924 case $cc_basename in
12925 xlf* | bgf* | bgxlf* | mpixlf*)
12926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12927 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12928 hardcode_libdir_flag_spec_D=
12929 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12930 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12931 if test "x$supports_anon_versioning" = xyes; then
12932 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12934 echo "local: *; };" >> $output_objdir/$libname.ver~
12935 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12936 fi
12937 ;;
12938 esac
12939 else
12940 ld_shlibs_D=no
12941 fi
12942 ;;
12943
12944 netbsd*)
12945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12946 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12947 wlarc=
12948 else
12949 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951 fi
12952 ;;
12953
12954 solaris*)
12955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12956 ld_shlibs_D=no
12957 cat <<_LT_EOF 1>&2
12958
12959*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12960*** create shared libraries on Solaris systems. Therefore, libtool
12961*** is disabling shared libraries support. We urge you to upgrade GNU
12962*** binutils to release 2.9.1 or newer. Another option is to modify
12963*** your PATH or compiler configuration so that the native linker is
12964*** used, and then restart.
12965
12966_LT_EOF
12967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12970 else
12971 ld_shlibs_D=no
12972 fi
12973 ;;
12974
12975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12976 case `$LD -v 2>&1` in
12977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12978 ld_shlibs_D=no
12979 cat <<_LT_EOF 1>&2
12980
12981*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12982*** reliably create shared libraries on SCO systems. Therefore, libtool
12983*** is disabling shared libraries support. We urge you to upgrade GNU
12984*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12985*** your PATH or compiler configuration so that the native linker is
12986*** used, and then restart.
12987
12988_LT_EOF
12989 ;;
12990 *)
12991 # For security reasons, it is highly recommended that you always
12992 # use absolute paths for naming shared libraries, and exclude the
12993 # DT_RUNPATH tag from executables and libraries. But doing so
12994 # requires that you compile everything twice, which is a pain.
12995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12996 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12997 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12999 else
13000 ld_shlibs_D=no
13001 fi
13002 ;;
13003 esac
13004 ;;
13005
13006 sunos4*)
13007 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13008 wlarc=
13009 hardcode_direct_D=yes
13010 hardcode_shlibpath_var_D=no
13011 ;;
13012
13013 *)
13014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13015 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13017 else
13018 ld_shlibs_D=no
13019 fi
13020 ;;
13021 esac
13022
13023 if test "$ld_shlibs_D" = no; then
13024 runpath_var=
13025 hardcode_libdir_flag_spec_D=
13026 export_dynamic_flag_spec_D=
13027 whole_archive_flag_spec_D=
13028 fi
13029 else
13030 # PORTME fill in a description of your system's linker (not GNU ld)
13031 case $host_os in
13032 aix3*)
13033 allow_undefined_flag_D=unsupported
13034 always_export_symbols_D=yes
13035 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'
13036 # Note: this linker hardcodes the directories in LIBPATH if there
13037 # are no directories specified by -L.
13038 hardcode_minus_L_D=yes
13039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13040 # Neither direct hardcoding nor static linking is supported with a
13041 # broken collect2.
13042 hardcode_direct_D=unsupported
13043 fi
13044 ;;
13045
13046 aix[4-9]*)
13047 if test "$host_cpu" = ia64; then
13048 # On IA64, the linker does run time linking by default, so we don't
13049 # have to do anything special.
13050 aix_use_runtimelinking=no
13051 exp_sym_flag='-Bexport'
13052 no_entry_flag=""
13053 else
13054 # If we're using GNU nm, then we don't want the "-C" option.
13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056 # Also, AIX nm treats weak defined symbols like other global
13057 # defined symbols, whereas GNU nm marks them as "W".
13058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13059 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'
13060 else
13061 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'
13062 fi
13063 aix_use_runtimelinking=no
13064
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # need to do runtime linking.
13068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13069 for ld_flag in $LDFLAGS; do
13070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13071 aix_use_runtimelinking=yes
13072 break
13073 fi
13074 done
13075 ;;
13076 esac
13077
13078 exp_sym_flag='-bexport'
13079 no_entry_flag='-bnoentry'
13080 fi
13081
13082 # When large executables or shared objects are built, AIX ld can
13083 # have problems creating the table of contents. If linking a library
13084 # or program results in "error TOC overflow" add -mminimal-toc to
13085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13087
13088 archive_cmds_D=''
13089 hardcode_direct_D=yes
13090 hardcode_direct_absolute_D=yes
13091 hardcode_libdir_separator_D=':'
13092 link_all_deplibs_D=yes
13093 file_list_spec_D='${wl}-f,'
13094
13095 if test "$GCC" = yes; then
13096 case $host_os in aix4.[012]|aix4.[012].*)
13097 # We only want to do this on AIX 4.2 and lower, the check
13098 # below for broken collect2 doesn't work under 4.3+
13099 collect2name=`${CC} -print-prog-name=collect2`
13100 if test -f "$collect2name" &&
13101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13102 then
13103 # We have reworked collect2
13104 :
13105 else
13106 # We have old collect2
13107 hardcode_direct_D=unsupported
13108 # It fails to find uninstalled libraries when the uninstalled
13109 # path is not listed in the libpath. Setting hardcode_minus_L
13110 # to unsupported forces relinking
13111 hardcode_minus_L_D=yes
13112 hardcode_libdir_flag_spec_D='-L$libdir'
13113 hardcode_libdir_separator_D=
13114 fi
13115 ;;
13116 esac
13117 shared_flag='-shared'
13118 if test "$aix_use_runtimelinking" = yes; then
13119 shared_flag="$shared_flag "'${wl}-G'
13120 fi
13121 else
13122 # not using gcc
13123 if test "$host_cpu" = ia64; then
13124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13125 # chokes on -Wl,-G. The following line is correct:
13126 shared_flag='-G'
13127 else
13128 if test "$aix_use_runtimelinking" = yes; then
13129 shared_flag='${wl}-G'
13130 else
13131 shared_flag='${wl}-bM:SRE'
13132 fi
13133 fi
13134 fi
13135
13136 export_dynamic_flag_spec_D='${wl}-bexpall'
13137 # It seems that -bexpall does not export symbols beginning with
13138 # underscore (_), so it is better to generate a list of symbols to export.
13139 always_export_symbols_D=yes
13140 if test "$aix_use_runtimelinking" = yes; then
13141 # Warning - without using the other runtime loading flags (-brtl),
13142 # -berok will link without error, but may produce a broken library.
13143 allow_undefined_flag_D='-berok'
13144 # Determine the default libpath from the value encoded in an
13145 # empty executable.
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147/* end confdefs.h. */
13148
13149int
13150main ()
13151{
13152
13153 ;
13154 return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158
13159lt_aix_libpath_sed='
13160 /Import File Strings/,/^$/ {
13161 /^0/ {
13162 s/^0 *\(.*\)$/\1/
13163 p
13164 }
13165 }'
13166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167# Check for a 64-bit object if we didn't find anything.
13168if test -z "$aix_libpath"; then
13169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13170fi
13171fi
13172rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13175
13176 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13177 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"
13178 else
13179 if test "$host_cpu" = ia64; then
13180 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13181 allow_undefined_flag_D="-z nodefs"
13182 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"
13183 else
13184 # Determine the default libpath from the value encoded in an
13185 # empty executable.
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h. */
13188
13189int
13190main ()
13191{
13192
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197if ac_fn_c_try_link "$LINENO"; then :
13198
13199lt_aix_libpath_sed='
13200 /Import File Strings/,/^$/ {
13201 /^0/ {
13202 s/^0 *\(.*\)$/\1/
13203 p
13204 }
13205 }'
13206aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207# Check for a 64-bit object if we didn't find anything.
13208if test -z "$aix_libpath"; then
13209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210fi
13211fi
13212rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13215
13216 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13217 # Warning - without using the other run time loading flags,
13218 # -berok will link without error, but may produce a broken library.
13219 no_undefined_flag_D=' ${wl}-bernotok'
13220 allow_undefined_flag_D=' ${wl}-berok'
13221 if test "$with_gnu_ld" = yes; then
13222 # We only use this code for GNU lds that support --whole-archive.
13223 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13224 else
13225 # Exported symbols can be pulled into shared objects from archives
13226 whole_archive_flag_spec_D='$convenience'
13227 fi
13228 archive_cmds_need_lc_D=yes
13229 # This is similar to how AIX traditionally builds its shared libraries.
13230 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'
13231 fi
13232 fi
13233 ;;
13234
13235 amigaos*)
13236 case $host_cpu in
13237 powerpc)
13238 # see comment about AmigaOS4 .so support
13239 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 archive_expsym_cmds_D=''
13241 ;;
13242 m68k)
13243 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)'
13244 hardcode_libdir_flag_spec_D='-L$libdir'
13245 hardcode_minus_L_D=yes
13246 ;;
13247 esac
13248 ;;
13249
13250 bsdi[45]*)
13251 export_dynamic_flag_spec_D=-rdynamic
13252 ;;
13253
13254 cygwin* | mingw* | pw32* | cegcc*)
13255 # When not using gcc, we currently assume that we are using
13256 # Microsoft Visual C++.
13257 # hardcode_libdir_flag_spec is actually meaningless, as there is
13258 # no search path for DLLs.
13259 hardcode_libdir_flag_spec_D=' '
13260 allow_undefined_flag_D=unsupported
13261 # Tell ltmain to make .lib files, not .a files.
13262 libext=lib
13263 # Tell ltmain to make .dll files, not .so files.
13264 shrext_cmds=".dll"
13265 # FIXME: Setting linknames here is a bad hack.
13266 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13267 # The linker will automatically build a .lib file if we build a DLL.
13268 old_archive_from_new_cmds_D='true'
13269 # FIXME: Should let the user specify the lib program.
13270 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13271 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13272 enable_shared_with_static_runtimes_D=yes
13273 ;;
13274
13275 darwin* | rhapsody*)
13276
13277
13278 archive_cmds_need_lc_D=no
13279 hardcode_direct_D=no
13280 hardcode_automatic_D=yes
13281 hardcode_shlibpath_var_D=unsupported
13282 if test "$lt_cv_ld_force_load" = "yes"; then
13283 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\"`'
13284 else
13285 whole_archive_flag_spec_D=''
13286 fi
13287 link_all_deplibs_D=yes
13288 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13289 case $cc_basename in
13290 ifort*) _lt_dar_can_shared=yes ;;
13291 *) _lt_dar_can_shared=$GCC ;;
13292 esac
13293 if test "$_lt_dar_can_shared" = "yes"; then
13294 output_verbose_link_cmd=func_echo_all
13295 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}"
13296 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13297 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}"
13298 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}"
13299
13300 else
13301 ld_shlibs_D=no
13302 fi
13303
13304 ;;
13305
13306 dgux*)
13307 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 hardcode_libdir_flag_spec_D='-L$libdir'
13309 hardcode_shlibpath_var_D=no
13310 ;;
13311
13312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13313 # support. Future versions do this automatically, but an explicit c++rt0.o
13314 # does not break anything, and helps significantly (at the cost of a little
13315 # extra space).
13316 freebsd2.2*)
13317 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13318 hardcode_libdir_flag_spec_D='-R$libdir'
13319 hardcode_direct_D=yes
13320 hardcode_shlibpath_var_D=no
13321 ;;
13322
13323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13324 freebsd2.*)
13325 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_direct_D=yes
13327 hardcode_minus_L_D=yes
13328 hardcode_shlibpath_var_D=no
13329 ;;
13330
13331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13332 freebsd* | dragonfly*)
13333 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13334 hardcode_libdir_flag_spec_D='-R$libdir'
13335 hardcode_direct_D=yes
13336 hardcode_shlibpath_var_D=no
13337 ;;
13338
13339 hpux9*)
13340 if test "$GCC" = yes; then
13341 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'
13342 else
13343 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'
13344 fi
13345 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13346 hardcode_libdir_separator_D=:
13347 hardcode_direct_D=yes
13348
13349 # hardcode_minus_L: Not really in the search PATH,
13350 # but as the default location of the library.
13351 hardcode_minus_L_D=yes
13352 export_dynamic_flag_spec_D='${wl}-E'
13353 ;;
13354
13355 hpux10*)
13356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13357 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13358 else
13359 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13360 fi
13361 if test "$with_gnu_ld" = no; then
13362 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13363 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13364 hardcode_libdir_separator_D=:
13365 hardcode_direct_D=yes
13366 hardcode_direct_absolute_D=yes
13367 export_dynamic_flag_spec_D='${wl}-E'
13368 # hardcode_minus_L: Not really in the search PATH,
13369 # but as the default location of the library.
13370 hardcode_minus_L_D=yes
13371 fi
13372 ;;
13373
13374 hpux11*)
13375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13376 case $host_cpu in
13377 hppa*64*)
13378 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 ;;
13380 ia64*)
13381 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13382 ;;
13383 *)
13384 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 esac
13387 else
13388 case $host_cpu in
13389 hppa*64*)
13390 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 ;;
13392 ia64*)
13393 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13394 ;;
13395 *)
13396 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13397 ;;
13398 esac
13399 fi
13400 if test "$with_gnu_ld" = no; then
13401 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13402 hardcode_libdir_separator_D=:
13403
13404 case $host_cpu in
13405 hppa*64*|ia64*)
13406 hardcode_direct_D=no
13407 hardcode_shlibpath_var_D=no
13408 ;;
13409 *)
13410 hardcode_direct_D=yes
13411 hardcode_direct_absolute_D=yes
13412 export_dynamic_flag_spec_D='${wl}-E'
13413
13414 # hardcode_minus_L: Not really in the search PATH,
13415 # but as the default location of the library.
13416 hardcode_minus_L_D=yes
13417 ;;
13418 esac
13419 fi
13420 ;;
13421
13422 irix5* | irix6* | nonstopux*)
13423 if test "$GCC" = yes; then
13424 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'
13425 # Try to use the -exported_symbol ld option, if it does not
13426 # work, assume that -exports_file does not work either and
13427 # implicitly export all symbols.
13428 save_LDFLAGS="$LDFLAGS"
13429 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431/* end confdefs.h. */
13432int foo(void) {}
13433_ACEOF
13434if ac_fn_c_try_link "$LINENO"; then :
13435 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'
13436
13437fi
13438rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LDFLAGS="$save_LDFLAGS"
13441 else
13442 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'
13443 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'
13444 fi
13445 archive_cmds_need_lc_D='no'
13446 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13447 hardcode_libdir_separator_D=:
13448 inherit_rpath_D=yes
13449 link_all_deplibs_D=yes
13450 ;;
13451
13452 netbsd*)
13453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13454 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13455 else
13456 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13457 fi
13458 hardcode_libdir_flag_spec_D='-R$libdir'
13459 hardcode_direct_D=yes
13460 hardcode_shlibpath_var_D=no
13461 ;;
13462
13463 newsos6)
13464 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct_D=yes
13466 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13467 hardcode_libdir_separator_D=:
13468 hardcode_shlibpath_var_D=no
13469 ;;
13470
13471 *nto* | *qnx*)
13472 ;;
13473
13474 openbsd*)
13475 if test -f /usr/libexec/ld.so; then
13476 hardcode_direct_D=yes
13477 hardcode_shlibpath_var_D=no
13478 hardcode_direct_absolute_D=yes
13479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13482 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13483 export_dynamic_flag_spec_D='${wl}-E'
13484 else
13485 case $host_os in
13486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13487 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_libdir_flag_spec_D='-R$libdir'
13489 ;;
13490 *)
13491 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13492 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13493 ;;
13494 esac
13495 fi
13496 else
13497 ld_shlibs_D=no
13498 fi
13499 ;;
13500
13501 os2*)
13502 hardcode_libdir_flag_spec_D='-L$libdir'
13503 hardcode_minus_L_D=yes
13504 allow_undefined_flag_D=unsupported
13505 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'
13506 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13507 ;;
13508
13509 osf3*)
13510 if test "$GCC" = yes; then
13511 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13512 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'
13513 else
13514 allow_undefined_flag_D=' -expect_unresolved \*'
13515 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'
13516 fi
13517 archive_cmds_need_lc_D='no'
13518 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_D=:
13520 ;;
13521
13522 osf4* | osf5*) # as osf3* with the addition of -msym flag
13523 if test "$GCC" = yes; then
13524 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13525 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'
13526 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13527 else
13528 allow_undefined_flag_D=' -expect_unresolved \*'
13529 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'
13530 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~
13531 $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'
13532
13533 # Both c and cxx compiler support -rpath directly
13534 hardcode_libdir_flag_spec_D='-rpath $libdir'
13535 fi
13536 archive_cmds_need_lc_D='no'
13537 hardcode_libdir_separator_D=:
13538 ;;
13539
13540 solaris*)
13541 no_undefined_flag_D=' -z defs'
13542 if test "$GCC" = yes; then
13543 wlarc='${wl}'
13544 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13546 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13547 else
13548 case `$CC -V 2>&1` in
13549 *"Compilers 5.0"*)
13550 wlarc=''
13551 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13554 ;;
13555 *)
13556 wlarc='${wl}'
13557 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13558 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13559 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13560 ;;
13561 esac
13562 fi
13563 hardcode_libdir_flag_spec_D='-R$libdir'
13564 hardcode_shlibpath_var_D=no
13565 case $host_os in
13566 solaris2.[0-5] | solaris2.[0-5].*) ;;
13567 *)
13568 # The compiler driver will combine and reorder linker options,
13569 # but understands `-z linker_flag'. GCC discards it without `$wl',
13570 # but is careful enough not to reorder.
13571 # Supported since Solaris 2.6 (maybe 2.5.1?)
13572 if test "$GCC" = yes; then
13573 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13574 else
13575 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13576 fi
13577 ;;
13578 esac
13579 link_all_deplibs_D=yes
13580 ;;
13581
13582 sunos4*)
13583 if test "x$host_vendor" = xsequent; then
13584 # Use $CC to link under sequent, because it throws in some extra .o
13585 # files that make .init and .fini sections work.
13586 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13587 else
13588 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13589 fi
13590 hardcode_libdir_flag_spec_D='-L$libdir'
13591 hardcode_direct_D=yes
13592 hardcode_minus_L_D=yes
13593 hardcode_shlibpath_var_D=no
13594 ;;
13595
13596 sysv4)
13597 case $host_vendor in
13598 sni)
13599 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13600 hardcode_direct_D=yes # is this really true???
13601 ;;
13602 siemens)
13603 ## LD is ld it makes a PLAMLIB
13604 ## CC just makes a GrossModule.
13605 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13606 reload_cmds_D='$CC -r -o $output$reload_objs'
13607 hardcode_direct_D=no
13608 ;;
13609 motorola)
13610 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13612 ;;
13613 esac
13614 runpath_var='LD_RUN_PATH'
13615 hardcode_shlibpath_var_D=no
13616 ;;
13617
13618 sysv4.3*)
13619 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_shlibpath_var_D=no
13621 export_dynamic_flag_spec_D='-Bexport'
13622 ;;
13623
13624 sysv4*MP*)
13625 if test -d /usr/nec; then
13626 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_shlibpath_var_D=no
13628 runpath_var=LD_RUN_PATH
13629 hardcode_runpath_var=yes
13630 ld_shlibs_D=yes
13631 fi
13632 ;;
13633
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_D='${wl}-z,text'
13636 archive_cmds_need_lc_D=no
13637 hardcode_shlibpath_var_D=no
13638 runpath_var='LD_RUN_PATH'
13639
13640 if test "$GCC" = yes; then
13641 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 else
13644 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 fi
13647 ;;
13648
13649 sysv5* | sco3.2v5* | sco5v6*)
13650 # Note: We can NOT use -z defs as we might desire, because we do not
13651 # link with -lc, and that would cause any symbols used from libc to
13652 # always be unresolved, which means just about no library would
13653 # ever link correctly. If we're not using GNU ld we use -z text
13654 # though, which does catch some bad symbols but isn't as heavy-handed
13655 # as -z defs.
13656 no_undefined_flag_D='${wl}-z,text'
13657 allow_undefined_flag_D='${wl}-z,nodefs'
13658 archive_cmds_need_lc_D=no
13659 hardcode_shlibpath_var_D=no
13660 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13661 hardcode_libdir_separator_D=':'
13662 link_all_deplibs_D=yes
13663 export_dynamic_flag_spec_D='${wl}-Bexport'
13664 runpath_var='LD_RUN_PATH'
13665
13666 if test "$GCC" = yes; then
13667 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 else
13670 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 fi
13673 ;;
13674
13675 uts4*)
13676 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_libdir_flag_spec_D='-L$libdir'
13678 hardcode_shlibpath_var_D=no
13679 ;;
13680
13681 *)
13682 ld_shlibs_D=no
13683 ;;
13684 esac
13685
13686 if test x$host_vendor = xsni; then
13687 case $host in
13688 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13689 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13690 ;;
13691 esac
13692 fi
13693 fi
13694
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13696$as_echo "$ld_shlibs_D" >&6; }
13697test "$ld_shlibs_D" = no && can_build_shared=no
13698
13699with_gnu_ld_D=$with_gnu_ld
13700
13701
13702
13703
13704
13705
13706#
13707# Do we need to explicitly link libc?
13708#
13709case "x$archive_cmds_need_lc_D" in
13710x|xyes)
13711 # Assume -lc should be added
13712 archive_cmds_need_lc_D=yes
13713
13714 if test "$enable_shared" = yes && test "$GCC" = yes; then
13715 case $archive_cmds_D in
13716 *'~'*)
13717 # FIXME: we may have to deal with multi-command sequences.
13718 ;;
13719 '$CC '*)
13720 # Test whether the compiler implicitly links with -lc since on some
13721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13722 # to ld, don't add -lc before -lgcc.
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13724$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13725if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13726 $as_echo_n "(cached) " >&6
13727else
13728 $RM conftest*
13729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13730
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13733 ac_status=$?
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; } 2>conftest.err; then
13736 soname=conftest
13737 lib=conftest
13738 libobjs=conftest.$ac_objext
13739 deplibs=
13740 wl=$lt_prog_compiler_wl_D
13741 pic_flag=$lt_prog_compiler_pic_D
13742 compiler_flags=-v
13743 linker_flags=-v
13744 verstring=
13745 output_objdir=.
13746 libname=conftest
13747 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13748 allow_undefined_flag_D=
13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13750 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }
13754 then
13755 lt_cv_archive_cmds_need_lc_D=no
13756 else
13757 lt_cv_archive_cmds_need_lc_D=yes
13758 fi
13759 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13760 else
13761 cat conftest.err 1>&5
13762 fi
13763 $RM conftest*
13764
13765fi
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13767$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13768 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13769 ;;
13770 esac
13771 fi
13772 ;;
13773esac
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13839$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13840hardcode_action_D=
13841if test -n "$hardcode_libdir_flag_spec_D" ||
13842 test -n "$runpath_var_D" ||
13843 test "X$hardcode_automatic_D" = "Xyes" ; then
13844
13845 # We can hardcode non-existent directories.
13846 if test "$hardcode_direct_D" != no &&
13847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13848 # have to relink, otherwise we might link with an installed library
13849 # when we should be linking with a yet-to-be-installed one
13850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13851 test "$hardcode_minus_L_D" != no; then
13852 # Linking always hardcodes the temporary library directory.
13853 hardcode_action_D=relink
13854 else
13855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13856 hardcode_action_D=immediate
13857 fi
13858else
13859 # We cannot hardcode anything, or else we can only hardcode existing
13860 # directories.
13861 hardcode_action_D=unsupported
13862fi
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13864$as_echo "$hardcode_action_D" >&6; }
13865
13866if test "$hardcode_action_D" = relink ||
13867 test "$inherit_rpath_D" = yes; then
13868 # Fast installation is not supported
13869 enable_fast_install=no
13870elif test "$shlibpath_overrides_runpath" = yes ||
13871 test "$enable_shared" = no; then
13872 # Fast installation is not necessary
13873 enable_fast_install=needless
13874fi
13875
13876
13877
13878
13879
13880
13881
13882fi
13883
13884ac_ext=c
13885ac_cpp='$CPP $CPPFLAGS'
13886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888ac_compiler_gnu=$ac_cv_c_compiler_gnu
13889
13890
13891GCC=$lt_save_GCC
13892CC=$lt_save_CC
13893CFLAGS=$lt_save_CFLAGS
b4c522fa
IB
13894
13895 GDCFLAGS=$gdc_save_DFLAGS
13896
b4c522fa
IB
13897
13898# libtool variables for Phobos shared and position-independent compiles.
13899#
13900# Use phobos_compiler_shared_flag to designate the compile-time flags for
13901# creating shared objects. Default: -fversion=Shared.
13902#
13903# Use phobos_compiler_pic_flag to designate the compile-time flags for
13904# creating position-independent objects. This varies with the target
13905# hardware and operating system, but is often: -fPIC.
13906#
13907# The distinction between pic and shared compilation flags is not present in
13908# libtool, and so we make it here. How it is handled is that in shared
13909# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13910# ensure that conditional compilation of shared runtime code is compiled in.
13911# The original PIC flags are then used in the compilation of every object.
13912#
13913# Why are objects destined for libgphobos.a compiled with -fPIC?
13914# Because -fPIC is not harmful to use for objects destined for static
13915# libraries. In addition, using -fPIC will allow the use of static
13916# libgphobos.a in the creation of other D shared libraries.
13917if test "$enable_shared" = yes; then
13918 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13919 phobos_compiler_shared_flag="-fversion=Shared"
13920else
13921 phobos_compiler_pic_flag=
13922 phobos_compiler_shared_flag=
13923fi
13924
13925
13926
13927# Override the libtool's pic_flag and pic_mode.
13928# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13929# NB: this impacts --with-pic and --without-pic.
13930lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13931pic_mode='default'
13932
13933# Determine what GCC version number to use in filesystem paths.
13934
13935 get_gcc_base_ver="cat"
13936
13937# Check whether --with-gcc-major-version-only was given.
13938if test "${with_gcc_major_version_only+set}" = set; then :
13939 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13940 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13941 fi
13942
13943fi
13944
13945
13946
13947
13948# libphobos/libdruntime specific options and feature detection
13949
13950 # These need to be absolute paths, yet at the same time need to
13951 # canonicalize only relative paths, because then amd will not unmount
13952 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13953 libphobos_builddir=`${PWDCMD-pwd}`
13954 case $srcdir in
13955 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13956 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13957 esac
13958
13959
13960
13961
13962 if test ${multilib} = yes; then
13963 multilib_arg="--enable-multilib"
13964 else
13965 multilib_arg=
13966 fi
13967
13968
13969 # Check whether --enable-werror was given.
13970if test "${enable_werror+set}" = set; then :
13971 enableval=$enable_werror;
13972fi
13973
13974 WERROR_FLAG=""
13975 if test "x$enable_werror" = "xyes"; then
13976 WERROR_FLAG="-Werror"
13977 fi
13978
13979
13980 # Check whether --enable-druntime-gc was given.
13981if test "${enable_druntime_gc+set}" = set; then :
13982 enableval=$enable_druntime_gc; enable_druntime_gc=no
13983else
13984 enable_druntime_gc=yes
13985fi
13986
13987
13988 if test "$enable_druntime_gc" = "yes"; then
13989 DRUNTIME_GC_ENABLE_TRUE=
13990 DRUNTIME_GC_ENABLE_FALSE='#'
13991else
13992 DRUNTIME_GC_ENABLE_TRUE='#'
13993 DRUNTIME_GC_ENABLE_FALSE=
13994fi
13995
13996
13997
2493e718
IB
13998 druntime_target_cpu_parsed=""
13999 case "$target_cpu" in
14000 aarch64*)
14001 druntime_target_cpu_parsed="aarch64"
14002 ;;
14003 arm*) druntime_target_cpu_parsed="arm"
14004 ;;
14005 mips*) druntime_target_cpu_parsed="mips"
14006 ;;
14007 powerpc) druntime_target_cpu_parsed="powerpc"
14008 ;;
14009 powerpc64)
14010 druntime_target_cpu_parsed="powerpc64"
14011 ;;
b16f2147 14012 i[34567]86|x86_64)
2493e718
IB
14013 druntime_target_cpu_parsed="x86"
14014 ;;
14015 esac
14016 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14017 DRUNTIME_CPU_AARCH64_TRUE=
14018 DRUNTIME_CPU_AARCH64_FALSE='#'
14019else
14020 DRUNTIME_CPU_AARCH64_TRUE='#'
14021 DRUNTIME_CPU_AARCH64_FALSE=
14022fi
14023
14024 if test "$druntime_target_cpu_parsed" = "arm"; then
14025 DRUNTIME_CPU_ARM_TRUE=
14026 DRUNTIME_CPU_ARM_FALSE='#'
14027else
14028 DRUNTIME_CPU_ARM_TRUE='#'
14029 DRUNTIME_CPU_ARM_FALSE=
14030fi
14031
14032 if test "$druntime_target_cpu_parsed" = "mips"; then
14033 DRUNTIME_CPU_MIPS_TRUE=
14034 DRUNTIME_CPU_MIPS_FALSE='#'
14035else
14036 DRUNTIME_CPU_MIPS_TRUE='#'
14037 DRUNTIME_CPU_MIPS_FALSE=
14038fi
14039
14040 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14041 DRUNTIME_CPU_POWERPC_TRUE=
14042 DRUNTIME_CPU_POWERPC_FALSE='#'
14043else
14044 DRUNTIME_CPU_POWERPC_TRUE='#'
14045 DRUNTIME_CPU_POWERPC_FALSE=
14046fi
14047
14048 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14049 DRUNTIME_CPU_POWERPC64_TRUE=
14050 DRUNTIME_CPU_POWERPC64_FALSE='#'
14051else
14052 DRUNTIME_CPU_POWERPC64_TRUE='#'
14053 DRUNTIME_CPU_POWERPC64_FALSE=
14054fi
14055
14056 if test "$druntime_target_cpu_parsed" = "x86"; then
14057 DRUNTIME_CPU_X86_TRUE=
14058 DRUNTIME_CPU_X86_FALSE='#'
14059else
14060 DRUNTIME_CPU_X86_TRUE='#'
14061 DRUNTIME_CPU_X86_FALSE=
14062fi
14063
14064
14065
b4c522fa
IB
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14067$as_echo_n "checking for target OS... " >&6; }
22e05272 14068if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
14069 $as_echo_n "(cached) " >&6
14070else
14071 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14074$as_echo "$druntime_cv_target_os" >&6; }
14075 if test -z "$druntime_cv_target_os"; then :
22e05272 14076 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
14077fi
14078
14079
14080
14081 # Check whether --enable-unix was given.
14082if test "${enable_unix+set}" = set; then :
14083 enableval=$enable_unix; :
14084else
14085 enable_unix=auto
14086fi
14087
14088
14089 case "$druntime_cv_target_os" in
14090 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14091 esac
14092 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14093 enable_unix=yes
14094 fi
14095 if test "$enable_unix" = "yes"; then
14096 DRUNTIME_OS_UNIX_TRUE=
14097 DRUNTIME_OS_UNIX_FALSE='#'
14098else
14099 DRUNTIME_OS_UNIX_TRUE='#'
14100 DRUNTIME_OS_UNIX_FALSE=
14101fi
14102
14103
14104
14105
14106
14107 druntime_target_os_parsed=""
14108 case "$druntime_cv_target_os" in
14109 aix*) druntime_target_os_parsed="aix"
14110 ;;
14111 *android*)
14112 druntime_target_os_parsed="android"
14113 ;;
14114 darwin*) druntime_target_os_parsed="darwin"
14115 ;;
14116 dragonfly*)
14117 druntime_target_os_parsed="dragonflybsd"
14118 ;;
14119 freebsd*|k*bsd*-gnu)
14120 druntime_target_os_parsed="freebsd"
14121 ;;
14122 openbsd*)
14123 druntime_target_os_parsed="openbsd"
14124 ;;
14125 netbsd*)
14126 druntime_target_os_parsed="netbsd"
14127 ;;
14128 linux*) druntime_target_os_parsed="linux"
14129 ;;
14130 mingw*) druntime_target_os_parsed="mingw"
14131 ;;
14132 *solaris*) druntime_target_os_parsed="solaris"
14133 esac
14134 if test "$druntime_target_os_parsed" = "aix"; then
14135 DRUNTIME_OS_AIX_TRUE=
14136 DRUNTIME_OS_AIX_FALSE='#'
14137else
14138 DRUNTIME_OS_AIX_TRUE='#'
14139 DRUNTIME_OS_AIX_FALSE=
14140fi
14141
14142 if test "$druntime_target_os_parsed" = "android"; then
14143 DRUNTIME_OS_ANDROID_TRUE=
14144 DRUNTIME_OS_ANDROID_FALSE='#'
14145else
14146 DRUNTIME_OS_ANDROID_TRUE='#'
14147 DRUNTIME_OS_ANDROID_FALSE=
14148fi
14149
14150 if test "$druntime_target_os_parsed" = "darwin"; then
14151 DRUNTIME_OS_DARWIN_TRUE=
14152 DRUNTIME_OS_DARWIN_FALSE='#'
14153else
14154 DRUNTIME_OS_DARWIN_TRUE='#'
14155 DRUNTIME_OS_DARWIN_FALSE=
14156fi
14157
14158 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14159 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14160 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14161else
14162 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14163 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14164fi
14165
14166 if test "$druntime_target_os_parsed" = "freebsd"; then
14167 DRUNTIME_OS_FREEBSD_TRUE=
14168 DRUNTIME_OS_FREEBSD_FALSE='#'
14169else
14170 DRUNTIME_OS_FREEBSD_TRUE='#'
14171 DRUNTIME_OS_FREEBSD_FALSE=
14172fi
14173
14174 if test "$druntime_target_os_parsed" = "netbsd"; then
14175 DRUNTIME_OS_NETBSD_TRUE=
14176 DRUNTIME_OS_NETBSD_FALSE='#'
14177else
14178 DRUNTIME_OS_NETBSD_TRUE='#'
14179 DRUNTIME_OS_NETBSD_FALSE=
14180fi
14181
14182 if test "$druntime_target_os_parsed" = "openbsd"; then
14183 DRUNTIME_OS_OPENBSD_TRUE=
14184 DRUNTIME_OS_OPENBSD_FALSE='#'
14185else
14186 DRUNTIME_OS_OPENBSD_TRUE='#'
14187 DRUNTIME_OS_OPENBSD_FALSE=
14188fi
14189
14190 if test "$druntime_target_os_parsed" = "linux"; then
14191 DRUNTIME_OS_LINUX_TRUE=
14192 DRUNTIME_OS_LINUX_FALSE='#'
14193else
14194 DRUNTIME_OS_LINUX_TRUE='#'
14195 DRUNTIME_OS_LINUX_FALSE=
14196fi
14197
14198 if test "$druntime_target_os_parsed" = "mingw"; then
14199 DRUNTIME_OS_MINGW_TRUE=
14200 DRUNTIME_OS_MINGW_FALSE='#'
14201else
14202 DRUNTIME_OS_MINGW_TRUE='#'
14203 DRUNTIME_OS_MINGW_FALSE=
14204fi
14205
14206 if test "$druntime_target_os_parsed" = "solaris"; then
14207 DRUNTIME_OS_SOLARIS_TRUE=
14208 DRUNTIME_OS_SOLARIS_FALSE='#'
14209else
14210 DRUNTIME_OS_SOLARIS_TRUE='#'
14211 DRUNTIME_OS_SOLARIS_FALSE=
14212fi
14213
14214
14215
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14218$as_echo_n "checking for thread model used by GDC... " >&6; }
14219 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14221$as_echo "$d_thread_model" >&6; }
14222
14223 # Map from thread model to thread interface.
14224
14225case $d_thread_model in
14226 aix) DCFG_THREAD_MODEL="Posix" ;;
14227 lynx) DCFG_THREAD_MODEL="Posix" ;;
14228 posix) DCFG_THREAD_MODEL="Posix" ;;
14229 single) DCFG_THREAD_MODEL="Single" ;;
14230 win32) DCFG_THREAD_MODEL="Win32" ;;
14231 # TODO: These targets need porting.
14232 dce|mipssde|rtems|tpf|vxworks)
14233 DCFG_THREAD_MODEL="Single" ;;
14234 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14235esac
14236
14237
14238
14239
14240 ac_ext=c
14241ac_cpp='$CPP $CPPFLAGS'
14242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244ac_compiler_gnu=$ac_cv_c_compiler_gnu
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14247$as_echo_n "checking for ARM unwinder... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h. */
14250#include <unwind.h>
14251int
14252main ()
14253{
14254
14255 #if __ARM_EABI_UNWINDER__
14256 #error Yes, it is.
14257 #endif
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265$as_echo "no" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=false
14267else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269$as_echo "yes" >&6; }
14270 DCFG_ARM_EABI_UNWINDER=true
14271fi
14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273
14274 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14276 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14277else
14278 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14279 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14280fi
14281
14282 ac_ext=c
14283ac_cpp='$CPP $CPPFLAGS'
14284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288
14289
14290 ac_ext=c
14291ac_cpp='$CPP $CPPFLAGS'
14292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14297$as_echo_n "checking for minfo section bracketing... " >&6; }
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h. */
14300
14301 void* module_info_ptr __attribute__((section ("minfo")));
14302 extern void* __start_minfo __attribute__((visibility ("hidden")));
14303 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14304
14305 int main()
14306 {
14307 // Never run, just to prevent compiler from optimizing access
14308 return &__start_minfo == &__stop_minfo;
14309 }
14310
14311_ACEOF
14312if ac_fn_c_try_link "$LINENO"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314$as_echo "yes" >&6; }
14315 DCFG_MINFO_BRACKETING=true
14316else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318$as_echo "no" >&6; }
14319 DCFG_MINFO_BRACKETING=false
14320fi
14321rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323
0b6e3127
RO
14324 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14325 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14326 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14327else
14328 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14329 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14330fi
14331
b4c522fa
IB
14332 ac_ext=c
14333ac_cpp='$CPP $CPPFLAGS'
14334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338
14339
235d1c46
RO
14340 ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14347"
14348if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14349 DCFG_DLPI_TLS_MODID=true
14350else
14351 DCFG_DLPI_TLS_MODID=false
14352fi
14353
14354
14355 ac_ext=c
14356ac_cpp='$CPP $CPPFLAGS'
14357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362
ba838aa6
RO
14363 case $target in
14364 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14365 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14366 # relocs. Work around by disabling TLS transitions. Not necessary
14367 # on 32-bit x86, but cannot be distinguished reliably in specs.
14368 druntime_ld_prog=`$CC -print-prog-name=ld`
bca0a321
RO
14369 druntime_ld_gld=no
14370 druntime_ld_relax_transtls=no
ba838aa6
RO
14371 if test -n "$druntime_ld_prog" \
14372 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
bca0a321 14373 druntime_ld_gld=yes
ba838aa6 14374 else
bca0a321
RO
14375 echo 'int main (void) { return 0; }' > conftest.c
14376 save_LDFLAGS="$LDFLAGS"
14377 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14378 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14379 druntime_ld_relax_transtls=yes
14380 fi
14381 LDFLAGS="$save_LDFLAGS"
14382 rm -f conftest.c conftest
14383 fi
14384 if test "$druntime_ld_relax_transtls" = "yes"; then
ba838aa6
RO
14385 OS_LINK_SPEC='-z relax=transtls'
14386 fi
14387 ;;
14388 esac
14389
14390
14391
36d7f151
JP
14392 ac_ext=c
14393ac_cpp='$CPP $CPPFLAGS'
14394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398 DCFG_HAVE_QSORT_R=false
14399 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14400if test "x$ac_cv_func_qsort_r" = xyes; then :
14401 DCFG_HAVE_QSORT_R=true
14402fi
14403
14404
14405 ac_ext=c
14406ac_cpp='$CPP $CPPFLAGS'
14407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411
14412
b4c522fa
IB
14413
14414
14415 gdc_save_DFLAGS=$GDCFLAGS
14416 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14417
14418 ac_ext=d
14419ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14420ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=yes
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14424$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14425if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14426 $as_echo_n "(cached) " >&6
14427else
14428 ac_func_search_save_LIBS=$LIBS
14429cat > conftest.$ac_ext <<_ACEOF
14430module mod;
14431 extern(C) int malloc();
14432
14433extern(C) int main() {
14434 malloc(); return 0;
14435}
14436_ACEOF
14437for ac_lib in '' c; do
14438 if test -z "$ac_lib"; then
14439 ac_res="none required"
14440 else
14441 ac_res=-l$ac_lib
14442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14443 fi
14444 if ac_fn_d_try_link "$LINENO"; then :
14445 ac_cv_search_malloc=$ac_res
14446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext
22e05272 14449 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14450 break
14451fi
14452done
22e05272 14453if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14454
14455else
14456 ac_cv_search_malloc=no
14457fi
14458rm conftest.$ac_ext
14459LIBS=$ac_func_search_save_LIBS
14460fi
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14462$as_echo "$ac_cv_search_malloc" >&6; }
14463ac_res=$ac_cv_search_malloc
14464if test "$ac_res" != no; then :
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467fi
14468
14469
14470 enable_thread_lib=yes
14471 # Check whether --enable-thread-lib was given.
14472if test "${enable_thread_lib+set}" = set; then :
14473 enableval=$enable_thread_lib;
14474fi
14475
14476
14477 if test "x$enable_thread_lib" = "xyes"; then :
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14480$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14481if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14482 $as_echo_n "(cached) " >&6
14483else
14484 ac_func_search_save_LIBS=$LIBS
14485cat > conftest.$ac_ext <<_ACEOF
14486module mod;
14487 extern(C) int pthread_create();
14488
14489extern(C) int main() {
14490 pthread_create(); return 0;
14491}
14492_ACEOF
14493for ac_lib in '' pthread; do
14494 if test -z "$ac_lib"; then
14495 ac_res="none required"
14496 else
14497 ac_res=-l$ac_lib
14498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 fi
14500 if ac_fn_d_try_link "$LINENO"; then :
14501 ac_cv_search_pthread_create=$ac_res
14502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext
22e05272 14505 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14506 break
14507fi
14508done
22e05272 14509if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14510
14511else
14512 ac_cv_search_pthread_create=no
14513fi
14514rm conftest.$ac_ext
14515LIBS=$ac_func_search_save_LIBS
14516fi
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14518$as_echo "$ac_cv_search_pthread_create" >&6; }
14519ac_res=$ac_cv_search_pthread_create
14520if test "$ac_res" != no; then :
14521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522
14523fi
14524
14525
14526else
14527
14528 if test "x$enable_thread_lib" = "xno"; then :
14529
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14531$as_echo_n "checking for thread library... " >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14533$as_echo "disabled" >&6; }
14534
14535else
14536
14537 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14539$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
22e05272 14540if eval \${$as_ac_Lib+:} false; then :
b4c522fa
IB
14541 $as_echo_n "(cached) " >&6
14542else
14543 ac_check_lib_save_LIBS=$LIBS
14544LIBS="-l$enable_thread_lib $LIBS"
14545cat > conftest.$ac_ext <<_ACEOF
14546module mod;
14547 extern(C) int pthread_create();
14548
14549extern(C) int main() {
14550 pthread_create(); return 0;
14551}
14552_ACEOF
14553if ac_fn_d_try_link "$LINENO"; then :
14554 eval "$as_ac_Lib=yes"
14555else
14556 eval "$as_ac_Lib=no"
14557fi
14558rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14560LIBS=$ac_check_lib_save_LIBS
14561fi
14562eval ac_res=\$$as_ac_Lib
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14564$as_echo "$ac_res" >&6; }
22e05272 14565if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
b4c522fa
IB
14566 cat >>confdefs.h <<_ACEOF
14567#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14568_ACEOF
14569
14570 LIBS="-l$enable_thread_lib $LIBS"
14571
14572else
14573
22e05272 14574 as_fn_error $? "Thread library not found" "$LINENO" 5
b4c522fa
IB
14575
14576fi
14577
14578
14579fi
14580
14581fi
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14584$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14585if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14586 $as_echo_n "(cached) " >&6
14587else
14588 ac_func_search_save_LIBS=$LIBS
14589cat > conftest.$ac_ext <<_ACEOF
14590module mod;
14591 extern(C) int cosf();
14592
14593extern(C) int main() {
14594 cosf(); return 0;
14595}
14596_ACEOF
14597for ac_lib in '' m; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14600 else
14601 ac_res=-l$ac_lib
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14603 fi
14604 if ac_fn_d_try_link "$LINENO"; then :
14605 ac_cv_search_cosf=$ac_res
14606fi
14607rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext
22e05272 14609 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14610 break
14611fi
14612done
22e05272 14613if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14614
14615else
14616 ac_cv_search_cosf=no
14617fi
14618rm conftest.$ac_ext
14619LIBS=$ac_func_search_save_LIBS
14620fi
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14622$as_echo "$ac_cv_search_cosf" >&6; }
14623ac_res=$ac_cv_search_cosf
14624if test "$ac_res" != no; then :
14625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14626
14627fi
14628
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14630$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14631if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14632 $as_echo_n "(cached) " >&6
14633else
14634 ac_func_search_save_LIBS=$LIBS
14635cat > conftest.$ac_ext <<_ACEOF
14636module mod;
14637 extern(C) int clock_gettime();
14638
14639extern(C) int main() {
14640 clock_gettime(); return 0;
14641}
14642_ACEOF
14643for ac_lib in '' rt; do
14644 if test -z "$ac_lib"; then
14645 ac_res="none required"
14646 else
14647 ac_res=-l$ac_lib
14648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14649 fi
14650 if ac_fn_d_try_link "$LINENO"; then :
14651 ac_cv_search_clock_gettime=$ac_res
14652fi
14653rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext
22e05272 14655 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14656 break
14657fi
14658done
22e05272 14659if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14660
14661else
14662 ac_cv_search_clock_gettime=no
14663fi
14664rm conftest.$ac_ext
14665LIBS=$ac_func_search_save_LIBS
14666fi
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14668$as_echo "$ac_cv_search_clock_gettime" >&6; }
14669ac_res=$ac_cv_search_clock_gettime
14670if test "$ac_res" != no; then :
14671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14672
14673fi
14674
14675
14676 # This checks to see if the host supports the compiler-generated builtins
14677 # for atomic operations for various integral sizes. Note, this is intended
14678 # to be an all-or-nothing switch, so all the atomic operations that are
14679 # used should be checked.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14681$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14682 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14683 $as_echo_n "(cached) " >&6
14684else
14685
14686 cat > conftest.$ac_ext <<_ACEOF
14687module mod;
14688import gcc.builtins;
14689
14690extern(C) int main() {
14691
14692 shared(byte) c1;
14693 byte c2, c3;
14694 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_1(&c1, 5);
14696 __atomic_store_1(&c1, c2, 5);
14697 return 0;
14698
14699}
14700_ACEOF
14701if ac_fn_d_try_link "$LINENO"; then :
14702 druntime_cv_atomic_byte=yes
14703else
14704 druntime_cv_atomic_byte=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708
14709fi
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14712$as_echo "$druntime_cv_atomic_byte" >&6; }
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14715$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14716 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14717 $as_echo_n "(cached) " >&6
14718else
14719
14720 cat > conftest.$ac_ext <<_ACEOF
14721module mod;
14722import gcc.builtins;
14723
14724extern(C) int main() {
14725
14726 shared(short) c1;
14727 short c2, c3;
14728 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_2(&c1, 5);
14730 __atomic_store_2(&c1, c2, 5);
14731 return 0;
14732
14733}
14734_ACEOF
14735if ac_fn_d_try_link "$LINENO"; then :
14736 druntime_cv_atomic_short=yes
14737else
14738 druntime_cv_atomic_short=no
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742
14743fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14746$as_echo "$druntime_cv_atomic_short" >&6; }
14747
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14749$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14750 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14751 $as_echo_n "(cached) " >&6
14752else
14753
14754 cat > conftest.$ac_ext <<_ACEOF
14755module mod;
14756import gcc.builtins;
14757
14758extern(C) int main() {
14759
14760 shared(int) c1;
14761 int c2, c3;
14762 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14763 __atomic_load_4(&c1, 5);
14764 __atomic_store_4(&c1, c2, 5);
14765 return 0;
14766
14767}
14768_ACEOF
14769if ac_fn_d_try_link "$LINENO"; then :
14770 druntime_cv_atomic_int=yes
14771else
14772 druntime_cv_atomic_int=no
14773fi
14774rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776
14777fi
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14780$as_echo "$druntime_cv_atomic_int" >&6; }
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14783$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14784 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14785 $as_echo_n "(cached) " >&6
14786else
14787
14788 cat > conftest.$ac_ext <<_ACEOF
14789module mod;
14790import gcc.builtins;
14791
14792extern(C) int main() {
14793
14794 shared(long) c1;
14795 long c2, c3;
14796 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14797 __atomic_load_8(&c1, 5);
14798 __atomic_store_8(&c1, c2, 5);
14799 return 0;
14800
14801}
14802_ACEOF
14803if ac_fn_d_try_link "$LINENO"; then :
14804 druntime_cv_atomic_long=yes
14805else
14806 druntime_cv_atomic_long=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810
14811fi
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14814$as_echo "$druntime_cv_atomic_long" >&6; }
14815
14816 # Have atomic builtin support if all but the long test above passes.
14817 DCFG_HAVE_ATOMIC_BUILTINS=false
14818 if test "$druntime_cv_atomic_byte" = yes \
14819 && test "$druntime_cv_atomic_short" = yes \
14820 && test "$druntime_cv_atomic_int" = yes; then \
14821 DCFG_HAVE_ATOMIC_BUILTINS=true
14822 fi
14823
14824 # Have 64-bit atomic support if the long test above passes.
14825 DCFG_HAVE_64BIT_ATOMICS=false
14826 if test "$druntime_cv_atomic_long" = yes; then
14827 DCFG_HAVE_64BIT_ATOMICS=true
14828 fi
14829
14830
14831
14832
14833 ac_ext=c
14834ac_cpp='$CPP $CPPFLAGS'
14835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14837ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838
14839
14840 GDCFLAGS=$gdc_save_DFLAGS
14841
14842
14843
14844
14845# Check whether --with-libatomic was given.
14846if test "${with_libatomic+set}" = set; then :
14847 withval=$with_libatomic;
14848fi
14849
14850
14851 DCFG_HAVE_LIBATOMIC=false
14852 LIBATOMIC=
14853 if test "x$with_libatomic" != "xno"; then :
14854
14855 DCFG_HAVE_LIBATOMIC=true
14856 LIBATOMIC=../../libatomic/libatomic_convenience.la
14857
14858else
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14861$as_echo_n "checking for libatomic... " >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14863$as_echo "disabled" >&6; }
14864
14865fi
14866
14867
14868
14869
14870
14871 ac_ext=c
14872ac_cpp='$CPP $CPPFLAGS'
14873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14875ac_compiler_gnu=$ac_cv_c_compiler_gnu
14876
14877 BACKTRACE_SUPPORTED=false
14878 BACKTRACE_USES_MALLOC=false
14879 BACKTRACE_SUPPORTS_THREADS=false
14880 LIBBACKTRACE=""
14881
14882
14883# Check whether --with-libbacktrace was given.
14884if test "${with_libbacktrace+set}" = set; then :
14885 withval=$with_libbacktrace;
14886fi
14887
14888
14889 if test "x$with_libbacktrace" != "xno"; then :
14890
14891 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14892
14893 gdc_save_CPPFLAGS=$CPPFLAGS
5d71d6f2 14894 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
b4c522fa
IB
14895
14896 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 14897if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
14898 have_libbacktrace_h=true
14899else
14900 have_libbacktrace_h=false
14901fi
14902
14903
14904
14905 if $have_libbacktrace_h; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14907$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h. */
14910
14911 #include <backtrace-supported.h>
14912 #if BACKTRACE_SUPPORTED
14913 FOUND_LIBBACKTRACE_RESULT_GDC
14914 #endif
14915
14916_ACEOF
14917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14918 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14919 BACKTRACE_SUPPORTED=true
14920else
14921 BACKTRACE_SUPPORTED=false
14922fi
14923rm -f conftest*
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14926$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14927
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14929$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h. */
14932
14933 #include <backtrace-supported.h>
14934 #if BACKTRACE_USES_MALLOC
14935 FOUND_LIBBACKTRACE_RESULT_GDC
14936 #endif
14937
14938_ACEOF
14939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14940 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14941 BACKTRACE_USES_MALLOC=true
14942else
14943 BACKTRACE_USES_MALLOC=false
14944fi
14945rm -f conftest*
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14948$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14951$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h. */
14954
14955 #include <backtrace-supported.h>
14956 #if BACKTRACE_SUPPORTS_THREADS
14957 FOUND_LIBBACKTRACE_RESULT_GDC
14958 #endif
14959
14960_ACEOF
14961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14962 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14963 BACKTRACE_SUPPORTS_THREADS=true
14964else
14965 BACKTRACE_SUPPORTS_THREADS=false
14966fi
14967rm -f conftest*
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14970$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14971 fi
14972 CPPFLAGS=$gdc_save_CPPFLAGS
14973
14974else
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14977$as_echo_n "checking for libbacktrace... " >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14979$as_echo "disabled" >&6; }
14980
14981fi
14982
14983
14984
14985
14986
14987 ac_ext=c
14988ac_cpp='$CPP $CPPFLAGS'
14989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991ac_compiler_gnu=$ac_cv_c_compiler_gnu
14992
14993
14994
14995 # Libtool has already checked this, so re-use the inferred dlopen lib.
14996 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14997
14998 LIBS="$LIBS $lt_cv_dlopen_libs"
14999
15000fi
15001
15002
1d679134
RO
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15004$as_echo_n "checking for socket libraries... " >&6; }
15005if ${druntime_cv_lib_sockets+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007else
15008 druntime_cv_lib_sockets=
15009 druntime_check_both=no
15010 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15011if test "x$ac_cv_func_connect" = xyes; then :
15012 druntime_check_socket=no
15013else
15014 druntime_check_socket=yes
15015fi
15016
15017 if test "$druntime_check_socket" = "yes"; then
15018 unset ac_cv_func_connect
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15020$as_echo_n "checking for main in -lsocket... " >&6; }
15021if ${ac_cv_lib_socket_main+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023else
15024 ac_check_lib_save_LIBS=$LIBS
15025LIBS="-lsocket $LIBS"
15026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h. */
15028
15029
15030int
15031main ()
15032{
15033return main ();
15034 ;
15035 return 0;
15036}
15037_ACEOF
15038if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_socket_main=yes
15040else
15041 ac_cv_lib_socket_main=no
15042fi
15043rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045LIBS=$ac_check_lib_save_LIBS
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15048$as_echo "$ac_cv_lib_socket_main" >&6; }
15049if test "x$ac_cv_lib_socket_main" = xyes; then :
15050 druntime_cv_lib_sockets="-lsocket"
15051else
15052 druntime_check_both=yes
15053fi
15054
15055 fi
15056 if test "$druntime_check_both" = "yes"; then
15057 druntime_old_libs=$LIBS
15058 LIBS="$LIBS -lsocket -lnsl"
15059 unset ac_cv_func_accept
15060 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15061if test "x$ac_cv_func_accept" = xyes; then :
15062 druntime_check_nsl=no
15063 druntime_cv_lib_sockets="-lsocket -lnsl"
15064fi
15065
15066 unset ac_cv_func_accept
15067 LIBS=$druntime_old_libs
15068 fi
15069 unset ac_cv_func_gethostbyname
15070 druntime_old_libs="$LIBS"
15071 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15072if test "x$ac_cv_func_gethostbyname" = xyes; then :
15073
15074else
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15076$as_echo_n "checking for main in -lnsl... " >&6; }
15077if ${ac_cv_lib_nsl_main+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079else
15080 ac_check_lib_save_LIBS=$LIBS
15081LIBS="-lnsl $LIBS"
15082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h. */
15084
15085
15086int
15087main ()
15088{
15089return main ();
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_link "$LINENO"; then :
15095 ac_cv_lib_nsl_main=yes
15096else
15097 ac_cv_lib_nsl_main=no
15098fi
15099rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101LIBS=$ac_check_lib_save_LIBS
15102fi
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15104$as_echo "$ac_cv_lib_nsl_main" >&6; }
15105if test "x$ac_cv_lib_nsl_main" = xyes; then :
15106 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15107fi
15108
15109fi
15110
15111
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15114$as_echo "$druntime_cv_lib_sockets" >&6; }
15115 LIBS="$LIBS $druntime_cv_lib_sockets"
15116
15117
bb50312e
IB
15118 ac_ext=c
15119ac_cpp='$CPP $CPPFLAGS'
15120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124 LIBZ=""
15125
b4c522fa
IB
15126
15127# Check whether --with-target-system-zlib was given.
15128if test "${with_target_system_zlib+set}" = set; then :
15129 withval=$with_target_system_zlib;
bb50312e
IB
15130else
15131 with_target_system_zlib=no
b4c522fa
IB
15132fi
15133
15134
bb50312e
IB
15135 case "$with_target_system_zlib" in
15136 yes|no|auto) ;;
15137 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15138 esac
b4c522fa 15139
bb50312e
IB
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15141$as_echo_n "checking for system zlib... " >&6; }
15142 save_LIBS=$LIBS
15143 LIBS="$LIBS -lz"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 15145/* end confdefs.h. */
bb50312e 15146#include <zlib.h>
b4c522fa
IB
15147int
15148main ()
15149{
bb50312e 15150gzopen("none", "rb")
b4c522fa
IB
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155if ac_fn_c_try_link "$LINENO"; then :
b4c522fa 15156
bb50312e
IB
15157 if test "$cross_compiling" = yes; then :
15158 system_zlib_found=no
b4c522fa
IB
15159
15160else
bb50312e
IB
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162/* end confdefs.h. */
b4c522fa 15163
bb50312e
IB
15164 #include <zlib.h>
15165 int main() {
15166 gzFile file = gzopen("none", "rb");
15167 return 0;
15168 }
b4c522fa 15169
bb50312e
IB
15170_ACEOF
15171if ac_fn_c_try_run "$LINENO"; then :
15172 system_zlib_found=yes
15173else
15174 system_zlib_found=no
15175fi
15176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15177 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa
IB
15178fi
15179
15180
15181else
bb50312e
IB
15182 system_zlib_found=no
15183fi
15184rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15186 LIBS=$save_LIBS
15187
15188 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15190$as_echo "found" >&6; }
15191 LIBS="$LIBS -lz"
15192 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15193 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15194 else
b4c522fa
IB
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15196$as_echo "just compiled" >&6; }
bb50312e
IB
15197 LIBZ=../../zlib/libz_convenience.la
15198 fi
b4c522fa 15199
b4c522fa 15200
bb50312e
IB
15201 ac_ext=c
15202ac_cpp='$CPP $CPPFLAGS'
15203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa
IB
15206
15207
15208
15209
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15212$as_echo_n "checking D GCC version... " >&6; }
15213 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15215$as_echo "$gcc_version" >&6; }
15216
15217
15218
15219# Check whether --with-cross-host was given.
15220if test "${with_cross_host+set}" = set; then :
15221 withval=$with_cross_host;
15222fi
15223
15224
ac67752d
IB
15225 libphobos_toolexecdir=no
15226 libphobos_toolexeclibdir=no
b4c522fa 15227
ac67752d
IB
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15229$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15230 # Check whether --enable-version-specific-runtime-libs was given.
15231if test "${enable_version_specific_runtime_libs+set}" = set; then :
15232 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15233 yes) version_specific_libs=yes ;;
15234 no) version_specific_libs=no ;;
15235 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15236 esac
15237else
b4c522fa 15238 version_specific_libs=no
ac67752d
IB
15239fi
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15242$as_echo "$version_specific_libs" >&6; }
b4c522fa 15243
e8e66971
MR
15244
15245# Check whether --with-toolexeclibdir was given.
15246if test "${with_toolexeclibdir+set}" = set; then :
15247 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15248 /)
15249 ;;
15250 */)
15251 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15252 ;;
15253esac
15254else
15255 with_toolexeclibdir=no
15256fi
15257
15258
15259
b4c522fa
IB
15260 # Version-specific runtime libs processing.
15261 if test $version_specific_libs = yes; then
ac67752d
IB
15262 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15263 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
b4c522fa 15264 else
ac67752d
IB
15265 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15266 # Install a library built with a cross compiler in tooldir, not libdir.
15267 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15268 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
e8e66971
MR
15269 case ${with_toolexeclibdir} in
15270 no)
15271 libphobos_toolexeclibdir='${toolexecdir}/lib'
15272 ;;
15273 *)
15274 libphobos_toolexeclibdir=${with_toolexeclibdir}
15275 ;;
15276 esac
ac67752d
IB
15277 else
15278 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15279 libphobos_toolexeclibdir='${libdir}'
15280 fi
15281 multi_os_directory=`$GDC -print-multi-os-directory`
15282 case $multi_os_directory in
15283 .) ;; # Avoid trailing /.
15284 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15285 esac
b4c522fa
IB
15286 fi
15287
15288
15289
15290 # Default case for install directory for D sources files.
15291 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15292
15293
15294
bca0a321
RO
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15296$as_echo_n "checking for --enable-libphobos... " >&6; }
15297# Check whether --enable-libphobos was given.
15298if test "${enable_libphobos+set}" = set; then :
15299 enableval=$enable_libphobos;
15300fi
15301
15302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15303$as_echo "$enable_libphobos" >&6; }
15304
15305# See if supported.
15306unset LIBPHOBOS_SUPPORTED
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15308$as_echo_n "checking for host support for libphobos... " >&6; }
15309. ${srcdir}/configure.tgt
15310case ${host} in
15311 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15312 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15313 # relatively low linelength limit.
15314 as_prog=`$CC -print-prog-name=as`
15315 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15316 druntime_cv_use_gas=yes;
15317 else
15318 druntime_cv_use_gas=no;
15319 fi
15320 rm -f a.out
15321 if test x$druntime_cv_use_gas = xno; then
15322 LIBPHOBOS_SUPPORTED=no
15323 fi
15324 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15325 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15326 LIBPHOBOS_SUPPORTED=no
15327 fi
15328 ;;
15329esac
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15331$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15332
15333# Decide if it's usable.
15334case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15335*:no) use_libphobos=no ;;
15336*:yes) use_libphobos=yes ;;
15337yes:*) use_libphobos=yes ;;
15338*:*) use_libphobos=no ;;
15339esac
15340 if test x$use_libphobos = xyes; then
15341 ENABLE_LIBPHOBOS_TRUE=
15342 ENABLE_LIBPHOBOS_FALSE='#'
15343else
15344 ENABLE_LIBPHOBOS_TRUE='#'
15345 ENABLE_LIBPHOBOS_FALSE=
15346fi
15347
15348
0b6e3127
RO
15349# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15350if test "$DCFG_MINFO_BRACKETING" = "false"; then
15351 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15352else
15353 DRTSTUFF_SPEC=/dev/null
15354fi
15355
15356
b4c522fa
IB
15357# Add dependencies for libgphobos.spec file
15358SPEC_PHOBOS_DEPS="$LIBS"
15359
15360
15361# Libdruntime / phobos soname version
bc093503 15362libtool_VERSION=1:0:0
b4c522fa
IB
15363
15364
15365# Set default flags (after DRUNTIME_WERROR!)
15366if test -z "$GDCFLAGS"; then
15367 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15368fi
15369
15370
15371if test -z "$GDCFLAGSX"; then
15372 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15373fi
15374
15375
15376# Sanity check for the cross-compilation case:
15377ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 15378if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
15379 :
15380else
22e05272 15381 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
15382fi
15383
15384
15385
ac67752d 15386ac_config_files="$ac_config_files Makefile"
b4c522fa
IB
15387
15388
15389ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15390
15391ac_config_files="$ac_config_files src/libgphobos.spec"
15392
15393ac_config_files="$ac_config_files testsuite/testsuite_flags"
15394
15395
ac67752d
IB
15396# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15397# that multilib installs will end up installed in the correct place.
15398# The testsuite needs it for multilib-aware ABI baseline files.
15399# To work around this not being passed down from config-ml.in ->
15400# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15401# append it here. Only modify Makefiles that have just been created.
15402#
15403# Also, get rid of this simulated-VPATH thing that automake does.
15404ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
b4c522fa
IB
15405
15406
15407cat >confcache <<\_ACEOF
15408# This file is a shell script that caches the results of configure
15409# tests run on this system so they can be shared between configure
15410# scripts and configure runs, see configure's option --config-cache.
15411# It is not useful on other systems. If it contains results you don't
15412# want to keep, you may remove or edit it.
15413#
15414# config.status only pays attention to the cache file if you give it
15415# the --recheck option to rerun configure.
15416#
15417# `ac_cv_env_foo' variables (set or unset) will be overridden when
15418# loading this file, other *unset* `ac_cv_foo' will be assigned the
15419# following values.
15420
15421_ACEOF
15422
15423# The following way of writing the cache mishandles newlines in values,
15424# but we know of no workaround that is simple, portable, and efficient.
15425# So, we kill variables containing newlines.
15426# Ultrix sh set writes to stderr and can't be redirected directly,
15427# and sets the high bit in the cache file unless we assign to the vars.
15428(
15429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15430 eval ac_val=\$$ac_var
15431 case $ac_val in #(
15432 *${as_nl}*)
15433 case $ac_var in #(
15434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15435$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15436 esac
15437 case $ac_var in #(
15438 _ | IFS | as_nl) ;; #(
15439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15440 *) { eval $ac_var=; unset $ac_var;} ;;
15441 esac ;;
15442 esac
15443 done
15444
15445 (set) 2>&1 |
15446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15447 *${as_nl}ac_space=\ *)
15448 # `set' does not quote correctly, so add quotes: double-quote
15449 # substitution turns \\\\ into \\, and sed turns \\ into \.
15450 sed -n \
15451 "s/'/'\\\\''/g;
15452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15453 ;; #(
15454 *)
15455 # `set' quotes correctly as required by POSIX, so do not add quotes.
15456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15457 ;;
15458 esac |
15459 sort
15460) |
15461 sed '
15462 /^ac_cv_env_/b end
15463 t clear
15464 :clear
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15466 t end
15467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15468 :end' >>confcache
15469if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15470 if test -w "$cache_file"; then
22e05272 15471 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15473$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15474 if test ! -f "$cache_file" || test -h "$cache_file"; then
15475 cat confcache >"$cache_file"
15476 else
15477 case $cache_file in #(
15478 */* | ?:*)
15479 mv -f confcache "$cache_file"$$ &&
15480 mv -f "$cache_file"$$ "$cache_file" ;; #(
15481 *)
15482 mv -f confcache "$cache_file" ;;
15483 esac
15484 fi
15485 fi
b4c522fa
IB
15486 else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15488$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15489 fi
15490fi
15491rm -f confcache
15492
15493test "x$prefix" = xNONE && prefix=$ac_default_prefix
15494# Let make expand exec_prefix.
15495test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15496
15497DEFS=-DHAVE_CONFIG_H
15498
15499ac_libobjs=
15500ac_ltlibobjs=
22e05272 15501U=
b4c522fa
IB
15502for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15503 # 1. Remove the extension, and $U if already installed.
15504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15507 # will be set to the directory where LIBOBJS objects are built.
15508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15510done
15511LIBOBJS=$ac_libobjs
15512
15513LTLIBOBJS=$ac_ltlibobjs
15514
15515
22e05272
JM
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15517$as_echo_n "checking that generated files are newer than configure... " >&6; }
15518 if test -n "$am_sleep_pid"; then
15519 # Hide warnings about reused PIDs.
15520 wait $am_sleep_pid 2>/dev/null
15521 fi
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15523$as_echo "done" >&6; }
b4c522fa
IB
15524 if test -n "$EXEEXT"; then
15525 am__EXEEXT_TRUE=
15526 am__EXEEXT_FALSE='#'
15527else
15528 am__EXEEXT_TRUE='#'
15529 am__EXEEXT_FALSE=
15530fi
15531
15532if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15533 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15534Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535fi
b4c522fa 15536if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
22e05272 15537 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
b4c522fa
IB
15538Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539fi
2493e718
IB
15540if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15541 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15542Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543fi
15544if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15545 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15546Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547fi
15548if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15549 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15550Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551fi
15552if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15553 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15554Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555fi
15556if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15557 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15558Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559fi
15560if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15561 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15562Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563fi
b4c522fa 15564if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
22e05272 15565 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
b4c522fa
IB
15566Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567fi
15568if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15569 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15570Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571fi
15572if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15573 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15574Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575fi
15576if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15577 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15578Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579fi
15580if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15581 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15582Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583fi
15584if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15585 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15586Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587fi
15588if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15589 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15590Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591fi
15592if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15593 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15594Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595fi
15596if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15597 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15598Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599fi
15600if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15601 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15602Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603fi
15604if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15605 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15606Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607fi
15608if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15609 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15610Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611fi
0b6e3127
RO
15612if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15613 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15614Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615fi
bca0a321
RO
15616if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15617 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15618Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619fi
b4c522fa 15620
22e05272 15621: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15622ac_write_fail=0
15623ac_clean_files_save=$ac_clean_files
15624ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15626$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15627as_write_fail=0
15628cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15629#! $SHELL
15630# Generated by $as_me.
15631# Run this file to recreate the current configuration.
15632# Compiler output produced by configure, useful for debugging
15633# configure, is in config.log if it exists.
15634
15635debug=false
15636ac_cs_recheck=false
15637ac_cs_silent=false
15638
15639SHELL=\${CONFIG_SHELL-$SHELL}
15640export SHELL
15641_ASEOF
15642cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15643## -------------------- ##
15644## M4sh Initialization. ##
15645## -------------------- ##
15646
15647# Be more Bourne compatible
15648DUALCASE=1; export DUALCASE # for MKS sh
15649if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15650 emulate sh
15651 NULLCMD=:
15652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15653 # is contrary to our usage. Disable this feature.
15654 alias -g '${1+"$@"}'='"$@"'
15655 setopt NO_GLOB_SUBST
15656else
15657 case `(set -o) 2>/dev/null` in #(
15658 *posix*) :
15659 set -o posix ;; #(
15660 *) :
15661 ;;
15662esac
15663fi
15664
15665
15666as_nl='
15667'
15668export as_nl
15669# Printing a long string crashes Solaris 7 /usr/bin/printf.
15670as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15672as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15673# Prefer a ksh shell builtin over an external printf program on Solaris,
15674# but without wasting forks for bash or zsh.
15675if test -z "$BASH_VERSION$ZSH_VERSION" \
15676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15677 as_echo='print -r --'
15678 as_echo_n='print -rn --'
15679elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='printf %s\n'
15681 as_echo_n='printf %s'
15682else
15683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15685 as_echo_n='/usr/ucb/echo -n'
15686 else
15687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15688 as_echo_n_body='eval
15689 arg=$1;
15690 case $arg in #(
15691 *"$as_nl"*)
15692 expr "X$arg" : "X\\(.*\\)$as_nl";
15693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15694 esac;
15695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15696 '
15697 export as_echo_n_body
15698 as_echo_n='sh -c $as_echo_n_body as_echo'
15699 fi
15700 export as_echo_body
15701 as_echo='sh -c $as_echo_body as_echo'
15702fi
15703
15704# The user is always right.
15705if test "${PATH_SEPARATOR+set}" != set; then
15706 PATH_SEPARATOR=:
15707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15709 PATH_SEPARATOR=';'
15710 }
15711fi
15712
15713
15714# IFS
15715# We need space, tab and new line, in precisely that order. Quoting is
15716# there to prevent editors from complaining about space-tab.
15717# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15718# splitting by setting IFS to empty value.)
15719IFS=" "" $as_nl"
15720
15721# Find who we are. Look in the path if we contain no directory separator.
22e05272 15722as_myself=
b4c522fa
IB
15723case $0 in #((
15724 *[\\/]* ) as_myself=$0 ;;
15725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726for as_dir in $PATH
15727do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15731 done
15732IFS=$as_save_IFS
15733
15734 ;;
15735esac
15736# We did not find ourselves, most probably we were run as `sh COMMAND'
15737# in which case we are not to be found in the path.
15738if test "x$as_myself" = x; then
15739 as_myself=$0
15740fi
15741if test ! -f "$as_myself"; then
15742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15743 exit 1
15744fi
15745
15746# Unset variables that we do not need and which cause bugs (e.g. in
15747# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15748# suppresses any "Segmentation fault" message there. '((' could
15749# trigger a bug in pdksh 5.2.14.
15750for as_var in BASH_ENV ENV MAIL MAILPATH
15751do eval test x\${$as_var+set} = xset \
15752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15753done
15754PS1='$ '
15755PS2='> '
15756PS4='+ '
15757
15758# NLS nuisances.
15759LC_ALL=C
15760export LC_ALL
15761LANGUAGE=C
15762export LANGUAGE
15763
15764# CDPATH.
15765(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15766
15767
22e05272
JM
15768# as_fn_error STATUS ERROR [LINENO LOG_FD]
15769# ----------------------------------------
b4c522fa
IB
15770# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15771# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15772# script with STATUS, using 1 if that was 0.
b4c522fa
IB
15773as_fn_error ()
15774{
22e05272
JM
15775 as_status=$1; test $as_status -eq 0 && as_status=1
15776 if test "$4"; then
15777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 15779 fi
22e05272 15780 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
15781 as_fn_exit $as_status
15782} # as_fn_error
15783
15784
15785# as_fn_set_status STATUS
15786# -----------------------
15787# Set $? to STATUS, without forking.
15788as_fn_set_status ()
15789{
15790 return $1
15791} # as_fn_set_status
15792
15793# as_fn_exit STATUS
15794# -----------------
15795# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15796as_fn_exit ()
15797{
15798 set +e
15799 as_fn_set_status $1
15800 exit $1
15801} # as_fn_exit
15802
15803# as_fn_unset VAR
15804# ---------------
15805# Portably unset VAR.
15806as_fn_unset ()
15807{
15808 { eval $1=; unset $1;}
15809}
15810as_unset=as_fn_unset
15811# as_fn_append VAR VALUE
15812# ----------------------
15813# Append the text in VALUE to the end of the definition contained in VAR. Take
15814# advantage of any shell optimizations that allow amortized linear growth over
15815# repeated appends, instead of the typical quadratic growth present in naive
15816# implementations.
15817if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15818 eval 'as_fn_append ()
15819 {
15820 eval $1+=\$2
15821 }'
15822else
15823 as_fn_append ()
15824 {
15825 eval $1=\$$1\$2
15826 }
15827fi # as_fn_append
15828
15829# as_fn_arith ARG...
15830# ------------------
15831# Perform arithmetic evaluation on the ARGs, and store the result in the
15832# global $as_val. Take advantage of shells that can avoid forks. The arguments
15833# must be portable across $(()) and expr.
15834if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15835 eval 'as_fn_arith ()
15836 {
15837 as_val=$(( $* ))
15838 }'
15839else
15840 as_fn_arith ()
15841 {
15842 as_val=`expr "$@" || test $? -eq 1`
15843 }
15844fi # as_fn_arith
15845
15846
15847if expr a : '\(a\)' >/dev/null 2>&1 &&
15848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15849 as_expr=expr
15850else
15851 as_expr=false
15852fi
15853
15854if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15855 as_basename=basename
15856else
15857 as_basename=false
15858fi
15859
15860if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15861 as_dirname=dirname
15862else
15863 as_dirname=false
15864fi
15865
15866as_me=`$as_basename -- "$0" ||
15867$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15868 X"$0" : 'X\(//\)$' \| \
15869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15870$as_echo X/"$0" |
15871 sed '/^.*\/\([^/][^/]*\)\/*$/{
15872 s//\1/
15873 q
15874 }
15875 /^X\/\(\/\/\)$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\/\(\/\).*/{
15880 s//\1/
15881 q
15882 }
15883 s/.*/./; q'`
15884
15885# Avoid depending upon Character Ranges.
15886as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15887as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15889as_cr_digits='0123456789'
15890as_cr_alnum=$as_cr_Letters$as_cr_digits
15891
15892ECHO_C= ECHO_N= ECHO_T=
15893case `echo -n x` in #(((((
15894-n*)
15895 case `echo 'xy\c'` in
15896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15897 xy) ECHO_C='\c';;
15898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15899 ECHO_T=' ';;
15900 esac;;
15901*)
15902 ECHO_N='-n';;
15903esac
15904
15905rm -f conf$$ conf$$.exe conf$$.file
15906if test -d conf$$.dir; then
15907 rm -f conf$$.dir/conf$$.file
15908else
15909 rm -f conf$$.dir
15910 mkdir conf$$.dir 2>/dev/null
15911fi
15912if (echo >conf$$.file) 2>/dev/null; then
15913 if ln -s conf$$.file conf$$ 2>/dev/null; then
15914 as_ln_s='ln -s'
15915 # ... but there are two gotchas:
15916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15918 # In both cases, we have to default to `cp -pR'.
b4c522fa 15919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15920 as_ln_s='cp -pR'
b4c522fa
IB
15921 elif ln conf$$.file conf$$ 2>/dev/null; then
15922 as_ln_s=ln
15923 else
22e05272 15924 as_ln_s='cp -pR'
b4c522fa
IB
15925 fi
15926else
22e05272 15927 as_ln_s='cp -pR'
b4c522fa
IB
15928fi
15929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15930rmdir conf$$.dir 2>/dev/null
15931
15932
15933# as_fn_mkdir_p
15934# -------------
15935# Create "$as_dir" as a directory, including parents if necessary.
15936as_fn_mkdir_p ()
15937{
15938
15939 case $as_dir in #(
15940 -*) as_dir=./$as_dir;;
15941 esac
15942 test -d "$as_dir" || eval $as_mkdir_p || {
15943 as_dirs=
15944 while :; do
15945 case $as_dir in #(
15946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15947 *) as_qdir=$as_dir;;
15948 esac
15949 as_dirs="'$as_qdir' $as_dirs"
15950 as_dir=`$as_dirname -- "$as_dir" ||
15951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$as_dir" : 'X\(//\)[^/]' \| \
15953 X"$as_dir" : 'X\(//\)$' \| \
15954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15955$as_echo X"$as_dir" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)[^/].*/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\/\)$/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\).*/{
15969 s//\1/
15970 q
15971 }
15972 s/.*/./; q'`
15973 test -d "$as_dir" && break
15974 done
15975 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
15977
15978
15979} # as_fn_mkdir_p
15980if mkdir -p . 2>/dev/null; then
15981 as_mkdir_p='mkdir -p "$as_dir"'
15982else
15983 test -d ./-p && rmdir ./-p
15984 as_mkdir_p=false
15985fi
15986
22e05272
JM
15987
15988# as_fn_executable_p FILE
15989# -----------------------
15990# Test if FILE is an executable regular file.
15991as_fn_executable_p ()
15992{
15993 test -f "$1" && test -x "$1"
15994} # as_fn_executable_p
15995as_test_x='test -x'
15996as_executable_p=as_fn_executable_p
b4c522fa
IB
15997
15998# Sed expression to map a string onto a valid CPP name.
15999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16000
16001# Sed expression to map a string onto a valid variable name.
16002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16003
16004
16005exec 6>&1
16006## ----------------------------------- ##
16007## Main body of $CONFIG_STATUS script. ##
16008## ----------------------------------- ##
16009_ASEOF
16010test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16011
16012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013# Save the log message, to keep $0 and so on meaningful, and to
16014# report actual input values of CONFIG_FILES etc. instead of their
16015# values after options handling.
16016ac_log="
16017This file was extended by package-unused $as_me version-unused, which was
22e05272 16018generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
16019
16020 CONFIG_FILES = $CONFIG_FILES
16021 CONFIG_HEADERS = $CONFIG_HEADERS
16022 CONFIG_LINKS = $CONFIG_LINKS
16023 CONFIG_COMMANDS = $CONFIG_COMMANDS
16024 $ $0 $@
16025
16026on `(hostname || uname -n) 2>/dev/null | sed 1q`
16027"
16028
16029_ACEOF
16030
16031case $ac_config_files in *"
16032"*) set x $ac_config_files; shift; ac_config_files=$*;;
16033esac
16034
16035case $ac_config_headers in *"
16036"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16037esac
16038
16039
16040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041# Files that config.status was made for.
16042config_files="$ac_config_files"
16043config_headers="$ac_config_headers"
16044config_commands="$ac_config_commands"
16045
16046_ACEOF
16047
16048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049ac_cs_usage="\
16050\`$as_me' instantiates files and other configuration actions
16051from templates according to the current configuration. Unless the files
16052and actions are specified as TAGs, all are instantiated by default.
16053
16054Usage: $0 [OPTION]... [TAG]...
16055
16056 -h, --help print this help, then exit
16057 -V, --version print version number and configuration settings, then exit
22e05272 16058 --config print configuration, then exit
b4c522fa
IB
16059 -q, --quiet, --silent
16060 do not print progress messages
16061 -d, --debug don't remove temporary files
16062 --recheck update $as_me by reconfiguring in the same conditions
16063 --file=FILE[:TEMPLATE]
16064 instantiate the configuration file FILE
16065 --header=FILE[:TEMPLATE]
16066 instantiate the configuration header FILE
16067
16068Configuration files:
16069$config_files
16070
16071Configuration headers:
16072$config_headers
16073
16074Configuration commands:
16075$config_commands
16076
16077Report bugs to the package provider."
16078
16079_ACEOF
16080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16081ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
16082ac_cs_version="\\
16083package-unused config.status version-unused
22e05272
JM
16084configured by $0, generated by GNU Autoconf 2.69,
16085 with options \\"\$ac_cs_config\\"
b4c522fa 16086
0b6e3127 16087Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
16088This config.status script is free software; the Free Software Foundation
16089gives unlimited permission to copy, distribute and modify it."
16090
16091ac_pwd='$ac_pwd'
16092srcdir='$srcdir'
16093INSTALL='$INSTALL'
16094MKDIR_P='$MKDIR_P'
16095AWK='$AWK'
16096test -n "\$AWK" || AWK=awk
16097_ACEOF
16098
16099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100# The default lists apply if the user does not specify any file.
16101ac_need_defaults=:
16102while test $# != 0
16103do
16104 case $1 in
22e05272 16105 --*=?*)
b4c522fa
IB
16106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16108 ac_shift=:
16109 ;;
22e05272
JM
16110 --*=)
16111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16112 ac_optarg=
16113 ac_shift=:
16114 ;;
b4c522fa
IB
16115 *)
16116 ac_option=$1
16117 ac_optarg=$2
16118 ac_shift=shift
16119 ;;
16120 esac
16121
16122 case $ac_option in
16123 # Handling of the options.
16124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16125 ac_cs_recheck=: ;;
16126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16127 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16128 --config | --confi | --conf | --con | --co | --c )
16129 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
16130 --debug | --debu | --deb | --de | --d | -d )
16131 debug=: ;;
16132 --file | --fil | --fi | --f )
16133 $ac_shift
16134 case $ac_optarg in
16135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16136 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
16137 esac
16138 as_fn_append CONFIG_FILES " '$ac_optarg'"
16139 ac_need_defaults=false;;
16140 --header | --heade | --head | --hea )
16141 $ac_shift
16142 case $ac_optarg in
16143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16144 esac
16145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16146 ac_need_defaults=false;;
16147 --he | --h)
16148 # Conflict between --help and --header
22e05272 16149 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
16150Try \`$0 --help' for more information.";;
16151 --help | --hel | -h )
16152 $as_echo "$ac_cs_usage"; exit ;;
16153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16155 ac_cs_silent=: ;;
16156
16157 # This is an error.
22e05272 16158 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
16159Try \`$0 --help' for more information." ;;
16160
16161 *) as_fn_append ac_config_targets " $1"
16162 ac_need_defaults=false ;;
16163
16164 esac
16165 shift
16166done
16167
16168ac_configure_extra_args=
16169
16170if $ac_cs_silent; then
16171 exec 6>/dev/null
16172 ac_configure_extra_args="$ac_configure_extra_args --silent"
16173fi
16174
16175_ACEOF
16176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177if \$ac_cs_recheck; then
22e05272 16178 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
16179 shift
16180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16181 CONFIG_SHELL='$SHELL'
16182 export CONFIG_SHELL
16183 exec "\$@"
16184fi
16185
16186_ACEOF
16187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188exec 5>>config.log
16189{
16190 echo
16191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16192## Running $as_me. ##
16193_ASBOX
16194 $as_echo "$ac_log"
16195} >&5
16196
16197_ACEOF
16198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199#
16200# INIT-COMMANDS
16201#
16202
16203srcdir="$srcdir"
16204host="$host"
16205target="$target"
16206with_multisubdir="$with_multisubdir"
16207with_multisrctop="$with_multisrctop"
16208with_target_subdir="$with_target_subdir"
16209ac_configure_args="${multilib_arg} ${ac_configure_args}"
16210multi_basedir="$multi_basedir"
16211CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16212CC="$CC"
16213CXX="$CXX"
16214GFORTRAN="$GFORTRAN"
16215GDC="$GDC"
16216
16217
16218# The HP-UX ksh and POSIX shell print the target directory to stdout
16219# if CDPATH is set.
16220(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16221
16222sed_quote_subst='$sed_quote_subst'
16223double_quote_subst='$double_quote_subst'
16224delay_variable_subst='$delay_variable_subst'
16225macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16226macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16227enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16228enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16229pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16230enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16231SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16232ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16233host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16234host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16235host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16236build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16237build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16238build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16239SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16240Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16241GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16242EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16243FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16244LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16245NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16246LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16247max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16248ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16249exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16250lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16251lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16252lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16253reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16254reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16255OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16256deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16257file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16258AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16259AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16260STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273lt_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"`'
16274objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16275MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16276lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16277lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16278lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16279lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16280lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16281need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16282DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16283NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16284LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16285OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16286OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16287libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16288shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16289extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16290archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16291enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16292export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16293whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16294compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16295old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16296old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16298archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16299module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16300module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16301with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16302allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16303no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16304hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16305hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16306hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16307hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16308hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16309hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16310hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16311hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16312inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16313link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16314fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16315always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16316export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16317exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16318include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16319prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16320file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16321variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16322need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16323need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16324version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16325runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16326shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16327shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16328libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16329library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16330soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16331install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16332postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16333postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16334finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16335finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16336hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16337sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16338sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16339hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16340enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16341enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16342enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16343old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16344striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16345LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16346reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16347reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16348old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16349compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16350GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16351lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16352lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16353lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16354lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16355lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16356archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16357enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16358export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16359whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16360compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16361old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16362old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16363archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16364archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16365module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16366module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16367with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16368allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16369no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16370hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16371hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16372hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16373hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16374hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16375hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16376hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16377hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16378inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16379link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16380fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16381always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16382export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16383exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16384include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16385prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16386file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16387hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16388
16389LTCC='$LTCC'
16390LTCFLAGS='$LTCFLAGS'
16391compiler='$compiler_DEFAULT'
16392
16393# A function that is used when there is no print builtin or printf.
16394func_fallback_echo ()
16395{
16396 eval 'cat <<_LTECHO_EOF
16397\$1
16398_LTECHO_EOF'
16399}
16400
16401# Quote evaled strings.
16402for var in SHELL \
16403ECHO \
16404SED \
16405GREP \
16406EGREP \
16407FGREP \
16408LD \
16409NM \
16410LN_S \
16411lt_SP2NL \
16412lt_NL2SP \
16413reload_flag \
16414OBJDUMP \
16415deplibs_check_method \
16416file_magic_cmd \
16417AR \
16418AR_FLAGS \
16419STRIP \
16420RANLIB \
16421CC \
16422CFLAGS \
16423compiler \
16424lt_cv_sys_global_symbol_pipe \
16425lt_cv_sys_global_symbol_to_cdecl \
16426lt_cv_sys_global_symbol_to_c_name_address \
16427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16428lt_prog_compiler_no_builtin_flag \
16429lt_prog_compiler_wl \
16430lt_prog_compiler_pic \
16431lt_prog_compiler_static \
16432lt_cv_prog_compiler_c_o \
16433need_locks \
16434DSYMUTIL \
16435NMEDIT \
16436LIPO \
16437OTOOL \
16438OTOOL64 \
16439shrext_cmds \
16440export_dynamic_flag_spec \
16441whole_archive_flag_spec \
16442compiler_needs_object \
16443with_gnu_ld \
16444allow_undefined_flag \
16445no_undefined_flag \
16446hardcode_libdir_flag_spec \
16447hardcode_libdir_flag_spec_ld \
16448hardcode_libdir_separator \
16449fix_srcfile_path \
16450exclude_expsyms \
16451include_expsyms \
16452file_list_spec \
16453variables_saved_for_relink \
16454libname_spec \
16455library_names_spec \
16456soname_spec \
16457install_override_mode \
16458finish_eval \
16459old_striplib \
16460striplib \
16461LD_D \
16462reload_flag_D \
16463compiler_D \
16464lt_prog_compiler_no_builtin_flag_D \
16465lt_prog_compiler_wl_D \
16466lt_prog_compiler_pic_D \
16467lt_prog_compiler_static_D \
16468lt_cv_prog_compiler_c_o_D \
16469export_dynamic_flag_spec_D \
16470whole_archive_flag_spec_D \
16471compiler_needs_object_D \
16472with_gnu_ld_D \
16473allow_undefined_flag_D \
16474no_undefined_flag_D \
16475hardcode_libdir_flag_spec_D \
16476hardcode_libdir_flag_spec_ld_D \
16477hardcode_libdir_separator_D \
16478fix_srcfile_path_D \
16479exclude_expsyms_D \
16480include_expsyms_D \
16481file_list_spec_D; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16485 ;;
16486 *)
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16488 ;;
16489 esac
16490done
16491
16492# Double-quote double-evaled strings.
16493for var in reload_cmds \
16494old_postinstall_cmds \
16495old_postuninstall_cmds \
16496old_archive_cmds \
16497extract_expsyms_cmds \
16498old_archive_from_new_cmds \
16499old_archive_from_expsyms_cmds \
16500archive_cmds \
16501archive_expsym_cmds \
16502module_cmds \
16503module_expsym_cmds \
16504export_symbols_cmds \
16505prelink_cmds \
16506postinstall_cmds \
16507postuninstall_cmds \
16508finish_cmds \
16509sys_lib_search_path_spec \
16510sys_lib_dlsearch_path_spec \
16511reload_cmds_D \
16512old_archive_cmds_D \
16513old_archive_from_new_cmds_D \
16514old_archive_from_expsyms_cmds_D \
16515archive_cmds_D \
16516archive_expsym_cmds_D \
16517module_cmds_D \
16518module_expsym_cmds_D \
16519export_symbols_cmds_D \
16520prelink_cmds_D; do
16521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16522 *[\\\\\\\`\\"\\\$]*)
16523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16524 ;;
16525 *)
16526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16527 ;;
16528 esac
16529done
16530
16531ac_aux_dir='$ac_aux_dir'
16532xsi_shell='$xsi_shell'
16533lt_shell_append='$lt_shell_append'
16534
16535# See if we are running on zsh, and set the options which allow our
16536# commands through without removal of \ escapes INIT.
16537if test -n "\${ZSH_VERSION+set}" ; then
16538 setopt NO_GLOB_SUBST
16539fi
16540
16541
16542 PACKAGE='$PACKAGE'
16543 VERSION='$VERSION'
16544 TIMESTAMP='$TIMESTAMP'
16545 RM='$RM'
16546 ofile='$ofile'
16547
16548
16549
16550
16551
16552
b4c522fa
IB
16553_ACEOF
16554
16555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16556
16557# Handling of arguments.
16558for ac_config_target in $ac_config_targets
16559do
16560 case $ac_config_target in
16561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16562 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b4c522fa
IB
16565 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16566 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16567 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16568 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
ac67752d
IB
16569 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16570 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16571 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b4c522fa 16572
22e05272 16573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16574 esac
16575done
16576
16577
16578# If the user did not use the arguments to specify the items to instantiate,
16579# then the envvar interface is used. Set only those that are not.
16580# We use the long form for the default assignment because of an extremely
16581# bizarre bug on SunOS 4.1.3.
16582if $ac_need_defaults; then
16583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16586fi
16587
16588# Have a temporary directory for convenience. Make it in the build tree
16589# simply because there is no reason against having it here, and in addition,
16590# creating and moving files from /tmp can sometimes cause problems.
16591# Hook for its removal unless debugging.
16592# Note that there is a small window in which the directory will not be cleaned:
16593# after its creation but before its name has been assigned to `$tmp'.
16594$debug ||
16595{
22e05272 16596 tmp= ac_tmp=
b4c522fa 16597 trap 'exit_status=$?
22e05272
JM
16598 : "${ac_tmp:=$tmp}"
16599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16600' 0
16601 trap 'as_fn_exit 1' 1 2 13 15
16602}
16603# Create a (secure) tmp directory for tmp files.
16604
16605{
16606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16607 test -d "$tmp"
b4c522fa
IB
16608} ||
16609{
16610 tmp=./conf$$-$RANDOM
16611 (umask 077 && mkdir "$tmp")
22e05272
JM
16612} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16613ac_tmp=$tmp
b4c522fa
IB
16614
16615# Set up the scripts for CONFIG_FILES section.
16616# No need to generate them if there are no CONFIG_FILES.
16617# This happens for instance with `./config.status config.h'.
16618if test -n "$CONFIG_FILES"; then
16619
0b6e3127
RO
16620if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16621 ac_cs_awk_getline=:
16622 ac_cs_awk_pipe_init=
16623 ac_cs_awk_read_file='
16624 while ((getline aline < (F[key])) > 0)
16625 print(aline)
16626 close(F[key])'
16627 ac_cs_awk_pipe_fini=
16628else
16629 ac_cs_awk_getline=false
16630 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16631 ac_cs_awk_read_file='
16632 print "|#_!!_#|"
16633 print "cat " F[key] " &&"
16634 '$ac_cs_awk_pipe_init
16635 # The final `:' finishes the AND list.
16636 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16637fi
b4c522fa
IB
16638ac_cr=`echo X | tr X '\015'`
16639# On cygwin, bash can eat \r inside `` if the user requested igncr.
16640# But we know of no other shell where ac_cr would be empty at this
16641# point, so we can use a bashism as a fallback.
16642if test "x$ac_cr" = x; then
16643 eval ac_cr=\$\'\\r\'
16644fi
16645ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16646if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16647 ac_cs_awk_cr='\\r'
b4c522fa
IB
16648else
16649 ac_cs_awk_cr=$ac_cr
16650fi
16651
22e05272 16652echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
16653_ACEOF
16654
0b6e3127
RO
16655# Create commands to substitute file output variables.
16656{
16657 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16658 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16659 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16660 echo "_ACAWK" &&
16661 echo "_ACEOF"
16662} >conf$$files.sh &&
16663. ./conf$$files.sh ||
16664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16665rm -f conf$$files.sh
b4c522fa
IB
16666
16667{
16668 echo "cat >conf$$subs.awk <<_ACEOF" &&
16669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16670 echo "_ACEOF"
16671} >conf$$subs.sh ||
22e05272
JM
16672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16673ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
16674ac_delim='%!_!# '
16675for ac_last_try in false false false false false :; do
16676 . ./conf$$subs.sh ||
22e05272 16677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16678
16679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16680 if test $ac_delim_n = $ac_delim_num; then
16681 break
16682 elif $ac_last_try; then
22e05272 16683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16684 else
16685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16686 fi
16687done
16688rm -f conf$$subs.sh
16689
16690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16691cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
16692_ACEOF
16693sed -n '
16694h
16695s/^/S["/; s/!.*/"]=/
16696p
16697g
16698s/^[^!]*!//
16699:repl
16700t repl
16701s/'"$ac_delim"'$//
16702t delim
16703:nl
16704h
22e05272 16705s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16706t more1
16707s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16708p
16709n
16710b repl
16711:more1
16712s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16713p
16714g
16715s/.\{148\}//
16716t nl
16717:delim
16718h
22e05272 16719s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16720t more2
16721s/["\\]/\\&/g; s/^/"/; s/$/"/
16722p
16723b
16724:more2
16725s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16726p
16727g
16728s/.\{148\}//
16729t delim
16730' <conf$$subs.awk | sed '
16731/^[^""]/{
16732 N
16733 s/\n//
16734}
16735' >>$CONFIG_STATUS || ac_write_fail=1
16736rm -f conf$$subs.awk
16737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16738_ACAWK
22e05272 16739cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
16740 for (key in S) S_is_set[key] = 1
16741 FS = "\a"
0b6e3127 16742 \$ac_cs_awk_pipe_init
b4c522fa
IB
16743}
16744{
16745 line = $ 0
16746 nfields = split(line, field, "@")
16747 substed = 0
16748 len = length(field[1])
16749 for (i = 2; i < nfields; i++) {
16750 key = field[i]
16751 keylen = length(key)
16752 if (S_is_set[key]) {
16753 value = S[key]
16754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16755 len += length(value) + length(field[++i])
16756 substed = 1
16757 } else
16758 len += 1 + keylen
16759 }
0b6e3127
RO
16760 if (nfields == 3 && !substed) {
16761 key = field[2]
16762 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16763 \$ac_cs_awk_read_file
16764 next
16765 }
16766 }
b4c522fa
IB
16767 print line
16768}
0b6e3127 16769\$ac_cs_awk_pipe_fini
b4c522fa
IB
16770_ACAWK
16771_ACEOF
16772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16773if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16775else
16776 cat
22e05272
JM
16777fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
16779_ACEOF
16780
22e05272
JM
16781# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16782# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
16783# trailing colons and then remove the whole line if VPATH becomes empty
16784# (actually we leave an empty line to preserve line numbers).
16785if test "x$srcdir" = x.; then
22e05272
JM
16786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16787h
16788s///
16789s/^/:/
16790s/[ ]*$/:/
16791s/:\$(srcdir):/:/g
16792s/:\${srcdir}:/:/g
16793s/:@srcdir@:/:/g
16794s/^:*//
b4c522fa 16795s/:*$//
22e05272
JM
16796x
16797s/\(=[ ]*\).*/\1/
16798G
16799s/\n//
b4c522fa
IB
16800s/^[^=]*=[ ]*$//
16801}'
16802fi
16803
16804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805fi # test -n "$CONFIG_FILES"
16806
16807# Set up the scripts for CONFIG_HEADERS section.
16808# No need to generate them if there are no CONFIG_HEADERS.
16809# This happens for instance with `./config.status Makefile'.
16810if test -n "$CONFIG_HEADERS"; then
22e05272 16811cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
16812BEGIN {
16813_ACEOF
16814
16815# Transform confdefs.h into an awk script `defines.awk', embedded as
16816# here-document in config.status, that substitutes the proper values into
16817# config.h.in to produce config.h.
16818
16819# Create a delimiter string that does not exist in confdefs.h, to ease
16820# handling of long lines.
16821ac_delim='%!_!# '
16822for ac_last_try in false false :; do
22e05272
JM
16823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16824 if test -z "$ac_tt"; then
b4c522fa
IB
16825 break
16826 elif $ac_last_try; then
22e05272 16827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
16828 else
16829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16830 fi
16831done
16832
16833# For the awk script, D is an array of macro values keyed by name,
16834# likewise P contains macro parameters if any. Preserve backslash
16835# newline sequences.
16836
16837ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16838sed -n '
16839s/.\{148\}/&'"$ac_delim"'/g
16840t rset
16841:rset
16842s/^[ ]*#[ ]*define[ ][ ]*/ /
16843t def
16844d
16845:def
16846s/\\$//
16847t bsnl
16848s/["\\]/\\&/g
16849s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16850D["\1"]=" \3"/p
16851s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16852d
16853:bsnl
16854s/["\\]/\\&/g
16855s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16856D["\1"]=" \3\\\\\\n"\\/p
16857t cont
16858s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16859t cont
16860d
16861:cont
16862n
16863s/.\{148\}/&'"$ac_delim"'/g
16864t clear
16865:clear
16866s/\\$//
16867t bsnlc
16868s/["\\]/\\&/g; s/^/"/; s/$/"/p
16869d
16870:bsnlc
16871s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16872b cont
16873' <confdefs.h | sed '
16874s/'"$ac_delim"'/"\\\
16875"/g' >>$CONFIG_STATUS || ac_write_fail=1
16876
16877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 for (key in D) D_is_set[key] = 1
16879 FS = "\a"
16880}
16881/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16882 line = \$ 0
16883 split(line, arg, " ")
16884 if (arg[1] == "#") {
16885 defundef = arg[2]
16886 mac1 = arg[3]
16887 } else {
16888 defundef = substr(arg[1], 2)
16889 mac1 = arg[2]
16890 }
16891 split(mac1, mac2, "(") #)
16892 macro = mac2[1]
16893 prefix = substr(line, 1, index(line, defundef) - 1)
16894 if (D_is_set[macro]) {
16895 # Preserve the white space surrounding the "#".
16896 print prefix "define", macro P[macro] D[macro]
16897 next
16898 } else {
16899 # Replace #undef with comments. This is necessary, for example,
16900 # in the case of _POSIX_SOURCE, which is predefined and required
16901 # on some systems where configure will not decide to define it.
16902 if (defundef == "undef") {
16903 print "/*", prefix defundef, macro, "*/"
16904 next
16905 }
16906 }
16907}
16908{ print }
16909_ACAWK
16910_ACEOF
16911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 16912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
16913fi # test -n "$CONFIG_HEADERS"
16914
16915
16916eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16917shift
16918for ac_tag
16919do
16920 case $ac_tag in
16921 :[FHLC]) ac_mode=$ac_tag; continue;;
16922 esac
16923 case $ac_mode$ac_tag in
16924 :[FHL]*:*);;
22e05272 16925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
16926 :[FH]-) ac_tag=-:-;;
16927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16928 esac
16929 ac_save_IFS=$IFS
16930 IFS=:
16931 set x $ac_tag
16932 IFS=$ac_save_IFS
16933 shift
16934 ac_file=$1
16935 shift
16936
16937 case $ac_mode in
16938 :L) ac_source=$1;;
16939 :[FH])
16940 ac_file_inputs=
16941 for ac_f
16942 do
16943 case $ac_f in
22e05272 16944 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
16945 *) # Look for the file first in the build tree, then in the source tree
16946 # (if the path is not absolute). The absolute path cannot be DOS-style,
16947 # because $ac_f cannot contain `:'.
16948 test -f "$ac_f" ||
16949 case $ac_f in
16950 [\\/$]*) false;;
16951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16952 esac ||
22e05272 16953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
16954 esac
16955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16956 as_fn_append ac_file_inputs " '$ac_f'"
16957 done
16958
16959 # Let's still pretend it is `configure' which instantiates (i.e., don't
16960 # use $as_me), people would be surprised to read:
16961 # /* config.h. Generated by config.status. */
16962 configure_input='Generated from '`
16963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16964 `' by configure.'
16965 if test x"$ac_file" != x-; then
16966 configure_input="$ac_file. $configure_input"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16968$as_echo "$as_me: creating $ac_file" >&6;}
16969 fi
16970 # Neutralize special characters interpreted by sed in replacement strings.
16971 case $configure_input in #(
16972 *\&* | *\|* | *\\* )
16973 ac_sed_conf_input=`$as_echo "$configure_input" |
16974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16975 *) ac_sed_conf_input=$configure_input;;
16976 esac
16977
16978 case $ac_tag in
22e05272
JM
16979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
16981 esac
16982 ;;
16983 esac
16984
16985 ac_dir=`$as_dirname -- "$ac_file" ||
16986$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16987 X"$ac_file" : 'X\(//\)[^/]' \| \
16988 X"$ac_file" : 'X\(//\)$' \| \
16989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16990$as_echo X"$ac_file" |
16991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16992 s//\1/
16993 q
16994 }
16995 /^X\(\/\/\)[^/].*/{
16996 s//\1/
16997 q
16998 }
16999 /^X\(\/\/\)$/{
17000 s//\1/
17001 q
17002 }
17003 /^X\(\/\).*/{
17004 s//\1/
17005 q
17006 }
17007 s/.*/./; q'`
17008 as_dir="$ac_dir"; as_fn_mkdir_p
17009 ac_builddir=.
17010
17011case "$ac_dir" in
17012.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17013*)
17014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17015 # A ".." for each directory in $ac_dir_suffix.
17016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17017 case $ac_top_builddir_sub in
17018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17020 esac ;;
17021esac
17022ac_abs_top_builddir=$ac_pwd
17023ac_abs_builddir=$ac_pwd$ac_dir_suffix
17024# for backward compatibility:
17025ac_top_builddir=$ac_top_build_prefix
17026
17027case $srcdir in
17028 .) # We are building in place.
17029 ac_srcdir=.
17030 ac_top_srcdir=$ac_top_builddir_sub
17031 ac_abs_top_srcdir=$ac_pwd ;;
17032 [\\/]* | ?:[\\/]* ) # Absolute name.
17033 ac_srcdir=$srcdir$ac_dir_suffix;
17034 ac_top_srcdir=$srcdir
17035 ac_abs_top_srcdir=$srcdir ;;
17036 *) # Relative name.
17037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17038 ac_top_srcdir=$ac_top_build_prefix$srcdir
17039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17040esac
17041ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17042
17043
17044 case $ac_mode in
17045 :F)
17046 #
17047 # CONFIG_FILE
17048 #
17049
17050 case $INSTALL in
17051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17053 esac
17054 ac_MKDIR_P=$MKDIR_P
17055 case $MKDIR_P in
17056 [\\/$]* | ?:[\\/]* ) ;;
17057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17058 esac
17059_ACEOF
17060
17061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062# If the template does not know about datarootdir, expand it.
17063# FIXME: This hack should be removed a few years after 2.60.
17064ac_datarootdir_hack=; ac_datarootdir_seen=
17065ac_sed_dataroot='
17066/datarootdir/ {
17067 p
17068 q
17069}
17070/@datadir@/p
17071/@docdir@/p
17072/@infodir@/p
17073/@localedir@/p
17074/@mandir@/p'
17075case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17076*datarootdir*) ac_datarootdir_seen=yes;;
17077*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17079$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17080_ACEOF
17081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 ac_datarootdir_hack='
17083 s&@datadir@&$datadir&g
17084 s&@docdir@&$docdir&g
17085 s&@infodir@&$infodir&g
17086 s&@localedir@&$localedir&g
17087 s&@mandir@&$mandir&g
17088 s&\\\${datarootdir}&$datarootdir&g' ;;
17089esac
17090_ACEOF
17091
17092# Neutralize VPATH when `$srcdir' = `.'.
17093# Shell code in configure.ac might set extrasub.
17094# FIXME: do we really want to maintain this feature?
17095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096ac_sed_extra="$ac_vpsub
17097$extrasub
17098_ACEOF
17099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100:t
17101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17102s|@configure_input@|$ac_sed_conf_input|;t t
17103s&@top_builddir@&$ac_top_builddir_sub&;t t
17104s&@top_build_prefix@&$ac_top_build_prefix&;t t
17105s&@srcdir@&$ac_srcdir&;t t
17106s&@abs_srcdir@&$ac_abs_srcdir&;t t
17107s&@top_srcdir@&$ac_top_srcdir&;t t
17108s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17109s&@builddir@&$ac_builddir&;t t
17110s&@abs_builddir@&$ac_abs_builddir&;t t
17111s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17112s&@INSTALL@&$ac_INSTALL&;t t
17113s&@MKDIR_P@&$ac_MKDIR_P&;t t
17114$ac_datarootdir_hack
17115"
0b6e3127
RO
17116eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17117if $ac_cs_awk_getline; then
17118 $AWK -f "$ac_tmp/subs.awk"
17119else
17120 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17121fi \
22e05272 17122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17123
17124test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17129which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 17130$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17131which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 17132
22e05272 17133 rm -f "$ac_tmp/stdin"
b4c522fa 17134 case $ac_file in
22e05272
JM
17135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 17137 esac \
22e05272 17138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17139 ;;
17140 :H)
17141 #
17142 # CONFIG_HEADER
17143 #
17144 if test x"$ac_file" != x-; then
17145 {
17146 $as_echo "/* $configure_input */" \
22e05272
JM
17147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17148 } >"$ac_tmp/config.h" \
17149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17152$as_echo "$as_me: $ac_file is unchanged" >&6;}
17153 else
17154 rm -f "$ac_file"
22e05272
JM
17155 mv "$ac_tmp/config.h" "$ac_file" \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17157 fi
17158 else
17159 $as_echo "/* $configure_input */" \
22e05272
JM
17160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17161 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
17162 fi
17163# Compute "$ac_file"'s index in $config_headers.
17164_am_arg="$ac_file"
17165_am_stamp_count=1
17166for _am_header in $config_headers :; do
17167 case $_am_header in
17168 $_am_arg | $_am_arg:* )
17169 break ;;
17170 * )
17171 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17172 esac
17173done
17174echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17175$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$_am_arg" : 'X\(//\)[^/]' \| \
17177 X"$_am_arg" : 'X\(//\)$' \| \
17178 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17179$as_echo X"$_am_arg" |
17180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17181 s//\1/
17182 q
17183 }
17184 /^X\(\/\/\)[^/].*/{
17185 s//\1/
17186 q
17187 }
17188 /^X\(\/\/\)$/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\).*/{
17193 s//\1/
17194 q
17195 }
17196 s/.*/./; q'`/stamp-h$_am_stamp_count
17197 ;;
17198
17199 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17200$as_echo "$as_me: executing $ac_file commands" >&6;}
17201 ;;
17202 esac
17203
17204
17205 case $ac_file$ac_mode in
17206 "default-1":C)
17207# Only add multilib support code if we just rebuilt the top-level
17208# Makefile.
17209case " $CONFIG_FILES " in
17210 *" Makefile "*)
17211 ac_file=Makefile . ${multi_basedir}/config-ml.in
17212 ;;
17213esac ;;
17214 "libtool":C)
17215
17216 # See if we are running on zsh, and set the options which allow our
17217 # commands through without removal of \ escapes.
17218 if test -n "${ZSH_VERSION+set}" ; then
17219 setopt NO_GLOB_SUBST
17220 fi
17221
17222 cfgfile="${ofile}T"
17223 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17224 $RM "$cfgfile"
17225
17226 cat <<_LT_EOF >> "$cfgfile"
17227#! $SHELL
17228
17229# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17230# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17231# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17232# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17233#
0b6e3127
RO
17234# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17235# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b4c522fa
IB
17236# Written by Gordon Matzigkeit, 1996
17237#
17238# This file is part of GNU Libtool.
17239#
17240# GNU Libtool is free software; you can redistribute it and/or
17241# modify it under the terms of the GNU General Public License as
17242# published by the Free Software Foundation; either version 2 of
17243# the License, or (at your option) any later version.
17244#
17245# As a special exception to the GNU General Public License,
17246# if you distribute this file as part of a program or library that
17247# is built using GNU Libtool, you may include this file under the
17248# same distribution terms that you use for the rest of that program.
17249#
17250# GNU Libtool is distributed in the hope that it will be useful,
17251# but WITHOUT ANY WARRANTY; without even the implied warranty of
17252# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253# GNU General Public License for more details.
17254#
17255# You should have received a copy of the GNU General Public License
17256# along with GNU Libtool; see the file COPYING. If not, a copy
17257# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17258# obtained by writing to the Free Software Foundation, Inc.,
17259# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17260
17261
17262# The names of the tagged configurations supported by this script.
17263available_tags="D "
17264
17265# ### BEGIN LIBTOOL CONFIG
17266
17267# Which release of libtool.m4 was used?
17268macro_version=$macro_version
17269macro_revision=$macro_revision
17270
17271# Whether or not to build shared libraries.
17272build_libtool_libs=$enable_shared
17273
17274# Whether or not to build static libraries.
17275build_old_libs=$enable_static
17276
17277# What type of objects to build.
17278pic_mode=$pic_mode
17279
17280# Whether or not to optimize for fast installation.
17281fast_install=$enable_fast_install
17282
17283# Shell to use when invoking shell scripts.
17284SHELL=$lt_SHELL
17285
17286# An echo program that protects backslashes.
17287ECHO=$lt_ECHO
17288
17289# The host system.
17290host_alias=$host_alias
17291host=$host
17292host_os=$host_os
17293
17294# The build system.
17295build_alias=$build_alias
17296build=$build
17297build_os=$build_os
17298
17299# A sed program that does not truncate output.
17300SED=$lt_SED
17301
17302# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17303Xsed="\$SED -e 1s/^X//"
17304
17305# A grep program that handles long lines.
17306GREP=$lt_GREP
17307
17308# An ERE matcher.
17309EGREP=$lt_EGREP
17310
17311# A literal string matcher.
17312FGREP=$lt_FGREP
17313
17314# A BSD- or MS-compatible name lister.
17315NM=$lt_NM
17316
17317# Whether we need soft or hard links.
17318LN_S=$lt_LN_S
17319
17320# What is the maximum length of a command?
17321max_cmd_len=$max_cmd_len
17322
17323# Object file suffix (normally "o").
17324objext=$ac_objext
17325
17326# Executable file suffix (normally "").
17327exeext=$exeext
17328
17329# whether the shell understands "unset".
17330lt_unset=$lt_unset
17331
17332# turn spaces into newlines.
17333SP2NL=$lt_lt_SP2NL
17334
17335# turn newlines into spaces.
17336NL2SP=$lt_lt_NL2SP
17337
17338# An object symbol dumper.
17339OBJDUMP=$lt_OBJDUMP
17340
17341# Method to check whether dependent libraries are shared objects.
17342deplibs_check_method=$lt_deplibs_check_method
17343
17344# Command to use when deplibs_check_method == "file_magic".
17345file_magic_cmd=$lt_file_magic_cmd
17346
17347# The archiver.
17348AR=$lt_AR
17349AR_FLAGS=$lt_AR_FLAGS
17350
17351# A symbol stripping program.
17352STRIP=$lt_STRIP
17353
17354# Commands used to install an old-style archive.
17355RANLIB=$lt_RANLIB
17356old_postinstall_cmds=$lt_old_postinstall_cmds
17357old_postuninstall_cmds=$lt_old_postuninstall_cmds
17358
17359# Whether to use a lock for old archive extraction.
17360lock_old_archive_extraction=$lock_old_archive_extraction
17361
17362# A C compiler.
17363LTCC=$lt_CC
17364
17365# LTCC compiler flags.
17366LTCFLAGS=$lt_CFLAGS
17367
17368# Take the output of nm and produce a listing of raw symbols and C names.
17369global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17370
17371# Transform the output of nm in a proper C declaration.
17372global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17373
17374# Transform the output of nm in a C name address pair.
17375global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17376
17377# Transform the output of nm in a C name address pair when lib prefix is needed.
17378global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17379
17380# The name of the directory that contains temporary libtool files.
17381objdir=$objdir
17382
17383# Used to examine libraries when file_magic_cmd begins with "file".
17384MAGIC_CMD=$MAGIC_CMD
17385
17386# Must we lock files when doing compilation?
17387need_locks=$lt_need_locks
17388
17389# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17390DSYMUTIL=$lt_DSYMUTIL
17391
17392# Tool to change global to local symbols on Mac OS X.
17393NMEDIT=$lt_NMEDIT
17394
17395# Tool to manipulate fat objects and archives on Mac OS X.
17396LIPO=$lt_LIPO
17397
17398# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17399OTOOL=$lt_OTOOL
17400
17401# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17402OTOOL64=$lt_OTOOL64
17403
17404# Old archive suffix (normally "a").
17405libext=$libext
17406
17407# Shared library suffix (normally ".so").
17408shrext_cmds=$lt_shrext_cmds
17409
17410# The commands to extract the exported symbol list from a shared archive.
17411extract_expsyms_cmds=$lt_extract_expsyms_cmds
17412
17413# Variables whose values should be saved in libtool wrapper scripts and
17414# restored at link time.
17415variables_saved_for_relink=$lt_variables_saved_for_relink
17416
17417# Do we need the "lib" prefix for modules?
17418need_lib_prefix=$need_lib_prefix
17419
17420# Do we need a version for libraries?
17421need_version=$need_version
17422
17423# Library versioning type.
17424version_type=$version_type
17425
17426# Shared library runtime path variable.
17427runpath_var=$runpath_var
17428
17429# Shared library path variable.
17430shlibpath_var=$shlibpath_var
17431
17432# Is shlibpath searched before the hard-coded library search path?
17433shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17434
17435# Format of library name prefix.
17436libname_spec=$lt_libname_spec
17437
17438# List of archive names. First name is the real one, the rest are links.
17439# The last name is the one that the linker finds with -lNAME
17440library_names_spec=$lt_library_names_spec
17441
17442# The coded name of the library, if different from the real name.
17443soname_spec=$lt_soname_spec
17444
17445# Permission mode override for installation of shared libraries.
17446install_override_mode=$lt_install_override_mode
17447
17448# Command to use after installation of a shared archive.
17449postinstall_cmds=$lt_postinstall_cmds
17450
17451# Command to use after uninstallation of a shared archive.
17452postuninstall_cmds=$lt_postuninstall_cmds
17453
17454# Commands used to finish a libtool library installation in a directory.
17455finish_cmds=$lt_finish_cmds
17456
17457# As "finish_cmds", except a single script fragment to be evaled but
17458# not shown.
17459finish_eval=$lt_finish_eval
17460
17461# Whether we should hardcode library paths into libraries.
17462hardcode_into_libs=$hardcode_into_libs
17463
17464# Compile-time system search path for libraries.
17465sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17466
17467# Run-time system search path for libraries.
17468sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17469
17470# Whether dlopen is supported.
17471dlopen_support=$enable_dlopen
17472
17473# Whether dlopen of programs is supported.
17474dlopen_self=$enable_dlopen_self
17475
17476# Whether dlopen of statically linked programs is supported.
17477dlopen_self_static=$enable_dlopen_self_static
17478
17479# Commands to strip libraries.
17480old_striplib=$lt_old_striplib
17481striplib=$lt_striplib
17482
17483
17484# The linker used to build libraries.
17485LD=$lt_LD
17486
17487# How to create reloadable object files.
17488reload_flag=$lt_reload_flag
17489reload_cmds=$lt_reload_cmds
17490
17491# Commands used to build an old-style archive.
17492old_archive_cmds=$lt_old_archive_cmds
17493
17494# A language specific compiler.
17495CC=$lt_compiler
17496
17497# Is the compiler the GNU compiler?
17498with_gcc=$GCC
17499
17500# Compiler flag to turn off builtin functions.
17501no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17502
17503# How to pass a linker flag through the compiler.
17504wl=$lt_lt_prog_compiler_wl
17505
17506# Additional compiler flags for building library objects.
17507pic_flag=$lt_lt_prog_compiler_pic
17508
17509# Compiler flag to prevent dynamic linking.
17510link_static_flag=$lt_lt_prog_compiler_static
17511
17512# Does compiler simultaneously support -c and -o options?
17513compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17514
17515# Whether or not to add -lc for building shared libraries.
17516build_libtool_need_lc=$archive_cmds_need_lc
17517
17518# Whether or not to disallow shared libs when runtime libs are static.
17519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17520
17521# Compiler flag to allow reflexive dlopens.
17522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17523
17524# Compiler flag to generate shared objects directly from archives.
17525whole_archive_flag_spec=$lt_whole_archive_flag_spec
17526
17527# Whether the compiler copes with passing no objects directly.
17528compiler_needs_object=$lt_compiler_needs_object
17529
17530# Create an old-style archive from a shared archive.
17531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532
17533# Create a temporary old-style archive to link instead of a shared archive.
17534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535
17536# Commands used to build a shared archive.
17537archive_cmds=$lt_archive_cmds
17538archive_expsym_cmds=$lt_archive_expsym_cmds
17539
17540# Commands used to build a loadable module if different from building
17541# a shared archive.
17542module_cmds=$lt_module_cmds
17543module_expsym_cmds=$lt_module_expsym_cmds
17544
17545# Whether we are building with GNU ld or not.
17546with_gnu_ld=$lt_with_gnu_ld
17547
17548# Flag that allows shared libraries with undefined symbols to be built.
17549allow_undefined_flag=$lt_allow_undefined_flag
17550
17551# Flag that enforces no undefined symbols.
17552no_undefined_flag=$lt_no_undefined_flag
17553
17554# Flag to hardcode \$libdir into a binary during linking.
17555# This must work even if \$libdir does not exist
17556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17557
17558# If ld is used when linking, flag to hardcode \$libdir into a binary
17559# during linking. This must work even if \$libdir does not exist.
17560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17561
17562# Whether we need a single "-rpath" flag with a separated argument.
17563hardcode_libdir_separator=$lt_hardcode_libdir_separator
17564
17565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17566# DIR into the resulting binary.
17567hardcode_direct=$hardcode_direct
17568
17569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17570# DIR into the resulting binary and the resulting library dependency is
17571# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17572# library is relocated.
17573hardcode_direct_absolute=$hardcode_direct_absolute
17574
17575# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17576# into the resulting binary.
17577hardcode_minus_L=$hardcode_minus_L
17578
17579# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17580# into the resulting binary.
17581hardcode_shlibpath_var=$hardcode_shlibpath_var
17582
17583# Set to "yes" if building a shared library automatically hardcodes DIR
17584# into the library and all subsequent libraries and executables linked
17585# against it.
17586hardcode_automatic=$hardcode_automatic
17587
17588# Set to yes if linker adds runtime paths of dependent libraries
17589# to runtime path list.
17590inherit_rpath=$inherit_rpath
17591
17592# Whether libtool must link a program against all its dependency libraries.
17593link_all_deplibs=$link_all_deplibs
17594
17595# Fix the shell variable \$srcfile for the compiler.
17596fix_srcfile_path=$lt_fix_srcfile_path
17597
17598# Set to "yes" if exported symbols are required.
17599always_export_symbols=$always_export_symbols
17600
17601# The commands to list exported symbols.
17602export_symbols_cmds=$lt_export_symbols_cmds
17603
17604# Symbols that should not be listed in the preloaded symbols.
17605exclude_expsyms=$lt_exclude_expsyms
17606
17607# Symbols that must always be exported.
17608include_expsyms=$lt_include_expsyms
17609
17610# Commands necessary for linking programs (against libraries) with templates.
17611prelink_cmds=$lt_prelink_cmds
17612
17613# Specify filename containing input files.
17614file_list_spec=$lt_file_list_spec
17615
17616# How to hardcode a shared library path into an executable.
17617hardcode_action=$hardcode_action
17618
17619# ### END LIBTOOL CONFIG
17620
17621_LT_EOF
17622
17623 case $host_os in
17624 aix3*)
17625 cat <<\_LT_EOF >> "$cfgfile"
17626# AIX sometimes has problems with the GCC collect2 program. For some
17627# reason, if we set the COLLECT_NAMES environment variable, the problems
17628# vanish in a puff of smoke.
17629if test "X${COLLECT_NAMES+set}" != Xset; then
17630 COLLECT_NAMES=
17631 export COLLECT_NAMES
17632fi
17633_LT_EOF
17634 ;;
17635 esac
17636
17637
17638ltmain="$ac_aux_dir/ltmain.sh"
17639
17640
17641 # We use sed instead of cat because bash on DJGPP gets confused if
17642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17643 # text mode, it properly converts lines to CR/LF. This bash problem
17644 # is reportedly fixed, but why not run on old versions too?
17645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17646 || (rm -f "$cfgfile"; exit 1)
17647
17648 case $xsi_shell in
17649 yes)
17650 cat << \_LT_EOF >> "$cfgfile"
17651
17652# func_dirname file append nondir_replacement
17653# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17654# otherwise set result to NONDIR_REPLACEMENT.
17655func_dirname ()
17656{
17657 case ${1} in
17658 */*) func_dirname_result="${1%/*}${2}" ;;
17659 * ) func_dirname_result="${3}" ;;
17660 esac
17661}
17662
17663# func_basename file
17664func_basename ()
17665{
17666 func_basename_result="${1##*/}"
17667}
17668
17669# func_dirname_and_basename file append nondir_replacement
17670# perform func_basename and func_dirname in a single function
17671# call:
17672# dirname: Compute the dirname of FILE. If nonempty,
17673# add APPEND to the result, otherwise set result
17674# to NONDIR_REPLACEMENT.
17675# value returned in "$func_dirname_result"
17676# basename: Compute filename of FILE.
17677# value retuned in "$func_basename_result"
17678# Implementation must be kept synchronized with func_dirname
17679# and func_basename. For efficiency, we do not delegate to
17680# those functions but instead duplicate the functionality here.
17681func_dirname_and_basename ()
17682{
17683 case ${1} in
17684 */*) func_dirname_result="${1%/*}${2}" ;;
17685 * ) func_dirname_result="${3}" ;;
17686 esac
17687 func_basename_result="${1##*/}"
17688}
17689
17690# func_stripname prefix suffix name
17691# strip PREFIX and SUFFIX off of NAME.
17692# PREFIX and SUFFIX must not contain globbing or regex special
17693# characters, hashes, percent signs, but SUFFIX may contain a leading
17694# dot (in which case that matches only a dot).
17695func_stripname ()
17696{
17697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17698 # positional parameters, so assign one to ordinary parameter first.
17699 func_stripname_result=${3}
17700 func_stripname_result=${func_stripname_result#"${1}"}
17701 func_stripname_result=${func_stripname_result%"${2}"}
17702}
17703
17704# func_opt_split
17705func_opt_split ()
17706{
17707 func_opt_split_opt=${1%%=*}
17708 func_opt_split_arg=${1#*=}
17709}
17710
17711# func_lo2o object
17712func_lo2o ()
17713{
17714 case ${1} in
17715 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17716 *) func_lo2o_result=${1} ;;
17717 esac
17718}
17719
17720# func_xform libobj-or-source
17721func_xform ()
17722{
17723 func_xform_result=${1%.*}.lo
17724}
17725
17726# func_arith arithmetic-term...
17727func_arith ()
17728{
17729 func_arith_result=$(( $* ))
17730}
17731
17732# func_len string
17733# STRING may not start with a hyphen.
17734func_len ()
17735{
17736 func_len_result=${#1}
17737}
17738
17739_LT_EOF
17740 ;;
17741 *) # Bourne compatible functions.
17742 cat << \_LT_EOF >> "$cfgfile"
17743
17744# func_dirname file append nondir_replacement
17745# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746# otherwise set result to NONDIR_REPLACEMENT.
17747func_dirname ()
17748{
17749 # Extract subdirectory from the argument.
17750 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17751 if test "X$func_dirname_result" = "X${1}"; then
17752 func_dirname_result="${3}"
17753 else
17754 func_dirname_result="$func_dirname_result${2}"
17755 fi
17756}
17757
17758# func_basename file
17759func_basename ()
17760{
17761 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17762}
17763
17764
17765# func_stripname prefix suffix name
17766# strip PREFIX and SUFFIX off of NAME.
17767# PREFIX and SUFFIX must not contain globbing or regex special
17768# characters, hashes, percent signs, but SUFFIX may contain a leading
17769# dot (in which case that matches only a dot).
17770# func_strip_suffix prefix name
17771func_stripname ()
17772{
17773 case ${2} in
17774 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17775 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17776 esac
17777}
17778
17779# sed scripts:
17780my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17781my_sed_long_arg='1s/^-[^=]*=//'
17782
17783# func_opt_split
17784func_opt_split ()
17785{
17786 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17787 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17788}
17789
17790# func_lo2o object
17791func_lo2o ()
17792{
17793 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17794}
17795
17796# func_xform libobj-or-source
17797func_xform ()
17798{
17799 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17800}
17801
17802# func_arith arithmetic-term...
17803func_arith ()
17804{
17805 func_arith_result=`expr "$@"`
17806}
17807
17808# func_len string
17809# STRING may not start with a hyphen.
17810func_len ()
17811{
17812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17813}
17814
17815_LT_EOF
17816esac
17817
17818case $lt_shell_append in
17819 yes)
17820 cat << \_LT_EOF >> "$cfgfile"
17821
17822# func_append var value
17823# Append VALUE to the end of shell variable VAR.
17824func_append ()
17825{
17826 eval "$1+=\$2"
17827}
17828_LT_EOF
17829 ;;
17830 *)
17831 cat << \_LT_EOF >> "$cfgfile"
17832
17833# func_append var value
17834# Append VALUE to the end of shell variable VAR.
17835func_append ()
17836{
17837 eval "$1=\$$1\$2"
17838}
17839
17840_LT_EOF
17841 ;;
17842 esac
17843
17844
17845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17846 || (rm -f "$cfgfile"; exit 1)
17847
17848 mv -f "$cfgfile" "$ofile" ||
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17850 chmod +x "$ofile"
17851
17852
17853 cat <<_LT_EOF >> "$ofile"
17854
17855# ### BEGIN LIBTOOL TAG CONFIG: D
17856
17857# The linker used to build libraries.
17858LD=$lt_LD_D
17859
17860# How to create reloadable object files.
17861reload_flag=$lt_reload_flag_D
17862reload_cmds=$lt_reload_cmds_D
17863
17864# Commands used to build an old-style archive.
17865old_archive_cmds=$lt_old_archive_cmds_D
17866
17867# A language specific compiler.
17868CC=$lt_compiler_D
17869
17870# Is the compiler the GNU compiler?
17871with_gcc=$GCC_D
17872
17873# Compiler flag to turn off builtin functions.
17874no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17875
17876# How to pass a linker flag through the compiler.
17877wl=$lt_lt_prog_compiler_wl_D
17878
17879# Additional compiler flags for building library objects.
17880pic_flag=$lt_lt_prog_compiler_pic_D
17881
17882# Compiler flag to prevent dynamic linking.
17883link_static_flag=$lt_lt_prog_compiler_static_D
17884
17885# Does compiler simultaneously support -c and -o options?
17886compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17887
17888# Whether or not to add -lc for building shared libraries.
17889build_libtool_need_lc=$archive_cmds_need_lc_D
17890
17891# Whether or not to disallow shared libs when runtime libs are static.
17892allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17893
17894# Compiler flag to allow reflexive dlopens.
17895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17896
17897# Compiler flag to generate shared objects directly from archives.
17898whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17899
17900# Whether the compiler copes with passing no objects directly.
17901compiler_needs_object=$lt_compiler_needs_object_D
17902
17903# Create an old-style archive from a shared archive.
17904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17905
17906# Create a temporary old-style archive to link instead of a shared archive.
17907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17908
17909# Commands used to build a shared archive.
17910archive_cmds=$lt_archive_cmds_D
17911archive_expsym_cmds=$lt_archive_expsym_cmds_D
17912
17913# Commands used to build a loadable module if different from building
17914# a shared archive.
17915module_cmds=$lt_module_cmds_D
17916module_expsym_cmds=$lt_module_expsym_cmds_D
17917
17918# Whether we are building with GNU ld or not.
17919with_gnu_ld=$lt_with_gnu_ld_D
17920
17921# Flag that allows shared libraries with undefined symbols to be built.
17922allow_undefined_flag=$lt_allow_undefined_flag_D
17923
17924# Flag that enforces no undefined symbols.
17925no_undefined_flag=$lt_no_undefined_flag_D
17926
17927# Flag to hardcode \$libdir into a binary during linking.
17928# This must work even if \$libdir does not exist
17929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17930
17931# If ld is used when linking, flag to hardcode \$libdir into a binary
17932# during linking. This must work even if \$libdir does not exist.
17933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17934
17935# Whether we need a single "-rpath" flag with a separated argument.
17936hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17937
17938# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17939# DIR into the resulting binary.
17940hardcode_direct=$hardcode_direct_D
17941
17942# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17943# DIR into the resulting binary and the resulting library dependency is
17944# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17945# library is relocated.
17946hardcode_direct_absolute=$hardcode_direct_absolute_D
17947
17948# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17949# into the resulting binary.
17950hardcode_minus_L=$hardcode_minus_L_D
17951
17952# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17953# into the resulting binary.
17954hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17955
17956# Set to "yes" if building a shared library automatically hardcodes DIR
17957# into the library and all subsequent libraries and executables linked
17958# against it.
17959hardcode_automatic=$hardcode_automatic_D
17960
17961# Set to yes if linker adds runtime paths of dependent libraries
17962# to runtime path list.
17963inherit_rpath=$inherit_rpath_D
17964
17965# Whether libtool must link a program against all its dependency libraries.
17966link_all_deplibs=$link_all_deplibs_D
17967
17968# Fix the shell variable \$srcfile for the compiler.
17969fix_srcfile_path=$lt_fix_srcfile_path_D
17970
17971# Set to "yes" if exported symbols are required.
17972always_export_symbols=$always_export_symbols_D
17973
17974# The commands to list exported symbols.
17975export_symbols_cmds=$lt_export_symbols_cmds_D
17976
17977# Symbols that should not be listed in the preloaded symbols.
17978exclude_expsyms=$lt_exclude_expsyms_D
17979
17980# Symbols that must always be exported.
17981include_expsyms=$lt_include_expsyms_D
17982
17983# Commands necessary for linking programs (against libraries) with templates.
17984prelink_cmds=$lt_prelink_cmds_D
17985
17986# Specify filename containing input files.
17987file_list_spec=$lt_file_list_spec_D
17988
17989# How to hardcode a shared library path into an executable.
17990hardcode_action=$hardcode_action_D
17991
17992# ### END LIBTOOL TAG CONFIG: D
17993_LT_EOF
17994
17995 ;;
17996 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
ac67752d
IB
17997 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17998s!`test -f '$<' || echo '$(srcdir)/'`!!
b4c522fa 17999_EOF
ac67752d
IB
18000 sed -f vpsed$$ $ac_file > tmp$$
18001 mv tmp$$ $ac_file
18002 rm vpsed$$
18003 echo 'MULTISUBDIR =' >> $ac_file
18004 ml_norecursion=yes
18005 . ${multi_basedir}/config-ml.in
18006 { ml_norecursion=; unset ml_norecursion;}
18007 ;;
18008 "src/Makefile":F) cat > vpsed$$ << \_EOF
18009s!`test -f '$<' || echo '$(srcdir)/'`!!
18010_EOF
18011 sed -f vpsed$$ $ac_file > tmp$$
18012 mv tmp$$ $ac_file
18013 rm vpsed$$
18014 echo 'MULTISUBDIR =' >> $ac_file
18015 ml_norecursion=yes
18016 . ${multi_basedir}/config-ml.in
18017 { ml_norecursion=; unset ml_norecursion;}
18018 ;;
18019 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18020s!`test -f '$<' || echo '$(srcdir)/'`!!
18021_EOF
18022 sed -f vpsed$$ $ac_file > tmp$$
18023 mv tmp$$ $ac_file
18024 rm vpsed$$
18025 echo 'MULTISUBDIR =' >> $ac_file
18026 ml_norecursion=yes
18027 . ${multi_basedir}/config-ml.in
18028 { ml_norecursion=; unset ml_norecursion;}
b4c522fa
IB
18029 ;;
18030
18031 esac
18032done # for ac_tag
18033
18034
18035as_fn_exit 0
18036_ACEOF
18037ac_clean_files=$ac_clean_files_save
18038
18039test $ac_write_fail = 0 ||
22e05272 18040 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
18041
18042
18043# configure is writing to config.log, and then calls config.status.
18044# config.status does its own redirection, appending to config.log.
18045# Unfortunately, on DOS this fails, as config.log is still kept open
18046# by configure, so config.status won't be able to write to it; its
18047# output is simply discarded. So we exec the FD to /dev/null,
18048# effectively closing config.log, so it can be properly (re)opened and
18049# appended to by config.status. When coming back to configure, we
18050# need to make the FD available again.
18051if test "$no_create" != yes; then
18052 ac_cs_success=:
18053 ac_config_status_args=
18054 test "$silent" = yes &&
18055 ac_config_status_args="$ac_config_status_args --quiet"
18056 exec 5>/dev/null
18057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18058 exec 5>>config.log
18059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18060 # would make configure fail if this is the last instruction.
22e05272 18061 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
18062fi
18063if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18065$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18066fi
18067