]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/configure
[Ada] Improve generated code for initialization of atomics
[thirdparty/gcc.git] / libphobos / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
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'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
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
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 ENABLE_LIBPHOBOS_FALSE
640 ENABLE_LIBPHOBOS_TRUE
641 gdc_include_dir
642 libphobos_toolexeclibdir
643 libphobos_toolexecdir
644 gcc_version
645 LIBZ
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
648 BACKTRACE_SUPPORTED
649 LIBBACKTRACE
650 LIBATOMIC
651 DCFG_HAVE_LIBATOMIC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_HAVE_QSORT_R
655 OS_LINK_SPEC
656 DCFG_DLPI_TLS_MODID
657 DRUNTIME_OS_MINFO_BRACKETING_FALSE
658 DRUNTIME_OS_MINFO_BRACKETING_TRUE
659 DCFG_MINFO_BRACKETING
660 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
661 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
662 DCFG_ARM_EABI_UNWINDER
663 DCFG_THREAD_MODEL
664 DRUNTIME_OS_SOLARIS_FALSE
665 DRUNTIME_OS_SOLARIS_TRUE
666 DRUNTIME_OS_MINGW_FALSE
667 DRUNTIME_OS_MINGW_TRUE
668 DRUNTIME_OS_LINUX_FALSE
669 DRUNTIME_OS_LINUX_TRUE
670 DRUNTIME_OS_OPENBSD_FALSE
671 DRUNTIME_OS_OPENBSD_TRUE
672 DRUNTIME_OS_NETBSD_FALSE
673 DRUNTIME_OS_NETBSD_TRUE
674 DRUNTIME_OS_FREEBSD_FALSE
675 DRUNTIME_OS_FREEBSD_TRUE
676 DRUNTIME_OS_DRAGONFLYBSD_FALSE
677 DRUNTIME_OS_DRAGONFLYBSD_TRUE
678 DRUNTIME_OS_DARWIN_FALSE
679 DRUNTIME_OS_DARWIN_TRUE
680 DRUNTIME_OS_ANDROID_FALSE
681 DRUNTIME_OS_ANDROID_TRUE
682 DRUNTIME_OS_AIX_FALSE
683 DRUNTIME_OS_AIX_TRUE
684 DRUNTIME_OS_UNIX_FALSE
685 DRUNTIME_OS_UNIX_TRUE
686 DRUNTIME_CPU_X86_FALSE
687 DRUNTIME_CPU_X86_TRUE
688 DRUNTIME_CPU_POWERPC64_FALSE
689 DRUNTIME_CPU_POWERPC64_TRUE
690 DRUNTIME_CPU_POWERPC_FALSE
691 DRUNTIME_CPU_POWERPC_TRUE
692 DRUNTIME_CPU_MIPS_FALSE
693 DRUNTIME_CPU_MIPS_TRUE
694 DRUNTIME_CPU_ARM_FALSE
695 DRUNTIME_CPU_ARM_TRUE
696 DRUNTIME_CPU_AARCH64_FALSE
697 DRUNTIME_CPU_AARCH64_TRUE
698 DRUNTIME_GC_ENABLE_FALSE
699 DRUNTIME_GC_ENABLE_TRUE
700 libphobos_srcdir
701 libphobos_builddir
702 get_gcc_base_ver
703 phobos_compiler_shared_flag
704 phobos_compiler_pic_flag
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 CFLAGS_FOR_BUILD
720 CC_FOR_BUILD
721 AR
722 RANLIB
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 GDCFLAGS
727 GDC
728 CCASFLAGS
729 CCAS
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 EGREP
758 GREP
759 CPP
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 target_os
768 target_vendor
769 target_cpu
770 target
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 multi_basedir
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files='DRTSTUFF_SPEC'
819 ac_user_opts='
820 enable_option_checking
821 enable_multilib
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_gnu_ld
829 enable_libtool_lock
830 with_gcc_major_version_only
831 enable_werror
832 enable_druntime_gc
833 enable_unix
834 enable_thread_lib
835 with_libatomic
836 with_libbacktrace
837 with_target_system_zlib
838 with_cross_host
839 enable_version_specific_runtime_libs
840 enable_libphobos
841 '
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
845 CC
846 CFLAGS
847 LDFLAGS
848 LIBS
849 CPPFLAGS
850 CPP'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 # Accept the important Cygnus configure options, so we can diagnose typos.
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1146
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1157
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1162
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1167
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1174
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1179
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1182
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1185
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1201
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256 ;;
1257
1258 esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1264 fi
1265
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279 do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of package-unused version-unused:";;
1463 esac
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-multilib build many library versions (default)
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-maintainer-mode
1474 enable make rules and dependencies not useful (and
1475 sometimes confusing) to the casual installer
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --enable-werror turns on -Werror [default=no]
1482 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1483 --enable-unix enables Unix runtime (default: yes, for Unix
1484 targets)
1485 --enable-thread-lib=<arg>
1486 specify linker option for the system thread library
1487 (default: autodetect)
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-gcc-major-version-only
1500 use only GCC major number in filesystem paths
1501 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1502 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1503 auto)
1504 --with-target-system-zlib={yes,no,auto}
1505 use installed libz (default: no)
1506 --with-cross-host=HOST configuring with a cross compiler
1507
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517 CCAS assembler compiler command (defaults to CC)
1518 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1519 GDC D compiler command
1520 GDCFLAGS D compiler flags
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to the package provider.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 continue
1536 ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 package-unused configure version-unused
1589 generated by GNU Autoconf 2.69
1590
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1596 fi
1597
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1601
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634 fi
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1681 # accordingly.
1682 ac_fn_c_check_header_mongrel ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if eval \${$3+:} false; then :
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 else
1695 # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1700 $4
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704 ac_header_compiler=yes
1705 else
1706 ac_header_compiler=no
1707 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1711
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_cpp "$LINENO"; then :
1720 ac_header_preproc=yes
1721 else
1722 ac_header_preproc=no
1723 fi
1724 rm -f conftest.err conftest.i conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1727
1728 # So? What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730 yes:no: )
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ;;
1736 no:yes:* )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 ;;
1748 esac
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 eval "$3=\$ac_header_compiler"
1755 fi
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 fi
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_mongrel
1763
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1768 ac_fn_c_try_run ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=$ac_status
1799 fi
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_run
1805
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_header_compile
1836
1837 # ac_fn_d_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_d_try_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_d_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_d_try_compile
1874
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_link ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_link
1920
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1937
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1942
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1948
1949 #undef $2
1950
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1954 #ifdef __cplusplus
1955 extern "C"
1956 #endif
1957 char $2 ();
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1962 choke me
1963 #endif
1964
1965 int
1966 main ()
1967 {
1968 return $2 ();
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_func
1987
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $5
2003 int
2004 main ()
2005 {
2006 static $2 ac_aggr;
2007 if (ac_aggr.$3)
2008 return 0;
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$4=yes"
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $5
2019 int
2020 main ()
2021 {
2022 static $2 ac_aggr;
2023 if (sizeof ac_aggr.$3)
2024 return 0;
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031 else
2032 eval "$4=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$4
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_member
2044
2045 # ac_fn_d_try_link LINENO
2046 # -----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_d_try_link ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_d_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 test -x conftest$ac_exeext
2073 }; then :
2074 ac_retval=0
2075 else
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080 fi
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2088
2089 } # ac_fn_d_try_link
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2093
2094 It was created by package-unused $as_me version-unused, which was
2095 generated by GNU Autoconf 2.69. Invocation command line was
2096
2097 $ $0 $@
2098
2099 _ACEOF
2100 exec 5>>config.log
2101 {
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2106
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2123
2124 _ASUNAME
2125
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2134
2135 } >&5
2136
2137 cat >&5 <<_ACEOF
2138
2139
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2143
2144 _ACEOF
2145
2146
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2157 do
2158 for ac_arg
2159 do
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 2)
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2183 ;;
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2186 fi
2187 as_fn_append ac_configure_args " '$ac_arg'"
2188 ;;
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2194
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2202 {
2203 echo
2204
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2210 (
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2233 *)
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2235 ;;
2236 esac |
2237 sort
2238 )
2239 echo
2240
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2244 echo
2245 for ac_var in $ac_subst_vars
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2259 echo
2260 for ac_var in $ac_subst_files
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269 fi
2270
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2273 ## confdefs.h. ##
2274 ## ----------- ##"
2275 echo
2276 cat confdefs.h
2277 echo
2278 fi
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2286 ' 0
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2291
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2294
2295 $as_echo "/* confdefs.h */" > confdefs.h
2296
2297 # Predefined preprocessor variables.
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2322
2323
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
2335 elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338 else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2341 fi
2342 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 do
2344 test "x$ac_site_file" = xNONE && continue
2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 # Check that the precious variables saved in the cache have kept the same
2375 # value.
2376 ac_cache_corrupted=false
2377 for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2392 *)
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2422 fi
2423 done
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430 fi
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2434
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441
2442
2443
2444
2445
2446 ac_config_headers="$ac_config_headers config.h"
2447
2448
2449 # Default to --enable-multilib
2450 # Check whether --enable-multilib was given.
2451 if test "${enable_multilib+set}" = set; then :
2452 enableval=$enable_multilib; case "$enableval" in
2453 yes) multilib=yes ;;
2454 no) multilib=no ;;
2455 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2456 esac
2457 else
2458 multilib=yes
2459 fi
2460
2461
2462 # We may get other options which we leave undocumented:
2463 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2464 # See config-ml.in if you want the gory details.
2465
2466 if test "$srcdir" = "."; then
2467 if test "$with_target_subdir" != "."; then
2468 multi_basedir="$srcdir/$with_multisrctop../.."
2469 else
2470 multi_basedir="$srcdir/$with_multisrctop.."
2471 fi
2472 else
2473 multi_basedir="$srcdir/.."
2474 fi
2475
2476
2477 # Even if the default multilib is not a cross compilation,
2478 # it may be that some of the other multilibs are.
2479 if test $cross_compiling = no && test $multilib = yes \
2480 && test "x${with_multisubdir}" != x ; then
2481 cross_compiling=maybe
2482 fi
2483
2484 ac_config_commands="$ac_config_commands default-1"
2485
2486 ac_aux_dir=
2487 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2488 if test -f "$ac_dir/install-sh"; then
2489 ac_aux_dir=$ac_dir
2490 ac_install_sh="$ac_aux_dir/install-sh -c"
2491 break
2492 elif 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/shtool"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/shtool install -c"
2499 break
2500 fi
2501 done
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2504 fi
2505
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2513
2514
2515 # Make sure we can run config.sub.
2516 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520 $as_echo_n "checking build system type... " >&6; }
2521 if ${ac_cv_build+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 ac_build_alias=$build_alias
2525 test "x$ac_build_alias" = x &&
2526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527 test "x$ac_build_alias" = x &&
2528 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2529 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2531
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534 $as_echo "$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2538 esac
2539 build=$ac_cv_build
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_build
2542 shift
2543 build_cpu=$1
2544 build_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 build_os=$*
2549 IFS=$ac_save_IFS
2550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2551
2552
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554 $as_echo_n "checking host system type... " >&6; }
2555 if ${ac_cv_host+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test "x$host_alias" = x; then
2559 ac_cv_host=$ac_cv_build
2560 else
2561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2563 fi
2564
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567 $as_echo "$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587 $as_echo_n "checking target system type... " >&6; }
2588 if ${ac_cv_target+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test "x$target_alias" = x; then
2592 ac_cv_target=$ac_cv_host
2593 else
2594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2596 fi
2597
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600 $as_echo "$ac_cv_target" >&6; }
2601 case $ac_cv_target in
2602 *-*-*) ;;
2603 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2604 esac
2605 target=$ac_cv_target
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_target
2608 shift
2609 target_cpu=$1
2610 target_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 target_os=$*
2615 IFS=$ac_save_IFS
2616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2617
2618
2619 # The aliases save the names the user supplied, while $host etc.
2620 # will get canonicalized.
2621 test -n "$target_alias" &&
2622 test "$program_prefix$program_suffix$program_transform_name" = \
2623 NONENONEs,x,x, &&
2624 program_prefix=${target_alias}-
2625
2626 # Expand $ac_aux_dir to an absolute path.
2627 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672 fi
2673 if test -z "$ac_cv_prog_CC"; then
2674 ac_ct_CC=$CC
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC="gcc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720 CC=$ac_ct_CC
2721 fi
2722 else
2723 CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}cc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765 fi
2766 fi
2767 if test -z "$CC"; then
2768 # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 ac_prog_rejected=no
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787 ac_prog_rejected=yes
2788 continue
2789 fi
2790 ac_cv_prog_CC="cc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2801 shift
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2806 shift
2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808 fi
2809 fi
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in cl.exe
2826 do
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 test -n "$CC" && break
2865 done
2866 fi
2867 if test -z "$CC"; then
2868 ac_ct_CC=$CC
2869 for ac_prog in cl.exe
2870 do
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 test -n "$ac_ct_CC" && break
2909 done
2910
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2921 fi
2922 fi
2923
2924 fi
2925
2926
2927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details" "$LINENO" 5; }
2931
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934 set X $ac_compile
2935 ac_compiler=$2
2936 for ac_option in --version -v -V -qversion; do
2937 { { ac_try="$ac_compiler $ac_option >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945 ac_status=$?
2946 if test -s conftest.err; then
2947 sed '10a\
2948 ... rest of stderr output deleted ...
2949 10q' conftest.err >conftest.er1
2950 cat conftest.er1 >&5
2951 fi
2952 rm -f conftest.er1 conftest.err
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2955 done
2956
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2959
2960 int
2961 main ()
2962 {
2963
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2972 # of exeext.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2976
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979
2980 ac_rmfiles=
2981 for ac_file in $ac_files
2982 do
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986 esac
2987 done
2988 rm -f $ac_rmfiles
2989
2990 if { { ac_try="$ac_link_default"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link_default") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3007 do
3008 test -f "$ac_file" || continue
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011 ;;
3012 [ab].out )
3013 # We found the default executable, but exeext='' is most
3014 # certainly right.
3015 break;;
3016 *.* )
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018 then :; else
3019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 fi
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3025 # actually working.
3026 break;;
3027 * )
3028 break;;
3029 esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
3033 else
3034 ac_file=''
3035 fi
3036 if test -z "$ac_file"; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error 77 "C compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051 $as_echo_n "checking for C compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext=$ac_cv_exeext
3055
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try="$ac_link"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 # `rm'.
3075 for ac_file in conftest.exe conftest conftest.*; do
3076 test -f "$ac_file" || continue
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 break;;
3081 * ) break;;
3082 esac
3083 done
3084 else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3089 fi
3090 rm -f conftest conftest$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099 #include <stdio.h>
3100 int
3101 main ()
3102 {
3103 FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 ac_clean_files="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116 { { ac_try="$ac_link"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 if { ac_try='./conftest$ac_cv_exeext'
3128 { { case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; }; then
3138 cross_compiling=no
3139 else
3140 if test "$cross_compiling" = maybe; then
3141 cross_compiling=yes
3142 else
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3148 fi
3149 fi
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3153
3154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compile") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189 break;;
3190 esac
3191 done
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 fi
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3206 ac_objext=$OBJEXT
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209 if ${ac_cv_c_compiler_gnu+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218 #ifndef __GNUC__
3219 choke me
3220 #endif
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227 ac_compiler_gnu=yes
3228 else
3229 ac_compiler_gnu=no
3230 fi
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3233
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3238 GCC=yes
3239 else
3240 GCC=
3241 fi
3242 ac_test_CFLAGS=${CFLAGS+set}
3243 ac_save_CFLAGS=$CFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3246 if ${ac_cv_prog_cc_g+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 ac_save_c_werror_flag=$ac_c_werror_flag
3250 ac_c_werror_flag=yes
3251 ac_cv_prog_cc_g=no
3252 CFLAGS="-g"
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265 ac_cv_prog_cc_g=yes
3266 else
3267 CFLAGS=""
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3270
3271 int
3272 main ()
3273 {
3274
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280
3281 else
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3283 CFLAGS="-g"
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286
3287 int
3288 main ()
3289 {
3290
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296 ac_cv_prog_cc_g=yes
3297 fi
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 fi
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 fi
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3311 CFLAGS="-g -O2"
3312 else
3313 CFLAGS="-g"
3314 fi
3315 else
3316 if test "$GCC" = yes; then
3317 CFLAGS="-O2"
3318 else
3319 CFLAGS=
3320 fi
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if ${ac_cv_prog_cc_c89+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_cv_prog_cc_c89=no
3328 ac_save_CC=$CC
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <stdarg.h>
3332 #include <stdio.h>
3333 struct stat;
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3338 char **p;
3339 int i;
3340 {
3341 return p[i];
3342 }
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3344 {
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3351 }
3352
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364 #define FOO(x) 'x'
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 int argc;
3372 char **argv;
3373 int
3374 main ()
3375 {
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383 do
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3390 done
3391 rm -f conftest.$ac_ext
3392 CC=$ac_save_CC
3393
3394 fi
3395 # AC_CACHE_VAL
3396 case "x$ac_cv_prog_cc_c89" in
3397 x)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3400 xno)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3403 *)
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407 esac
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3409
3410 fi
3411
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3424 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3425 if ${am_cv_prog_cc_c_o+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 # Make sure it works both with $CC and with simple cc.
3440 # Following AC_PROG_CC_C_O, we do the test twice because some
3441 # compilers refuse to overwrite an existing .o file with -o,
3442 # though they will create one.
3443 am_cv_prog_cc_c_o=yes
3444 for am_i in 1 2; do
3445 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3446 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } \
3450 && test -f conftest2.$ac_objext; then
3451 : OK
3452 else
3453 am_cv_prog_cc_c_o=no
3454 break
3455 fi
3456 done
3457 rm -f core conftest*
3458 unset am_i
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3461 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3462 if test "$am_cv_prog_cc_c_o" != yes; then
3463 # Losing compiler, so override with the script.
3464 # FIXME: It is wrong to rewrite CC.
3465 # But if we don't then we get into trouble of one sort or another.
3466 # A longer-term fix would be to have automake use am__CC in this case,
3467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3468 CC="$am_aux_dir/compile $CC"
3469 fi
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3485 # On Suns, sometimes $CPP names a directory.
3486 if test -n "$CPP" && test -d "$CPP"; then
3487 CPP=
3488 fi
3489 if test -z "$CPP"; then
3490 if ${ac_cv_prog_CPP+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 # Double quotes because CPP needs to be expanded
3494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3495 do
3496 ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3498 do
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512 Syntax error
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3515
3516 else
3517 # Broken: fails on valid input.
3518 continue
3519 fi
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: success on invalid input.
3530 continue
3531 else
3532 # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3535 fi
3536 rm -f conftest.err conftest.i conftest.$ac_ext
3537
3538 done
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.i conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then :
3542 break
3543 fi
3544
3545 done
3546 ac_cv_prog_CPP=$CPP
3547
3548 fi
3549 CPP=$ac_cv_prog_CPP
3550 else
3551 ac_cv_prog_CPP=$CPP
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 $as_echo "$CPP" >&6; }
3555 ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3557 do
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571 Syntax error
3572 _ACEOF
3573 if ac_fn_c_try_cpp "$LINENO"; then :
3574
3575 else
3576 # Broken: fails on valid input.
3577 continue
3578 fi
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if ac_fn_c_try_cpp "$LINENO"; then :
3588 # Broken: success on invalid input.
3589 continue
3590 else
3591 # Passes both tests.
3592 ac_preproc_ok=:
3593 break
3594 fi
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3596
3597 done
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.i conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then :
3601
3602 else
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details" "$LINENO" 5; }
3607 fi
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 if ${ac_cv_path_GREP+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -z "$GREP"; then
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 as_fn_executable_p "$ac_path_GREP" || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638 *)
3639 ac_count=0
3640 $as_echo_n 0123456789 >"conftest.in"
3641 while :
3642 do
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3654 fi
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3660
3661 $ac_path_GREP_found && break 3
3662 done
3663 done
3664 done
3665 IFS=$as_save_IFS
3666 if test -z "$ac_cv_path_GREP"; then
3667 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 fi
3669 else
3670 ac_cv_path_GREP=$GREP
3671 fi
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 $as_echo "$ac_cv_path_GREP" >&6; }
3676 GREP="$ac_cv_path_GREP"
3677
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 $as_echo_n "checking for egrep... " >&6; }
3681 if ${ac_cv_path_EGREP+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685 then ac_cv_path_EGREP="$GREP -E"
3686 else
3687 if test -z "$EGREP"; then
3688 ac_path_EGREP_found=false
3689 # Loop through the user's path and test for each of PROGNAME-LIST
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_prog in egrep; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698 as_fn_executable_p "$ac_path_EGREP" || continue
3699 # Check for GNU ac_path_EGREP and select it if it is found.
3700 # Check for GNU $ac_path_EGREP
3701 case `"$ac_path_EGREP" --version 2>&1` in
3702 *GNU*)
3703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3704 *)
3705 ac_count=0
3706 $as_echo_n 0123456789 >"conftest.in"
3707 while :
3708 do
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 $as_echo 'EGREP' >> "conftest.nl"
3713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 as_fn_arith $ac_count + 1 && ac_count=$as_val
3716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_EGREP="$ac_path_EGREP"
3719 ac_path_EGREP_max=$ac_count
3720 fi
3721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3723 done
3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725 esac
3726
3727 $ac_path_EGREP_found && break 3
3728 done
3729 done
3730 done
3731 IFS=$as_save_IFS
3732 if test -z "$ac_cv_path_EGREP"; then
3733 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734 fi
3735 else
3736 ac_cv_path_EGREP=$EGREP
3737 fi
3738
3739 fi
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 $as_echo "$ac_cv_path_EGREP" >&6; }
3743 EGREP="$ac_cv_path_EGREP"
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 $as_echo_n "checking for ANSI C header files... " >&6; }
3748 if ${ac_cv_header_stdc+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 #include <stdlib.h>
3754 #include <stdarg.h>
3755 #include <string.h>
3756 #include <float.h>
3757
3758 int
3759 main ()
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_header_stdc=yes
3768 else
3769 ac_cv_header_stdc=no
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
3773 if test $ac_cv_header_stdc = yes; then
3774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <string.h>
3778
3779 _ACEOF
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 $EGREP "memchr" >/dev/null 2>&1; then :
3782
3783 else
3784 ac_cv_header_stdc=no
3785 fi
3786 rm -f conftest*
3787
3788 fi
3789
3790 if test $ac_cv_header_stdc = yes; then
3791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <stdlib.h>
3795
3796 _ACEOF
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "free" >/dev/null 2>&1; then :
3799
3800 else
3801 ac_cv_header_stdc=no
3802 fi
3803 rm -f conftest*
3804
3805 fi
3806
3807 if test $ac_cv_header_stdc = yes; then
3808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809 if test "$cross_compiling" = yes; then :
3810 :
3811 else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ctype.h>
3815 #include <stdlib.h>
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819 #else
3820 # define ISLOWER(c) \
3821 (('a' <= (c) && (c) <= 'i') \
3822 || ('j' <= (c) && (c) <= 'r') \
3823 || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #endif
3826
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828 int
3829 main ()
3830 {
3831 int i;
3832 for (i = 0; i < 256; i++)
3833 if (XOR (islower (i), ISLOWER (i))
3834 || toupper (i) != TOUPPER (i))
3835 return 2;
3836 return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_run "$LINENO"; then :
3840
3841 else
3842 ac_cv_header_stdc=no
3843 fi
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845 conftest.$ac_objext conftest.beam conftest.$ac_ext
3846 fi
3847
3848 fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 $as_echo "$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3853
3854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3855
3856 fi
3857
3858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860 inttypes.h stdint.h unistd.h
3861 do :
3862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3864 "
3865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3866 cat >>confdefs.h <<_ACEOF
3867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 _ACEOF
3869
3870 fi
3871
3872 done
3873
3874
3875
3876 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3877 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3878 MINIX=yes
3879 else
3880 MINIX=
3881 fi
3882
3883
3884 if test "$MINIX" = yes; then
3885
3886 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3887
3888
3889 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3890
3891
3892 $as_echo "#define _MINIX 1" >>confdefs.h
3893
3894 fi
3895
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3898 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3899 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 # define __EXTENSIONS__ 1
3906 $ac_includes_default
3907 int
3908 main ()
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_safe_to_define___extensions__=yes
3917 else
3918 ac_cv_safe_to_define___extensions__=no
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3923 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3924 test $ac_cv_safe_to_define___extensions__ = yes &&
3925 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3926
3927 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3928
3929 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3930
3931 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3932
3933 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3934
3935
3936
3937 target_alias=${target_alias-$target}
3938
3939
3940 # 1.11.1: Require that version of automake.
3941 # foreign: Don't require README, INSTALL, NEWS, etc.
3942 # no-define: Don't define PACKAGE and VERSION.
3943 # no-dependencies: Don't generate automatic dependencies.
3944 # (because it breaks when using bootstrap-lean, since some of the
3945 # headers are gone at "make install" time).
3946 # subdir-objects: Build objects in sub-directories.
3947 # -Wall: Issue all automake warnings.
3948 # -Wno-portability: Don't warn about constructs supported by GNU make.
3949 # (because GCC requires GNU make anyhow).
3950 # -Wno-override: Overrides used in testsuite.
3951 am__api_version='1.15'
3952
3953 # Find a good install program. We prefer a C program (faster),
3954 # so one script is as good as another. But avoid the broken or
3955 # incompatible versions:
3956 # SysV /etc/install, /usr/sbin/install
3957 # SunOS /usr/etc/install
3958 # IRIX /sbin/install
3959 # AIX /bin/install
3960 # AmigaOS /C/install, which installs bootblocks on floppy discs
3961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3964 # OS/2's system install, which has a completely different semantic
3965 # ./install, which can be erroneously created by make from ./install.sh.
3966 # Reject install programs that cannot install multiple files.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3968 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3969 if test -z "$INSTALL"; then
3970 if ${ac_cv_path_install+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 # Account for people who put trailing slashes in PATH elements.
3979 case $as_dir/ in #((
3980 ./ | .// | /[cC]/* | \
3981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3982 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3983 /usr/ucb/* ) ;;
3984 *)
3985 # OSF1 and SCO ODT 3.0 have their own names for install.
3986 # Don't use installbsd from OSF since it installs stuff as root
3987 # by default.
3988 for ac_prog in ginstall scoinst install; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3991 if test $ac_prog = install &&
3992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993 # AIX install. It has an incompatible calling convention.
3994 :
3995 elif test $ac_prog = install &&
3996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997 # program-specific install script used by HP pwplus--don't use.
3998 :
3999 else
4000 rm -rf conftest.one conftest.two conftest.dir
4001 echo one > conftest.one
4002 echo two > conftest.two
4003 mkdir conftest.dir
4004 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4005 test -s conftest.one && test -s conftest.two &&
4006 test -s conftest.dir/conftest.one &&
4007 test -s conftest.dir/conftest.two
4008 then
4009 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4010 break 3
4011 fi
4012 fi
4013 fi
4014 done
4015 done
4016 ;;
4017 esac
4018
4019 done
4020 IFS=$as_save_IFS
4021
4022 rm -rf conftest.one conftest.two conftest.dir
4023
4024 fi
4025 if test "${ac_cv_path_install+set}" = set; then
4026 INSTALL=$ac_cv_path_install
4027 else
4028 # As a last resort, use the slow shell script. Don't cache a
4029 # value for INSTALL within a source directory, because that will
4030 # break other packages using the cache if that directory is
4031 # removed, or if the value is a relative name.
4032 INSTALL=$ac_install_sh
4033 fi
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036 $as_echo "$INSTALL" >&6; }
4037
4038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039 # It thinks the first close brace ends the variable substitution.
4040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4041
4042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4043
4044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4047 $as_echo_n "checking whether build environment is sane... " >&6; }
4048 # Reject unsafe characters in $srcdir or the absolute working directory
4049 # name. Accept space and tab only in the latter.
4050 am_lf='
4051 '
4052 case `pwd` in
4053 *[\\\"\#\$\&\'\`$am_lf]*)
4054 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4055 esac
4056 case $srcdir in
4057 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4058 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4059 esac
4060
4061 # Do 'set' in a subshell so we don't clobber the current shell's
4062 # arguments. Must try -L first in case configure is actually a
4063 # symlink; some systems play weird games with the mod time of symlinks
4064 # (eg FreeBSD returns the mod time of the symlink's containing
4065 # directory).
4066 if (
4067 am_has_slept=no
4068 for am_try in 1 2; do
4069 echo "timestamp, slept: $am_has_slept" > conftest.file
4070 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4071 if test "$*" = "X"; then
4072 # -L didn't work.
4073 set X `ls -t "$srcdir/configure" conftest.file`
4074 fi
4075 if test "$*" != "X $srcdir/configure conftest.file" \
4076 && test "$*" != "X conftest.file $srcdir/configure"; then
4077
4078 # If neither matched, then we have a broken ls. This can happen
4079 # if, for instance, CONFIG_SHELL is bash and it inherits a
4080 # broken ls alias from the environment. This has actually
4081 # happened. Such a system could not be considered "sane".
4082 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4083 alias in your environment" "$LINENO" 5
4084 fi
4085 if test "$2" = conftest.file || test $am_try -eq 2; then
4086 break
4087 fi
4088 # Just in case.
4089 sleep 1
4090 am_has_slept=yes
4091 done
4092 test "$2" = conftest.file
4093 )
4094 then
4095 # Ok.
4096 :
4097 else
4098 as_fn_error $? "newly created file is older than distributed files!
4099 Check your system clock" "$LINENO" 5
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4103 # If we didn't sleep, we still need to ensure time stamps of config.status and
4104 # generated files are strictly newer.
4105 am_sleep_pid=
4106 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4107 ( sleep 1 ) &
4108 am_sleep_pid=$!
4109 fi
4110
4111 rm -f conftest.file
4112
4113 test "$program_prefix" != NONE &&
4114 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4115 # Use a double $ so make ignores it.
4116 test "$program_suffix" != NONE &&
4117 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4118 # Double any \ or $.
4119 # By default was `s,x,x', remove it if useless.
4120 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4121 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4122
4123 if test x"${MISSING+set}" != xset; then
4124 case $am_aux_dir in
4125 *\ * | *\ *)
4126 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4127 *)
4128 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4129 esac
4130 fi
4131 # Use eval to expand $SHELL
4132 if eval "$MISSING --is-lightweight"; then
4133 am_missing_run="$MISSING "
4134 else
4135 am_missing_run=
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4137 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4138 fi
4139
4140 if test x"${install_sh+set}" != xset; then
4141 case $am_aux_dir in
4142 *\ * | *\ *)
4143 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4144 *)
4145 install_sh="\${SHELL} $am_aux_dir/install-sh"
4146 esac
4147 fi
4148
4149 # Installed binaries are usually stripped using 'strip' when the user
4150 # run "make install-strip". However 'strip' might not be the right
4151 # tool to use in cross-compilation environments, therefore Automake
4152 # will honor the 'STRIP' environment variable to overrule this program.
4153 if test "$cross_compiling" != no; then
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}strip; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_STRIP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 STRIP=$ac_cv_prog_STRIP
4183 if test -n "$STRIP"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4185 $as_echo "$STRIP" >&6; }
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192 fi
4193 if test -z "$ac_cv_prog_STRIP"; then
4194 ac_ct_STRIP=$STRIP
4195 # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP="strip"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 fi
4221 fi
4222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4225 $as_echo "$ac_ct_STRIP" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230
4231 if test "x$ac_ct_STRIP" = x; then
4232 STRIP=":"
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240 STRIP=$ac_ct_STRIP
4241 fi
4242 else
4243 STRIP="$ac_cv_prog_STRIP"
4244 fi
4245
4246 fi
4247 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4250 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4251 if test -z "$MKDIR_P"; then
4252 if ${ac_cv_path_mkdir+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in mkdir gmkdir; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4263 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4264 'mkdir (GNU coreutils) '* | \
4265 'mkdir (coreutils) '* | \
4266 'mkdir (fileutils) '4.1*)
4267 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4268 break 3;;
4269 esac
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4274
4275 fi
4276
4277 test -d ./--version && rmdir ./--version
4278 if test "${ac_cv_path_mkdir+set}" = set; then
4279 MKDIR_P="$ac_cv_path_mkdir -p"
4280 else
4281 # As a last resort, use the slow shell script. Don't cache a
4282 # value for MKDIR_P within a source directory, because that will
4283 # break other packages using the cache if that directory is
4284 # removed, or if the value is a relative name.
4285 MKDIR_P="$ac_install_sh -d"
4286 fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4289 $as_echo "$MKDIR_P" >&6; }
4290
4291 for ac_prog in gawk mawk nawk awk
4292 do
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AWK+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AWK="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 fi
4319 fi
4320 AWK=$ac_cv_prog_AWK
4321 if test -n "$AWK"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323 $as_echo "$AWK" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4327 fi
4328
4329
4330 test -n "$AWK" && break
4331 done
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4334 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4335 set x ${MAKE-make}
4336 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4337 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat >conftest.make <<\_ACEOF
4341 SHELL = /bin/sh
4342 all:
4343 @echo '@@@%%%=$(MAKE)=@@@%%%'
4344 _ACEOF
4345 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4346 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4347 *@@@%%%=?*=@@@%%%*)
4348 eval ac_cv_prog_make_${ac_make}_set=yes;;
4349 *)
4350 eval ac_cv_prog_make_${ac_make}_set=no;;
4351 esac
4352 rm -f conftest.make
4353 fi
4354 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 SET_MAKE=
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 SET_MAKE="MAKE=${MAKE-make}"
4362 fi
4363
4364 rm -rf .tst 2>/dev/null
4365 mkdir .tst 2>/dev/null
4366 if test -d .tst; then
4367 am__leading_dot=.
4368 else
4369 am__leading_dot=_
4370 fi
4371 rmdir .tst 2>/dev/null
4372
4373 # Check whether --enable-silent-rules was given.
4374 if test "${enable_silent_rules+set}" = set; then :
4375 enableval=$enable_silent_rules;
4376 fi
4377
4378 case $enable_silent_rules in # (((
4379 yes) AM_DEFAULT_VERBOSITY=0;;
4380 no) AM_DEFAULT_VERBOSITY=1;;
4381 *) AM_DEFAULT_VERBOSITY=1;;
4382 esac
4383 am_make=${MAKE-make}
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4385 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4386 if ${am_cv_make_support_nested_variables+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if $as_echo 'TRUE=$(BAR$(V))
4390 BAR0=false
4391 BAR1=true
4392 V=1
4393 am__doit:
4394 @$(TRUE)
4395 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4396 am_cv_make_support_nested_variables=yes
4397 else
4398 am_cv_make_support_nested_variables=no
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4402 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4403 if test $am_cv_make_support_nested_variables = yes; then
4404 AM_V='$(V)'
4405 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4406 else
4407 AM_V=$AM_DEFAULT_VERBOSITY
4408 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4409 fi
4410 AM_BACKSLASH='\'
4411
4412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4414 # is not polluted with repeated "-I."
4415 am__isrc=' -I$(srcdir)'
4416 # test to see if srcdir already configured
4417 if test -f $srcdir/config.status; then
4418 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4419 fi
4420 fi
4421
4422 # test whether we have cygpath
4423 if test -z "$CYGPATH_W"; then
4424 if (cygpath --version) >/dev/null 2>/dev/null; then
4425 CYGPATH_W='cygpath -w'
4426 else
4427 CYGPATH_W=echo
4428 fi
4429 fi
4430
4431
4432 # Define the identity of the package.
4433 PACKAGE='libphobos'
4434 VERSION='version-unused'
4435
4436
4437 # Some tools Automake needs.
4438
4439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4440
4441
4442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4443
4444
4445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4446
4447
4448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4449
4450
4451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4452
4453 # For better backward compatibility. To be removed once Automake 1.9.x
4454 # dies out for good. For more background, see:
4455 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4456 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4457 mkdir_p='$(MKDIR_P)'
4458
4459 # We need awk for the "check" target (and possibly the TAP driver). The
4460 # system "awk" is bad on some platforms.
4461 # Always define AMTAR for backward compatibility. Yes, it's still used
4462 # in the wild :-( We should find a proper way to deprecate it ...
4463 AMTAR='$${TAR-tar}'
4464
4465
4466 # We'll loop over all known methods to create a tar archive until one works.
4467 _am_tools='gnutar pax cpio none'
4468
4469 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4470
4471
4472
4473
4474
4475
4476 # POSIX will say in a future version that running "rm -f" with no argument
4477 # is OK; and we want to be able to make that assumption in our Makefile
4478 # recipes. So use an aggressive probe to check that the usage we want is
4479 # actually supported "in the wild" to an acceptable degree.
4480 # See automake bug#10828.
4481 # To make any issue more visible, cause the running configure to be aborted
4482 # by default if the 'rm' program in use doesn't match our expectations; the
4483 # user can still override this though.
4484 if rm -f && rm -fr && rm -rf; then : OK; else
4485 cat >&2 <<'END'
4486 Oops!
4487
4488 Your 'rm' program seems unable to run without file operands specified
4489 on the command line, even when the '-f' option is present. This is contrary
4490 to the behaviour of most rm programs out there, and not conforming with
4491 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4492
4493 Please tell bug-automake@gnu.org about your system, including the value
4494 of your $PATH and any error possibly output before this message. This
4495 can help us improve future automake versions.
4496
4497 END
4498 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4499 echo 'Configuration will proceed anyway, since you have set the' >&2
4500 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4501 echo >&2
4502 else
4503 cat >&2 <<'END'
4504 Aborting the configuration process, to ensure you take notice of the issue.
4505
4506 You can download and install GNU coreutils to get an 'rm' implementation
4507 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4508
4509 If you want to complete the configuration process using your problematic
4510 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4511 to "yes", and re-run configure.
4512
4513 END
4514 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4515 fi
4516 fi
4517
4518
4519
4520
4521 # By default we simply use the C compiler to build assembly code.
4522
4523 test "${CCAS+set}" = set || CCAS=$CC
4524 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4525
4526
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$ac_cv_prog_CC"; then
4573 ac_ct_CC=$CC
4574 # Extract the first word of "gcc", so it can be a program name with args.
4575 set dummy gcc; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$ac_ct_CC"; then
4582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_ac_ct_CC="gcc"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4602 if test -n "$ac_ct_CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4604 $as_echo "$ac_ct_CC" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610 if test "x$ac_ct_CC" = x; then
4611 CC=""
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CC=$ac_ct_CC
4620 fi
4621 else
4622 CC="$ac_cv_prog_CC"
4623 fi
4624
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}cc; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_CC+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_CC="${ac_tool_prefix}cc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 fi
4665 fi
4666 if test -z "$CC"; then
4667 # Extract the first word of "cc", so it can be a program name with args.
4668 set dummy cc; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_CC+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$CC"; then
4675 ac_cv_prog_CC="$CC" # Let the user override the test.
4676 else
4677 ac_prog_rejected=no
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4686 ac_prog_rejected=yes
4687 continue
4688 fi
4689 ac_cv_prog_CC="cc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy $ac_cv_prog_CC
4700 shift
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set CC to just the basename; use the full file name.
4705 shift
4706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4707 fi
4708 fi
4709 fi
4710 fi
4711 CC=$ac_cv_prog_CC
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 if test -z "$CC"; then
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in cl.exe
4725 do
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CC+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 CC=$ac_cv_prog_CC
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763 test -n "$CC" && break
4764 done
4765 fi
4766 if test -z "$CC"; then
4767 ac_ct_CC=$CC
4768 for ac_prog in cl.exe
4769 do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_CC"; then
4778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_CC="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4798 if test -n "$ac_ct_CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4800 $as_echo "$ac_ct_CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 test -n "$ac_ct_CC" && break
4808 done
4809
4810 if test "x$ac_ct_CC" = x; then
4811 CC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 CC=$ac_ct_CC
4820 fi
4821 fi
4822
4823 fi
4824
4825
4826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828 as_fn_error $? "no acceptable C compiler found in \$PATH
4829 See \`config.log' for more details" "$LINENO" 5; }
4830
4831 # Provide some information about the compiler.
4832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4833 set X $ac_compile
4834 ac_compiler=$2
4835 for ac_option in --version -v -V -qversion; do
4836 { { ac_try="$ac_compiler $ac_option >&5"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4844 ac_status=$?
4845 if test -s conftest.err; then
4846 sed '10a\
4847 ... rest of stderr output deleted ...
4848 10q' conftest.err >conftest.er1
4849 cat conftest.er1 >&5
4850 fi
4851 rm -f conftest.er1 conftest.err
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }
4854 done
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4857 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4858 if ${ac_cv_c_compiler_gnu+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863
4864 int
4865 main ()
4866 {
4867 #ifndef __GNUC__
4868 choke me
4869 #endif
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_compiler_gnu=yes
4877 else
4878 ac_compiler_gnu=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4886 if test $ac_compiler_gnu = yes; then
4887 GCC=yes
4888 else
4889 GCC=
4890 fi
4891 ac_test_CFLAGS=${CFLAGS+set}
4892 ac_save_CFLAGS=$CFLAGS
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4895 if ${ac_cv_prog_cc_g+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_save_c_werror_flag=$ac_c_werror_flag
4899 ac_c_werror_flag=yes
4900 ac_cv_prog_cc_g=no
4901 CFLAGS="-g"
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904
4905 int
4906 main ()
4907 {
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_prog_cc_g=yes
4915 else
4916 CFLAGS=""
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919
4920 int
4921 main ()
4922 {
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929
4930 else
4931 ac_c_werror_flag=$ac_save_c_werror_flag
4932 CFLAGS="-g"
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_g=yes
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4955 $as_echo "$ac_cv_prog_cc_g" >&6; }
4956 if test "$ac_test_CFLAGS" = set; then
4957 CFLAGS=$ac_save_CFLAGS
4958 elif test $ac_cv_prog_cc_g = yes; then
4959 if test "$GCC" = yes; then
4960 CFLAGS="-g -O2"
4961 else
4962 CFLAGS="-g"
4963 fi
4964 else
4965 if test "$GCC" = yes; then
4966 CFLAGS="-O2"
4967 else
4968 CFLAGS=
4969 fi
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4973 if ${ac_cv_prog_cc_c89+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_cv_prog_cc_c89=no
4977 ac_save_CC=$CC
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <stdarg.h>
4981 #include <stdio.h>
4982 struct stat;
4983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4984 struct buf { int x; };
4985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986 static char *e (p, i)
4987 char **p;
4988 int i;
4989 {
4990 return p[i];
4991 }
4992 static char *f (char * (*g) (char **, int), char **p, ...)
4993 {
4994 char *s;
4995 va_list v;
4996 va_start (v,p);
4997 s = g (p, va_arg (v,int));
4998 va_end (v);
4999 return s;
5000 }
5001
5002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5003 function prototypes and stuff, but not '\xHH' hex character constants.
5004 These don't provoke an error unfortunately, instead are silently treated
5005 as 'x'. The following induces an error, until -std is added to get
5006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5007 array size at least. It's necessary to write '\x00'==0 to get something
5008 that's true only with -std. */
5009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5010
5011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012 inside strings and character constants. */
5013 #define FOO(x) 'x'
5014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5015
5016 int test (int i, double x);
5017 struct s1 {int (*f) (int a);};
5018 struct s2 {int (*f) (double a);};
5019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5020 int argc;
5021 char **argv;
5022 int
5023 main ()
5024 {
5025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5032 do
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_prog_cc_c89=$ac_arg
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext
5038 test "x$ac_cv_prog_cc_c89" != "xno" && break
5039 done
5040 rm -f conftest.$ac_ext
5041 CC=$ac_save_CC
5042
5043 fi
5044 # AC_CACHE_VAL
5045 case "x$ac_cv_prog_cc_c89" in
5046 x)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5048 $as_echo "none needed" >&6; } ;;
5049 xno)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051 $as_echo "unsupported" >&6; } ;;
5052 *)
5053 CC="$CC $ac_cv_prog_cc_c89"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5056 esac
5057 if test "x$ac_cv_prog_cc_c89" != xno; then :
5058
5059 fi
5060
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5073 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5074 if ${am_cv_prog_cc_c_o+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 # Make sure it works both with $CC and with simple cc.
5089 # Following AC_PROG_CC_C_O, we do the test twice because some
5090 # compilers refuse to overwrite an existing .o file with -o,
5091 # though they will create one.
5092 am_cv_prog_cc_c_o=yes
5093 for am_i in 1 2; do
5094 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5095 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } \
5099 && test -f conftest2.$ac_objext; then
5100 : OK
5101 else
5102 am_cv_prog_cc_c_o=no
5103 break
5104 fi
5105 done
5106 rm -f core conftest*
5107 unset am_i
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5110 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5111 if test "$am_cv_prog_cc_c_o" != yes; then
5112 # Losing compiler, so override with the script.
5113 # FIXME: It is wrong to rewrite CC.
5114 # But if we don't then we get into trouble of one sort or another.
5115 # A longer-term fix would be to have automake use am__CC in this case,
5116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5117 CC="$am_aux_dir/compile $CC"
5118 fi
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125
5126 ac_ext=d
5127 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5128 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=yes
5130 if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_GDC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$GDC"; then
5139 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 fi
5157 fi
5158 GDC=$ac_cv_prog_GDC
5159 if test -n "$GDC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5161 $as_echo "$GDC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 fi
5166
5167
5168 fi
5169 if test -z "$ac_cv_prog_GDC"; then
5170 ac_ct_GDC=$GDC
5171 # Extract the first word of "gdc", so it can be a program name with args.
5172 set dummy gdc; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ac_ct_GDC"; then
5179 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_GDC="gdc"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5199 if test -n "$ac_ct_GDC"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5201 $as_echo "$ac_ct_GDC" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207 if test "x$ac_ct_GDC" = x; then
5208 GDC=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216 GDC=$ac_ct_GDC
5217 fi
5218 else
5219 GDC="$ac_cv_prog_GDC"
5220 fi
5221
5222 if test -z "$GDC"; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_GDC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$GDC"; then
5232 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 GDC=$ac_cv_prog_GDC
5252 if test -n "$GDC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5254 $as_echo "$GDC" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 fi
5262 fi
5263 if test -z "$GDC"; then
5264 # Extract the first word of "gdc", so it can be a program name with args.
5265 set dummy gdc; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273 else
5274 ac_prog_rejected=no
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5283 ac_prog_rejected=yes
5284 continue
5285 fi
5286 ac_cv_prog_GDC="gdc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292 IFS=$as_save_IFS
5293
5294 if test $ac_prog_rejected = yes; then
5295 # We found a bogon in the path, so make sure we never use it.
5296 set dummy $ac_cv_prog_GDC
5297 shift
5298 if test $# != 0; then
5299 # We chose a different compiler from the bogus one.
5300 # However, it has the same basename, so the bogon will be chosen
5301 # first if we set GDC to just the basename; use the full file name.
5302 shift
5303 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5304 fi
5305 fi
5306 fi
5307 fi
5308 GDC=$ac_cv_prog_GDC
5309 if test -n "$GDC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5311 $as_echo "$GDC" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 fi
5319
5320
5321 # Provide some information about the compiler.
5322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5323 set X $ac_compile
5324 ac_compiler=$2
5325 { { ac_try="$ac_compiler --version >&5"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5331 $as_echo "$ac_try_echo"; } >&5
5332 (eval "$ac_compiler --version >&5") 2>conftest.err
5333 ac_status=$?
5334 if test -s conftest.err; then
5335 sed '10a\
5336 ... rest of stderr output deleted ...
5337 10q' conftest.err >conftest.er1
5338 cat conftest.er1 >&5
5339 fi
5340 rm -f conftest.er1 conftest.err
5341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5342 test $ac_status = 0; }
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5351 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5352 if ${phobos_cv_abs_srcdir+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5358 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5359 if test -d "$phobos_cv_abs_srcdir"; then :
5360
5361 else
5362 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5363 fi
5364
5365
5366
5367
5368 gdc_save_DFLAGS=$GDCFLAGS
5369 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5370
5371 ac_ext=d
5372 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5373 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=yes
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5377 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5378 cat > conftest.$ac_ext <<_ACEOF
5379 module mod;
5380
5381
5382 extern(C) int main() {
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_d_try_compile "$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400
5401
5402 GDCFLAGS=$gdc_save_DFLAGS
5403
5404
5405
5406
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5411 # Check whether --enable-maintainer-mode was given.
5412 if test "${enable_maintainer_mode+set}" = set; then :
5413 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5414 else
5415 USE_MAINTAINER_MODE=no
5416 fi
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5420 if test $USE_MAINTAINER_MODE = yes; then
5421 MAINTAINER_MODE_TRUE=
5422 MAINTAINER_MODE_FALSE='#'
5423 else
5424 MAINTAINER_MODE_TRUE='#'
5425 MAINTAINER_MODE_FALSE=
5426 fi
5427
5428 MAINT=$MAINTAINER_MODE_TRUE
5429
5430
5431 if test -n "$ac_tool_prefix"; then
5432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_RANLIB+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$RANLIB"; then
5440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453 done
5454 done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 RANLIB=$ac_cv_prog_RANLIB
5460 if test -n "$RANLIB"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462 $as_echo "$RANLIB" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468
5469 fi
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493 done
5494 done
5495 IFS=$as_save_IFS
5496
5497 fi
5498 fi
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502 $as_echo "$ac_ct_RANLIB" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508 if test "x$ac_ct_RANLIB" = x; then
5509 RANLIB=":"
5510 else
5511 case $cross_compiling:$ac_tool_warned in
5512 yes:)
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5516 esac
5517 RANLIB=$ac_ct_RANLIB
5518 fi
5519 else
5520 RANLIB="$ac_cv_prog_RANLIB"
5521 fi
5522
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5525 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5526 set x ${MAKE-make}
5527 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5528 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat >conftest.make <<\_ACEOF
5532 SHELL = /bin/sh
5533 all:
5534 @echo '@@@%%%=$(MAKE)=@@@%%%'
5535 _ACEOF
5536 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5537 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5538 *@@@%%%=?*=@@@%%%*)
5539 eval ac_cv_prog_make_${ac_make}_set=yes;;
5540 *)
5541 eval ac_cv_prog_make_${ac_make}_set=no;;
5542 esac
5543 rm -f conftest.make
5544 fi
5545 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 SET_MAKE=
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 SET_MAKE="MAKE=${MAKE-make}"
5553 fi
5554
5555
5556 # This should be inherited in the recursive make, but ensure it is defined.
5557 test "$AR" || AR=ar
5558
5559
5560 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5561
5562
5563
5564 # Enable libtool
5565 case `pwd` in
5566 *\ * | *\ *)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5568 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5569 esac
5570
5571
5572
5573 macro_version='2.2.7a'
5574 macro_revision='1.3134'
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 ltmain="$ac_aux_dir/ltmain.sh"
5589
5590 # Backslashify metacharacters that are still active within
5591 # double-quoted strings.
5592 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5593
5594 # Same as above, but do not quote variable references.
5595 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5596
5597 # Sed substitution to delay expansion of an escaped shell variable in a
5598 # double_quote_subst'ed string.
5599 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5600
5601 # Sed substitution to delay expansion of an escaped single quote.
5602 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5603
5604 # Sed substitution to avoid accidental globbing in evaled expressions
5605 no_glob_subst='s/\*/\\\*/g'
5606
5607 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5609 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5612 $as_echo_n "checking how to print strings... " >&6; }
5613 # Test print first, because it will be a builtin if present.
5614 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5615 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5616 ECHO='print -r --'
5617 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5618 ECHO='printf %s\n'
5619 else
5620 # Use this function as a fallback that always works.
5621 func_fallback_echo ()
5622 {
5623 eval 'cat <<_LTECHO_EOF
5624 $1
5625 _LTECHO_EOF'
5626 }
5627 ECHO='func_fallback_echo'
5628 fi
5629
5630 # func_echo_all arg...
5631 # Invoke $ECHO with all args, space-separated.
5632 func_echo_all ()
5633 {
5634 $ECHO ""
5635 }
5636
5637 case "$ECHO" in
5638 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5639 $as_echo "printf" >&6; } ;;
5640 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5641 $as_echo "print -r" >&6; } ;;
5642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5643 $as_echo "cat" >&6; } ;;
5644 esac
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5661 if ${ac_cv_path_SED+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5665 for ac_i in 1 2 3 4 5 6 7; do
5666 ac_script="$ac_script$as_nl$ac_script"
5667 done
5668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5669 { ac_script=; unset ac_script;}
5670 if test -z "$SED"; then
5671 ac_path_SED_found=false
5672 # Loop through the user's path and test for each of PROGNAME-LIST
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_prog in sed gsed; do
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5681 as_fn_executable_p "$ac_path_SED" || continue
5682 # Check for GNU ac_path_SED and select it if it is found.
5683 # Check for GNU $ac_path_SED
5684 case `"$ac_path_SED" --version 2>&1` in
5685 *GNU*)
5686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5687 *)
5688 ac_count=0
5689 $as_echo_n 0123456789 >"conftest.in"
5690 while :
5691 do
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo '' >> "conftest.nl"
5696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5698 as_fn_arith $ac_count + 1 && ac_count=$as_val
5699 if test $ac_count -gt ${ac_path_SED_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_SED="$ac_path_SED"
5702 ac_path_SED_max=$ac_count
5703 fi
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5706 done
5707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708 esac
5709
5710 $ac_path_SED_found && break 3
5711 done
5712 done
5713 done
5714 IFS=$as_save_IFS
5715 if test -z "$ac_cv_path_SED"; then
5716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5717 fi
5718 else
5719 ac_cv_path_SED=$SED
5720 fi
5721
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5724 $as_echo "$ac_cv_path_SED" >&6; }
5725 SED="$ac_cv_path_SED"
5726 rm -f conftest.sed
5727
5728 test -z "$SED" && SED=sed
5729 Xsed="$SED -e 1s/^X//"
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5742 $as_echo_n "checking for fgrep... " >&6; }
5743 if ${ac_cv_path_FGREP+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5747 then ac_cv_path_FGREP="$GREP -F"
5748 else
5749 if test -z "$FGREP"; then
5750 ac_path_FGREP_found=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_prog in fgrep; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5760 as_fn_executable_p "$ac_path_FGREP" || continue
5761 # Check for GNU ac_path_FGREP and select it if it is found.
5762 # Check for GNU $ac_path_FGREP
5763 case `"$ac_path_FGREP" --version 2>&1` in
5764 *GNU*)
5765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5766 *)
5767 ac_count=0
5768 $as_echo_n 0123456789 >"conftest.in"
5769 while :
5770 do
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo 'FGREP' >> "conftest.nl"
5775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777 as_fn_arith $ac_count + 1 && ac_count=$as_val
5778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_FGREP="$ac_path_FGREP"
5781 ac_path_FGREP_max=$ac_count
5782 fi
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5785 done
5786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787 esac
5788
5789 $ac_path_FGREP_found && break 3
5790 done
5791 done
5792 done
5793 IFS=$as_save_IFS
5794 if test -z "$ac_cv_path_FGREP"; then
5795 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5796 fi
5797 else
5798 ac_cv_path_FGREP=$FGREP
5799 fi
5800
5801 fi
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5804 $as_echo "$ac_cv_path_FGREP" >&6; }
5805 FGREP="$ac_cv_path_FGREP"
5806
5807
5808 test -z "$GREP" && GREP=grep
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5831 else
5832 with_gnu_ld=no
5833 fi
5834
5835 ac_prog=ld
5836 if test "$GCC" = yes; then
5837 # Check if gcc -print-prog-name=ld gives a path.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5839 $as_echo_n "checking for ld used by $CC... " >&6; }
5840 case $host in
5841 *-*-mingw*)
5842 # gcc leaves a trailing carriage return which upsets mingw
5843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5844 *)
5845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5846 esac
5847 case $ac_prog in
5848 # Accept absolute paths.
5849 [\\/]* | ?:[\\/]*)
5850 re_direlt='/[^/][^/]*/\.\./'
5851 # Canonicalize the pathname of ld
5852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5855 done
5856 test -z "$LD" && LD="$ac_prog"
5857 ;;
5858 "")
5859 # If it fails, then pretend we aren't using GCC.
5860 ac_prog=ld
5861 ;;
5862 *)
5863 # If it is relative, then search for the first ld in PATH.
5864 with_gnu_ld=unknown
5865 ;;
5866 esac
5867 elif test "$with_gnu_ld" = yes; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5869 $as_echo_n "checking for GNU ld... " >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5872 $as_echo_n "checking for non-GNU ld... " >&6; }
5873 fi
5874 if ${lt_cv_path_LD+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -z "$LD"; then
5878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5880 IFS="$lt_save_ifs"
5881 test -z "$ac_dir" && ac_dir=.
5882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5883 lt_cv_path_LD="$ac_dir/$ac_prog"
5884 # Check to see if the program is GNU ld. I'd rather use --version,
5885 # but apparently some variants of GNU ld only accept -v.
5886 # Break only if it was the GNU/non-GNU ld that we prefer.
5887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 test "$with_gnu_ld" != no && break
5890 ;;
5891 *)
5892 test "$with_gnu_ld" != yes && break
5893 ;;
5894 esac
5895 fi
5896 done
5897 IFS="$lt_save_ifs"
5898 else
5899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5900 fi
5901 fi
5902
5903 LD="$lt_cv_path_LD"
5904 if test -n "$LD"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5906 $as_echo "$LD" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if ${lt_cv_prog_gnu_ld+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5918 case `$LD -v 2>&1 </dev/null` in
5919 *GNU* | *'with BFD'*)
5920 lt_cv_prog_gnu_ld=yes
5921 ;;
5922 *)
5923 lt_cv_prog_gnu_ld=no
5924 ;;
5925 esac
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5929 with_gnu_ld=$lt_cv_prog_gnu_ld
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5941 if ${lt_cv_path_NM+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$NM"; then
5945 # Let the user override the test.
5946 lt_cv_path_NM="$NM"
5947 else
5948 lt_nm_to_check="${ac_tool_prefix}nm"
5949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950 lt_nm_to_check="$lt_nm_to_check nm"
5951 fi
5952 for lt_tmp_nm in $lt_nm_to_check; do
5953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5955 IFS="$lt_save_ifs"
5956 test -z "$ac_dir" && ac_dir=.
5957 tmp_nm="$ac_dir/$lt_tmp_nm"
5958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 # Tru64's nm complains that /dev/null is an invalid object file
5963 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5964 */dev/null* | *'Invalid file or object type'*)
5965 lt_cv_path_NM="$tmp_nm -B"
5966 break
5967 ;;
5968 *)
5969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5970 */dev/null*)
5971 lt_cv_path_NM="$tmp_nm -p"
5972 break
5973 ;;
5974 *)
5975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976 continue # so that we can try to find one that supports BSD flags
5977 ;;
5978 esac
5979 ;;
5980 esac
5981 fi
5982 done
5983 IFS="$lt_save_ifs"
5984 done
5985 : ${lt_cv_path_NM=no}
5986 fi
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5989 $as_echo "$lt_cv_path_NM" >&6; }
5990 if test "$lt_cv_path_NM" != "no"; then
5991 NM="$lt_cv_path_NM"
5992 else
5993 # Didn't find any BSD compatible name lister, look for dumpbin.
5994 if test -n "$DUMPBIN"; then :
5995 # Let the user override the test.
5996 else
5997 if test -n "$ac_tool_prefix"; then
5998 for ac_prog in dumpbin "link -dump"
5999 do
6000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_DUMPBIN+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$DUMPBIN"; then
6008 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 DUMPBIN=$ac_cv_prog_DUMPBIN
6028 if test -n "$DUMPBIN"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6030 $as_echo "$DUMPBIN" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036
6037 test -n "$DUMPBIN" && break
6038 done
6039 fi
6040 if test -z "$DUMPBIN"; then
6041 ac_ct_DUMPBIN=$DUMPBIN
6042 for ac_prog in dumpbin "link -dump"
6043 do
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6072 if test -n "$ac_ct_DUMPBIN"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6074 $as_echo "$ac_ct_DUMPBIN" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081 test -n "$ac_ct_DUMPBIN" && break
6082 done
6083
6084 if test "x$ac_ct_DUMPBIN" = x; then
6085 DUMPBIN=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 DUMPBIN=$ac_ct_DUMPBIN
6094 fi
6095 fi
6096
6097 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6098 *COFF*)
6099 DUMPBIN="$DUMPBIN -symbols"
6100 ;;
6101 *)
6102 DUMPBIN=:
6103 ;;
6104 esac
6105 fi
6106
6107 if test "$DUMPBIN" != ":"; then
6108 NM="$DUMPBIN"
6109 fi
6110 fi
6111 test -z "$NM" && NM=nm
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6120 if ${lt_cv_nm_interface+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 lt_cv_nm_interface="BSD nm"
6124 echo "int some_variable = 0;" > conftest.$ac_ext
6125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126 (eval "$ac_compile" 2>conftest.err)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6130 cat conftest.err >&5
6131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132 cat conftest.out >&5
6133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6134 lt_cv_nm_interface="MS dumpbin"
6135 fi
6136 rm -f conftest*
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6139 $as_echo "$lt_cv_nm_interface" >&6; }
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6142 $as_echo_n "checking whether ln -s works... " >&6; }
6143 LN_S=$as_ln_s
6144 if test "$LN_S" = "ln -s"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6149 $as_echo "no, using $LN_S" >&6; }
6150 fi
6151
6152 # find the maximum length of command line arguments
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6155 if ${lt_cv_sys_max_cmd_len+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 i=0
6159 teststring="ABCD"
6160
6161 case $build_os in
6162 msdosdjgpp*)
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6168 ;;
6169
6170 gnu*)
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6175 ;;
6176
6177 cygwin* | mingw* | cegcc*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6186 ;;
6187
6188 mint*)
6189 # On MiNT this can take a long time and run out of memory.
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
6192
6193 amigaos*)
6194 # On AmigaOS with pdksh, this test takes hours, literally.
6195 # So we just punt and use a minimum line length of 8192.
6196 lt_cv_sys_max_cmd_len=8192;
6197 ;;
6198
6199 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200 # This has been around since 386BSD, at least. Likely further.
6201 if test -x /sbin/sysctl; then
6202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203 elif test -x /usr/sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205 else
6206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6207 fi
6208 # And add a safety zone
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211 ;;
6212
6213 interix*)
6214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215 lt_cv_sys_max_cmd_len=196608
6216 ;;
6217
6218 osf*)
6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221 # nice to cause kernel panics so lets avoid the loop below.
6222 # First set a reasonable default.
6223 lt_cv_sys_max_cmd_len=16384
6224 #
6225 if test -x /sbin/sysconfig; then
6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228 esac
6229 fi
6230 ;;
6231 sco3.2v5*)
6232 lt_cv_sys_max_cmd_len=102400
6233 ;;
6234 sysv5* | sco5v6* | sysv4.2uw2*)
6235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236 if test -n "$kargmax"; then
6237 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6238 else
6239 lt_cv_sys_max_cmd_len=32768
6240 fi
6241 ;;
6242 *)
6243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244 if test -n "$lt_cv_sys_max_cmd_len"; then
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247 else
6248 # Make teststring a little bigger before we do anything with it.
6249 # a 1K string should be a reasonable start.
6250 for i in 1 2 3 4 5 6 7 8 ; do
6251 teststring=$teststring$teststring
6252 done
6253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254 # If test is not a shell built-in, we'll probably end up computing a
6255 # maximum length that is only half of the actual maximum length, but
6256 # we can't tell.
6257 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6258 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6259 test $i != 17 # 1/2 MB should be enough
6260 do
6261 i=`expr $i + 1`
6262 teststring=$teststring$teststring
6263 done
6264 # Only check the string length outside the loop.
6265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266 teststring=
6267 # Add a significant safety factor because C++ compilers can tack on
6268 # massive amounts of additional arguments before passing them to the
6269 # linker. It appears as though 1/2 is a usable value.
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271 fi
6272 ;;
6273 esac
6274
6275 fi
6276
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282 $as_echo "none" >&6; }
6283 fi
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6285
6286
6287
6288
6289
6290
6291 : ${CP="cp -f"}
6292 : ${MV="mv -f"}
6293 : ${RM="rm -f"}
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6298 xsi_shell=no
6299 ( _lt_dummy="a/b/c"
6300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301 = c,a/b,, \
6302 && eval 'test $(( 1 + 1 )) -eq 2 \
6303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304 && xsi_shell=yes
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311 lt_shell_append=no
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313 >/dev/null 2>&1 \
6314 && lt_shell_append=yes
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6317
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320 lt_unset=unset
6321 else
6322 lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6335 ;;
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6339 ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if ${lt_cv_ld_reload_flag+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 lt_cv_ld_reload_flag='-r'
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6361 "" | " "*) ;;
6362 *) reload_flag=" $reload_flag" ;;
6363 esac
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 case $host_os in
6366 darwin*)
6367 if test "$GCC" = yes; then
6368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369 else
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371 fi
6372 ;;
6373 esac
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_OBJDUMP+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$OBJDUMP"; then
6392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423 ac_ct_OBJDUMP=$OBJDUMP
6424 # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$ac_ct_OBJDUMP"; then
6432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460 if test "x$ac_ct_OBJDUMP" = x; then
6461 OBJDUMP="false"
6462 else
6463 case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469 OBJDUMP=$ac_ct_OBJDUMP
6470 fi
6471 else
6472 OBJDUMP="$ac_cv_prog_OBJDUMP"
6473 fi
6474
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if ${lt_cv_deplibs_check_method+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6503
6504 case $host_os in
6505 aix[4-9]*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 beos*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 bsdi[45]*)
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515 lt_cv_file_magic_cmd='/usr/bin/file -L'
6516 lt_cv_file_magic_test_file=/shlib/libc.so
6517 ;;
6518
6519 cygwin*)
6520 # func_win32_libid is a shell function defined in ltmain.sh
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6523 ;;
6524
6525 mingw* | pw32*)
6526 # Base MSYS/MinGW do not provide the 'file' command needed by
6527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528 # unless we find 'file', for example because we are cross-compiling.
6529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6530 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532 lt_cv_file_magic_cmd='func_win32_libid'
6533 else
6534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6535 lt_cv_file_magic_cmd='$OBJDUMP -f'
6536 fi
6537 ;;
6538
6539 cegcc*)
6540 # use the weaker test based on 'objdump'. See mingw*.
6541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6542 lt_cv_file_magic_cmd='$OBJDUMP -f'
6543 ;;
6544
6545 darwin* | rhapsody*)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548
6549 freebsd* | dragonfly*)
6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551 case $host_cpu in
6552 i*86 )
6553 # Not sure whether the presence of OpenBSD here was a mistake.
6554 # Let's accept both of them until this is cleared up.
6555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6556 lt_cv_file_magic_cmd=/usr/bin/file
6557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6558 ;;
6559 esac
6560 else
6561 lt_cv_deplibs_check_method=pass_all
6562 fi
6563 ;;
6564
6565 gnu*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 haiku*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573 hpux10.20* | hpux11*)
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 case $host_cpu in
6576 ia64*)
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6579 ;;
6580 hppa*64*)
6581 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]'
6582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6583 ;;
6584 *)
6585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6587 ;;
6588 esac
6589 ;;
6590
6591 interix[3-9]*)
6592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6594 ;;
6595
6596 irix5* | irix6* | nonstopux*)
6597 case $LD in
6598 *-32|*"-32 ") libmagic=32-bit;;
6599 *-n32|*"-n32 ") libmagic=N32;;
6600 *-64|*"-64 ") libmagic=64-bit;;
6601 *) libmagic=never-match;;
6602 esac
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 # This must be Linux ELF.
6607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 netbsd*)
6612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6614 else
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6616 fi
6617 ;;
6618
6619 newos6*)
6620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621 lt_cv_file_magic_cmd=/usr/bin/file
6622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6623 ;;
6624
6625 *nto* | *qnx*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 openbsd*)
6630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6632 else
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634 fi
6635 ;;
6636
6637 osf3* | osf4* | osf5*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641 rdos*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 solaris*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 sysv4 | sysv4.3*)
6654 case $host_vendor in
6655 motorola)
6656 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]'
6657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6658 ;;
6659 ncr)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662 sequent)
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6665 ;;
6666 sni)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6669 lt_cv_file_magic_test_file=/lib/libc.so
6670 ;;
6671 siemens)
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
6674 pc)
6675 lt_cv_deplibs_check_method=pass_all
6676 ;;
6677 esac
6678 ;;
6679
6680 tpf*)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 esac
6684
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6688 file_magic_cmd=$lt_cv_file_magic_cmd
6689 deplibs_check_method=$lt_cv_deplibs_check_method
6690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}ar; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_AR+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$AR"; then
6712 ac_cv_prog_AR="$AR" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_AR="${ac_tool_prefix}ar"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 AR=$ac_cv_prog_AR
6732 if test -n "$AR"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6734 $as_echo "$AR" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740
6741 fi
6742 if test -z "$ac_cv_prog_AR"; then
6743 ac_ct_AR=$AR
6744 # Extract the first word of "ar", so it can be a program name with args.
6745 set dummy ar; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$ac_ct_AR"; then
6752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_AR="ar"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774 $as_echo "$ac_ct_AR" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780 if test "x$ac_ct_AR" = x; then
6781 AR="false"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 AR=$ac_ct_AR
6790 fi
6791 else
6792 AR="$ac_cv_prog_AR"
6793 fi
6794
6795 test -z "$AR" && AR=ar
6796 test -z "$AR_FLAGS" && AR_FLAGS=cru
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}strip; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_STRIP+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$STRIP"; then
6817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 STRIP=$ac_cv_prog_STRIP
6837 if test -n "$STRIP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6839 $as_echo "$STRIP" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_STRIP"; then
6848 ac_ct_STRIP=$STRIP
6849 # Extract the first word of "strip", so it can be a program name with args.
6850 set dummy strip; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_STRIP"; then
6857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_STRIP="strip"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6877 if test -n "$ac_ct_STRIP"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6879 $as_echo "$ac_ct_STRIP" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885 if test "x$ac_ct_STRIP" = x; then
6886 STRIP=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 STRIP=$ac_ct_STRIP
6895 fi
6896 else
6897 STRIP="$ac_cv_prog_STRIP"
6898 fi
6899
6900 test -z "$STRIP" && STRIP=:
6901
6902
6903
6904
6905
6906
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_RANLIB+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$RANLIB"; then
6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 RANLIB=$ac_cv_prog_RANLIB
6936 if test -n "$RANLIB"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6938 $as_echo "$RANLIB" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_RANLIB"; then
6947 ac_ct_RANLIB=$RANLIB
6948 # Extract the first word of "ranlib", so it can be a program name with args.
6949 set dummy ranlib; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_RANLIB"; then
6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_ac_ct_RANLIB="ranlib"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976 if test -n "$ac_ct_RANLIB"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6978 $as_echo "$ac_ct_RANLIB" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984 if test "x$ac_ct_RANLIB" = x; then
6985 RANLIB=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 RANLIB=$ac_ct_RANLIB
6994 fi
6995 else
6996 RANLIB="$ac_cv_prog_RANLIB"
6997 fi
6998
6999 test -z "$RANLIB" && RANLIB=:
7000
7001
7002
7003
7004
7005
7006 # Determine commands to create old-style static archives.
7007 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7008 old_postinstall_cmds='chmod 644 $oldlib'
7009 old_postuninstall_cmds=
7010
7011 if test -n "$RANLIB"; then
7012 case $host_os in
7013 openbsd*)
7014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7015 ;;
7016 *)
7017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7018 ;;
7019 esac
7020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7021 fi
7022
7023 case $host_os in
7024 darwin*)
7025 lock_old_archive_extraction=yes ;;
7026 *)
7027 lock_old_archive_extraction=no ;;
7028 esac
7029
7030
7031
7032
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 # If no C compiler was specified, use CC.
7069 LTCC=${LTCC-"$CC"}
7070
7071 # If no C compiler flags were specified, use CFLAGS.
7072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7073
7074 # Allow CC to be a program name with arguments.
7075 compiler=$CC
7076
7077
7078 # Check for command to grab the raw symbol name followed by C symbol from nm.
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7080 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7081 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084
7085 # These are sane defaults that work on at least a few old systems.
7086 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7087
7088 # Character class describing NM global symbol codes.
7089 symcode='[BCDEGRST]'
7090
7091 # Regexp to match symbols that can be accessed directly from C.
7092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7093
7094 # Define system-specific variables.
7095 case $host_os in
7096 aix*)
7097 symcode='[BCDT]'
7098 ;;
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 symcode='[ABCDGISTW]'
7101 ;;
7102 hpux*)
7103 if test "$host_cpu" = ia64; then
7104 symcode='[ABCDEGRST]'
7105 fi
7106 ;;
7107 irix* | nonstopux*)
7108 symcode='[BCDEGRST]'
7109 ;;
7110 osf*)
7111 symcode='[BCDEGQRST]'
7112 ;;
7113 solaris*)
7114 symcode='[BDRT]'
7115 ;;
7116 sco3.2v5*)
7117 symcode='[DT]'
7118 ;;
7119 sysv4.2uw2*)
7120 symcode='[DT]'
7121 ;;
7122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7123 symcode='[ABDT]'
7124 ;;
7125 sysv4)
7126 symcode='[DFNSTU]'
7127 ;;
7128 esac
7129
7130 # If we're using GNU nm, then use its standard symbol codes.
7131 case `$NM -V 2>&1` in
7132 *GNU* | *'with BFD'*)
7133 symcode='[ABCDGIRSTW]' ;;
7134 esac
7135
7136 # Transform an extracted symbol line into a proper C declaration.
7137 # Some systems (esp. on ia64) link data and code symbols differently,
7138 # so use this general approach.
7139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7140
7141 # Transform an extracted symbol line into symbol name and symbol address
7142 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7144
7145 # Handle CRLF in mingw tool chain
7146 opt_cr=
7147 case $build_os in
7148 mingw*)
7149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7150 ;;
7151 esac
7152
7153 # Try without a prefix underscore, then with it.
7154 for ac_symprfx in "" "_"; do
7155
7156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7157 symxfrm="\\1 $ac_symprfx\\2 \\2"
7158
7159 # Write the raw and C identifiers.
7160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7161 # Fake it for dumpbin and say T for any non-static function
7162 # and D for any global variable.
7163 # Also find C++ and __fastcall symbols from MSVC++,
7164 # which start with @ or ?.
7165 lt_cv_sys_global_symbol_pipe="$AWK '"\
7166 " {last_section=section; section=\$ 3};"\
7167 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7168 " \$ 0!~/External *\|/{next};"\
7169 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7170 " {if(hide[section]) next};"\
7171 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7172 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7173 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7174 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7175 " ' prfx=^$ac_symprfx"
7176 else
7177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7178 fi
7179
7180 # Check to see that the pipe works correctly.
7181 pipe_works=no
7182
7183 rm -f conftest*
7184 cat > conftest.$ac_ext <<_LT_EOF
7185 #ifdef __cplusplus
7186 extern "C" {
7187 #endif
7188 char nm_test_var;
7189 void nm_test_func(void);
7190 void nm_test_func(void){}
7191 #ifdef __cplusplus
7192 }
7193 #endif
7194 int main(){nm_test_var='a';nm_test_func();return(0);}
7195 _LT_EOF
7196
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 # Now try to grab the symbols.
7203 nlist=conftest.nm
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; } && test -s "$nlist"; then
7209 # Try sorting and uniquifying the output.
7210 if sort "$nlist" | uniq > "$nlist"T; then
7211 mv -f "$nlist"T "$nlist"
7212 else
7213 rm -f "$nlist"T
7214 fi
7215
7216 # Make sure that we snagged all the symbols we need.
7217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7219 cat <<_LT_EOF > conftest.$ac_ext
7220 #ifdef __cplusplus
7221 extern "C" {
7222 #endif
7223
7224 _LT_EOF
7225 # Now generate the symbol file.
7226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7227
7228 cat <<_LT_EOF >> conftest.$ac_ext
7229
7230 /* The mapping between symbol names and symbols. */
7231 const struct {
7232 const char *name;
7233 void *address;
7234 }
7235 lt__PROGRAM__LTX_preloaded_symbols[] =
7236 {
7237 { "@PROGRAM@", (void *) 0 },
7238 _LT_EOF
7239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7240 cat <<\_LT_EOF >> conftest.$ac_ext
7241 {0, (void *) 0}
7242 };
7243
7244 /* This works around a problem in FreeBSD linker */
7245 #ifdef FREEBSD_WORKAROUND
7246 static const void *lt_preloaded_setup() {
7247 return lt__PROGRAM__LTX_preloaded_symbols;
7248 }
7249 #endif
7250
7251 #ifdef __cplusplus
7252 }
7253 #endif
7254 _LT_EOF
7255 # Now try linking the two files.
7256 mv conftest.$ac_objext conftstm.$ac_objext
7257 lt_save_LIBS="$LIBS"
7258 lt_save_CFLAGS="$CFLAGS"
7259 LIBS="conftstm.$ac_objext"
7260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7262 (eval $ac_link) 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7266 pipe_works=yes
7267 fi
7268 LIBS="$lt_save_LIBS"
7269 CFLAGS="$lt_save_CFLAGS"
7270 else
7271 echo "cannot find nm_test_func in $nlist" >&5
7272 fi
7273 else
7274 echo "cannot find nm_test_var in $nlist" >&5
7275 fi
7276 else
7277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7278 fi
7279 else
7280 echo "$progname: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7282 fi
7283 rm -rf conftest* conftst*
7284
7285 # Do not use the global_symbol_pipe unless it works.
7286 if test "$pipe_works" = yes; then
7287 break
7288 else
7289 lt_cv_sys_global_symbol_pipe=
7290 fi
7291 done
7292
7293 fi
7294
7295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7296 lt_cv_sys_global_symbol_to_cdecl=
7297 fi
7298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7300 $as_echo "failed" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7303 $as_echo "ok" >&6; }
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then :
7329 enableval=$enable_libtool_lock;
7330 fi
7331
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7333
7334 # Some flags need to be propagated to the compiler or linker for good
7335 # libtool support.
7336 case $host in
7337 ia64-*-hpux*)
7338 # Find out which ABI we are using.
7339 echo 'int i;' > conftest.$ac_ext
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341 (eval $ac_compile) 2>&5
7342 ac_status=$?
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; then
7345 case `/usr/bin/file conftest.$ac_objext` in
7346 *ELF-32*)
7347 HPUX_IA64_MODE="32"
7348 ;;
7349 *ELF-64*)
7350 HPUX_IA64_MODE="64"
7351 ;;
7352 esac
7353 fi
7354 rm -rf conftest*
7355 ;;
7356 *-*-irix6*)
7357 # Find out which ABI we are using.
7358 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360 (eval $ac_compile) 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }; then
7364 if test "$lt_cv_prog_gnu_ld" = yes; then
7365 case `/usr/bin/file conftest.$ac_objext` in
7366 *32-bit*)
7367 LD="${LD-ld} -melf32bsmip"
7368 ;;
7369 *N32*)
7370 LD="${LD-ld} -melf32bmipn32"
7371 ;;
7372 *64-bit*)
7373 LD="${LD-ld} -melf64bmip"
7374 ;;
7375 esac
7376 else
7377 case `/usr/bin/file conftest.$ac_objext` in
7378 *32-bit*)
7379 LD="${LD-ld} -32"
7380 ;;
7381 *N32*)
7382 LD="${LD-ld} -n32"
7383 ;;
7384 *64-bit*)
7385 LD="${LD-ld} -64"
7386 ;;
7387 esac
7388 fi
7389 fi
7390 rm -rf conftest*
7391 ;;
7392
7393 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7394 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7395 # Find out which ABI we are using.
7396 echo 'int i;' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7399 ac_status=$?
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 case `/usr/bin/file conftest.o` in
7403 *32-bit*)
7404 case $host in
7405 x86_64-*kfreebsd*-gnu)
7406 LD="${LD-ld} -m elf_i386_fbsd"
7407 ;;
7408 x86_64-*linux*)
7409 case `/usr/bin/file conftest.o` in
7410 *x86-64*)
7411 LD="${LD-ld} -m elf32_x86_64"
7412 ;;
7413 *)
7414 LD="${LD-ld} -m elf_i386"
7415 ;;
7416 esac
7417 ;;
7418 powerpc64le-*linux*)
7419 LD="${LD-ld} -m elf32lppclinux"
7420 ;;
7421 powerpc64-*linux*)
7422 LD="${LD-ld} -m elf32ppclinux"
7423 ;;
7424 s390x-*linux*)
7425 LD="${LD-ld} -m elf_s390"
7426 ;;
7427 sparc64-*linux*)
7428 LD="${LD-ld} -m elf32_sparc"
7429 ;;
7430 esac
7431 ;;
7432 *64-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_x86_64_fbsd"
7436 ;;
7437 x86_64-*linux*)
7438 LD="${LD-ld} -m elf_x86_64"
7439 ;;
7440 powerpcle-*linux*)
7441 LD="${LD-ld} -m elf64lppc"
7442 ;;
7443 powerpc-*linux*)
7444 LD="${LD-ld} -m elf64ppc"
7445 ;;
7446 s390*-*linux*|s390*-*tpf*)
7447 LD="${LD-ld} -m elf64_s390"
7448 ;;
7449 sparc*-*linux*)
7450 LD="${LD-ld} -m elf64_sparc"
7451 ;;
7452 esac
7453 ;;
7454 esac
7455 fi
7456 rm -rf conftest*
7457 ;;
7458
7459 *-*-sco3.2v5*)
7460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7461 SAVE_CFLAGS="$CFLAGS"
7462 CFLAGS="$CFLAGS -belf"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7464 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7465 if ${lt_cv_cc_needs_belf+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 ac_ext=c
7469 ac_cpp='$CPP $CPPFLAGS'
7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476
7477 int
7478 main ()
7479 {
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 lt_cv_cc_needs_belf=yes
7487 else
7488 lt_cv_cc_needs_belf=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7500 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7501 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7502 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503 CFLAGS="$SAVE_CFLAGS"
7504 fi
7505 ;;
7506 sparc*-*solaris*)
7507 # Find out which ABI we are using.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.o` in
7515 *64-bit*)
7516 case $lt_cv_prog_gnu_ld in
7517 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7518 *)
7519 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7520 LD="${LD-ld} -64"
7521 fi
7522 ;;
7523 esac
7524 ;;
7525 esac
7526 fi
7527 rm -rf conftest*
7528 ;;
7529 esac
7530
7531 need_locks="$enable_libtool_lock"
7532
7533
7534 case $host_os in
7535 rhapsody* | darwin*)
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$DSYMUTIL"; then
7545 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7565 if test -n "$DSYMUTIL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7567 $as_echo "$DSYMUTIL" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_DSYMUTIL"; then
7576 ac_ct_DSYMUTIL=$DSYMUTIL
7577 # Extract the first word of "dsymutil", so it can be a program name with args.
7578 set dummy dsymutil; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_DSYMUTIL"; then
7585 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7605 if test -n "$ac_ct_DSYMUTIL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7607 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613 if test "x$ac_ct_DSYMUTIL" = x; then
7614 DSYMUTIL=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 DSYMUTIL=$ac_ct_DSYMUTIL
7623 fi
7624 else
7625 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7626 fi
7627
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_NMEDIT+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 if test -n "$NMEDIT"; then
7637 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 NMEDIT=$ac_cv_prog_NMEDIT
7657 if test -n "$NMEDIT"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7659 $as_echo "$NMEDIT" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_NMEDIT"; then
7668 ac_ct_NMEDIT=$NMEDIT
7669 # Extract the first word of "nmedit", so it can be a program name with args.
7670 set dummy nmedit; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$ac_ct_NMEDIT"; then
7677 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7697 if test -n "$ac_ct_NMEDIT"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7699 $as_echo "$ac_ct_NMEDIT" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705 if test "x$ac_ct_NMEDIT" = x; then
7706 NMEDIT=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 NMEDIT=$ac_ct_NMEDIT
7715 fi
7716 else
7717 NMEDIT="$ac_cv_prog_NMEDIT"
7718 fi
7719
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_LIPO+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$LIPO"; then
7729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 LIPO=$ac_cv_prog_LIPO
7749 if test -n "$LIPO"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7751 $as_echo "$LIPO" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 fi
7759 if test -z "$ac_cv_prog_LIPO"; then
7760 ac_ct_LIPO=$LIPO
7761 # Extract the first word of "lipo", so it can be a program name with args.
7762 set dummy lipo; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$ac_ct_LIPO"; then
7769 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_ac_ct_LIPO="lipo"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7789 if test -n "$ac_ct_LIPO"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7791 $as_echo "$ac_ct_LIPO" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797 if test "x$ac_ct_LIPO" = x; then
7798 LIPO=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 LIPO=$ac_ct_LIPO
7807 fi
7808 else
7809 LIPO="$ac_cv_prog_LIPO"
7810 fi
7811
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}otool; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_OTOOL+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$OTOOL"; then
7821 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834 done
7835 done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 OTOOL=$ac_cv_prog_OTOOL
7841 if test -n "$OTOOL"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7843 $as_echo "$OTOOL" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850 fi
7851 if test -z "$ac_cv_prog_OTOOL"; then
7852 ac_ct_OTOOL=$OTOOL
7853 # Extract the first word of "otool", so it can be a program name with args.
7854 set dummy otool; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$ac_ct_OTOOL"; then
7861 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_OTOOL="otool"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7881 if test -n "$ac_ct_OTOOL"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7883 $as_echo "$ac_ct_OTOOL" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889 if test "x$ac_ct_OTOOL" = x; then
7890 OTOOL=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898 OTOOL=$ac_ct_OTOOL
7899 fi
7900 else
7901 OTOOL="$ac_cv_prog_OTOOL"
7902 fi
7903
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if ${ac_cv_prog_OTOOL64+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 if test -n "$OTOOL64"; then
7913 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 OTOOL64=$ac_cv_prog_OTOOL64
7933 if test -n "$OTOOL64"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7935 $as_echo "$OTOOL64" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942 fi
7943 if test -z "$ac_cv_prog_OTOOL64"; then
7944 ac_ct_OTOOL64=$OTOOL64
7945 # Extract the first word of "otool64", so it can be a program name with args.
7946 set dummy otool64; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$ac_ct_OTOOL64"; then
7953 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_ac_ct_OTOOL64="otool64"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7973 if test -n "$ac_ct_OTOOL64"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7975 $as_echo "$ac_ct_OTOOL64" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981 if test "x$ac_ct_OTOOL64" = x; then
7982 OTOOL64=":"
7983 else
7984 case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990 OTOOL64=$ac_ct_OTOOL64
7991 fi
7992 else
7993 OTOOL64="$ac_cv_prog_OTOOL64"
7994 fi
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8023 $as_echo_n "checking for -single_module linker flag... " >&6; }
8024 if ${lt_cv_apple_cc_single_mod+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 lt_cv_apple_cc_single_mod=no
8028 if test -z "${LT_MULTI_MODULE}"; then
8029 # By default we will add the -single_module flag. You can override
8030 # by either setting the environment variable LT_MULTI_MODULE
8031 # non-empty at configure time, or by adding -multi_module to the
8032 # link flags.
8033 rm -rf libconftest.dylib*
8034 echo "int foo(void){return 1;}" > conftest.c
8035 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036 -dynamiclib -Wl,-single_module conftest.c" >&5
8037 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8039 _lt_result=$?
8040 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8041 lt_cv_apple_cc_single_mod=yes
8042 else
8043 cat conftest.err >&5
8044 fi
8045 rm -rf libconftest.dylib*
8046 rm -f conftest.*
8047 fi
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8050 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8052 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8053 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 lt_cv_ld_exported_symbols_list=no
8057 save_LDFLAGS=$LDFLAGS
8058 echo "_main" > conftest.sym
8059 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062
8063 int
8064 main ()
8065 {
8066
8067 ;
8068 return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 lt_cv_ld_exported_symbols_list=yes
8073 else
8074 lt_cv_ld_exported_symbols_list=no
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LDFLAGS="$save_LDFLAGS"
8079
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8082 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8084 $as_echo_n "checking for -force_load linker flag... " >&6; }
8085 if ${lt_cv_ld_force_load+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 lt_cv_ld_force_load=no
8089 cat > conftest.c << _LT_EOF
8090 int forced_loaded() { return 2;}
8091 _LT_EOF
8092 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8093 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094 echo "$AR cru libconftest.a conftest.o" >&5
8095 $AR cru libconftest.a conftest.o 2>&5
8096 cat > conftest.c << _LT_EOF
8097 int main() { return 0;}
8098 _LT_EOF
8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8100 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8101 _lt_result=$?
8102 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8103 lt_cv_ld_force_load=yes
8104 else
8105 cat conftest.err >&5
8106 fi
8107 rm -f conftest.err libconftest.a conftest conftest.c
8108 rm -rf conftest.dSYM
8109
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8112 $as_echo "$lt_cv_ld_force_load" >&6; }
8113 case $host_os in
8114 rhapsody* | darwin1.[012])
8115 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8116 darwin1.*)
8117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8118 darwin*) # darwin 5.x on
8119 # if running on 10.5 or later, the deployment target defaults
8120 # to the OS version, if on x86, and 10.4, the deployment
8121 # target defaults to 10.4. Don't you love it?
8122 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8123 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8125 10.[012][,.]*)
8126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127 10.*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129 esac
8130 ;;
8131 esac
8132 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8133 _lt_dar_single_mod='$single_module'
8134 fi
8135 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8136 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8137 else
8138 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8139 fi
8140 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8141 _lt_dsymutil='~$DSYMUTIL $lib || :'
8142 else
8143 _lt_dsymutil=
8144 fi
8145 ;;
8146 esac
8147
8148 for ac_header in dlfcn.h
8149 do :
8150 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8151 "
8152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DLFCN_H 1
8155 _ACEOF
8156
8157 fi
8158
8159 done
8160
8161
8162
8163
8164
8165 # Set options
8166 enable_dlopen=yes
8167
8168
8169
8170
8171 enable_win32_dll=no
8172
8173
8174 # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176 enableval=$enable_shared; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_shared=yes ;;
8179 no) enable_shared=no ;;
8180 *)
8181 enable_shared=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_shared=yes
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 ;;
8192 esac
8193 else
8194 enable_shared=yes
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205 # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207 enableval=$enable_static; p=${PACKAGE-default}
8208 case $enableval in
8209 yes) enable_static=yes ;;
8210 no) enable_static=no ;;
8211 *)
8212 enable_static=no
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for pkg in $enableval; do
8216 IFS="$lt_save_ifs"
8217 if test "X$pkg" = "X$p"; then
8218 enable_static=yes
8219 fi
8220 done
8221 IFS="$lt_save_ifs"
8222 ;;
8223 esac
8224 else
8225 enable_static=yes
8226 fi
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239 withval=$with_pic; pic_mode="$withval"
8240 else
8241 pic_mode=default
8242 fi
8243
8244
8245 test -z "$pic_mode" && pic_mode=default
8246
8247
8248
8249
8250
8251
8252
8253 # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255 enableval=$enable_fast_install; p=${PACKAGE-default}
8256 case $enableval in
8257 yes) enable_fast_install=yes ;;
8258 no) enable_fast_install=no ;;
8259 *)
8260 enable_fast_install=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8264 IFS="$lt_save_ifs"
8265 if test "X$pkg" = "X$p"; then
8266 enable_fast_install=yes
8267 fi
8268 done
8269 IFS="$lt_save_ifs"
8270 ;;
8271 esac
8272 else
8273 enable_fast_install=yes
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8288
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 test -z "$LN_S" && LN_S="ln -s"
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 if test -n "${ZSH_VERSION+set}" ; then
8333 setopt NO_GLOB_SUBST
8334 fi
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8337 $as_echo_n "checking for objdir... " >&6; }
8338 if ${lt_cv_objdir+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 rm -f .libs 2>/dev/null
8342 mkdir .libs 2>/dev/null
8343 if test -d .libs; then
8344 lt_cv_objdir=.libs
8345 else
8346 # MS-DOS does not allow filenames that begin with a dot.
8347 lt_cv_objdir=_libs
8348 fi
8349 rmdir .libs 2>/dev/null
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8352 $as_echo "$lt_cv_objdir" >&6; }
8353 objdir=$lt_cv_objdir
8354
8355
8356
8357
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define LT_OBJDIR "$lt_cv_objdir/"
8361 _ACEOF
8362
8363
8364
8365
8366 case $host_os in
8367 aix3*)
8368 # AIX sometimes has problems with the GCC collect2 program. For some
8369 # reason, if we set the COLLECT_NAMES environment variable, the problems
8370 # vanish in a puff of smoke.
8371 if test "X${COLLECT_NAMES+set}" != Xset; then
8372 COLLECT_NAMES=
8373 export COLLECT_NAMES
8374 fi
8375 ;;
8376 esac
8377
8378 # Global variables:
8379 ofile=libtool
8380 can_build_shared=yes
8381
8382 # All known linkers require a `.a' archive for static linking (except MSVC,
8383 # which needs '.lib').
8384 libext=a
8385
8386 with_gnu_ld="$lt_cv_prog_gnu_ld"
8387
8388 old_CC="$CC"
8389 old_CFLAGS="$CFLAGS"
8390
8391 # Set sane defaults for various variables
8392 test -z "$CC" && CC=cc
8393 test -z "$LTCC" && LTCC=$CC
8394 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8395 test -z "$LD" && LD=ld
8396 test -z "$ac_objext" && ac_objext=o
8397
8398 for cc_temp in $compiler""; do
8399 case $cc_temp in
8400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8402 \-*) ;;
8403 *) break;;
8404 esac
8405 done
8406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8407
8408
8409 # Only perform the check for file, if the check method requires it
8410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8411 case $deplibs_check_method in
8412 file_magic*)
8413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8415 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 case $MAGIC_CMD in
8420 [\\/*] | ?:[\\/]*)
8421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8422 ;;
8423 *)
8424 lt_save_MAGIC_CMD="$MAGIC_CMD"
8425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8427 for ac_dir in $ac_dummy; do
8428 IFS="$lt_save_ifs"
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/${ac_tool_prefix}file; then
8431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8432 if test -n "$file_magic_test_file"; then
8433 case $deplibs_check_method in
8434 "file_magic "*)
8435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8438 $EGREP "$file_magic_regex" > /dev/null; then
8439 :
8440 else
8441 cat <<_LT_EOF 1>&2
8442
8443 *** Warning: the command libtool uses to detect shared libraries,
8444 *** $file_magic_cmd, produces output that libtool cannot recognize.
8445 *** The result is that libtool may fail to recognize shared libraries
8446 *** as such. This will affect the creation of libtool libraries that
8447 *** depend on shared libraries, but programs linked with such libtool
8448 *** libraries will work regardless of this problem. Nevertheless, you
8449 *** may want to report the problem to your system manager and/or to
8450 *** bug-libtool@gnu.org
8451
8452 _LT_EOF
8453 fi ;;
8454 esac
8455 fi
8456 break
8457 fi
8458 done
8459 IFS="$lt_save_ifs"
8460 MAGIC_CMD="$lt_save_MAGIC_CMD"
8461 ;;
8462 esac
8463 fi
8464
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if test -n "$MAGIC_CMD"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8468 $as_echo "$MAGIC_CMD" >&6; }
8469 else
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8472 fi
8473
8474
8475
8476
8477
8478 if test -z "$lt_cv_path_MAGIC_CMD"; then
8479 if test -n "$ac_tool_prefix"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8481 $as_echo_n "checking for file... " >&6; }
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 case $MAGIC_CMD in
8486 [\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8488 ;;
8489 *)
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8505 :
8506 else
8507 cat <<_LT_EOF 1>&2
8508
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8517
8518 _LT_EOF
8519 fi ;;
8520 esac
8521 fi
8522 break
8523 fi
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8527 ;;
8528 esac
8529 fi
8530
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8534 $as_echo "$MAGIC_CMD" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541 else
8542 MAGIC_CMD=:
8543 fi
8544 fi
8545
8546 fi
8547 ;;
8548 esac
8549
8550 # Use C for the default configuration in the libtool script
8551
8552 lt_save_CC="$CC"
8553 ac_ext=c
8554 ac_cpp='$CPP $CPPFLAGS'
8555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8558
8559
8560 # Source file extension for C test sources.
8561 ac_ext=c
8562
8563 # Object file extension for compiled C test sources.
8564 objext=o
8565 objext=$objext
8566
8567 # Code to be used in simple compile tests
8568 lt_simple_compile_test_code="int some_variable = 0;"
8569
8570 # Code to be used in simple link tests
8571 lt_simple_link_test_code='int main(){return(0);}'
8572
8573
8574
8575
8576
8577
8578
8579 # If no C compiler was specified, use CC.
8580 LTCC=${LTCC-"$CC"}
8581
8582 # If no C compiler flags were specified, use CFLAGS.
8583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8584
8585 # Allow CC to be a program name with arguments.
8586 compiler=$CC
8587
8588 # Save the default compiler, since it gets overwritten when the other
8589 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8590 compiler_DEFAULT=$CC
8591
8592 # save warnings/boilerplate of simple test code
8593 ac_outfile=conftest.$ac_objext
8594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8596 _lt_compiler_boilerplate=`cat conftest.err`
8597 $RM conftest*
8598
8599 ac_outfile=conftest.$ac_objext
8600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602 _lt_linker_boilerplate=`cat conftest.err`
8603 $RM -r conftest*
8604
8605
8606 ## CAVEAT EMPTOR:
8607 ## There is no encapsulation within the following macros, do not change
8608 ## the running order or otherwise move them around unless you know exactly
8609 ## what you are doing...
8610 if test -n "$compiler"; then
8611
8612 lt_prog_compiler_no_builtin_flag=
8613
8614 if test "$GCC" = yes; then
8615 case $cc_basename in
8616 nvcc*)
8617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8618 *)
8619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620 esac
8621
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 lt_cv_prog_compiler_rtti_exceptions=no
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630 lt_compiler_flag="-fno-rtti -fno-exceptions"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 # The option is referenced via a variable to avoid confusing sed.
8636 lt_compile=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>conftest.err)
8642 ac_status=$?
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 if (exit $ac_status) && test -s "$ac_outfile"; then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings other than the usual output.
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_rtti_exceptions=yes
8652 fi
8653 fi
8654 $RM conftest*
8655
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8659
8660 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662 else
8663 :
8664 fi
8665
8666 fi
8667
8668
8669
8670
8671
8672
8673 lt_prog_compiler_wl=
8674 lt_prog_compiler_pic=
8675 lt_prog_compiler_static=
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8679
8680 if test "$GCC" = yes; then
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_static='-static'
8683
8684 case $host_os in
8685 aix*)
8686 # All AIX code is PIC.
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8690 fi
8691 lt_prog_compiler_pic='-fPIC'
8692 ;;
8693
8694 amigaos*)
8695 case $host_cpu in
8696 powerpc)
8697 # see comment about AmigaOS4 .so support
8698 lt_prog_compiler_pic='-fPIC'
8699 ;;
8700 m68k)
8701 # FIXME: we need at least 68020 code to build shared libraries, but
8702 # adding the `-m68020' flag to GCC prevents building anything better,
8703 # like `-m68040'.
8704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8705 ;;
8706 esac
8707 ;;
8708
8709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8710 # PIC is the default for these OSes.
8711 ;;
8712
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8717 # (--disable-auto-import) libraries
8718 lt_prog_compiler_pic='-DDLL_EXPORT'
8719 ;;
8720
8721 darwin* | rhapsody*)
8722 # PIC is the default on this platform
8723 # Common symbols not allowed in MH_DYLIB files
8724 lt_prog_compiler_pic='-fno-common'
8725 ;;
8726
8727 haiku*)
8728 # PIC is the default for Haiku.
8729 # The "-static" flag exists, but is broken.
8730 lt_prog_compiler_static=
8731 ;;
8732
8733 hpux*)
8734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8736 # sets the default TLS model and affects inlining.
8737 case $host_cpu in
8738 hppa*64*)
8739 # +Z the default
8740 ;;
8741 *)
8742 lt_prog_compiler_pic='-fPIC'
8743 ;;
8744 esac
8745 ;;
8746
8747 interix[3-9]*)
8748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749 # Instead, we relocate shared libraries at runtime.
8750 ;;
8751
8752 msdosdjgpp*)
8753 # Just because we use GCC doesn't mean we suddenly get shared libraries
8754 # on systems that don't support them.
8755 lt_prog_compiler_can_build_shared=no
8756 enable_shared=no
8757 ;;
8758
8759 *nto* | *qnx*)
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8761 # it will coredump.
8762 lt_prog_compiler_pic='-fPIC -shared'
8763 ;;
8764
8765 sysv4*MP*)
8766 if test -d /usr/nec; then
8767 lt_prog_compiler_pic=-Kconform_pic
8768 fi
8769 ;;
8770
8771 *)
8772 lt_prog_compiler_pic='-fPIC'
8773 ;;
8774 esac
8775
8776 case $cc_basename in
8777 nvcc*) # Cuda Compiler Driver 2.2
8778 lt_prog_compiler_wl='-Xlinker '
8779 lt_prog_compiler_pic='-Xcompiler -fPIC'
8780 ;;
8781 esac
8782 else
8783 # PORTME Check for flag to pass linker flags through the system compiler.
8784 case $host_os in
8785 aix*)
8786 lt_prog_compiler_wl='-Wl,'
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 now supports IA64 processor
8789 lt_prog_compiler_static='-Bstatic'
8790 else
8791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8792 fi
8793 ;;
8794
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8799 ;;
8800
8801 hpux9* | hpux10* | hpux11*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8804 # not for PA HP-UX.
8805 case $host_cpu in
8806 hppa*64*|ia64*)
8807 # +Z the default
8808 ;;
8809 *)
8810 lt_prog_compiler_pic='+Z'
8811 ;;
8812 esac
8813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8814 lt_prog_compiler_static='${wl}-a ${wl}archive'
8815 ;;
8816
8817 irix5* | irix6* | nonstopux*)
8818 lt_prog_compiler_wl='-Wl,'
8819 # PIC (with -KPIC) is the default.
8820 lt_prog_compiler_static='-non_shared'
8821 ;;
8822
8823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8824 case $cc_basename in
8825 # old Intel for x86_64 which still supported -KPIC.
8826 ecc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8830 ;;
8831 # icc used to be incompatible with GCC.
8832 # ICC 10 doesn't accept -KPIC any more.
8833 icc* | ifort*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8837 ;;
8838 # Lahey Fortran 8.1.
8839 lf95*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='--shared'
8842 lt_prog_compiler_static='--static'
8843 ;;
8844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845 # Portland Group compilers (*not* the Pentium gcc compiler,
8846 # which looks to be a dead project)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851 ccc*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # All Alpha code is PIC.
8854 lt_prog_compiler_static='-non_shared'
8855 ;;
8856 xl* | bgxl* | bgf* | mpixl*)
8857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-qpic'
8860 lt_prog_compiler_static='-qstaticlink'
8861 ;;
8862 *)
8863 case `$CC -V 2>&1 | sed 5q` in
8864 *Sun\ F* | *Sun*Fortran*)
8865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl=''
8869 ;;
8870 *Sun\ C*)
8871 # Sun C 5.9
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8875 ;;
8876 esac
8877 ;;
8878 esac
8879 ;;
8880
8881 newsos6)
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 ;;
8885
8886 *nto* | *qnx*)
8887 # QNX uses GNU C++, but need to define -shared option too, otherwise
8888 # it will coredump.
8889 lt_prog_compiler_pic='-fPIC -shared'
8890 ;;
8891
8892 osf3* | osf4* | osf5*)
8893 lt_prog_compiler_wl='-Wl,'
8894 # All OSF/1 code is PIC.
8895 lt_prog_compiler_static='-non_shared'
8896 ;;
8897
8898 rdos*)
8899 lt_prog_compiler_static='-non_shared'
8900 ;;
8901
8902 solaris*)
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 case $cc_basename in
8906 f77* | f90* | f95*)
8907 lt_prog_compiler_wl='-Qoption ld ';;
8908 *)
8909 lt_prog_compiler_wl='-Wl,';;
8910 esac
8911 ;;
8912
8913 sunos4*)
8914 lt_prog_compiler_wl='-Qoption ld '
8915 lt_prog_compiler_pic='-PIC'
8916 lt_prog_compiler_static='-Bstatic'
8917 ;;
8918
8919 sysv4 | sysv4.2uw2* | sysv4.3*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 sysv4*MP*)
8926 if test -d /usr/nec ;then
8927 lt_prog_compiler_pic='-Kconform_pic'
8928 lt_prog_compiler_static='-Bstatic'
8929 fi
8930 ;;
8931
8932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 ;;
8937
8938 unicos*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_can_build_shared=no
8941 ;;
8942
8943 uts4*)
8944 lt_prog_compiler_pic='-pic'
8945 lt_prog_compiler_static='-Bstatic'
8946 ;;
8947
8948 *)
8949 lt_prog_compiler_can_build_shared=no
8950 ;;
8951 esac
8952 fi
8953
8954 case $host_os in
8955 # For platforms which do not support PIC, -DPIC is meaningless:
8956 *djgpp*)
8957 lt_prog_compiler_pic=
8958 ;;
8959 *)
8960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8961 ;;
8962 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8964 $as_echo "$lt_prog_compiler_pic" >&6; }
8965
8966
8967
8968
8969
8970
8971 #
8972 # Check to make sure the PIC flag actually works.
8973 #
8974 if test -n "$lt_prog_compiler_pic"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8976 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8977 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 lt_cv_prog_compiler_pic_works=no
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984 # Insert the option either (1) after the last *FLAGS variable, or
8985 # (2) before a word containing "conftest.", or (3) at the end.
8986 # Note that $ac_compile itself does not contain backslashes and begins
8987 # with a dollar sign (not a hyphen), so the echo should work correctly.
8988 # The option is referenced via a variable to avoid confusing sed.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>conftest.err)
8995 ac_status=$?
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s "$ac_outfile"; then
8999 # The compiler can only warn and ignore the option if not recognized
9000 # So say no if there are warnings other than the usual output.
9001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004 lt_cv_prog_compiler_pic_works=yes
9005 fi
9006 fi
9007 $RM conftest*
9008
9009 fi
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9012
9013 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014 case $lt_prog_compiler_pic in
9015 "" | " "*) ;;
9016 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9017 esac
9018 else
9019 lt_prog_compiler_pic=
9020 lt_prog_compiler_can_build_shared=no
9021 fi
9022
9023 fi
9024
9025
9026
9027
9028
9029
9030 #
9031 # Check to make sure the static flag actually works.
9032 #
9033 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9035 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9036 if ${lt_cv_prog_compiler_static_works+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler_static_works=no
9040 save_LDFLAGS="$LDFLAGS"
9041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err; then
9047 # Append any errors to the config.log.
9048 cat conftest.err 1>&5
9049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051 if diff conftest.exp conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_static_works=yes
9053 fi
9054 else
9055 lt_cv_prog_compiler_static_works=yes
9056 fi
9057 fi
9058 $RM -r conftest*
9059 LDFLAGS="$save_LDFLAGS"
9060
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9063 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9064
9065 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9066 :
9067 else
9068 lt_prog_compiler_static=
9069 fi
9070
9071
9072
9073
9074
9075
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079 if ${lt_cv_prog_compiler_c_o+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 lt_cv_prog_compiler_c_o=no
9083 $RM -r conftest 2>/dev/null
9084 mkdir conftest
9085 cd conftest
9086 mkdir out
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088
9089 lt_compiler_flag="-o out/conftest2.$ac_objext"
9090 # Insert the option either (1) after the last *FLAGS variable, or
9091 # (2) before a word containing "conftest.", or (3) at the end.
9092 # Note that $ac_compile itself does not contain backslashes and begins
9093 # with a dollar sign (not a hyphen), so the echo should work correctly.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>out/conftest.err)
9100 ac_status=$?
9101 cat out/conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104 then
9105 # The compiler can only warn and ignore the option if not recognized
9106 # So say no if there are warnings
9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler_c_o=yes
9111 fi
9112 fi
9113 chmod u+w . 2>&5
9114 $RM conftest*
9115 # SGI C++ compiler will create directory out/ii_files/ for
9116 # template instantiation
9117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118 $RM out/* && rmdir out
9119 cd ..
9120 $RM -r conftest
9121 $RM conftest*
9122
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9126
9127
9128
9129
9130
9131
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9134 if ${lt_cv_prog_compiler_c_o+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_prog_compiler_c_o=no
9138 $RM -r conftest 2>/dev/null
9139 mkdir conftest
9140 cd conftest
9141 mkdir out
9142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143
9144 lt_compiler_flag="-o out/conftest2.$ac_objext"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 lt_compile=`echo "$ac_compile" | $SED \
9150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152 -e 's:$: $lt_compiler_flag:'`
9153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154 (eval "$lt_compile" 2>out/conftest.err)
9155 ac_status=$?
9156 cat out/conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9159 then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_c_o=yes
9166 fi
9167 fi
9168 chmod u+w . 2>&5
9169 $RM conftest*
9170 # SGI C++ compiler will create directory out/ii_files/ for
9171 # template instantiation
9172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9173 $RM out/* && rmdir out
9174 cd ..
9175 $RM -r conftest
9176 $RM conftest*
9177
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9181
9182
9183
9184
9185 hard_links="nottested"
9186 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9187 # do not overwrite the value of need_locks provided by the user
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9189 $as_echo_n "checking if we can lock with hard links... " >&6; }
9190 hard_links=yes
9191 $RM conftest*
9192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9193 touch conftest.a
9194 ln conftest.a conftest.b 2>&5 || hard_links=no
9195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9197 $as_echo "$hard_links" >&6; }
9198 if test "$hard_links" = no; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9200 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9201 need_locks=warn
9202 fi
9203 else
9204 need_locks=no
9205 fi
9206
9207
9208
9209
9210
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9213 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9214
9215 runpath_var=
9216 allow_undefined_flag=
9217 always_export_symbols=no
9218 archive_cmds=
9219 archive_expsym_cmds=
9220 compiler_needs_object=no
9221 enable_shared_with_static_runtimes=no
9222 export_dynamic_flag_spec=
9223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9224 hardcode_automatic=no
9225 hardcode_direct=no
9226 hardcode_direct_absolute=no
9227 hardcode_libdir_flag_spec=
9228 hardcode_libdir_flag_spec_ld=
9229 hardcode_libdir_separator=
9230 hardcode_minus_L=no
9231 hardcode_shlibpath_var=unsupported
9232 inherit_rpath=no
9233 link_all_deplibs=unknown
9234 module_cmds=
9235 module_expsym_cmds=
9236 old_archive_from_new_cmds=
9237 old_archive_from_expsyms_cmds=
9238 thread_safe_flag_spec=
9239 whole_archive_flag_spec=
9240 # include_expsyms should be a list of space-separated symbols to be *always*
9241 # included in the symbol list
9242 include_expsyms=
9243 # exclude_expsyms can be an extended regexp of symbols to exclude
9244 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9245 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9246 # as well as any symbol that contains `d'.
9247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9249 # platforms (ab)use it in PIC code, but their linkers get confused if
9250 # the symbol is explicitly referenced. Since portable code cannot
9251 # rely on this symbol name, it's probably fine to never include it in
9252 # preloaded symbol tables.
9253 # Exclude shared library initialization/finalization symbols.
9254 extract_expsyms_cmds=
9255
9256 case $host_os in
9257 cygwin* | mingw* | pw32* | cegcc*)
9258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9259 # When not using gcc, we currently assume that we are using
9260 # Microsoft Visual C++.
9261 if test "$GCC" != yes; then
9262 with_gnu_ld=no
9263 fi
9264 ;;
9265 interix*)
9266 # we just hope/assume this is gcc and not c89 (= MSVC++)
9267 with_gnu_ld=yes
9268 ;;
9269 openbsd*)
9270 with_gnu_ld=no
9271 ;;
9272 esac
9273
9274 ld_shlibs=yes
9275
9276 # On some targets, GNU ld is compatible enough with the native linker
9277 # that we're better off using the native interface for both.
9278 lt_use_gnu_ld_interface=no
9279 if test "$with_gnu_ld" = yes; then
9280 case $host_os in
9281 aix*)
9282 # The AIX port of GNU ld has always aspired to compatibility
9283 # with the native linker. However, as the warning in the GNU ld
9284 # block says, versions before 2.19.5* couldn't really create working
9285 # shared libraries, regardless of the interface used.
9286 case `$LD -v 2>&1` in
9287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9289 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9290 *)
9291 lt_use_gnu_ld_interface=yes
9292 ;;
9293 esac
9294 ;;
9295 *)
9296 lt_use_gnu_ld_interface=yes
9297 ;;
9298 esac
9299 fi
9300
9301 if test "$lt_use_gnu_ld_interface" = yes; then
9302 # If archive_cmds runs LD, not CC, wlarc should be empty
9303 wlarc='${wl}'
9304
9305 # Set some defaults for GNU ld with shared library support. These
9306 # are reset later if shared libraries are not supported. Putting them
9307 # here allows them to be overridden if necessary.
9308 runpath_var=LD_RUN_PATH
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 export_dynamic_flag_spec='${wl}--export-dynamic'
9311 # ancient GNU ld didn't support --whole-archive et. al.
9312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9314 else
9315 whole_archive_flag_spec=
9316 fi
9317 supports_anon_versioning=no
9318 case `$LD -v 2>&1` in
9319 *GNU\ gold*) supports_anon_versioning=yes ;;
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323 *\ 2.11.*) ;; # other 2.11 versions
9324 *) supports_anon_versioning=yes ;;
9325 esac
9326
9327 # See if GNU ld supports shared libraries.
9328 case $host_os in
9329 aix[3-9]*)
9330 # On AIX/PPC, the GNU linker is very broken
9331 if test "$host_cpu" != ia64; then
9332 ld_shlibs=no
9333 cat <<_LT_EOF 1>&2
9334
9335 *** Warning: the GNU linker, at least up to release 2.19, is reported
9336 *** to be unable to reliably create shared libraries on AIX.
9337 *** Therefore, libtool is disabling shared libraries support. If you
9338 *** really care for shared libraries, you may want to install binutils
9339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9340 *** You will then need to restart the configuration process.
9341
9342 _LT_EOF
9343 fi
9344 ;;
9345
9346 amigaos*)
9347 case $host_cpu in
9348 powerpc)
9349 # see comment about AmigaOS4 .so support
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 archive_expsym_cmds=''
9352 ;;
9353 m68k)
9354 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)'
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 ;;
9358 esac
9359 ;;
9360
9361 beos*)
9362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 allow_undefined_flag=unsupported
9364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365 # support --undefined. This deserves some investigation. FIXME
9366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 else
9368 ld_shlibs=no
9369 fi
9370 ;;
9371
9372 cygwin* | mingw* | pw32* | cegcc*)
9373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374 # as there is no search path for DLLs.
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 export_dynamic_flag_spec='${wl}--export-all-symbols'
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=no
9379 enable_shared_with_static_runtimes=yes
9380 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9381
9382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 # If the export-symbols file already is a .def file (1st line
9385 # is EXPORTS), use it as is; otherwise, prepend...
9386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9387 cp $export_symbols $output_objdir/$soname.def;
9388 else
9389 echo EXPORTS > $output_objdir/$soname.def;
9390 cat $export_symbols >> $output_objdir/$soname.def;
9391 fi~
9392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 else
9394 ld_shlibs=no
9395 fi
9396 ;;
9397
9398 haiku*)
9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 link_all_deplibs=yes
9401 ;;
9402
9403 interix[3-9]*)
9404 hardcode_direct=no
9405 hardcode_shlibpath_var=no
9406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9407 export_dynamic_flag_spec='${wl}-E'
9408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9409 # Instead, shared libraries are loaded at an image base (0x10000000 by
9410 # default) and relocated if they conflict, which is a slow very memory
9411 # consuming and fragmenting process. To avoid this, we pick a random,
9412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9415 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'
9416 ;;
9417
9418 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9419 tmp_diet=no
9420 if test "$host_os" = linux-dietlibc; then
9421 case $cc_basename in
9422 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9423 esac
9424 fi
9425 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9426 && test "$tmp_diet" = no
9427 then
9428 tmp_addflag=' $pic_flag'
9429 tmp_sharedflag='-shared'
9430 case $cc_basename,$host_cpu in
9431 pgcc*) # Portland Group C compiler
9432 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'
9433 tmp_addflag=' $pic_flag'
9434 ;;
9435 pgf77* | pgf90* | pgf95* | pgfortran*)
9436 # Portland Group f77 and f90 compilers
9437 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'
9438 tmp_addflag=' $pic_flag -Mnomain' ;;
9439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9440 tmp_addflag=' -i_dynamic' ;;
9441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9442 tmp_addflag=' -i_dynamic -nofor_main' ;;
9443 ifc* | ifort*) # Intel Fortran compiler
9444 tmp_addflag=' -nofor_main' ;;
9445 lf95*) # Lahey Fortran 8.1
9446 whole_archive_flag_spec=
9447 tmp_sharedflag='--shared' ;;
9448 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449 tmp_sharedflag='-qmkshrobj'
9450 tmp_addflag= ;;
9451 nvcc*) # Cuda Compiler Driver 2.2
9452 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'
9453 compiler_needs_object=yes
9454 ;;
9455 esac
9456 case `$CC -V 2>&1 | sed 5q` in
9457 *Sun\ C*) # Sun C 5.9
9458 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'
9459 compiler_needs_object=yes
9460 tmp_sharedflag='-G' ;;
9461 *Sun\ F*) # Sun Fortran 8.3
9462 tmp_sharedflag='-G' ;;
9463 esac
9464 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465
9466 if test "x$supports_anon_versioning" = xyes; then
9467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469 echo "local: *; };" >> $output_objdir/$libname.ver~
9470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9471 fi
9472
9473 case $cc_basename in
9474 xlf* | bgf* | bgxlf* | mpixlf*)
9475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9476 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9477 hardcode_libdir_flag_spec=
9478 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9479 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9480 if test "x$supports_anon_versioning" = xyes; then
9481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483 echo "local: *; };" >> $output_objdir/$libname.ver~
9484 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9485 fi
9486 ;;
9487 esac
9488 else
9489 ld_shlibs=no
9490 fi
9491 ;;
9492
9493 netbsd*)
9494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9496 wlarc=
9497 else
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500 fi
9501 ;;
9502
9503 solaris*)
9504 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9505 ld_shlibs=no
9506 cat <<_LT_EOF 1>&2
9507
9508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9509 *** create shared libraries on Solaris systems. Therefore, libtool
9510 *** is disabling shared libraries support. We urge you to upgrade GNU
9511 *** binutils to release 2.9.1 or newer. Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9514
9515 _LT_EOF
9516 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 else
9520 ld_shlibs=no
9521 fi
9522 ;;
9523
9524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9525 case `$LD -v 2>&1` in
9526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9527 ld_shlibs=no
9528 cat <<_LT_EOF 1>&2
9529
9530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9531 *** reliably create shared libraries on SCO systems. Therefore, libtool
9532 *** is disabling shared libraries support. We urge you to upgrade GNU
9533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9534 *** your PATH or compiler configuration so that the native linker is
9535 *** used, and then restart.
9536
9537 _LT_EOF
9538 ;;
9539 *)
9540 # For security reasons, it is highly recommended that you always
9541 # use absolute paths for naming shared libraries, and exclude the
9542 # DT_RUNPATH tag from executables and libraries. But doing so
9543 # requires that you compile everything twice, which is a pain.
9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9550 fi
9551 ;;
9552 esac
9553 ;;
9554
9555 sunos4*)
9556 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557 wlarc=
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9560 ;;
9561
9562 *)
9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566 else
9567 ld_shlibs=no
9568 fi
9569 ;;
9570 esac
9571
9572 if test "$ld_shlibs" = no; then
9573 runpath_var=
9574 hardcode_libdir_flag_spec=
9575 export_dynamic_flag_spec=
9576 whole_archive_flag_spec=
9577 fi
9578 else
9579 # PORTME fill in a description of your system's linker (not GNU ld)
9580 case $host_os in
9581 aix3*)
9582 allow_undefined_flag=unsupported
9583 always_export_symbols=yes
9584 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'
9585 # Note: this linker hardcodes the directories in LIBPATH if there
9586 # are no directories specified by -L.
9587 hardcode_minus_L=yes
9588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9589 # Neither direct hardcoding nor static linking is supported with a
9590 # broken collect2.
9591 hardcode_direct=unsupported
9592 fi
9593 ;;
9594
9595 aix[4-9]*)
9596 if test "$host_cpu" = ia64; then
9597 # On IA64, the linker does run time linking by default, so we don't
9598 # have to do anything special.
9599 aix_use_runtimelinking=no
9600 exp_sym_flag='-Bexport'
9601 no_entry_flag=""
9602 else
9603 # If we're using GNU nm, then we don't want the "-C" option.
9604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9605 # Also, AIX nm treats weak defined symbols like other global
9606 # defined symbols, whereas GNU nm marks them as "W".
9607 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9608 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'
9609 else
9610 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'
9611 fi
9612 aix_use_runtimelinking=no
9613
9614 # Test if we are trying to use run time linking or normal
9615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616 # need to do runtime linking.
9617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9618 for ld_flag in $LDFLAGS; do
9619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9620 aix_use_runtimelinking=yes
9621 break
9622 fi
9623 done
9624 ;;
9625 esac
9626
9627 exp_sym_flag='-bexport'
9628 no_entry_flag='-bnoentry'
9629 fi
9630
9631 # When large executables or shared objects are built, AIX ld can
9632 # have problems creating the table of contents. If linking a library
9633 # or program results in "error TOC overflow" add -mminimal-toc to
9634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9636
9637 archive_cmds=''
9638 hardcode_direct=yes
9639 hardcode_direct_absolute=yes
9640 hardcode_libdir_separator=':'
9641 link_all_deplibs=yes
9642 file_list_spec='${wl}-f,'
9643
9644 if test "$GCC" = yes; then
9645 case $host_os in aix4.[012]|aix4.[012].*)
9646 # We only want to do this on AIX 4.2 and lower, the check
9647 # below for broken collect2 doesn't work under 4.3+
9648 collect2name=`${CC} -print-prog-name=collect2`
9649 if test -f "$collect2name" &&
9650 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9651 then
9652 # We have reworked collect2
9653 :
9654 else
9655 # We have old collect2
9656 hardcode_direct=unsupported
9657 # It fails to find uninstalled libraries when the uninstalled
9658 # path is not listed in the libpath. Setting hardcode_minus_L
9659 # to unsupported forces relinking
9660 hardcode_minus_L=yes
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_libdir_separator=
9663 fi
9664 ;;
9665 esac
9666 shared_flag='-shared'
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag="$shared_flag "'${wl}-G'
9669 fi
9670 else
9671 # not using gcc
9672 if test "$host_cpu" = ia64; then
9673 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674 # chokes on -Wl,-G. The following line is correct:
9675 shared_flag='-G'
9676 else
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag='${wl}-G'
9679 else
9680 shared_flag='${wl}-bM:SRE'
9681 fi
9682 fi
9683 fi
9684
9685 export_dynamic_flag_spec='${wl}-bexpall'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols=yes
9689 if test "$aix_use_runtimelinking" = yes; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag='-berok'
9693 # Determine the default libpath from the value encoded in an
9694 # empty executable.
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9697
9698 int
9699 main ()
9700 {
9701
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9707
9708 lt_aix_libpath_sed='
9709 /Import File Strings/,/^$/ {
9710 /^0/ {
9711 s/^0 *\(.*\)$/\1/
9712 p
9713 }
9714 }'
9715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 # Check for a 64-bit object if we didn't find anything.
9717 if test -z "$aix_libpath"; then
9718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719 fi
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9724
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 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"
9727 else
9728 if test "$host_cpu" = ia64; then
9729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag="-z nodefs"
9731 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"
9732 else
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738 int
9739 main ()
9740 {
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747
9748 lt_aix_libpath_sed='
9749 /Import File Strings/,/^$/ {
9750 /^0/ {
9751 s/^0 *\(.*\)$/\1/
9752 p
9753 }
9754 }'
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9759 fi
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 # Warning - without using the other run time loading flags,
9767 # -berok will link without error, but may produce a broken library.
9768 no_undefined_flag=' ${wl}-bernotok'
9769 allow_undefined_flag=' ${wl}-berok'
9770 if test "$with_gnu_ld" = yes; then
9771 # We only use this code for GNU lds that support --whole-archive.
9772 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9773 else
9774 # Exported symbols can be pulled into shared objects from archives
9775 whole_archive_flag_spec='$convenience'
9776 fi
9777 archive_cmds_need_lc=yes
9778 # This is similar to how AIX traditionally builds its shared libraries.
9779 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'
9780 fi
9781 fi
9782 ;;
9783
9784 amigaos*)
9785 case $host_cpu in
9786 powerpc)
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds=''
9790 ;;
9791 m68k)
9792 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)'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_minus_L=yes
9795 ;;
9796 esac
9797 ;;
9798
9799 bsdi[45]*)
9800 export_dynamic_flag_spec=-rdynamic
9801 ;;
9802
9803 cygwin* | mingw* | pw32* | cegcc*)
9804 # When not using gcc, we currently assume that we are using
9805 # Microsoft Visual C++.
9806 # hardcode_libdir_flag_spec is actually meaningless, as there is
9807 # no search path for DLLs.
9808 hardcode_libdir_flag_spec=' '
9809 allow_undefined_flag=unsupported
9810 # Tell ltmain to make .lib files, not .a files.
9811 libext=lib
9812 # Tell ltmain to make .dll files, not .so files.
9813 shrext_cmds=".dll"
9814 # FIXME: Setting linknames here is a bad hack.
9815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816 # The linker will automatically build a .lib file if we build a DLL.
9817 old_archive_from_new_cmds='true'
9818 # FIXME: Should let the user specify the lib program.
9819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820 fix_srcfile_path='`cygpath -w "$srcfile"`'
9821 enable_shared_with_static_runtimes=yes
9822 ;;
9823
9824 darwin* | rhapsody*)
9825
9826
9827 archive_cmds_need_lc=no
9828 hardcode_direct=no
9829 hardcode_automatic=yes
9830 hardcode_shlibpath_var=unsupported
9831 if test "$lt_cv_ld_force_load" = "yes"; then
9832 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\"`'
9833 else
9834 whole_archive_flag_spec=''
9835 fi
9836 link_all_deplibs=yes
9837 allow_undefined_flag="$_lt_dar_allow_undefined"
9838 case $cc_basename in
9839 ifort*) _lt_dar_can_shared=yes ;;
9840 *) _lt_dar_can_shared=$GCC ;;
9841 esac
9842 if test "$_lt_dar_can_shared" = "yes"; then
9843 output_verbose_link_cmd=func_echo_all
9844 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9845 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9846 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}"
9847 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}"
9848
9849 else
9850 ld_shlibs=no
9851 fi
9852
9853 ;;
9854
9855 dgux*)
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec='-L$libdir'
9858 hardcode_shlibpath_var=no
9859 ;;
9860
9861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9862 # support. Future versions do this automatically, but an explicit c++rt0.o
9863 # does not break anything, and helps significantly (at the cost of a little
9864 # extra space).
9865 freebsd2.2*)
9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9867 hardcode_libdir_flag_spec='-R$libdir'
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9873 freebsd2.*)
9874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_direct=yes
9876 hardcode_minus_L=yes
9877 hardcode_shlibpath_var=no
9878 ;;
9879
9880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9881 freebsd* | dragonfly*)
9882 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9883 hardcode_libdir_flag_spec='-R$libdir'
9884 hardcode_direct=yes
9885 hardcode_shlibpath_var=no
9886 ;;
9887
9888 hpux9*)
9889 if test "$GCC" = yes; then
9890 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'
9891 else
9892 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'
9893 fi
9894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 hardcode_direct=yes
9897
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 export_dynamic_flag_spec='${wl}-E'
9902 ;;
9903
9904 hpux10*)
9905 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907 else
9908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909 fi
9910 if test "$with_gnu_ld" = no; then
9911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_flag_spec_ld='+b $libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_direct=yes
9915 hardcode_direct_absolute=yes
9916 export_dynamic_flag_spec='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 fi
9921 ;;
9922
9923 hpux11*)
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 ia64*)
9930 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 ;;
9932 *)
9933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9934 ;;
9935 esac
9936 else
9937 case $host_cpu in
9938 hppa*64*)
9939 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 ;;
9941 ia64*)
9942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9943 ;;
9944 *)
9945
9946 # Older versions of the 11.00 compiler do not understand -b yet
9947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949 $as_echo_n "checking if $CC understands -b... " >&6; }
9950 if ${lt_cv_prog_compiler__b+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 lt_cv_prog_compiler__b=no
9954 save_LDFLAGS="$LDFLAGS"
9955 LDFLAGS="$LDFLAGS -b"
9956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9958 # The linker can only warn and ignore the option if not recognized
9959 # So say no if there are warnings
9960 if test -s conftest.err; then
9961 # Append any errors to the config.log.
9962 cat conftest.err 1>&5
9963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler__b=yes
9967 fi
9968 else
9969 lt_cv_prog_compiler__b=yes
9970 fi
9971 fi
9972 $RM -r conftest*
9973 LDFLAGS="$save_LDFLAGS"
9974
9975 fi
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9978
9979 if test x"$lt_cv_prog_compiler__b" = xyes; then
9980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981 else
9982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9983 fi
9984
9985 ;;
9986 esac
9987 fi
9988 if test "$with_gnu_ld" = no; then
9989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator=:
9991
9992 case $host_cpu in
9993 hppa*64*|ia64*)
9994 hardcode_direct=no
9995 hardcode_shlibpath_var=no
9996 ;;
9997 *)
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='${wl}-E'
10001
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 ;;
10006 esac
10007 fi
10008 ;;
10009
10010 irix5* | irix6* | nonstopux*)
10011 if test "$GCC" = yes; then
10012 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'
10013 # Try to use the -exported_symbol ld option, if it does not
10014 # work, assume that -exports_file does not work either and
10015 # implicitly export all symbols.
10016 save_LDFLAGS="$LDFLAGS"
10017 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int foo(void) {}
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 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'
10024
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LDFLAGS="$save_LDFLAGS"
10029 else
10030 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'
10031 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'
10032 fi
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 inherit_rpath=yes
10037 link_all_deplibs=yes
10038 ;;
10039
10040 netbsd*)
10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10043 else
10044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10045 fi
10046 hardcode_libdir_flag_spec='-R$libdir'
10047 hardcode_direct=yes
10048 hardcode_shlibpath_var=no
10049 ;;
10050
10051 newsos6)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct=yes
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 *nto* | *qnx*)
10060 ;;
10061
10062 openbsd*)
10063 if test -f /usr/libexec/ld.so; then
10064 hardcode_direct=yes
10065 hardcode_shlibpath_var=no
10066 hardcode_direct_absolute=yes
10067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10071 export_dynamic_flag_spec='${wl}-E'
10072 else
10073 case $host_os in
10074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_libdir_flag_spec='-R$libdir'
10077 ;;
10078 *)
10079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10081 ;;
10082 esac
10083 fi
10084 else
10085 ld_shlibs=no
10086 fi
10087 ;;
10088
10089 os2*)
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_minus_L=yes
10092 allow_undefined_flag=unsupported
10093 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'
10094 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10095 ;;
10096
10097 osf3*)
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 else
10102 allow_undefined_flag=' -expect_unresolved \*'
10103 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'
10104 fi
10105 archive_cmds_need_lc='no'
10106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107 hardcode_libdir_separator=:
10108 ;;
10109
10110 osf4* | osf5*) # as osf3* with the addition of -msym flag
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 else
10116 allow_undefined_flag=' -expect_unresolved \*'
10117 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'
10118 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~
10119 $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'
10120
10121 # Both c and cxx compiler support -rpath directly
10122 hardcode_libdir_flag_spec='-rpath $libdir'
10123 fi
10124 archive_cmds_need_lc='no'
10125 hardcode_libdir_separator=:
10126 ;;
10127
10128 solaris*)
10129 no_undefined_flag=' -z defs'
10130 if test "$GCC" = yes; then
10131 wlarc='${wl}'
10132 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 else
10136 case `$CC -V 2>&1` in
10137 *"Compilers 5.0"*)
10138 wlarc=''
10139 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10142 ;;
10143 *)
10144 wlarc='${wl}'
10145 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10148 ;;
10149 esac
10150 fi
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_shlibpath_var=no
10153 case $host_os in
10154 solaris2.[0-5] | solaris2.[0-5].*) ;;
10155 *)
10156 # The compiler driver will combine and reorder linker options,
10157 # but understands `-z linker_flag'. GCC discards it without `$wl',
10158 # but is careful enough not to reorder.
10159 # Supported since Solaris 2.6 (maybe 2.5.1?)
10160 if test "$GCC" = yes; then
10161 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10162 else
10163 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10164 fi
10165 ;;
10166 esac
10167 link_all_deplibs=yes
10168 ;;
10169
10170 sunos4*)
10171 if test "x$host_vendor" = xsequent; then
10172 # Use $CC to link under sequent, because it throws in some extra .o
10173 # files that make .init and .fini sections work.
10174 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10175 else
10176 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10177 fi
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_direct=yes
10180 hardcode_minus_L=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 sysv4)
10185 case $host_vendor in
10186 sni)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct=yes # is this really true???
10189 ;;
10190 siemens)
10191 ## LD is ld it makes a PLAMLIB
10192 ## CC just makes a GrossModule.
10193 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10194 reload_cmds='$CC -r -o $output$reload_objs'
10195 hardcode_direct=no
10196 ;;
10197 motorola)
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10200 ;;
10201 esac
10202 runpath_var='LD_RUN_PATH'
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 sysv4.3*)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_shlibpath_var=no
10209 export_dynamic_flag_spec='-Bexport'
10210 ;;
10211
10212 sysv4*MP*)
10213 if test -d /usr/nec; then
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 runpath_var=LD_RUN_PATH
10217 hardcode_runpath_var=yes
10218 ld_shlibs=yes
10219 fi
10220 ;;
10221
10222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10223 no_undefined_flag='${wl}-z,text'
10224 archive_cmds_need_lc=no
10225 hardcode_shlibpath_var=no
10226 runpath_var='LD_RUN_PATH'
10227
10228 if test "$GCC" = yes; then
10229 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 else
10232 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 fi
10235 ;;
10236
10237 sysv5* | sco3.2v5* | sco5v6*)
10238 # Note: We can NOT use -z defs as we might desire, because we do not
10239 # link with -lc, and that would cause any symbols used from libc to
10240 # always be unresolved, which means just about no library would
10241 # ever link correctly. If we're not using GNU ld we use -z text
10242 # though, which does catch some bad symbols but isn't as heavy-handed
10243 # as -z defs.
10244 no_undefined_flag='${wl}-z,text'
10245 allow_undefined_flag='${wl}-z,nodefs'
10246 archive_cmds_need_lc=no
10247 hardcode_shlibpath_var=no
10248 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10249 hardcode_libdir_separator=':'
10250 link_all_deplibs=yes
10251 export_dynamic_flag_spec='${wl}-Bexport'
10252 runpath_var='LD_RUN_PATH'
10253
10254 if test "$GCC" = yes; then
10255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 fi
10261 ;;
10262
10263 uts4*)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 hardcode_shlibpath_var=no
10267 ;;
10268
10269 *)
10270 ld_shlibs=no
10271 ;;
10272 esac
10273
10274 if test x$host_vendor = xsni; then
10275 case $host in
10276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10277 export_dynamic_flag_spec='${wl}-Blargedynsym'
10278 ;;
10279 esac
10280 fi
10281 fi
10282
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10284 $as_echo "$ld_shlibs" >&6; }
10285 test "$ld_shlibs" = no && can_build_shared=no
10286
10287 with_gnu_ld=$with_gnu_ld
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 #
10304 # Do we need to explicitly link libc?
10305 #
10306 case "x$archive_cmds_need_lc" in
10307 x|xyes)
10308 # Assume -lc should be added
10309 archive_cmds_need_lc=yes
10310
10311 if test "$enable_shared" = yes && test "$GCC" = yes; then
10312 case $archive_cmds in
10313 *'~'*)
10314 # FIXME: we may have to deal with multi-command sequences.
10315 ;;
10316 '$CC '*)
10317 # Test whether the compiler implicitly links with -lc since on some
10318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10319 # to ld, don't add -lc before -lgcc.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10321 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10322 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 $RM conftest*
10326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10327
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } 2>conftest.err; then
10333 soname=conftest
10334 lib=conftest
10335 libobjs=conftest.$ac_objext
10336 deplibs=
10337 wl=$lt_prog_compiler_wl
10338 pic_flag=$lt_prog_compiler_pic
10339 compiler_flags=-v
10340 linker_flags=-v
10341 verstring=
10342 output_objdir=.
10343 libname=conftest
10344 lt_save_allow_undefined_flag=$allow_undefined_flag
10345 allow_undefined_flag=
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10347 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10348 ac_status=$?
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; }
10351 then
10352 lt_cv_archive_cmds_need_lc=no
10353 else
10354 lt_cv_archive_cmds_need_lc=yes
10355 fi
10356 allow_undefined_flag=$lt_save_allow_undefined_flag
10357 else
10358 cat conftest.err 1>&5
10359 fi
10360 $RM conftest*
10361
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10364 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10365 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10366 ;;
10367 esac
10368 fi
10369 ;;
10370 esac
10371
10372
10373
10374
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10530
10531 if test "$GCC" = yes; then
10532 case $host_os in
10533 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10534 *) lt_awk_arg="/^libraries:/" ;;
10535 esac
10536 case $host_os in
10537 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10538 *) lt_sed_strip_eq="s,=/,/,g" ;;
10539 esac
10540 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541 case $lt_search_path_spec in
10542 *\;*)
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10548 ;;
10549 *)
10550 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10551 ;;
10552 esac
10553 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10555 lt_tmp_lt_search_path_spec=
10556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557 for lt_sys_path in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560 else
10561 test -d "$lt_sys_path" && \
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10563 fi
10564 done
10565 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566 BEGIN {RS=" "; FS="/|\n";} {
10567 lt_foo="";
10568 lt_count=0;
10569 for (lt_i = NF; lt_i > 0; lt_i--) {
10570 if ($lt_i != "" && $lt_i != ".") {
10571 if ($lt_i == "..") {
10572 lt_count++;
10573 } else {
10574 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10576 } else {
10577 lt_count--;
10578 }
10579 }
10580 }
10581 }
10582 if (lt_foo != "") { lt_freq[lt_foo]++; }
10583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10584 }'`
10585 # AWK program above erroneously prepends '/' to C:/dos/paths
10586 # for these hosts.
10587 case $host_os in
10588 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10589 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10590 esac
10591 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10592 else
10593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10594 fi
10595 library_names_spec=
10596 libname_spec='lib$name'
10597 soname_spec=
10598 shrext_cmds=".so"
10599 postinstall_cmds=
10600 postuninstall_cmds=
10601 finish_cmds=
10602 finish_eval=
10603 shlibpath_var=
10604 shlibpath_overrides_runpath=unknown
10605 version_type=none
10606 dynamic_linker="$host_os ld.so"
10607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10608 need_lib_prefix=unknown
10609 hardcode_into_libs=no
10610
10611 # when you set need_version to no, make sure it does not cause -set_version
10612 # flags to be left without arguments
10613 need_version=unknown
10614
10615 case $host_os in
10616 aix3*)
10617 version_type=linux
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10619 shlibpath_var=LIBPATH
10620
10621 # AIX 3 has no versioning support, so we append a major version to the name.
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 ;;
10624
10625 aix[4-9]*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 hardcode_into_libs=yes
10630 if test "$host_cpu" = ia64; then
10631 # AIX 5 supports IA64
10632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 else
10635 # With GCC up to 2.95.x, collect2 would create an import file
10636 # for dependence libraries. The import file would start with
10637 # the line `#! .'. This would cause the generated library to
10638 # depend on `.', always an invalid library. This was fixed in
10639 # development snapshots of GCC prior to 3.0.
10640 case $host_os in
10641 aix4 | aix4.[01] | aix4.[01].*)
10642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10643 echo ' yes '
10644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10645 :
10646 else
10647 can_build_shared=no
10648 fi
10649 ;;
10650 esac
10651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10652 # soname into executable. Probably we can add versioning support to
10653 # collect2, so additional links can be useful in future.
10654 if test "$aix_use_runtimelinking" = yes; then
10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656 # instead of lib<name>.a to let people know that these are not
10657 # typical AIX shared libraries.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 else
10660 # We preserve .a as extension for shared libraries through AIX4.2
10661 # and later when we are not doing run time linking.
10662 library_names_spec='${libname}${release}.a $libname.a'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 fi
10665 shlibpath_var=LIBPATH
10666 fi
10667 ;;
10668
10669 amigaos*)
10670 case $host_cpu in
10671 powerpc)
10672 # Since July 2007 AmigaOS4 officially supports .so libraries.
10673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 ;;
10676 m68k)
10677 library_names_spec='$libname.ixlibrary $libname.a'
10678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679 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'
10680 ;;
10681 esac
10682 ;;
10683
10684 beos*)
10685 library_names_spec='${libname}${shared_ext}'
10686 dynamic_linker="$host_os ld.so"
10687 shlibpath_var=LIBRARY_PATH
10688 ;;
10689
10690 bsdi[45]*)
10691 version_type=linux
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699 # the default ld.so.conf also contains /usr/contrib/lib and
10700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701 # libtool to hard-code these into programs
10702 ;;
10703
10704 cygwin* | mingw* | pw32* | cegcc*)
10705 version_type=windows
10706 shrext_cmds=".dll"
10707 need_version=no
10708 need_lib_prefix=no
10709
10710 case $GCC,$host_os in
10711 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10712 library_names_spec='$libname.dll.a'
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds='base_file=`basename \${file}`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname~
10719 chmod a+x \$dldir/$dlname~
10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10722 fi'
10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10725 $RM \$dlpath'
10726 shlibpath_overrides_runpath=yes
10727
10728 case $host_os in
10729 cygwin*)
10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10734 ;;
10735 mingw* | cegcc*)
10736 # MinGW DLLs use traditional 'lib' prefix
10737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738 ;;
10739 pw32*)
10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
10741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 ;;
10743 esac
10744 ;;
10745
10746 *)
10747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10748 ;;
10749 esac
10750 dynamic_linker='Win32 ld.exe'
10751 # FIXME: first we should search . and the directory the executable is in
10752 shlibpath_var=PATH
10753 ;;
10754
10755 darwin* | rhapsody*)
10756 dynamic_linker="$host_os dyld"
10757 version_type=darwin
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10761 soname_spec='${libname}${release}${major}$shared_ext'
10762 shlibpath_overrides_runpath=yes
10763 shlibpath_var=DYLD_LIBRARY_PATH
10764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10765
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10768 ;;
10769
10770 dgux*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 ;;
10778
10779 freebsd* | dragonfly*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr/bin/objformat; then
10783 objformat=`/usr/bin/objformat`
10784 else
10785 case $host_os in
10786 freebsd[23].*) objformat=aout ;;
10787 *) objformat=elf ;;
10788 esac
10789 fi
10790 version_type=freebsd-$objformat
10791 case $version_type in
10792 freebsd-elf*)
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10794 need_version=no
10795 need_lib_prefix=no
10796 ;;
10797 freebsd-*)
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10799 need_version=yes
10800 ;;
10801 esac
10802 shlibpath_var=LD_LIBRARY_PATH
10803 case $host_os in
10804 freebsd2.*)
10805 shlibpath_overrides_runpath=yes
10806 ;;
10807 freebsd3.[01]* | freebsdelf3.[01]*)
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10810 ;;
10811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10815 ;;
10816 *) # from 4.6 on, and DragonFly
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 ;;
10820 esac
10821 ;;
10822
10823 gnu*)
10824 version_type=linux
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 hardcode_into_libs=yes
10831 ;;
10832
10833 haiku*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 dynamic_linker="$host_os runtime_loader"
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843 hardcode_into_libs=yes
10844 ;;
10845
10846 hpux9* | hpux10* | hpux11*)
10847 # Give a soname corresponding to the major version so that dld.sl refuses to
10848 # link against other versions.
10849 version_type=sunos
10850 need_lib_prefix=no
10851 need_version=no
10852 case $host_cpu in
10853 ia64*)
10854 shrext_cmds='.so'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.so"
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 if test "X$HPUX_IA64_MODE" = X32; then
10862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10863 else
10864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10865 fi
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867 ;;
10868 hppa*64*)
10869 shrext_cmds='.sl'
10870 hardcode_into_libs=yes
10871 dynamic_linker="$host_os dld.sl"
10872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10878 ;;
10879 *)
10880 shrext_cmds='.sl'
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=SHLIB_PATH
10883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 ;;
10887 esac
10888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889 postinstall_cmds='chmod 555 $lib'
10890 # or fails outright, so override atomically:
10891 install_override_mode=555
10892 ;;
10893
10894 interix[3-9]*)
10895 version_type=linux
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10904 ;;
10905
10906 irix5* | irix6* | nonstopux*)
10907 case $host_os in
10908 nonstopux*) version_type=nonstopux ;;
10909 *)
10910 if test "$lt_cv_prog_gnu_ld" = yes; then
10911 version_type=linux
10912 else
10913 version_type=irix
10914 fi ;;
10915 esac
10916 need_lib_prefix=no
10917 need_version=no
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10920 case $host_os in
10921 irix5* | nonstopux*)
10922 libsuff= shlibsuff=
10923 ;;
10924 *)
10925 case $LD in # libtool.m4 will add one of these switches to LD
10926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10927 libsuff= shlibsuff= libmagic=32-bit;;
10928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10929 libsuff=32 shlibsuff=N32 libmagic=N32;;
10930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10932 *) libsuff= shlibsuff= libmagic=never-match;;
10933 esac
10934 ;;
10935 esac
10936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10940 hardcode_into_libs=yes
10941 ;;
10942
10943 # No shared lib support for Linux oldld, aout, or coff.
10944 linux*oldld* | linux*aout* | linux*coff*)
10945 dynamic_linker=no
10946 ;;
10947
10948 # This must be Linux ELF.
10949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10950 version_type=linux
10951 need_lib_prefix=no
10952 need_version=no
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=no
10958
10959 # Some binutils ld are patched to set DT_RUNPATH
10960 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 lt_cv_shlibpath_overrides_runpath=no
10964 save_LDFLAGS=$LDFLAGS
10965 save_libdir=$libdir
10966 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10967 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970
10971 int
10972 main ()
10973 {
10974
10975 ;
10976 return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10981 lt_cv_shlibpath_overrides_runpath=yes
10982 fi
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LDFLAGS=$save_LDFLAGS
10987 libdir=$save_libdir
10988
10989 fi
10990
10991 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10992
10993 # This implies no fast_install, which is unacceptable.
10994 # Some rework will be needed to allow for fast_install
10995 # before this can be enabled.
10996 hardcode_into_libs=yes
10997
10998 # Append ld.so.conf contents to the search path
10999 if test -f /etc/ld.so.conf; then
11000 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' ' '`
11001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11002 fi
11003
11004 # We used to test for /lib/ld.so.1 and disable shared libraries on
11005 # powerpc, because MkLinux only supported shared libraries with the
11006 # GNU dynamic linker. Since this was broken with cross compilers,
11007 # most powerpc-linux boxes support dynamic linking these days and
11008 # people can always --disable-shared, the test was removed, and we
11009 # assume the GNU/Linux dynamic linker is in use.
11010 dynamic_linker='GNU/Linux ld.so'
11011 ;;
11012
11013 netbsd*)
11014 version_type=sunos
11015 need_lib_prefix=no
11016 need_version=no
11017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020 dynamic_linker='NetBSD (a.out) ld.so'
11021 else
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 dynamic_linker='NetBSD ld.elf_so'
11025 fi
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 ;;
11030
11031 newsos6)
11032 version_type=linux
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 ;;
11037
11038 *nto* | *qnx*)
11039 version_type=qnx
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11047 dynamic_linker='ldqnx.so'
11048 ;;
11049
11050 openbsd*)
11051 version_type=sunos
11052 sys_lib_dlsearch_path_spec="/usr/lib"
11053 need_lib_prefix=no
11054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11055 case $host_os in
11056 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11057 *) need_version=no ;;
11058 esac
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11063 case $host_os in
11064 openbsd2.[89] | openbsd2.[89].*)
11065 shlibpath_overrides_runpath=no
11066 ;;
11067 *)
11068 shlibpath_overrides_runpath=yes
11069 ;;
11070 esac
11071 else
11072 shlibpath_overrides_runpath=yes
11073 fi
11074 ;;
11075
11076 os2*)
11077 libname_spec='$name'
11078 shrext_cmds=".dll"
11079 need_lib_prefix=no
11080 library_names_spec='$libname${shared_ext} $libname.a'
11081 dynamic_linker='OS/2 ld.exe'
11082 shlibpath_var=LIBPATH
11083 ;;
11084
11085 osf3* | osf4* | osf5*)
11086 version_type=osf
11087 need_lib_prefix=no
11088 need_version=no
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11094 ;;
11095
11096 rdos*)
11097 dynamic_linker=no
11098 ;;
11099
11100 solaris*)
11101 version_type=linux
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11109 # ldd complains unless libraries are executable
11110 postinstall_cmds='chmod +x $lib'
11111 ;;
11112
11113 sunos4*)
11114 version_type=sunos
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 if test "$with_gnu_ld" = yes; then
11120 need_lib_prefix=no
11121 fi
11122 need_version=yes
11123 ;;
11124
11125 sysv4 | sysv4.3*)
11126 version_type=linux
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 case $host_vendor in
11131 sni)
11132 shlibpath_overrides_runpath=no
11133 need_lib_prefix=no
11134 runpath_var=LD_RUN_PATH
11135 ;;
11136 siemens)
11137 need_lib_prefix=no
11138 ;;
11139 motorola)
11140 need_lib_prefix=no
11141 need_version=no
11142 shlibpath_overrides_runpath=no
11143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11144 ;;
11145 esac
11146 ;;
11147
11148 sysv4*MP*)
11149 if test -d /usr/nec ;then
11150 version_type=linux
11151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152 soname_spec='$libname${shared_ext}.$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 fi
11155 ;;
11156
11157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11158 version_type=freebsd-elf
11159 need_lib_prefix=no
11160 need_version=no
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 hardcode_into_libs=yes
11166 if test "$with_gnu_ld" = yes; then
11167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11168 else
11169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11170 case $host_os in
11171 sco3.2v5*)
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11173 ;;
11174 esac
11175 fi
11176 sys_lib_dlsearch_path_spec='/usr/lib'
11177 ;;
11178
11179 tpf*)
11180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11181 version_type=linux
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=no
11187 hardcode_into_libs=yes
11188 ;;
11189
11190 uts4*)
11191 version_type=linux
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 ;;
11196
11197 *)
11198 dynamic_linker=no
11199 ;;
11200 esac
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202 $as_echo "$dynamic_linker" >&6; }
11203 test "$dynamic_linker" = no && can_build_shared=no
11204
11205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206 if test "$GCC" = yes; then
11207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208 fi
11209
11210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212 fi
11213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11215 fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11310 hardcode_action=
11311 if test -n "$hardcode_libdir_flag_spec" ||
11312 test -n "$runpath_var" ||
11313 test "X$hardcode_automatic" = "Xyes" ; then
11314
11315 # We can hardcode non-existent directories.
11316 if test "$hardcode_direct" != no &&
11317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318 # have to relink, otherwise we might link with an installed library
11319 # when we should be linking with a yet-to-be-installed one
11320 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321 test "$hardcode_minus_L" != no; then
11322 # Linking always hardcodes the temporary library directory.
11323 hardcode_action=relink
11324 else
11325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326 hardcode_action=immediate
11327 fi
11328 else
11329 # We cannot hardcode anything, or else we can only hardcode existing
11330 # directories.
11331 hardcode_action=unsupported
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334 $as_echo "$hardcode_action" >&6; }
11335
11336 if test "$hardcode_action" = relink ||
11337 test "$inherit_rpath" = yes; then
11338 # Fast installation is not supported
11339 enable_fast_install=no
11340 elif test "$shlibpath_overrides_runpath" = yes ||
11341 test "$enable_shared" = no; then
11342 # Fast installation is not necessary
11343 enable_fast_install=needless
11344 fi
11345
11346
11347
11348
11349
11350
11351 if test "x$enable_dlopen" != xyes; then
11352 enable_dlopen=unknown
11353 enable_dlopen_self=unknown
11354 enable_dlopen_self_static=unknown
11355 else
11356 lt_cv_dlopen=no
11357 lt_cv_dlopen_libs=
11358
11359 case $host_os in
11360 beos*)
11361 lt_cv_dlopen="load_add_on"
11362 lt_cv_dlopen_libs=
11363 lt_cv_dlopen_self=yes
11364 ;;
11365
11366 mingw* | pw32* | cegcc*)
11367 lt_cv_dlopen="LoadLibrary"
11368 lt_cv_dlopen_libs=
11369 ;;
11370
11371 cygwin*)
11372 lt_cv_dlopen="dlopen"
11373 lt_cv_dlopen_libs=
11374 ;;
11375
11376 darwin*)
11377 # if libdl is installed we need to link against it
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if ${ac_cv_lib_dl_dlopen+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldl $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dlopen ();
11395 int
11396 main ()
11397 {
11398 return dlopen ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_dl_dlopen=yes
11405 else
11406 ac_cv_lib_dl_dlopen=no
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416 else
11417
11418 lt_cv_dlopen="dyld"
11419 lt_cv_dlopen_libs=
11420 lt_cv_dlopen_self=yes
11421
11422 fi
11423
11424 ;;
11425
11426 *)
11427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428 if test "x$ac_cv_func_shl_load" = xyes; then :
11429 lt_cv_dlopen="shl_load"
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11433 if ${ac_cv_lib_dld_shl_load+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-ldld $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char shl_load ();
11448 int
11449 main ()
11450 {
11451 return shl_load ();
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_dld_shl_load=yes
11458 else
11459 ac_cv_lib_dld_shl_load=no
11460 fi
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11469 else
11470 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471 if test "x$ac_cv_func_dlopen" = xyes; then :
11472 lt_cv_dlopen="dlopen"
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11476 if ${ac_cv_lib_dl_dlopen+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-ldl $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char dlopen ();
11491 int
11492 main ()
11493 {
11494 return dlopen ();
11495 ;
11496 return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_dl_dlopen=yes
11501 else
11502 ac_cv_lib_dl_dlopen=no
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515 if ${ac_cv_lib_svld_dlopen+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-lsvld $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char dlopen ();
11530 int
11531 main ()
11532 {
11533 return dlopen ();
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 ac_cv_lib_svld_dlopen=yes
11540 else
11541 ac_cv_lib_svld_dlopen=no
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11554 if ${ac_cv_lib_dld_dld_link+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-ldld $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char dld_link ();
11569 int
11570 main ()
11571 {
11572 return dld_link ();
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_dld_dld_link=yes
11579 else
11580 ac_cv_lib_dld_dld_link=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11589 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11590 fi
11591
11592
11593 fi
11594
11595
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607 ;;
11608 esac
11609
11610 if test "x$lt_cv_dlopen" != xno; then
11611 enable_dlopen=yes
11612 else
11613 enable_dlopen=no
11614 fi
11615
11616 case $lt_cv_dlopen in
11617 dlopen)
11618 save_CPPFLAGS="$CPPFLAGS"
11619 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620
11621 save_LDFLAGS="$LDFLAGS"
11622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
11624 save_LIBS="$LIBS"
11625 LIBS="$lt_cv_dlopen_libs $LIBS"
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629 if ${lt_cv_dlopen_self+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test "$cross_compiling" = yes; then :
11633 lt_cv_dlopen_self=cross
11634 else
11635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636 lt_status=$lt_dlunknown
11637 cat > conftest.$ac_ext <<_LT_EOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640
11641 #if HAVE_DLFCN_H
11642 #include <dlfcn.h>
11643 #endif
11644
11645 #include <stdio.h>
11646
11647 #ifdef RTLD_GLOBAL
11648 # define LT_DLGLOBAL RTLD_GLOBAL
11649 #else
11650 # ifdef DL_GLOBAL
11651 # define LT_DLGLOBAL DL_GLOBAL
11652 # else
11653 # define LT_DLGLOBAL 0
11654 # endif
11655 #endif
11656
11657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658 find out it does not work in some platform. */
11659 #ifndef LT_DLLAZY_OR_NOW
11660 # ifdef RTLD_LAZY
11661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11662 # else
11663 # ifdef DL_LAZY
11664 # define LT_DLLAZY_OR_NOW DL_LAZY
11665 # else
11666 # ifdef RTLD_NOW
11667 # define LT_DLLAZY_OR_NOW RTLD_NOW
11668 # else
11669 # ifdef DL_NOW
11670 # define LT_DLLAZY_OR_NOW DL_NOW
11671 # else
11672 # define LT_DLLAZY_OR_NOW 0
11673 # endif
11674 # endif
11675 # endif
11676 # endif
11677 #endif
11678
11679 /* When -fvisbility=hidden is used, assume the code has been annotated
11680 correspondingly for the symbols needed. */
11681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682 void fnord () __attribute__((visibility("default")));
11683 #endif
11684
11685 void fnord () { int i=42; }
11686 int main ()
11687 {
11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689 int status = $lt_dlunknown;
11690
11691 if (self)
11692 {
11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11694 else
11695 {
11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 else puts (dlerror ());
11698 }
11699 /* dlclose (self); */
11700 }
11701 else
11702 puts (dlerror ());
11703
11704 return status;
11705 }
11706 _LT_EOF
11707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708 (eval $ac_link) 2>&5
11709 ac_status=$?
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11712 (./conftest; exit; ) >&5 2>/dev/null
11713 lt_status=$?
11714 case x$lt_status in
11715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718 esac
11719 else :
11720 # compilation failed
11721 lt_cv_dlopen_self=no
11722 fi
11723 fi
11724 rm -fr conftest*
11725
11726
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729 $as_echo "$lt_cv_dlopen_self" >&6; }
11730
11731 if test "x$lt_cv_dlopen_self" = xyes; then
11732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735 if ${lt_cv_dlopen_self_static+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 if test "$cross_compiling" = yes; then :
11739 lt_cv_dlopen_self_static=cross
11740 else
11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742 lt_status=$lt_dlunknown
11743 cat > conftest.$ac_ext <<_LT_EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11746
11747 #if HAVE_DLFCN_H
11748 #include <dlfcn.h>
11749 #endif
11750
11751 #include <stdio.h>
11752
11753 #ifdef RTLD_GLOBAL
11754 # define LT_DLGLOBAL RTLD_GLOBAL
11755 #else
11756 # ifdef DL_GLOBAL
11757 # define LT_DLGLOBAL DL_GLOBAL
11758 # else
11759 # define LT_DLGLOBAL 0
11760 # endif
11761 #endif
11762
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11766 # ifdef RTLD_LAZY
11767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11768 # else
11769 # ifdef DL_LAZY
11770 # define LT_DLLAZY_OR_NOW DL_LAZY
11771 # else
11772 # ifdef RTLD_NOW
11773 # define LT_DLLAZY_OR_NOW RTLD_NOW
11774 # else
11775 # ifdef DL_NOW
11776 # define LT_DLLAZY_OR_NOW DL_NOW
11777 # else
11778 # define LT_DLLAZY_OR_NOW 0
11779 # endif
11780 # endif
11781 # endif
11782 # endif
11783 #endif
11784
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786 correspondingly for the symbols needed. */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 void fnord () __attribute__((visibility("default")));
11789 #endif
11790
11791 void fnord () { int i=42; }
11792 int main ()
11793 {
11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795 int status = $lt_dlunknown;
11796
11797 if (self)
11798 {
11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11800 else
11801 {
11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 else puts (dlerror ());
11804 }
11805 /* dlclose (self); */
11806 }
11807 else
11808 puts (dlerror ());
11809
11810 return status;
11811 }
11812 _LT_EOF
11813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814 (eval $ac_link) 2>&5
11815 ac_status=$?
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) >&5 2>/dev/null
11819 lt_status=$?
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824 esac
11825 else :
11826 # compilation failed
11827 lt_cv_dlopen_self_static=no
11828 fi
11829 fi
11830 rm -fr conftest*
11831
11832
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11836 fi
11837
11838 CPPFLAGS="$save_CPPFLAGS"
11839 LDFLAGS="$save_LDFLAGS"
11840 LIBS="$save_LIBS"
11841 ;;
11842 esac
11843
11844 case $lt_cv_dlopen_self in
11845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846 *) enable_dlopen_self=unknown ;;
11847 esac
11848
11849 case $lt_cv_dlopen_self_static in
11850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851 *) enable_dlopen_self_static=unknown ;;
11852 esac
11853 fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871 striplib=
11872 old_striplib=
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880 else
11881 # FIXME - insert some real tests, host_os isn't really good enough
11882 case $host_os in
11883 darwin*)
11884 if test -n "$STRIP" ; then
11885 striplib="$STRIP -x"
11886 old_striplib="$STRIP -S"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893 ;;
11894 *)
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 ;;
11898 esac
11899 fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912 # Report which library types will actually be built
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916 $as_echo "$can_build_shared" >&6; }
11917
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919 $as_echo_n "checking whether to build shared libraries... " >&6; }
11920 test "$can_build_shared" = "no" && enable_shared=no
11921
11922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
11924 case $host_os in
11925 aix3*)
11926 test "$enable_shared" = yes && enable_static=no
11927 if test -n "$RANLIB"; then
11928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds='$RANLIB $lib'
11930 fi
11931 ;;
11932
11933 aix[4-9]*)
11934 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11935 test "$enable_shared" = yes && enable_static=no
11936 fi
11937 ;;
11938 esac
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940 $as_echo "$enable_shared" >&6; }
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943 $as_echo_n "checking whether to build static libraries... " >&6; }
11944 # Make sure either enable_shared or enable_static is yes.
11945 test "$enable_shared" = yes || enable_static=yes
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947 $as_echo "$enable_static" >&6; }
11948
11949
11950
11951
11952 fi
11953 ac_ext=c
11954 ac_cpp='$CPP $CPPFLAGS'
11955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958
11959 CC="$lt_save_CC"
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973 ac_config_commands="$ac_config_commands libtool"
11974
11975
11976
11977
11978 # Only expand once:
11979
11980
11981
11982
11983
11984 gdc_save_DFLAGS=$GDCFLAGS
11985 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11986
11987
11988 # Source file extension for D test sources.
11989 ac_ext=d
11990
11991 # Object file extension for compiled D test sources.
11992 objext=o
11993 objext_D=$objext
11994
11995 # Code to be used in simple compile tests
11996 lt_simple_compile_test_code="\
11997 module object;
11998 shared int some_variable = 0;
11999 "
12000
12001 # Code to be used in simple link tests
12002 lt_simple_link_test_code="\
12003 module object;
12004 extern(C) int main() { return 0; }
12005 "
12006
12007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12008
12009
12010
12011
12012
12013
12014 # If no C compiler was specified, use CC.
12015 LTCC=${LTCC-"$CC"}
12016
12017 # If no C compiler flags were specified, use CFLAGS.
12018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12019
12020 # Allow CC to be a program name with arguments.
12021 compiler=$CC
12022
12023
12024 # save warnings/boilerplate of simple test code
12025 ac_outfile=conftest.$ac_objext
12026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12028 _lt_compiler_boilerplate=`cat conftest.err`
12029 $RM conftest*
12030
12031 ac_outfile=conftest.$ac_objext
12032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12034 _lt_linker_boilerplate=`cat conftest.err`
12035 $RM -r conftest*
12036
12037
12038 # Allow CC to be a program name with arguments.
12039 lt_save_CC=$CC
12040 lt_save_CFLAGS=$CFLAGS
12041 lt_save_GCC=$GCC
12042 GCC=yes
12043 CC=${GDC-"gdc"}
12044 CFLAGS=$GDCFLAGS
12045 compiler=$CC
12046 compiler_D=$CC
12047 LD_D=$CC
12048 for cc_temp in $compiler""; do
12049 case $cc_temp in
12050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12052 \-*) ;;
12053 *) break;;
12054 esac
12055 done
12056 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12057
12058
12059 # GDC did not exist at the time GCC didn't implicitly link libc in.
12060 archive_cmds_need_lc_D=no
12061
12062 old_archive_cmds_D=$old_archive_cmds
12063 reload_flag_D=$reload_flag
12064 reload_cmds_D=$reload_cmds
12065
12066 ## CAVEAT EMPTOR:
12067 ## There is no encapsulation within the following macros, do not change
12068 ## the running order or otherwise move them around unless you know exactly
12069 ## what you are doing...
12070 if test -n "$compiler"; then
12071
12072 lt_prog_compiler_no_builtin_flag_D=
12073
12074 if test "$GCC" = yes; then
12075 case $cc_basename in
12076 nvcc*)
12077 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12078 *)
12079 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12080 esac
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12084 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 lt_cv_prog_compiler_rtti_exceptions=no
12088 ac_outfile=conftest.$ac_objext
12089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12090 lt_compiler_flag="-fno-rtti -fno-exceptions"
12091 # Insert the option either (1) after the last *FLAGS variable, or
12092 # (2) before a word containing "conftest.", or (3) at the end.
12093 # Note that $ac_compile itself does not contain backslashes and begins
12094 # with a dollar sign (not a hyphen), so the echo should work correctly.
12095 # The option is referenced via a variable to avoid confusing sed.
12096 lt_compile=`echo "$ac_compile" | $SED \
12097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12099 -e 's:$: $lt_compiler_flag:'`
12100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12101 (eval "$lt_compile" 2>conftest.err)
12102 ac_status=$?
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 if (exit $ac_status) && test -s "$ac_outfile"; then
12106 # The compiler can only warn and ignore the option if not recognized
12107 # So say no if there are warnings other than the usual output.
12108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12111 lt_cv_prog_compiler_rtti_exceptions=yes
12112 fi
12113 fi
12114 $RM conftest*
12115
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12119
12120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12121 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12122 else
12123 :
12124 fi
12125
12126 fi
12127
12128
12129
12130 lt_prog_compiler_wl_D=
12131 lt_prog_compiler_pic_D=
12132 lt_prog_compiler_static_D=
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12135 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12136
12137 if test "$GCC" = yes; then
12138 lt_prog_compiler_wl_D='-Wl,'
12139 lt_prog_compiler_static_D='-static'
12140
12141 case $host_os in
12142 aix*)
12143 # All AIX code is PIC.
12144 if test "$host_cpu" = ia64; then
12145 # AIX 5 now supports IA64 processor
12146 lt_prog_compiler_static_D='-Bstatic'
12147 fi
12148 lt_prog_compiler_pic_D='-fPIC'
12149 ;;
12150
12151 amigaos*)
12152 case $host_cpu in
12153 powerpc)
12154 # see comment about AmigaOS4 .so support
12155 lt_prog_compiler_pic_D='-fPIC'
12156 ;;
12157 m68k)
12158 # FIXME: we need at least 68020 code to build shared libraries, but
12159 # adding the `-m68020' flag to GCC prevents building anything better,
12160 # like `-m68040'.
12161 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12162 ;;
12163 esac
12164 ;;
12165
12166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12167 # PIC is the default for these OSes.
12168 ;;
12169
12170 mingw* | cygwin* | pw32* | os2* | cegcc*)
12171 # This hack is so that the source file can tell whether it is being
12172 # built for inclusion in a dll (and should export symbols for example).
12173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12174 # (--disable-auto-import) libraries
12175 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12176 ;;
12177
12178 darwin* | rhapsody*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 lt_prog_compiler_pic_D='-fno-common'
12182 ;;
12183
12184 haiku*)
12185 # PIC is the default for Haiku.
12186 # The "-static" flag exists, but is broken.
12187 lt_prog_compiler_static_D=
12188 ;;
12189
12190 hpux*)
12191 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12192 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12193 # sets the default TLS model and affects inlining.
12194 case $host_cpu in
12195 hppa*64*)
12196 # +Z the default
12197 ;;
12198 *)
12199 lt_prog_compiler_pic_D='-fPIC'
12200 ;;
12201 esac
12202 ;;
12203
12204 interix[3-9]*)
12205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12206 # Instead, we relocate shared libraries at runtime.
12207 ;;
12208
12209 msdosdjgpp*)
12210 # Just because we use GCC doesn't mean we suddenly get shared libraries
12211 # on systems that don't support them.
12212 lt_prog_compiler_can_build_shared_D=no
12213 enable_shared=no
12214 ;;
12215
12216 *nto* | *qnx*)
12217 # QNX uses GNU C++, but need to define -shared option too, otherwise
12218 # it will coredump.
12219 lt_prog_compiler_pic_D='-fPIC -shared'
12220 ;;
12221
12222 sysv4*MP*)
12223 if test -d /usr/nec; then
12224 lt_prog_compiler_pic_D=-Kconform_pic
12225 fi
12226 ;;
12227
12228 *)
12229 lt_prog_compiler_pic_D='-fPIC'
12230 ;;
12231 esac
12232
12233 case $cc_basename in
12234 nvcc*) # Cuda Compiler Driver 2.2
12235 lt_prog_compiler_wl_D='-Xlinker '
12236 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12237 ;;
12238 esac
12239 else
12240 # PORTME Check for flag to pass linker flags through the system compiler.
12241 case $host_os in
12242 aix*)
12243 lt_prog_compiler_wl_D='-Wl,'
12244 if test "$host_cpu" = ia64; then
12245 # AIX 5 now supports IA64 processor
12246 lt_prog_compiler_static_D='-Bstatic'
12247 else
12248 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12249 fi
12250 ;;
12251
12252 mingw* | cygwin* | pw32* | os2* | cegcc*)
12253 # This hack is so that the source file can tell whether it is being
12254 # built for inclusion in a dll (and should export symbols for example).
12255 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12256 ;;
12257
12258 hpux9* | hpux10* | hpux11*)
12259 lt_prog_compiler_wl_D='-Wl,'
12260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12261 # not for PA HP-UX.
12262 case $host_cpu in
12263 hppa*64*|ia64*)
12264 # +Z the default
12265 ;;
12266 *)
12267 lt_prog_compiler_pic_D='+Z'
12268 ;;
12269 esac
12270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12271 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12272 ;;
12273
12274 irix5* | irix6* | nonstopux*)
12275 lt_prog_compiler_wl_D='-Wl,'
12276 # PIC (with -KPIC) is the default.
12277 lt_prog_compiler_static_D='-non_shared'
12278 ;;
12279
12280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12281 case $cc_basename in
12282 # old Intel for x86_64 which still supported -KPIC.
12283 ecc*)
12284 lt_prog_compiler_wl_D='-Wl,'
12285 lt_prog_compiler_pic_D='-KPIC'
12286 lt_prog_compiler_static_D='-static'
12287 ;;
12288 # icc used to be incompatible with GCC.
12289 # ICC 10 doesn't accept -KPIC any more.
12290 icc* | ifort*)
12291 lt_prog_compiler_wl_D='-Wl,'
12292 lt_prog_compiler_pic_D='-fPIC'
12293 lt_prog_compiler_static_D='-static'
12294 ;;
12295 # Lahey Fortran 8.1.
12296 lf95*)
12297 lt_prog_compiler_wl_D='-Wl,'
12298 lt_prog_compiler_pic_D='--shared'
12299 lt_prog_compiler_static_D='--static'
12300 ;;
12301 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12302 # Portland Group compilers (*not* the Pentium gcc compiler,
12303 # which looks to be a dead project)
12304 lt_prog_compiler_wl_D='-Wl,'
12305 lt_prog_compiler_pic_D='-fpic'
12306 lt_prog_compiler_static_D='-Bstatic'
12307 ;;
12308 ccc*)
12309 lt_prog_compiler_wl_D='-Wl,'
12310 # All Alpha code is PIC.
12311 lt_prog_compiler_static_D='-non_shared'
12312 ;;
12313 xl* | bgxl* | bgf* | mpixl*)
12314 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12315 lt_prog_compiler_wl_D='-Wl,'
12316 lt_prog_compiler_pic_D='-qpic'
12317 lt_prog_compiler_static_D='-qstaticlink'
12318 ;;
12319 *)
12320 case `$CC -V 2>&1 | sed 5q` in
12321 *Sun\ F* | *Sun*Fortran*)
12322 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12323 lt_prog_compiler_pic_D='-KPIC'
12324 lt_prog_compiler_static_D='-Bstatic'
12325 lt_prog_compiler_wl_D=''
12326 ;;
12327 *Sun\ C*)
12328 # Sun C 5.9
12329 lt_prog_compiler_pic_D='-KPIC'
12330 lt_prog_compiler_static_D='-Bstatic'
12331 lt_prog_compiler_wl_D='-Wl,'
12332 ;;
12333 esac
12334 ;;
12335 esac
12336 ;;
12337
12338 newsos6)
12339 lt_prog_compiler_pic_D='-KPIC'
12340 lt_prog_compiler_static_D='-Bstatic'
12341 ;;
12342
12343 *nto* | *qnx*)
12344 # QNX uses GNU C++, but need to define -shared option too, otherwise
12345 # it will coredump.
12346 lt_prog_compiler_pic_D='-fPIC -shared'
12347 ;;
12348
12349 osf3* | osf4* | osf5*)
12350 lt_prog_compiler_wl_D='-Wl,'
12351 # All OSF/1 code is PIC.
12352 lt_prog_compiler_static_D='-non_shared'
12353 ;;
12354
12355 rdos*)
12356 lt_prog_compiler_static_D='-non_shared'
12357 ;;
12358
12359 solaris*)
12360 lt_prog_compiler_pic_D='-KPIC'
12361 lt_prog_compiler_static_D='-Bstatic'
12362 case $cc_basename in
12363 f77* | f90* | f95*)
12364 lt_prog_compiler_wl_D='-Qoption ld ';;
12365 *)
12366 lt_prog_compiler_wl_D='-Wl,';;
12367 esac
12368 ;;
12369
12370 sunos4*)
12371 lt_prog_compiler_wl_D='-Qoption ld '
12372 lt_prog_compiler_pic_D='-PIC'
12373 lt_prog_compiler_static_D='-Bstatic'
12374 ;;
12375
12376 sysv4 | sysv4.2uw2* | sysv4.3*)
12377 lt_prog_compiler_wl_D='-Wl,'
12378 lt_prog_compiler_pic_D='-KPIC'
12379 lt_prog_compiler_static_D='-Bstatic'
12380 ;;
12381
12382 sysv4*MP*)
12383 if test -d /usr/nec ;then
12384 lt_prog_compiler_pic_D='-Kconform_pic'
12385 lt_prog_compiler_static_D='-Bstatic'
12386 fi
12387 ;;
12388
12389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12390 lt_prog_compiler_wl_D='-Wl,'
12391 lt_prog_compiler_pic_D='-KPIC'
12392 lt_prog_compiler_static_D='-Bstatic'
12393 ;;
12394
12395 unicos*)
12396 lt_prog_compiler_wl_D='-Wl,'
12397 lt_prog_compiler_can_build_shared_D=no
12398 ;;
12399
12400 uts4*)
12401 lt_prog_compiler_pic_D='-pic'
12402 lt_prog_compiler_static_D='-Bstatic'
12403 ;;
12404
12405 *)
12406 lt_prog_compiler_can_build_shared_D=no
12407 ;;
12408 esac
12409 fi
12410
12411 case $host_os in
12412 # For platforms which do not support PIC, -DPIC is meaningless:
12413 *djgpp*)
12414 lt_prog_compiler_pic_D=
12415 ;;
12416 *)
12417 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12418 ;;
12419 esac
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12421 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12422
12423
12424
12425 #
12426 # Check to make sure the PIC flag actually works.
12427 #
12428 if test -n "$lt_prog_compiler_pic_D"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12431 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 lt_cv_prog_compiler_pic_works_D=no
12435 ac_outfile=conftest.$ac_objext
12436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12437 lt_compiler_flag="$lt_prog_compiler_pic_D"
12438 # Insert the option either (1) after the last *FLAGS variable, or
12439 # (2) before a word containing "conftest.", or (3) at the end.
12440 # Note that $ac_compile itself does not contain backslashes and begins
12441 # with a dollar sign (not a hyphen), so the echo should work correctly.
12442 # The option is referenced via a variable to avoid confusing sed.
12443 lt_compile=`echo "$ac_compile" | $SED \
12444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446 -e 's:$: $lt_compiler_flag:'`
12447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12448 (eval "$lt_compile" 2>conftest.err)
12449 ac_status=$?
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 if (exit $ac_status) && test -s "$ac_outfile"; then
12453 # The compiler can only warn and ignore the option if not recognized
12454 # So say no if there are warnings other than the usual output.
12455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12458 lt_cv_prog_compiler_pic_works_D=yes
12459 fi
12460 fi
12461 $RM conftest*
12462
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12465 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12466
12467 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12468 case $lt_prog_compiler_pic_D in
12469 "" | " "*) ;;
12470 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12471 esac
12472 else
12473 lt_prog_compiler_pic_D=
12474 lt_prog_compiler_can_build_shared_D=no
12475 fi
12476
12477 fi
12478
12479
12480
12481 #
12482 # Check to make sure the static flag actually works.
12483 #
12484 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12486 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12487 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 lt_cv_prog_compiler_static_works_D=no
12491 save_LDFLAGS="$LDFLAGS"
12492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12495 # The linker can only warn and ignore the option if not recognized
12496 # So say no if there are warnings
12497 if test -s conftest.err; then
12498 # Append any errors to the config.log.
12499 cat conftest.err 1>&5
12500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12502 if diff conftest.exp conftest.er2 >/dev/null; then
12503 lt_cv_prog_compiler_static_works_D=yes
12504 fi
12505 else
12506 lt_cv_prog_compiler_static_works_D=yes
12507 fi
12508 fi
12509 $RM -r conftest*
12510 LDFLAGS="$save_LDFLAGS"
12511
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12514 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12515
12516 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12517 :
12518 else
12519 lt_prog_compiler_static_D=
12520 fi
12521
12522
12523
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12526 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12527 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 lt_cv_prog_compiler_c_o_D=no
12531 $RM -r conftest 2>/dev/null
12532 mkdir conftest
12533 cd conftest
12534 mkdir out
12535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12536
12537 lt_compiler_flag="-o out/conftest2.$ac_objext"
12538 # Insert the option either (1) after the last *FLAGS variable, or
12539 # (2) before a word containing "conftest.", or (3) at the end.
12540 # Note that $ac_compile itself does not contain backslashes and begins
12541 # with a dollar sign (not a hyphen), so the echo should work correctly.
12542 lt_compile=`echo "$ac_compile" | $SED \
12543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545 -e 's:$: $lt_compiler_flag:'`
12546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12547 (eval "$lt_compile" 2>out/conftest.err)
12548 ac_status=$?
12549 cat out/conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12552 then
12553 # The compiler can only warn and ignore the option if not recognized
12554 # So say no if there are warnings
12555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12558 lt_cv_prog_compiler_c_o_D=yes
12559 fi
12560 fi
12561 chmod u+w . 2>&5
12562 $RM conftest*
12563 # SGI C++ compiler will create directory out/ii_files/ for
12564 # template instantiation
12565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12566 $RM out/* && rmdir out
12567 cd ..
12568 $RM -r conftest
12569 $RM conftest*
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12573 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12574
12575
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12579 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 lt_cv_prog_compiler_c_o_D=no
12583 $RM -r conftest 2>/dev/null
12584 mkdir conftest
12585 cd conftest
12586 mkdir out
12587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12588
12589 lt_compiler_flag="-o out/conftest2.$ac_objext"
12590 # Insert the option either (1) after the last *FLAGS variable, or
12591 # (2) before a word containing "conftest.", or (3) at the end.
12592 # Note that $ac_compile itself does not contain backslashes and begins
12593 # with a dollar sign (not a hyphen), so the echo should work correctly.
12594 lt_compile=`echo "$ac_compile" | $SED \
12595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12597 -e 's:$: $lt_compiler_flag:'`
12598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12599 (eval "$lt_compile" 2>out/conftest.err)
12600 ac_status=$?
12601 cat out/conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12604 then
12605 # The compiler can only warn and ignore the option if not recognized
12606 # So say no if there are warnings
12607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12610 lt_cv_prog_compiler_c_o_D=yes
12611 fi
12612 fi
12613 chmod u+w . 2>&5
12614 $RM conftest*
12615 # SGI C++ compiler will create directory out/ii_files/ for
12616 # template instantiation
12617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12618 $RM out/* && rmdir out
12619 cd ..
12620 $RM -r conftest
12621 $RM conftest*
12622
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12625 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12626
12627
12628
12629
12630 hard_links="nottested"
12631 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12632 # do not overwrite the value of need_locks provided by the user
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12634 $as_echo_n "checking if we can lock with hard links... " >&6; }
12635 hard_links=yes
12636 $RM conftest*
12637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12638 touch conftest.a
12639 ln conftest.a conftest.b 2>&5 || hard_links=no
12640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12642 $as_echo "$hard_links" >&6; }
12643 if test "$hard_links" = no; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12646 need_locks=warn
12647 fi
12648 else
12649 need_locks=no
12650 fi
12651
12652
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12655 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12656
12657 runpath_var=
12658 allow_undefined_flag_D=
12659 always_export_symbols_D=no
12660 archive_cmds_D=
12661 archive_expsym_cmds_D=
12662 compiler_needs_object_D=no
12663 enable_shared_with_static_runtimes_D=no
12664 export_dynamic_flag_spec_D=
12665 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12666 hardcode_automatic_D=no
12667 hardcode_direct_D=no
12668 hardcode_direct_absolute_D=no
12669 hardcode_libdir_flag_spec_D=
12670 hardcode_libdir_flag_spec_ld_D=
12671 hardcode_libdir_separator_D=
12672 hardcode_minus_L_D=no
12673 hardcode_shlibpath_var_D=unsupported
12674 inherit_rpath_D=no
12675 link_all_deplibs_D=unknown
12676 module_cmds_D=
12677 module_expsym_cmds_D=
12678 old_archive_from_new_cmds_D=
12679 old_archive_from_expsyms_cmds_D=
12680 thread_safe_flag_spec_D=
12681 whole_archive_flag_spec_D=
12682 # include_expsyms should be a list of space-separated symbols to be *always*
12683 # included in the symbol list
12684 include_expsyms_D=
12685 # exclude_expsyms can be an extended regexp of symbols to exclude
12686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12688 # as well as any symbol that contains `d'.
12689 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12691 # platforms (ab)use it in PIC code, but their linkers get confused if
12692 # the symbol is explicitly referenced. Since portable code cannot
12693 # rely on this symbol name, it's probably fine to never include it in
12694 # preloaded symbol tables.
12695 # Exclude shared library initialization/finalization symbols.
12696 extract_expsyms_cmds=
12697
12698 case $host_os in
12699 cygwin* | mingw* | pw32* | cegcc*)
12700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12701 # When not using gcc, we currently assume that we are using
12702 # Microsoft Visual C++.
12703 if test "$GCC" != yes; then
12704 with_gnu_ld=no
12705 fi
12706 ;;
12707 interix*)
12708 # we just hope/assume this is gcc and not c89 (= MSVC++)
12709 with_gnu_ld=yes
12710 ;;
12711 openbsd*)
12712 with_gnu_ld=no
12713 ;;
12714 esac
12715
12716 ld_shlibs_D=yes
12717
12718 # On some targets, GNU ld is compatible enough with the native linker
12719 # that we're better off using the native interface for both.
12720 lt_use_gnu_ld_interface=no
12721 if test "$with_gnu_ld" = yes; then
12722 case $host_os in
12723 aix*)
12724 # The AIX port of GNU ld has always aspired to compatibility
12725 # with the native linker. However, as the warning in the GNU ld
12726 # block says, versions before 2.19.5* couldn't really create working
12727 # shared libraries, regardless of the interface used.
12728 case `$LD -v 2>&1` in
12729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12732 *)
12733 lt_use_gnu_ld_interface=yes
12734 ;;
12735 esac
12736 ;;
12737 *)
12738 lt_use_gnu_ld_interface=yes
12739 ;;
12740 esac
12741 fi
12742
12743 if test "$lt_use_gnu_ld_interface" = yes; then
12744 # If archive_cmds runs LD, not CC, wlarc should be empty
12745 wlarc='${wl}'
12746
12747 # Set some defaults for GNU ld with shared library support. These
12748 # are reset later if shared libraries are not supported. Putting them
12749 # here allows them to be overridden if necessary.
12750 runpath_var=LD_RUN_PATH
12751 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12752 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12753 # ancient GNU ld didn't support --whole-archive et. al.
12754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12755 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12756 else
12757 whole_archive_flag_spec_D=
12758 fi
12759 supports_anon_versioning=no
12760 case `$LD -v 2>&1` in
12761 *GNU\ gold*) supports_anon_versioning=yes ;;
12762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12765 *\ 2.11.*) ;; # other 2.11 versions
12766 *) supports_anon_versioning=yes ;;
12767 esac
12768
12769 # See if GNU ld supports shared libraries.
12770 case $host_os in
12771 aix[3-9]*)
12772 # On AIX/PPC, the GNU linker is very broken
12773 if test "$host_cpu" != ia64; then
12774 ld_shlibs_D=no
12775 cat <<_LT_EOF 1>&2
12776
12777 *** Warning: the GNU linker, at least up to release 2.19, is reported
12778 *** to be unable to reliably create shared libraries on AIX.
12779 *** Therefore, libtool is disabling shared libraries support. If you
12780 *** really care for shared libraries, you may want to install binutils
12781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12782 *** You will then need to restart the configuration process.
12783
12784 _LT_EOF
12785 fi
12786 ;;
12787
12788 amigaos*)
12789 case $host_cpu in
12790 powerpc)
12791 # see comment about AmigaOS4 .so support
12792 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 archive_expsym_cmds_D=''
12794 ;;
12795 m68k)
12796 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)'
12797 hardcode_libdir_flag_spec_D='-L$libdir'
12798 hardcode_minus_L_D=yes
12799 ;;
12800 esac
12801 ;;
12802
12803 beos*)
12804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12805 allow_undefined_flag_D=unsupported
12806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12807 # support --undefined. This deserves some investigation. FIXME
12808 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12809 else
12810 ld_shlibs_D=no
12811 fi
12812 ;;
12813
12814 cygwin* | mingw* | pw32* | cegcc*)
12815 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12816 # as there is no search path for DLLs.
12817 hardcode_libdir_flag_spec_D='-L$libdir'
12818 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12819 allow_undefined_flag_D=unsupported
12820 always_export_symbols_D=no
12821 enable_shared_with_static_runtimes_D=yes
12822 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12823
12824 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12825 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12826 # If the export-symbols file already is a .def file (1st line
12827 # is EXPORTS), use it as is; otherwise, prepend...
12828 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829 cp $export_symbols $output_objdir/$soname.def;
12830 else
12831 echo EXPORTS > $output_objdir/$soname.def;
12832 cat $export_symbols >> $output_objdir/$soname.def;
12833 fi~
12834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12835 else
12836 ld_shlibs_D=no
12837 fi
12838 ;;
12839
12840 haiku*)
12841 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 link_all_deplibs_D=yes
12843 ;;
12844
12845 interix[3-9]*)
12846 hardcode_direct_D=no
12847 hardcode_shlibpath_var_D=no
12848 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12849 export_dynamic_flag_spec_D='${wl}-E'
12850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12851 # Instead, shared libraries are loaded at an image base (0x10000000 by
12852 # default) and relocated if they conflict, which is a slow very memory
12853 # consuming and fragmenting process. To avoid this, we pick a random,
12854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12856 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'
12857 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'
12858 ;;
12859
12860 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12861 tmp_diet=no
12862 if test "$host_os" = linux-dietlibc; then
12863 case $cc_basename in
12864 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12865 esac
12866 fi
12867 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12868 && test "$tmp_diet" = no
12869 then
12870 tmp_addflag=' $pic_flag'
12871 tmp_sharedflag='-shared'
12872 case $cc_basename,$host_cpu in
12873 pgcc*) # Portland Group C compiler
12874 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'
12875 tmp_addflag=' $pic_flag'
12876 ;;
12877 pgf77* | pgf90* | pgf95* | pgfortran*)
12878 # Portland Group f77 and f90 compilers
12879 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'
12880 tmp_addflag=' $pic_flag -Mnomain' ;;
12881 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12882 tmp_addflag=' -i_dynamic' ;;
12883 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12884 tmp_addflag=' -i_dynamic -nofor_main' ;;
12885 ifc* | ifort*) # Intel Fortran compiler
12886 tmp_addflag=' -nofor_main' ;;
12887 lf95*) # Lahey Fortran 8.1
12888 whole_archive_flag_spec_D=
12889 tmp_sharedflag='--shared' ;;
12890 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12891 tmp_sharedflag='-qmkshrobj'
12892 tmp_addflag= ;;
12893 nvcc*) # Cuda Compiler Driver 2.2
12894 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'
12895 compiler_needs_object_D=yes
12896 ;;
12897 esac
12898 case `$CC -V 2>&1 | sed 5q` in
12899 *Sun\ C*) # Sun C 5.9
12900 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'
12901 compiler_needs_object_D=yes
12902 tmp_sharedflag='-G' ;;
12903 *Sun\ F*) # Sun Fortran 8.3
12904 tmp_sharedflag='-G' ;;
12905 esac
12906 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907
12908 if test "x$supports_anon_versioning" = xyes; then
12909 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12910 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12911 echo "local: *; };" >> $output_objdir/$libname.ver~
12912 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12913 fi
12914
12915 case $cc_basename in
12916 xlf* | bgf* | bgxlf* | mpixlf*)
12917 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12918 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12919 hardcode_libdir_flag_spec_D=
12920 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12921 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12922 if test "x$supports_anon_versioning" = xyes; then
12923 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925 echo "local: *; };" >> $output_objdir/$libname.ver~
12926 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12927 fi
12928 ;;
12929 esac
12930 else
12931 ld_shlibs_D=no
12932 fi
12933 ;;
12934
12935 netbsd*)
12936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12937 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12938 wlarc=
12939 else
12940 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942 fi
12943 ;;
12944
12945 solaris*)
12946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12947 ld_shlibs_D=no
12948 cat <<_LT_EOF 1>&2
12949
12950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12951 *** create shared libraries on Solaris systems. Therefore, libtool
12952 *** is disabling shared libraries support. We urge you to upgrade GNU
12953 *** binutils to release 2.9.1 or newer. Another option is to modify
12954 *** your PATH or compiler configuration so that the native linker is
12955 *** used, and then restart.
12956
12957 _LT_EOF
12958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12959 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12960 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12961 else
12962 ld_shlibs_D=no
12963 fi
12964 ;;
12965
12966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12967 case `$LD -v 2>&1` in
12968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12969 ld_shlibs_D=no
12970 cat <<_LT_EOF 1>&2
12971
12972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12973 *** reliably create shared libraries on SCO systems. Therefore, libtool
12974 *** is disabling shared libraries support. We urge you to upgrade GNU
12975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12976 *** your PATH or compiler configuration so that the native linker is
12977 *** used, and then restart.
12978
12979 _LT_EOF
12980 ;;
12981 *)
12982 # For security reasons, it is highly recommended that you always
12983 # use absolute paths for naming shared libraries, and exclude the
12984 # DT_RUNPATH tag from executables and libraries. But doing so
12985 # requires that you compile everything twice, which is a pain.
12986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12988 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12990 else
12991 ld_shlibs_D=no
12992 fi
12993 ;;
12994 esac
12995 ;;
12996
12997 sunos4*)
12998 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12999 wlarc=
13000 hardcode_direct_D=yes
13001 hardcode_shlibpath_var_D=no
13002 ;;
13003
13004 *)
13005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13006 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13008 else
13009 ld_shlibs_D=no
13010 fi
13011 ;;
13012 esac
13013
13014 if test "$ld_shlibs_D" = no; then
13015 runpath_var=
13016 hardcode_libdir_flag_spec_D=
13017 export_dynamic_flag_spec_D=
13018 whole_archive_flag_spec_D=
13019 fi
13020 else
13021 # PORTME fill in a description of your system's linker (not GNU ld)
13022 case $host_os in
13023 aix3*)
13024 allow_undefined_flag_D=unsupported
13025 always_export_symbols_D=yes
13026 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'
13027 # Note: this linker hardcodes the directories in LIBPATH if there
13028 # are no directories specified by -L.
13029 hardcode_minus_L_D=yes
13030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13031 # Neither direct hardcoding nor static linking is supported with a
13032 # broken collect2.
13033 hardcode_direct_D=unsupported
13034 fi
13035 ;;
13036
13037 aix[4-9]*)
13038 if test "$host_cpu" = ia64; then
13039 # On IA64, the linker does run time linking by default, so we don't
13040 # have to do anything special.
13041 aix_use_runtimelinking=no
13042 exp_sym_flag='-Bexport'
13043 no_entry_flag=""
13044 else
13045 # If we're using GNU nm, then we don't want the "-C" option.
13046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13047 # Also, AIX nm treats weak defined symbols like other global
13048 # defined symbols, whereas GNU nm marks them as "W".
13049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13050 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'
13051 else
13052 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'
13053 fi
13054 aix_use_runtimelinking=no
13055
13056 # Test if we are trying to use run time linking or normal
13057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13058 # need to do runtime linking.
13059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13060 for ld_flag in $LDFLAGS; do
13061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13062 aix_use_runtimelinking=yes
13063 break
13064 fi
13065 done
13066 ;;
13067 esac
13068
13069 exp_sym_flag='-bexport'
13070 no_entry_flag='-bnoentry'
13071 fi
13072
13073 # When large executables or shared objects are built, AIX ld can
13074 # have problems creating the table of contents. If linking a library
13075 # or program results in "error TOC overflow" add -mminimal-toc to
13076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13078
13079 archive_cmds_D=''
13080 hardcode_direct_D=yes
13081 hardcode_direct_absolute_D=yes
13082 hardcode_libdir_separator_D=':'
13083 link_all_deplibs_D=yes
13084 file_list_spec_D='${wl}-f,'
13085
13086 if test "$GCC" = yes; then
13087 case $host_os in aix4.[012]|aix4.[012].*)
13088 # We only want to do this on AIX 4.2 and lower, the check
13089 # below for broken collect2 doesn't work under 4.3+
13090 collect2name=`${CC} -print-prog-name=collect2`
13091 if test -f "$collect2name" &&
13092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13093 then
13094 # We have reworked collect2
13095 :
13096 else
13097 # We have old collect2
13098 hardcode_direct_D=unsupported
13099 # It fails to find uninstalled libraries when the uninstalled
13100 # path is not listed in the libpath. Setting hardcode_minus_L
13101 # to unsupported forces relinking
13102 hardcode_minus_L_D=yes
13103 hardcode_libdir_flag_spec_D='-L$libdir'
13104 hardcode_libdir_separator_D=
13105 fi
13106 ;;
13107 esac
13108 shared_flag='-shared'
13109 if test "$aix_use_runtimelinking" = yes; then
13110 shared_flag="$shared_flag "'${wl}-G'
13111 fi
13112 else
13113 # not using gcc
13114 if test "$host_cpu" = ia64; then
13115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13116 # chokes on -Wl,-G. The following line is correct:
13117 shared_flag='-G'
13118 else
13119 if test "$aix_use_runtimelinking" = yes; then
13120 shared_flag='${wl}-G'
13121 else
13122 shared_flag='${wl}-bM:SRE'
13123 fi
13124 fi
13125 fi
13126
13127 export_dynamic_flag_spec_D='${wl}-bexpall'
13128 # It seems that -bexpall does not export symbols beginning with
13129 # underscore (_), so it is better to generate a list of symbols to export.
13130 always_export_symbols_D=yes
13131 if test "$aix_use_runtimelinking" = yes; then
13132 # Warning - without using the other runtime loading flags (-brtl),
13133 # -berok will link without error, but may produce a broken library.
13134 allow_undefined_flag_D='-berok'
13135 # Determine the default libpath from the value encoded in an
13136 # empty executable.
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139
13140 int
13141 main ()
13142 {
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149
13150 lt_aix_libpath_sed='
13151 /Import File Strings/,/^$/ {
13152 /^0/ {
13153 s/^0 *\(.*\)$/\1/
13154 p
13155 }
13156 }'
13157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13158 # Check for a 64-bit object if we didn't find anything.
13159 if test -z "$aix_libpath"; then
13160 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13161 fi
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13166
13167 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13168 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"
13169 else
13170 if test "$host_cpu" = ia64; then
13171 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13172 allow_undefined_flag_D="-z nodefs"
13173 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"
13174 else
13175 # Determine the default libpath from the value encoded in an
13176 # empty executable.
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 int
13181 main ()
13182 {
13183
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189
13190 lt_aix_libpath_sed='
13191 /Import File Strings/,/^$/ {
13192 /^0/ {
13193 s/^0 *\(.*\)$/\1/
13194 p
13195 }
13196 }'
13197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198 # Check for a 64-bit object if we didn't find anything.
13199 if test -z "$aix_libpath"; then
13200 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13201 fi
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13206
13207 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13208 # Warning - without using the other run time loading flags,
13209 # -berok will link without error, but may produce a broken library.
13210 no_undefined_flag_D=' ${wl}-bernotok'
13211 allow_undefined_flag_D=' ${wl}-berok'
13212 if test "$with_gnu_ld" = yes; then
13213 # We only use this code for GNU lds that support --whole-archive.
13214 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13215 else
13216 # Exported symbols can be pulled into shared objects from archives
13217 whole_archive_flag_spec_D='$convenience'
13218 fi
13219 archive_cmds_need_lc_D=yes
13220 # This is similar to how AIX traditionally builds its shared libraries.
13221 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'
13222 fi
13223 fi
13224 ;;
13225
13226 amigaos*)
13227 case $host_cpu in
13228 powerpc)
13229 # see comment about AmigaOS4 .so support
13230 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_expsym_cmds_D=''
13232 ;;
13233 m68k)
13234 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)'
13235 hardcode_libdir_flag_spec_D='-L$libdir'
13236 hardcode_minus_L_D=yes
13237 ;;
13238 esac
13239 ;;
13240
13241 bsdi[45]*)
13242 export_dynamic_flag_spec_D=-rdynamic
13243 ;;
13244
13245 cygwin* | mingw* | pw32* | cegcc*)
13246 # When not using gcc, we currently assume that we are using
13247 # Microsoft Visual C++.
13248 # hardcode_libdir_flag_spec is actually meaningless, as there is
13249 # no search path for DLLs.
13250 hardcode_libdir_flag_spec_D=' '
13251 allow_undefined_flag_D=unsupported
13252 # Tell ltmain to make .lib files, not .a files.
13253 libext=lib
13254 # Tell ltmain to make .dll files, not .so files.
13255 shrext_cmds=".dll"
13256 # FIXME: Setting linknames here is a bad hack.
13257 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13258 # The linker will automatically build a .lib file if we build a DLL.
13259 old_archive_from_new_cmds_D='true'
13260 # FIXME: Should let the user specify the lib program.
13261 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13262 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13263 enable_shared_with_static_runtimes_D=yes
13264 ;;
13265
13266 darwin* | rhapsody*)
13267
13268
13269 archive_cmds_need_lc_D=no
13270 hardcode_direct_D=no
13271 hardcode_automatic_D=yes
13272 hardcode_shlibpath_var_D=unsupported
13273 if test "$lt_cv_ld_force_load" = "yes"; then
13274 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\"`'
13275 else
13276 whole_archive_flag_spec_D=''
13277 fi
13278 link_all_deplibs_D=yes
13279 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13280 case $cc_basename in
13281 ifort*) _lt_dar_can_shared=yes ;;
13282 *) _lt_dar_can_shared=$GCC ;;
13283 esac
13284 if test "$_lt_dar_can_shared" = "yes"; then
13285 output_verbose_link_cmd=func_echo_all
13286 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}"
13287 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13288 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}"
13289 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}"
13290
13291 else
13292 ld_shlibs_D=no
13293 fi
13294
13295 ;;
13296
13297 dgux*)
13298 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_libdir_flag_spec_D='-L$libdir'
13300 hardcode_shlibpath_var_D=no
13301 ;;
13302
13303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13304 # support. Future versions do this automatically, but an explicit c++rt0.o
13305 # does not break anything, and helps significantly (at the cost of a little
13306 # extra space).
13307 freebsd2.2*)
13308 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13309 hardcode_libdir_flag_spec_D='-R$libdir'
13310 hardcode_direct_D=yes
13311 hardcode_shlibpath_var_D=no
13312 ;;
13313
13314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13315 freebsd2.*)
13316 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_direct_D=yes
13318 hardcode_minus_L_D=yes
13319 hardcode_shlibpath_var_D=no
13320 ;;
13321
13322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13323 freebsd* | dragonfly*)
13324 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13325 hardcode_libdir_flag_spec_D='-R$libdir'
13326 hardcode_direct_D=yes
13327 hardcode_shlibpath_var_D=no
13328 ;;
13329
13330 hpux9*)
13331 if test "$GCC" = yes; then
13332 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'
13333 else
13334 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'
13335 fi
13336 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13337 hardcode_libdir_separator_D=:
13338 hardcode_direct_D=yes
13339
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_D=yes
13343 export_dynamic_flag_spec_D='${wl}-E'
13344 ;;
13345
13346 hpux10*)
13347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13348 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13349 else
13350 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13351 fi
13352 if test "$with_gnu_ld" = no; then
13353 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13354 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13355 hardcode_libdir_separator_D=:
13356 hardcode_direct_D=yes
13357 hardcode_direct_absolute_D=yes
13358 export_dynamic_flag_spec_D='${wl}-E'
13359 # hardcode_minus_L: Not really in the search PATH,
13360 # but as the default location of the library.
13361 hardcode_minus_L_D=yes
13362 fi
13363 ;;
13364
13365 hpux11*)
13366 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13367 case $host_cpu in
13368 hppa*64*)
13369 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13370 ;;
13371 ia64*)
13372 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13373 ;;
13374 *)
13375 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13376 ;;
13377 esac
13378 else
13379 case $host_cpu in
13380 hppa*64*)
13381 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 ;;
13383 ia64*)
13384 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 *)
13387 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13388 ;;
13389 esac
13390 fi
13391 if test "$with_gnu_ld" = no; then
13392 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13393 hardcode_libdir_separator_D=:
13394
13395 case $host_cpu in
13396 hppa*64*|ia64*)
13397 hardcode_direct_D=no
13398 hardcode_shlibpath_var_D=no
13399 ;;
13400 *)
13401 hardcode_direct_D=yes
13402 hardcode_direct_absolute_D=yes
13403 export_dynamic_flag_spec_D='${wl}-E'
13404
13405 # hardcode_minus_L: Not really in the search PATH,
13406 # but as the default location of the library.
13407 hardcode_minus_L_D=yes
13408 ;;
13409 esac
13410 fi
13411 ;;
13412
13413 irix5* | irix6* | nonstopux*)
13414 if test "$GCC" = yes; then
13415 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'
13416 # Try to use the -exported_symbol ld option, if it does not
13417 # work, assume that -exports_file does not work either and
13418 # implicitly export all symbols.
13419 save_LDFLAGS="$LDFLAGS"
13420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 int foo(void) {}
13424 _ACEOF
13425 if ac_fn_c_try_link "$LINENO"; then :
13426 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'
13427
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LDFLAGS="$save_LDFLAGS"
13432 else
13433 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'
13434 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'
13435 fi
13436 archive_cmds_need_lc_D='no'
13437 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13438 hardcode_libdir_separator_D=:
13439 inherit_rpath_D=yes
13440 link_all_deplibs_D=yes
13441 ;;
13442
13443 netbsd*)
13444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13445 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13446 else
13447 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13448 fi
13449 hardcode_libdir_flag_spec_D='-R$libdir'
13450 hardcode_direct_D=yes
13451 hardcode_shlibpath_var_D=no
13452 ;;
13453
13454 newsos6)
13455 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct_D=yes
13457 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13458 hardcode_libdir_separator_D=:
13459 hardcode_shlibpath_var_D=no
13460 ;;
13461
13462 *nto* | *qnx*)
13463 ;;
13464
13465 openbsd*)
13466 if test -f /usr/libexec/ld.so; then
13467 hardcode_direct_D=yes
13468 hardcode_shlibpath_var_D=no
13469 hardcode_direct_absolute_D=yes
13470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13473 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13474 export_dynamic_flag_spec_D='${wl}-E'
13475 else
13476 case $host_os in
13477 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13478 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec_D='-R$libdir'
13480 ;;
13481 *)
13482 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13484 ;;
13485 esac
13486 fi
13487 else
13488 ld_shlibs_D=no
13489 fi
13490 ;;
13491
13492 os2*)
13493 hardcode_libdir_flag_spec_D='-L$libdir'
13494 hardcode_minus_L_D=yes
13495 allow_undefined_flag_D=unsupported
13496 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'
13497 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13498 ;;
13499
13500 osf3*)
13501 if test "$GCC" = yes; then
13502 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13503 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'
13504 else
13505 allow_undefined_flag_D=' -expect_unresolved \*'
13506 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'
13507 fi
13508 archive_cmds_need_lc_D='no'
13509 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13510 hardcode_libdir_separator_D=:
13511 ;;
13512
13513 osf4* | osf5*) # as osf3* with the addition of -msym flag
13514 if test "$GCC" = yes; then
13515 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13516 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'
13517 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13518 else
13519 allow_undefined_flag_D=' -expect_unresolved \*'
13520 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'
13521 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~
13522 $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'
13523
13524 # Both c and cxx compiler support -rpath directly
13525 hardcode_libdir_flag_spec_D='-rpath $libdir'
13526 fi
13527 archive_cmds_need_lc_D='no'
13528 hardcode_libdir_separator_D=:
13529 ;;
13530
13531 solaris*)
13532 no_undefined_flag_D=' -z defs'
13533 if test "$GCC" = yes; then
13534 wlarc='${wl}'
13535 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13537 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13538 else
13539 case `$CC -V 2>&1` in
13540 *"Compilers 5.0"*)
13541 wlarc=''
13542 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13545 ;;
13546 *)
13547 wlarc='${wl}'
13548 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13550 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13551 ;;
13552 esac
13553 fi
13554 hardcode_libdir_flag_spec_D='-R$libdir'
13555 hardcode_shlibpath_var_D=no
13556 case $host_os in
13557 solaris2.[0-5] | solaris2.[0-5].*) ;;
13558 *)
13559 # The compiler driver will combine and reorder linker options,
13560 # but understands `-z linker_flag'. GCC discards it without `$wl',
13561 # but is careful enough not to reorder.
13562 # Supported since Solaris 2.6 (maybe 2.5.1?)
13563 if test "$GCC" = yes; then
13564 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13565 else
13566 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13567 fi
13568 ;;
13569 esac
13570 link_all_deplibs_D=yes
13571 ;;
13572
13573 sunos4*)
13574 if test "x$host_vendor" = xsequent; then
13575 # Use $CC to link under sequent, because it throws in some extra .o
13576 # files that make .init and .fini sections work.
13577 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13578 else
13579 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13580 fi
13581 hardcode_libdir_flag_spec_D='-L$libdir'
13582 hardcode_direct_D=yes
13583 hardcode_minus_L_D=yes
13584 hardcode_shlibpath_var_D=no
13585 ;;
13586
13587 sysv4)
13588 case $host_vendor in
13589 sni)
13590 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13591 hardcode_direct_D=yes # is this really true???
13592 ;;
13593 siemens)
13594 ## LD is ld it makes a PLAMLIB
13595 ## CC just makes a GrossModule.
13596 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13597 reload_cmds_D='$CC -r -o $output$reload_objs'
13598 hardcode_direct_D=no
13599 ;;
13600 motorola)
13601 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13603 ;;
13604 esac
13605 runpath_var='LD_RUN_PATH'
13606 hardcode_shlibpath_var_D=no
13607 ;;
13608
13609 sysv4.3*)
13610 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_shlibpath_var_D=no
13612 export_dynamic_flag_spec_D='-Bexport'
13613 ;;
13614
13615 sysv4*MP*)
13616 if test -d /usr/nec; then
13617 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_shlibpath_var_D=no
13619 runpath_var=LD_RUN_PATH
13620 hardcode_runpath_var=yes
13621 ld_shlibs_D=yes
13622 fi
13623 ;;
13624
13625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13626 no_undefined_flag_D='${wl}-z,text'
13627 archive_cmds_need_lc_D=no
13628 hardcode_shlibpath_var_D=no
13629 runpath_var='LD_RUN_PATH'
13630
13631 if test "$GCC" = yes; then
13632 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 else
13635 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 fi
13638 ;;
13639
13640 sysv5* | sco3.2v5* | sco5v6*)
13641 # Note: We can NOT use -z defs as we might desire, because we do not
13642 # link with -lc, and that would cause any symbols used from libc to
13643 # always be unresolved, which means just about no library would
13644 # ever link correctly. If we're not using GNU ld we use -z text
13645 # though, which does catch some bad symbols but isn't as heavy-handed
13646 # as -z defs.
13647 no_undefined_flag_D='${wl}-z,text'
13648 allow_undefined_flag_D='${wl}-z,nodefs'
13649 archive_cmds_need_lc_D=no
13650 hardcode_shlibpath_var_D=no
13651 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13652 hardcode_libdir_separator_D=':'
13653 link_all_deplibs_D=yes
13654 export_dynamic_flag_spec_D='${wl}-Bexport'
13655 runpath_var='LD_RUN_PATH'
13656
13657 if test "$GCC" = yes; then
13658 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 else
13661 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 fi
13664 ;;
13665
13666 uts4*)
13667 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668 hardcode_libdir_flag_spec_D='-L$libdir'
13669 hardcode_shlibpath_var_D=no
13670 ;;
13671
13672 *)
13673 ld_shlibs_D=no
13674 ;;
13675 esac
13676
13677 if test x$host_vendor = xsni; then
13678 case $host in
13679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13680 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13681 ;;
13682 esac
13683 fi
13684 fi
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13687 $as_echo "$ld_shlibs_D" >&6; }
13688 test "$ld_shlibs_D" = no && can_build_shared=no
13689
13690 with_gnu_ld_D=$with_gnu_ld
13691
13692
13693
13694
13695
13696
13697 #
13698 # Do we need to explicitly link libc?
13699 #
13700 case "x$archive_cmds_need_lc_D" in
13701 x|xyes)
13702 # Assume -lc should be added
13703 archive_cmds_need_lc_D=yes
13704
13705 if test "$enable_shared" = yes && test "$GCC" = yes; then
13706 case $archive_cmds_D in
13707 *'~'*)
13708 # FIXME: we may have to deal with multi-command sequences.
13709 ;;
13710 '$CC '*)
13711 # Test whether the compiler implicitly links with -lc since on some
13712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13713 # to ld, don't add -lc before -lgcc.
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13715 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13716 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 $RM conftest*
13720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13721
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723 (eval $ac_compile) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; } 2>conftest.err; then
13727 soname=conftest
13728 lib=conftest
13729 libobjs=conftest.$ac_objext
13730 deplibs=
13731 wl=$lt_prog_compiler_wl_D
13732 pic_flag=$lt_prog_compiler_pic_D
13733 compiler_flags=-v
13734 linker_flags=-v
13735 verstring=
13736 output_objdir=.
13737 libname=conftest
13738 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13739 allow_undefined_flag_D=
13740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13741 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13742 ac_status=$?
13743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13744 test $ac_status = 0; }
13745 then
13746 lt_cv_archive_cmds_need_lc_D=no
13747 else
13748 lt_cv_archive_cmds_need_lc_D=yes
13749 fi
13750 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13751 else
13752 cat conftest.err 1>&5
13753 fi
13754 $RM conftest*
13755
13756 fi
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13758 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13759 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13760 ;;
13761 esac
13762 fi
13763 ;;
13764 esac
13765
13766
13767
13768
13769
13770
13771
13772
13773
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13831 hardcode_action_D=
13832 if test -n "$hardcode_libdir_flag_spec_D" ||
13833 test -n "$runpath_var_D" ||
13834 test "X$hardcode_automatic_D" = "Xyes" ; then
13835
13836 # We can hardcode non-existent directories.
13837 if test "$hardcode_direct_D" != no &&
13838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13839 # have to relink, otherwise we might link with an installed library
13840 # when we should be linking with a yet-to-be-installed one
13841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13842 test "$hardcode_minus_L_D" != no; then
13843 # Linking always hardcodes the temporary library directory.
13844 hardcode_action_D=relink
13845 else
13846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13847 hardcode_action_D=immediate
13848 fi
13849 else
13850 # We cannot hardcode anything, or else we can only hardcode existing
13851 # directories.
13852 hardcode_action_D=unsupported
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13855 $as_echo "$hardcode_action_D" >&6; }
13856
13857 if test "$hardcode_action_D" = relink ||
13858 test "$inherit_rpath_D" = yes; then
13859 # Fast installation is not supported
13860 enable_fast_install=no
13861 elif test "$shlibpath_overrides_runpath" = yes ||
13862 test "$enable_shared" = no; then
13863 # Fast installation is not necessary
13864 enable_fast_install=needless
13865 fi
13866
13867
13868
13869
13870
13871
13872
13873 fi
13874
13875 ac_ext=c
13876 ac_cpp='$CPP $CPPFLAGS'
13877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880
13881
13882 GCC=$lt_save_GCC
13883 CC=$lt_save_CC
13884 CFLAGS=$lt_save_CFLAGS
13885
13886 GDCFLAGS=$gdc_save_DFLAGS
13887
13888
13889 # libtool variables for Phobos shared and position-independent compiles.
13890 #
13891 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13892 # creating shared objects. Default: -fversion=Shared.
13893 #
13894 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13895 # creating position-independent objects. This varies with the target
13896 # hardware and operating system, but is often: -fPIC.
13897 #
13898 # The distinction between pic and shared compilation flags is not present in
13899 # libtool, and so we make it here. How it is handled is that in shared
13900 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13901 # ensure that conditional compilation of shared runtime code is compiled in.
13902 # The original PIC flags are then used in the compilation of every object.
13903 #
13904 # Why are objects destined for libgphobos.a compiled with -fPIC?
13905 # Because -fPIC is not harmful to use for objects destined for static
13906 # libraries. In addition, using -fPIC will allow the use of static
13907 # libgphobos.a in the creation of other D shared libraries.
13908 if test "$enable_shared" = yes; then
13909 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13910 phobos_compiler_shared_flag="-fversion=Shared"
13911 else
13912 phobos_compiler_pic_flag=
13913 phobos_compiler_shared_flag=
13914 fi
13915
13916
13917
13918 # Override the libtool's pic_flag and pic_mode.
13919 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13920 # NB: this impacts --with-pic and --without-pic.
13921 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13922 pic_mode='default'
13923
13924 # Determine what GCC version number to use in filesystem paths.
13925
13926 get_gcc_base_ver="cat"
13927
13928 # Check whether --with-gcc-major-version-only was given.
13929 if test "${with_gcc_major_version_only+set}" = set; then :
13930 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13931 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13932 fi
13933
13934 fi
13935
13936
13937
13938
13939 # libphobos/libdruntime specific options and feature detection
13940
13941 # These need to be absolute paths, yet at the same time need to
13942 # canonicalize only relative paths, because then amd will not unmount
13943 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13944 libphobos_builddir=`${PWDCMD-pwd}`
13945 case $srcdir in
13946 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13947 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13948 esac
13949
13950
13951
13952
13953 if test ${multilib} = yes; then
13954 multilib_arg="--enable-multilib"
13955 else
13956 multilib_arg=
13957 fi
13958
13959
13960 # Check whether --enable-werror was given.
13961 if test "${enable_werror+set}" = set; then :
13962 enableval=$enable_werror;
13963 fi
13964
13965 WERROR_FLAG=""
13966 if test "x$enable_werror" = "xyes"; then
13967 WERROR_FLAG="-Werror"
13968 fi
13969
13970
13971 # Check whether --enable-druntime-gc was given.
13972 if test "${enable_druntime_gc+set}" = set; then :
13973 enableval=$enable_druntime_gc; enable_druntime_gc=no
13974 else
13975 enable_druntime_gc=yes
13976 fi
13977
13978
13979 if test "$enable_druntime_gc" = "yes"; then
13980 DRUNTIME_GC_ENABLE_TRUE=
13981 DRUNTIME_GC_ENABLE_FALSE='#'
13982 else
13983 DRUNTIME_GC_ENABLE_TRUE='#'
13984 DRUNTIME_GC_ENABLE_FALSE=
13985 fi
13986
13987
13988
13989 druntime_target_cpu_parsed=""
13990 case "$target_cpu" in
13991 aarch64*)
13992 druntime_target_cpu_parsed="aarch64"
13993 ;;
13994 arm*) druntime_target_cpu_parsed="arm"
13995 ;;
13996 mips*) druntime_target_cpu_parsed="mips"
13997 ;;
13998 powerpc) druntime_target_cpu_parsed="powerpc"
13999 ;;
14000 powerpc64)
14001 druntime_target_cpu_parsed="powerpc64"
14002 ;;
14003 i[34567]86|x86_64)
14004 druntime_target_cpu_parsed="x86"
14005 ;;
14006 esac
14007 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14008 DRUNTIME_CPU_AARCH64_TRUE=
14009 DRUNTIME_CPU_AARCH64_FALSE='#'
14010 else
14011 DRUNTIME_CPU_AARCH64_TRUE='#'
14012 DRUNTIME_CPU_AARCH64_FALSE=
14013 fi
14014
14015 if test "$druntime_target_cpu_parsed" = "arm"; then
14016 DRUNTIME_CPU_ARM_TRUE=
14017 DRUNTIME_CPU_ARM_FALSE='#'
14018 else
14019 DRUNTIME_CPU_ARM_TRUE='#'
14020 DRUNTIME_CPU_ARM_FALSE=
14021 fi
14022
14023 if test "$druntime_target_cpu_parsed" = "mips"; then
14024 DRUNTIME_CPU_MIPS_TRUE=
14025 DRUNTIME_CPU_MIPS_FALSE='#'
14026 else
14027 DRUNTIME_CPU_MIPS_TRUE='#'
14028 DRUNTIME_CPU_MIPS_FALSE=
14029 fi
14030
14031 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14032 DRUNTIME_CPU_POWERPC_TRUE=
14033 DRUNTIME_CPU_POWERPC_FALSE='#'
14034 else
14035 DRUNTIME_CPU_POWERPC_TRUE='#'
14036 DRUNTIME_CPU_POWERPC_FALSE=
14037 fi
14038
14039 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14040 DRUNTIME_CPU_POWERPC64_TRUE=
14041 DRUNTIME_CPU_POWERPC64_FALSE='#'
14042 else
14043 DRUNTIME_CPU_POWERPC64_TRUE='#'
14044 DRUNTIME_CPU_POWERPC64_FALSE=
14045 fi
14046
14047 if test "$druntime_target_cpu_parsed" = "x86"; then
14048 DRUNTIME_CPU_X86_TRUE=
14049 DRUNTIME_CPU_X86_FALSE='#'
14050 else
14051 DRUNTIME_CPU_X86_TRUE='#'
14052 DRUNTIME_CPU_X86_FALSE=
14053 fi
14054
14055
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14058 $as_echo_n "checking for target OS... " >&6; }
14059 if ${druntime_cv_target_os+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14065 $as_echo "$druntime_cv_target_os" >&6; }
14066 if test -z "$druntime_cv_target_os"; then :
14067 as_fn_error $? "can't detect target OS" "$LINENO" 5
14068 fi
14069
14070
14071
14072 # Check whether --enable-unix was given.
14073 if test "${enable_unix+set}" = set; then :
14074 enableval=$enable_unix; :
14075 else
14076 enable_unix=auto
14077 fi
14078
14079
14080 case "$druntime_cv_target_os" in
14081 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14082 esac
14083 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14084 enable_unix=yes
14085 fi
14086 if test "$enable_unix" = "yes"; then
14087 DRUNTIME_OS_UNIX_TRUE=
14088 DRUNTIME_OS_UNIX_FALSE='#'
14089 else
14090 DRUNTIME_OS_UNIX_TRUE='#'
14091 DRUNTIME_OS_UNIX_FALSE=
14092 fi
14093
14094
14095
14096
14097
14098 druntime_target_os_parsed=""
14099 case "$druntime_cv_target_os" in
14100 aix*) druntime_target_os_parsed="aix"
14101 ;;
14102 *android*)
14103 druntime_target_os_parsed="android"
14104 ;;
14105 darwin*) druntime_target_os_parsed="darwin"
14106 ;;
14107 dragonfly*)
14108 druntime_target_os_parsed="dragonflybsd"
14109 ;;
14110 freebsd*|k*bsd*-gnu)
14111 druntime_target_os_parsed="freebsd"
14112 ;;
14113 openbsd*)
14114 druntime_target_os_parsed="openbsd"
14115 ;;
14116 netbsd*)
14117 druntime_target_os_parsed="netbsd"
14118 ;;
14119 linux*) druntime_target_os_parsed="linux"
14120 ;;
14121 mingw*) druntime_target_os_parsed="mingw"
14122 ;;
14123 *solaris*) druntime_target_os_parsed="solaris"
14124 esac
14125 if test "$druntime_target_os_parsed" = "aix"; then
14126 DRUNTIME_OS_AIX_TRUE=
14127 DRUNTIME_OS_AIX_FALSE='#'
14128 else
14129 DRUNTIME_OS_AIX_TRUE='#'
14130 DRUNTIME_OS_AIX_FALSE=
14131 fi
14132
14133 if test "$druntime_target_os_parsed" = "android"; then
14134 DRUNTIME_OS_ANDROID_TRUE=
14135 DRUNTIME_OS_ANDROID_FALSE='#'
14136 else
14137 DRUNTIME_OS_ANDROID_TRUE='#'
14138 DRUNTIME_OS_ANDROID_FALSE=
14139 fi
14140
14141 if test "$druntime_target_os_parsed" = "darwin"; then
14142 DRUNTIME_OS_DARWIN_TRUE=
14143 DRUNTIME_OS_DARWIN_FALSE='#'
14144 else
14145 DRUNTIME_OS_DARWIN_TRUE='#'
14146 DRUNTIME_OS_DARWIN_FALSE=
14147 fi
14148
14149 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14150 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14151 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14152 else
14153 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14154 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14155 fi
14156
14157 if test "$druntime_target_os_parsed" = "freebsd"; then
14158 DRUNTIME_OS_FREEBSD_TRUE=
14159 DRUNTIME_OS_FREEBSD_FALSE='#'
14160 else
14161 DRUNTIME_OS_FREEBSD_TRUE='#'
14162 DRUNTIME_OS_FREEBSD_FALSE=
14163 fi
14164
14165 if test "$druntime_target_os_parsed" = "netbsd"; then
14166 DRUNTIME_OS_NETBSD_TRUE=
14167 DRUNTIME_OS_NETBSD_FALSE='#'
14168 else
14169 DRUNTIME_OS_NETBSD_TRUE='#'
14170 DRUNTIME_OS_NETBSD_FALSE=
14171 fi
14172
14173 if test "$druntime_target_os_parsed" = "openbsd"; then
14174 DRUNTIME_OS_OPENBSD_TRUE=
14175 DRUNTIME_OS_OPENBSD_FALSE='#'
14176 else
14177 DRUNTIME_OS_OPENBSD_TRUE='#'
14178 DRUNTIME_OS_OPENBSD_FALSE=
14179 fi
14180
14181 if test "$druntime_target_os_parsed" = "linux"; then
14182 DRUNTIME_OS_LINUX_TRUE=
14183 DRUNTIME_OS_LINUX_FALSE='#'
14184 else
14185 DRUNTIME_OS_LINUX_TRUE='#'
14186 DRUNTIME_OS_LINUX_FALSE=
14187 fi
14188
14189 if test "$druntime_target_os_parsed" = "mingw"; then
14190 DRUNTIME_OS_MINGW_TRUE=
14191 DRUNTIME_OS_MINGW_FALSE='#'
14192 else
14193 DRUNTIME_OS_MINGW_TRUE='#'
14194 DRUNTIME_OS_MINGW_FALSE=
14195 fi
14196
14197 if test "$druntime_target_os_parsed" = "solaris"; then
14198 DRUNTIME_OS_SOLARIS_TRUE=
14199 DRUNTIME_OS_SOLARIS_FALSE='#'
14200 else
14201 DRUNTIME_OS_SOLARIS_TRUE='#'
14202 DRUNTIME_OS_SOLARIS_FALSE=
14203 fi
14204
14205
14206
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14209 $as_echo_n "checking for thread model used by GDC... " >&6; }
14210 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14212 $as_echo "$d_thread_model" >&6; }
14213
14214 # Map from thread model to thread interface.
14215
14216 case $d_thread_model in
14217 aix) DCFG_THREAD_MODEL="Posix" ;;
14218 lynx) DCFG_THREAD_MODEL="Posix" ;;
14219 posix) DCFG_THREAD_MODEL="Posix" ;;
14220 single) DCFG_THREAD_MODEL="Single" ;;
14221 win32) DCFG_THREAD_MODEL="Win32" ;;
14222 # TODO: These targets need porting.
14223 dce|mipssde|rtems|tpf|vxworks)
14224 DCFG_THREAD_MODEL="Single" ;;
14225 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14226 esac
14227
14228
14229
14230
14231 ac_ext=c
14232 ac_cpp='$CPP $CPPFLAGS'
14233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14236
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14238 $as_echo_n "checking for ARM unwinder... " >&6; }
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241 #include <unwind.h>
14242 int
14243 main ()
14244 {
14245
14246 #if __ARM_EABI_UNWINDER__
14247 #error Yes, it is.
14248 #endif
14249
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257 DCFG_ARM_EABI_UNWINDER=false
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14260 $as_echo "yes" >&6; }
14261 DCFG_ARM_EABI_UNWINDER=true
14262 fi
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264
14265 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14266 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14267 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14268 else
14269 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14270 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14271 fi
14272
14273 ac_ext=c
14274 ac_cpp='$CPP $CPPFLAGS'
14275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14278
14279
14280
14281 ac_ext=c
14282 ac_cpp='$CPP $CPPFLAGS'
14283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14288 $as_echo_n "checking for minfo section bracketing... " >&6; }
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291
14292 void* module_info_ptr __attribute__((section ("minfo")));
14293 extern void* __start_minfo __attribute__((visibility ("hidden")));
14294 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14295
14296 int main()
14297 {
14298 // Never run, just to prevent compiler from optimizing access
14299 return &__start_minfo == &__stop_minfo;
14300 }
14301
14302 _ACEOF
14303 if ac_fn_c_try_link "$LINENO"; then :
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305 $as_echo "yes" >&6; }
14306 DCFG_MINFO_BRACKETING=true
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 DCFG_MINFO_BRACKETING=false
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext conftest.$ac_ext
14314
14315 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14316 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14317 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14318 else
14319 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14320 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14321 fi
14322
14323 ac_ext=c
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
14329
14330
14331 ac_ext=c
14332 ac_cpp='$CPP $CPPFLAGS'
14333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14336
14337 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>
14338 "
14339 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14340 DCFG_DLPI_TLS_MODID=true
14341 else
14342 DCFG_DLPI_TLS_MODID=false
14343 fi
14344
14345
14346 ac_ext=c
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351
14352
14353
14354 case $target in
14355 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14356 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14357 # relocs. Work around by disabling TLS transitions. Not necessary
14358 # on 32-bit x86, but cannot be distinguished reliably in specs.
14359 druntime_ld_prog=`$CC -print-prog-name=ld`
14360 druntime_ld_gld=no
14361 druntime_ld_relax_transtls=no
14362 if test -n "$druntime_ld_prog" \
14363 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14364 druntime_ld_gld=yes
14365 else
14366 echo 'int main (void) { return 0; }' > conftest.c
14367 save_LDFLAGS="$LDFLAGS"
14368 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14369 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14370 druntime_ld_relax_transtls=yes
14371 fi
14372 LDFLAGS="$save_LDFLAGS"
14373 rm -f conftest.c conftest
14374 fi
14375 if test "$druntime_ld_relax_transtls" = "yes"; then
14376 OS_LINK_SPEC='-z relax=transtls'
14377 fi
14378 ;;
14379 esac
14380
14381
14382
14383 ac_ext=c
14384 ac_cpp='$CPP $CPPFLAGS'
14385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14388
14389 DCFG_HAVE_QSORT_R=false
14390 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14391 if test "x$ac_cv_func_qsort_r" = xyes; then :
14392 DCFG_HAVE_QSORT_R=true
14393 fi
14394
14395
14396 ac_ext=c
14397 ac_cpp='$CPP $CPPFLAGS'
14398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14401
14402
14403
14404
14405
14406 gdc_save_DFLAGS=$GDCFLAGS
14407 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14408
14409 ac_ext=d
14410 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14411 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu=yes
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14415 $as_echo_n "checking for library containing malloc... " >&6; }
14416 if ${ac_cv_search_malloc+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 ac_func_search_save_LIBS=$LIBS
14420 cat > conftest.$ac_ext <<_ACEOF
14421 module mod;
14422 extern(C) int malloc();
14423
14424 extern(C) int main() {
14425 malloc(); return 0;
14426 }
14427 _ACEOF
14428 for ac_lib in '' c; do
14429 if test -z "$ac_lib"; then
14430 ac_res="none required"
14431 else
14432 ac_res=-l$ac_lib
14433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14434 fi
14435 if ac_fn_d_try_link "$LINENO"; then :
14436 ac_cv_search_malloc=$ac_res
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext
14440 if ${ac_cv_search_malloc+:} false; then :
14441 break
14442 fi
14443 done
14444 if ${ac_cv_search_malloc+:} false; then :
14445
14446 else
14447 ac_cv_search_malloc=no
14448 fi
14449 rm conftest.$ac_ext
14450 LIBS=$ac_func_search_save_LIBS
14451 fi
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14453 $as_echo "$ac_cv_search_malloc" >&6; }
14454 ac_res=$ac_cv_search_malloc
14455 if test "$ac_res" != no; then :
14456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14457
14458 fi
14459
14460
14461 enable_thread_lib=yes
14462 # Check whether --enable-thread-lib was given.
14463 if test "${enable_thread_lib+set}" = set; then :
14464 enableval=$enable_thread_lib;
14465 fi
14466
14467
14468 if test "x$enable_thread_lib" = "xyes"; then :
14469
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14471 $as_echo_n "checking for library containing pthread_create... " >&6; }
14472 if ${ac_cv_search_pthread_create+:} false; then :
14473 $as_echo_n "(cached) " >&6
14474 else
14475 ac_func_search_save_LIBS=$LIBS
14476 cat > conftest.$ac_ext <<_ACEOF
14477 module mod;
14478 extern(C) int pthread_create();
14479
14480 extern(C) int main() {
14481 pthread_create(); return 0;
14482 }
14483 _ACEOF
14484 for ac_lib in '' pthread; do
14485 if test -z "$ac_lib"; then
14486 ac_res="none required"
14487 else
14488 ac_res=-l$ac_lib
14489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14490 fi
14491 if ac_fn_d_try_link "$LINENO"; then :
14492 ac_cv_search_pthread_create=$ac_res
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext
14496 if ${ac_cv_search_pthread_create+:} false; then :
14497 break
14498 fi
14499 done
14500 if ${ac_cv_search_pthread_create+:} false; then :
14501
14502 else
14503 ac_cv_search_pthread_create=no
14504 fi
14505 rm conftest.$ac_ext
14506 LIBS=$ac_func_search_save_LIBS
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14509 $as_echo "$ac_cv_search_pthread_create" >&6; }
14510 ac_res=$ac_cv_search_pthread_create
14511 if test "$ac_res" != no; then :
14512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14513
14514 fi
14515
14516
14517 else
14518
14519 if test "x$enable_thread_lib" = "xno"; then :
14520
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14522 $as_echo_n "checking for thread library... " >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14524 $as_echo "disabled" >&6; }
14525
14526 else
14527
14528 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14530 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14531 if eval \${$as_ac_Lib+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 ac_check_lib_save_LIBS=$LIBS
14535 LIBS="-l$enable_thread_lib $LIBS"
14536 cat > conftest.$ac_ext <<_ACEOF
14537 module mod;
14538 extern(C) int pthread_create();
14539
14540 extern(C) int main() {
14541 pthread_create(); return 0;
14542 }
14543 _ACEOF
14544 if ac_fn_d_try_link "$LINENO"; then :
14545 eval "$as_ac_Lib=yes"
14546 else
14547 eval "$as_ac_Lib=no"
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 LIBS=$ac_check_lib_save_LIBS
14552 fi
14553 eval ac_res=\$$as_ac_Lib
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14555 $as_echo "$ac_res" >&6; }
14556 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14557 cat >>confdefs.h <<_ACEOF
14558 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14559 _ACEOF
14560
14561 LIBS="-l$enable_thread_lib $LIBS"
14562
14563 else
14564
14565 as_fn_error $? "Thread library not found" "$LINENO" 5
14566
14567 fi
14568
14569
14570 fi
14571
14572 fi
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14575 $as_echo_n "checking for library containing cosf... " >&6; }
14576 if ${ac_cv_search_cosf+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 ac_func_search_save_LIBS=$LIBS
14580 cat > conftest.$ac_ext <<_ACEOF
14581 module mod;
14582 extern(C) int cosf();
14583
14584 extern(C) int main() {
14585 cosf(); return 0;
14586 }
14587 _ACEOF
14588 for ac_lib in '' m; do
14589 if test -z "$ac_lib"; then
14590 ac_res="none required"
14591 else
14592 ac_res=-l$ac_lib
14593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14594 fi
14595 if ac_fn_d_try_link "$LINENO"; then :
14596 ac_cv_search_cosf=$ac_res
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext
14600 if ${ac_cv_search_cosf+:} false; then :
14601 break
14602 fi
14603 done
14604 if ${ac_cv_search_cosf+:} false; then :
14605
14606 else
14607 ac_cv_search_cosf=no
14608 fi
14609 rm conftest.$ac_ext
14610 LIBS=$ac_func_search_save_LIBS
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14613 $as_echo "$ac_cv_search_cosf" >&6; }
14614 ac_res=$ac_cv_search_cosf
14615 if test "$ac_res" != no; then :
14616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14617
14618 fi
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14621 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14622 if ${ac_cv_search_clock_gettime+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 ac_func_search_save_LIBS=$LIBS
14626 cat > conftest.$ac_ext <<_ACEOF
14627 module mod;
14628 extern(C) int clock_gettime();
14629
14630 extern(C) int main() {
14631 clock_gettime(); return 0;
14632 }
14633 _ACEOF
14634 for ac_lib in '' rt; do
14635 if test -z "$ac_lib"; then
14636 ac_res="none required"
14637 else
14638 ac_res=-l$ac_lib
14639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14640 fi
14641 if ac_fn_d_try_link "$LINENO"; then :
14642 ac_cv_search_clock_gettime=$ac_res
14643 fi
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext
14646 if ${ac_cv_search_clock_gettime+:} false; then :
14647 break
14648 fi
14649 done
14650 if ${ac_cv_search_clock_gettime+:} false; then :
14651
14652 else
14653 ac_cv_search_clock_gettime=no
14654 fi
14655 rm conftest.$ac_ext
14656 LIBS=$ac_func_search_save_LIBS
14657 fi
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14659 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14660 ac_res=$ac_cv_search_clock_gettime
14661 if test "$ac_res" != no; then :
14662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14663
14664 fi
14665
14666
14667 # This checks to see if the host supports the compiler-generated builtins
14668 # for atomic operations for various integral sizes. Note, this is intended
14669 # to be an all-or-nothing switch, so all the atomic operations that are
14670 # used should be checked.
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14672 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14673 if ${druntime_cv_atomic_byte+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676
14677 cat > conftest.$ac_ext <<_ACEOF
14678 module mod;
14679 import gcc.builtins;
14680
14681 extern(C) int main() {
14682
14683 shared(byte) c1;
14684 byte c2, c3;
14685 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14686 __atomic_load_1(&c1, 5);
14687 __atomic_store_1(&c1, c2, 5);
14688 return 0;
14689
14690 }
14691 _ACEOF
14692 if ac_fn_d_try_link "$LINENO"; then :
14693 druntime_cv_atomic_byte=yes
14694 else
14695 druntime_cv_atomic_byte=no
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14699
14700 fi
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14703 $as_echo "$druntime_cv_atomic_byte" >&6; }
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14706 $as_echo_n "checking for atomic builtins for short... " >&6; }
14707 if ${druntime_cv_atomic_short+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710
14711 cat > conftest.$ac_ext <<_ACEOF
14712 module mod;
14713 import gcc.builtins;
14714
14715 extern(C) int main() {
14716
14717 shared(short) c1;
14718 short c2, c3;
14719 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14720 __atomic_load_2(&c1, 5);
14721 __atomic_store_2(&c1, c2, 5);
14722 return 0;
14723
14724 }
14725 _ACEOF
14726 if ac_fn_d_try_link "$LINENO"; then :
14727 druntime_cv_atomic_short=yes
14728 else
14729 druntime_cv_atomic_short=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733
14734 fi
14735
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14737 $as_echo "$druntime_cv_atomic_short" >&6; }
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14740 $as_echo_n "checking for atomic builtins for int... " >&6; }
14741 if ${druntime_cv_atomic_int+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744
14745 cat > conftest.$ac_ext <<_ACEOF
14746 module mod;
14747 import gcc.builtins;
14748
14749 extern(C) int main() {
14750
14751 shared(int) c1;
14752 int c2, c3;
14753 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14754 __atomic_load_4(&c1, 5);
14755 __atomic_store_4(&c1, c2, 5);
14756 return 0;
14757
14758 }
14759 _ACEOF
14760 if ac_fn_d_try_link "$LINENO"; then :
14761 druntime_cv_atomic_int=yes
14762 else
14763 druntime_cv_atomic_int=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14767
14768 fi
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14771 $as_echo "$druntime_cv_atomic_int" >&6; }
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14774 $as_echo_n "checking for atomic builtins for long... " >&6; }
14775 if ${druntime_cv_atomic_long+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778
14779 cat > conftest.$ac_ext <<_ACEOF
14780 module mod;
14781 import gcc.builtins;
14782
14783 extern(C) int main() {
14784
14785 shared(long) c1;
14786 long c2, c3;
14787 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14788 __atomic_load_8(&c1, 5);
14789 __atomic_store_8(&c1, c2, 5);
14790 return 0;
14791
14792 }
14793 _ACEOF
14794 if ac_fn_d_try_link "$LINENO"; then :
14795 druntime_cv_atomic_long=yes
14796 else
14797 druntime_cv_atomic_long=no
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801
14802 fi
14803
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14805 $as_echo "$druntime_cv_atomic_long" >&6; }
14806
14807 # Have atomic builtin support if all but the long test above passes.
14808 DCFG_HAVE_ATOMIC_BUILTINS=false
14809 if test "$druntime_cv_atomic_byte" = yes \
14810 && test "$druntime_cv_atomic_short" = yes \
14811 && test "$druntime_cv_atomic_int" = yes; then \
14812 DCFG_HAVE_ATOMIC_BUILTINS=true
14813 fi
14814
14815 # Have 64-bit atomic support if the long test above passes.
14816 DCFG_HAVE_64BIT_ATOMICS=false
14817 if test "$druntime_cv_atomic_long" = yes; then
14818 DCFG_HAVE_64BIT_ATOMICS=true
14819 fi
14820
14821
14822
14823
14824 ac_ext=c
14825 ac_cpp='$CPP $CPPFLAGS'
14826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14829
14830
14831 GDCFLAGS=$gdc_save_DFLAGS
14832
14833
14834
14835
14836 # Check whether --with-libatomic was given.
14837 if test "${with_libatomic+set}" = set; then :
14838 withval=$with_libatomic;
14839 fi
14840
14841
14842 DCFG_HAVE_LIBATOMIC=false
14843 LIBATOMIC=
14844 if test "x$with_libatomic" != "xno"; then :
14845
14846 DCFG_HAVE_LIBATOMIC=true
14847 LIBATOMIC=../../libatomic/libatomic_convenience.la
14848
14849 else
14850
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14852 $as_echo_n "checking for libatomic... " >&6; }
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14854 $as_echo "disabled" >&6; }
14855
14856 fi
14857
14858
14859
14860
14861
14862 ac_ext=c
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14867
14868 BACKTRACE_SUPPORTED=false
14869 BACKTRACE_USES_MALLOC=false
14870 BACKTRACE_SUPPORTS_THREADS=false
14871 LIBBACKTRACE=""
14872
14873
14874 # Check whether --with-libbacktrace was given.
14875 if test "${with_libbacktrace+set}" = set; then :
14876 withval=$with_libbacktrace;
14877 fi
14878
14879
14880 if test "x$with_libbacktrace" != "xno"; then :
14881
14882 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14883
14884 gdc_save_CPPFLAGS=$CPPFLAGS
14885 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14886
14887 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14888 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14889 have_libbacktrace_h=true
14890 else
14891 have_libbacktrace_h=false
14892 fi
14893
14894
14895
14896 if $have_libbacktrace_h; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14898 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901
14902 #include <backtrace-supported.h>
14903 #if BACKTRACE_SUPPORTED
14904 FOUND_LIBBACKTRACE_RESULT_GDC
14905 #endif
14906
14907 _ACEOF
14908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14909 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14910 BACKTRACE_SUPPORTED=true
14911 else
14912 BACKTRACE_SUPPORTED=false
14913 fi
14914 rm -f conftest*
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14917 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14918
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14920 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923
14924 #include <backtrace-supported.h>
14925 #if BACKTRACE_USES_MALLOC
14926 FOUND_LIBBACKTRACE_RESULT_GDC
14927 #endif
14928
14929 _ACEOF
14930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14931 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14932 BACKTRACE_USES_MALLOC=true
14933 else
14934 BACKTRACE_USES_MALLOC=false
14935 fi
14936 rm -f conftest*
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14939 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14940
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14942 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945
14946 #include <backtrace-supported.h>
14947 #if BACKTRACE_SUPPORTS_THREADS
14948 FOUND_LIBBACKTRACE_RESULT_GDC
14949 #endif
14950
14951 _ACEOF
14952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14953 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14954 BACKTRACE_SUPPORTS_THREADS=true
14955 else
14956 BACKTRACE_SUPPORTS_THREADS=false
14957 fi
14958 rm -f conftest*
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14961 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14962 fi
14963 CPPFLAGS=$gdc_save_CPPFLAGS
14964
14965 else
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14968 $as_echo_n "checking for libbacktrace... " >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14970 $as_echo "disabled" >&6; }
14971
14972 fi
14973
14974
14975
14976
14977
14978 ac_ext=c
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983
14984
14985
14986 # Libtool has already checked this, so re-use the inferred dlopen lib.
14987 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14988
14989 LIBS="$LIBS $lt_cv_dlopen_libs"
14990
14991 fi
14992
14993
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14995 $as_echo_n "checking for socket libraries... " >&6; }
14996 if ${druntime_cv_lib_sockets+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 druntime_cv_lib_sockets=
15000 druntime_check_both=no
15001 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15002 if test "x$ac_cv_func_connect" = xyes; then :
15003 druntime_check_socket=no
15004 else
15005 druntime_check_socket=yes
15006 fi
15007
15008 if test "$druntime_check_socket" = "yes"; then
15009 unset ac_cv_func_connect
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15011 $as_echo_n "checking for main in -lsocket... " >&6; }
15012 if ${ac_cv_lib_socket_main+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-lsocket $LIBS"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019
15020
15021 int
15022 main ()
15023 {
15024 return main ();
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 ac_cv_lib_socket_main=yes
15031 else
15032 ac_cv_lib_socket_main=no
15033 fi
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15039 $as_echo "$ac_cv_lib_socket_main" >&6; }
15040 if test "x$ac_cv_lib_socket_main" = xyes; then :
15041 druntime_cv_lib_sockets="-lsocket"
15042 else
15043 druntime_check_both=yes
15044 fi
15045
15046 fi
15047 if test "$druntime_check_both" = "yes"; then
15048 druntime_old_libs=$LIBS
15049 LIBS="$LIBS -lsocket -lnsl"
15050 unset ac_cv_func_accept
15051 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15052 if test "x$ac_cv_func_accept" = xyes; then :
15053 druntime_check_nsl=no
15054 druntime_cv_lib_sockets="-lsocket -lnsl"
15055 fi
15056
15057 unset ac_cv_func_accept
15058 LIBS=$druntime_old_libs
15059 fi
15060 unset ac_cv_func_gethostbyname
15061 druntime_old_libs="$LIBS"
15062 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15063 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15064
15065 else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15067 $as_echo_n "checking for main in -lnsl... " >&6; }
15068 if ${ac_cv_lib_nsl_main+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-lnsl $LIBS"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075
15076
15077 int
15078 main ()
15079 {
15080 return main ();
15081 ;
15082 return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_link "$LINENO"; then :
15086 ac_cv_lib_nsl_main=yes
15087 else
15088 ac_cv_lib_nsl_main=no
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15095 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15096 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15097 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15098 fi
15099
15100 fi
15101
15102
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15105 $as_echo "$druntime_cv_lib_sockets" >&6; }
15106 LIBS="$LIBS $druntime_cv_lib_sockets"
15107
15108
15109 ac_ext=c
15110 ac_cpp='$CPP $CPPFLAGS'
15111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15114
15115 LIBZ=""
15116
15117
15118 # Check whether --with-target-system-zlib was given.
15119 if test "${with_target_system_zlib+set}" = set; then :
15120 withval=$with_target_system_zlib;
15121 else
15122 with_target_system_zlib=no
15123 fi
15124
15125
15126 case "$with_target_system_zlib" in
15127 yes|no|auto) ;;
15128 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15129 esac
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15132 $as_echo_n "checking for system zlib... " >&6; }
15133 save_LIBS=$LIBS
15134 LIBS="$LIBS -lz"
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15137 #include <zlib.h>
15138 int
15139 main ()
15140 {
15141 gzopen("none", "rb")
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 if ac_fn_c_try_link "$LINENO"; then :
15147
15148 if test "$cross_compiling" = yes; then :
15149 system_zlib_found=no
15150
15151 else
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154
15155 #include <zlib.h>
15156 int main() {
15157 gzFile file = gzopen("none", "rb");
15158 return 0;
15159 }
15160
15161 _ACEOF
15162 if ac_fn_c_try_run "$LINENO"; then :
15163 system_zlib_found=yes
15164 else
15165 system_zlib_found=no
15166 fi
15167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15168 conftest.$ac_objext conftest.beam conftest.$ac_ext
15169 fi
15170
15171
15172 else
15173 system_zlib_found=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$save_LIBS
15178
15179 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15181 $as_echo "found" >&6; }
15182 LIBS="$LIBS -lz"
15183 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15184 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15185 else
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15187 $as_echo "just compiled" >&6; }
15188 LIBZ=../../zlib/libz_convenience.la
15189 fi
15190
15191
15192 ac_ext=c
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197
15198
15199
15200
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15203 $as_echo_n "checking D GCC version... " >&6; }
15204 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15206 $as_echo "$gcc_version" >&6; }
15207
15208
15209
15210 # Check whether --with-cross-host was given.
15211 if test "${with_cross_host+set}" = set; then :
15212 withval=$with_cross_host;
15213 fi
15214
15215
15216 libphobos_toolexecdir=no
15217 libphobos_toolexeclibdir=no
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15220 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15221 # Check whether --enable-version-specific-runtime-libs was given.
15222 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15223 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15224 yes) version_specific_libs=yes ;;
15225 no) version_specific_libs=no ;;
15226 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15227 esac
15228 else
15229 version_specific_libs=no
15230 fi
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15233 $as_echo "$version_specific_libs" >&6; }
15234
15235 # Version-specific runtime libs processing.
15236 if test $version_specific_libs = yes; then
15237 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15238 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15239 else
15240 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15241 # Install a library built with a cross compiler in tooldir, not libdir.
15242 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15243 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15244 libphobos_toolexeclibdir='${toolexecdir}/lib'
15245 else
15246 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15247 libphobos_toolexeclibdir='${libdir}'
15248 fi
15249 multi_os_directory=`$GDC -print-multi-os-directory`
15250 case $multi_os_directory in
15251 .) ;; # Avoid trailing /.
15252 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15253 esac
15254 fi
15255
15256
15257
15258 # Default case for install directory for D sources files.
15259 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15260
15261
15262
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15264 $as_echo_n "checking for --enable-libphobos... " >&6; }
15265 # Check whether --enable-libphobos was given.
15266 if test "${enable_libphobos+set}" = set; then :
15267 enableval=$enable_libphobos;
15268 fi
15269
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15271 $as_echo "$enable_libphobos" >&6; }
15272
15273 # See if supported.
15274 unset LIBPHOBOS_SUPPORTED
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15276 $as_echo_n "checking for host support for libphobos... " >&6; }
15277 . ${srcdir}/configure.tgt
15278 case ${host} in
15279 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15280 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15281 # relatively low linelength limit.
15282 as_prog=`$CC -print-prog-name=as`
15283 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15284 druntime_cv_use_gas=yes;
15285 else
15286 druntime_cv_use_gas=no;
15287 fi
15288 rm -f a.out
15289 if test x$druntime_cv_use_gas = xno; then
15290 LIBPHOBOS_SUPPORTED=no
15291 fi
15292 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15293 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15294 LIBPHOBOS_SUPPORTED=no
15295 fi
15296 ;;
15297 esac
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15299 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15300
15301 # Decide if it's usable.
15302 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15303 *:no) use_libphobos=no ;;
15304 *:yes) use_libphobos=yes ;;
15305 yes:*) use_libphobos=yes ;;
15306 *:*) use_libphobos=no ;;
15307 esac
15308 if test x$use_libphobos = xyes; then
15309 ENABLE_LIBPHOBOS_TRUE=
15310 ENABLE_LIBPHOBOS_FALSE='#'
15311 else
15312 ENABLE_LIBPHOBOS_TRUE='#'
15313 ENABLE_LIBPHOBOS_FALSE=
15314 fi
15315
15316
15317 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15318 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15319 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15320 else
15321 DRTSTUFF_SPEC=/dev/null
15322 fi
15323
15324
15325 # Add dependencies for libgphobos.spec file
15326 SPEC_PHOBOS_DEPS="$LIBS"
15327
15328
15329 # Libdruntime / phobos soname version
15330 libtool_VERSION=76:3:0
15331
15332
15333 # Set default flags (after DRUNTIME_WERROR!)
15334 if test -z "$GDCFLAGS"; then
15335 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15336 fi
15337
15338
15339 if test -z "$GDCFLAGSX"; then
15340 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15341 fi
15342
15343
15344 # Sanity check for the cross-compilation case:
15345 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15346 if test "x$ac_cv_header_stdio_h" = xyes; then :
15347 :
15348 else
15349 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15350 fi
15351
15352
15353
15354 ac_config_files="$ac_config_files Makefile"
15355
15356
15357 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15358
15359 ac_config_files="$ac_config_files src/libgphobos.spec"
15360
15361 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15362
15363
15364 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15365 # that multilib installs will end up installed in the correct place.
15366 # The testsuite needs it for multilib-aware ABI baseline files.
15367 # To work around this not being passed down from config-ml.in ->
15368 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15369 # append it here. Only modify Makefiles that have just been created.
15370 #
15371 # Also, get rid of this simulated-VPATH thing that automake does.
15372 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15373
15374
15375 cat >confcache <<\_ACEOF
15376 # This file is a shell script that caches the results of configure
15377 # tests run on this system so they can be shared between configure
15378 # scripts and configure runs, see configure's option --config-cache.
15379 # It is not useful on other systems. If it contains results you don't
15380 # want to keep, you may remove or edit it.
15381 #
15382 # config.status only pays attention to the cache file if you give it
15383 # the --recheck option to rerun configure.
15384 #
15385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15387 # following values.
15388
15389 _ACEOF
15390
15391 # The following way of writing the cache mishandles newlines in values,
15392 # but we know of no workaround that is simple, portable, and efficient.
15393 # So, we kill variables containing newlines.
15394 # Ultrix sh set writes to stderr and can't be redirected directly,
15395 # and sets the high bit in the cache file unless we assign to the vars.
15396 (
15397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15398 eval ac_val=\$$ac_var
15399 case $ac_val in #(
15400 *${as_nl}*)
15401 case $ac_var in #(
15402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15404 esac
15405 case $ac_var in #(
15406 _ | IFS | as_nl) ;; #(
15407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15408 *) { eval $ac_var=; unset $ac_var;} ;;
15409 esac ;;
15410 esac
15411 done
15412
15413 (set) 2>&1 |
15414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15415 *${as_nl}ac_space=\ *)
15416 # `set' does not quote correctly, so add quotes: double-quote
15417 # substitution turns \\\\ into \\, and sed turns \\ into \.
15418 sed -n \
15419 "s/'/'\\\\''/g;
15420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15421 ;; #(
15422 *)
15423 # `set' quotes correctly as required by POSIX, so do not add quotes.
15424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15425 ;;
15426 esac |
15427 sort
15428 ) |
15429 sed '
15430 /^ac_cv_env_/b end
15431 t clear
15432 :clear
15433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15434 t end
15435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15436 :end' >>confcache
15437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15438 if test -w "$cache_file"; then
15439 if test "x$cache_file" != "x/dev/null"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15441 $as_echo "$as_me: updating cache $cache_file" >&6;}
15442 if test ! -f "$cache_file" || test -h "$cache_file"; then
15443 cat confcache >"$cache_file"
15444 else
15445 case $cache_file in #(
15446 */* | ?:*)
15447 mv -f confcache "$cache_file"$$ &&
15448 mv -f "$cache_file"$$ "$cache_file" ;; #(
15449 *)
15450 mv -f confcache "$cache_file" ;;
15451 esac
15452 fi
15453 fi
15454 else
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15456 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15457 fi
15458 fi
15459 rm -f confcache
15460
15461 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15462 # Let make expand exec_prefix.
15463 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15464
15465 DEFS=-DHAVE_CONFIG_H
15466
15467 ac_libobjs=
15468 ac_ltlibobjs=
15469 U=
15470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15471 # 1. Remove the extension, and $U if already installed.
15472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15475 # will be set to the directory where LIBOBJS objects are built.
15476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15478 done
15479 LIBOBJS=$ac_libobjs
15480
15481 LTLIBOBJS=$ac_ltlibobjs
15482
15483
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15485 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15486 if test -n "$am_sleep_pid"; then
15487 # Hide warnings about reused PIDs.
15488 wait $am_sleep_pid 2>/dev/null
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15491 $as_echo "done" >&6; }
15492 if test -n "$EXEEXT"; then
15493 am__EXEEXT_TRUE=
15494 am__EXEEXT_FALSE='#'
15495 else
15496 am__EXEEXT_TRUE='#'
15497 am__EXEEXT_FALSE=
15498 fi
15499
15500 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15501 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503 fi
15504 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15505 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507 fi
15508 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15509 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511 fi
15512 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15513 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515 fi
15516 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15517 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519 fi
15520 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15521 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523 fi
15524 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15525 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527 fi
15528 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15529 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531 fi
15532 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15533 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535 fi
15536 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15537 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 fi
15540 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15541 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 fi
15544 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15545 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 fi
15548 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15549 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15553 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15557 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15561 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15565 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15569 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15573 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15577 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 fi
15580 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15581 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 fi
15584 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15585 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 fi
15588
15589 : "${CONFIG_STATUS=./config.status}"
15590 ac_write_fail=0
15591 ac_clean_files_save=$ac_clean_files
15592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15595 as_write_fail=0
15596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15597 #! $SHELL
15598 # Generated by $as_me.
15599 # Run this file to recreate the current configuration.
15600 # Compiler output produced by configure, useful for debugging
15601 # configure, is in config.log if it exists.
15602
15603 debug=false
15604 ac_cs_recheck=false
15605 ac_cs_silent=false
15606
15607 SHELL=\${CONFIG_SHELL-$SHELL}
15608 export SHELL
15609 _ASEOF
15610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15611 ## -------------------- ##
15612 ## M4sh Initialization. ##
15613 ## -------------------- ##
15614
15615 # Be more Bourne compatible
15616 DUALCASE=1; export DUALCASE # for MKS sh
15617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15618 emulate sh
15619 NULLCMD=:
15620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15621 # is contrary to our usage. Disable this feature.
15622 alias -g '${1+"$@"}'='"$@"'
15623 setopt NO_GLOB_SUBST
15624 else
15625 case `(set -o) 2>/dev/null` in #(
15626 *posix*) :
15627 set -o posix ;; #(
15628 *) :
15629 ;;
15630 esac
15631 fi
15632
15633
15634 as_nl='
15635 '
15636 export as_nl
15637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15641 # Prefer a ksh shell builtin over an external printf program on Solaris,
15642 # but without wasting forks for bash or zsh.
15643 if test -z "$BASH_VERSION$ZSH_VERSION" \
15644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15645 as_echo='print -r --'
15646 as_echo_n='print -rn --'
15647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15648 as_echo='printf %s\n'
15649 as_echo_n='printf %s'
15650 else
15651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15653 as_echo_n='/usr/ucb/echo -n'
15654 else
15655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15656 as_echo_n_body='eval
15657 arg=$1;
15658 case $arg in #(
15659 *"$as_nl"*)
15660 expr "X$arg" : "X\\(.*\\)$as_nl";
15661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15662 esac;
15663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15664 '
15665 export as_echo_n_body
15666 as_echo_n='sh -c $as_echo_n_body as_echo'
15667 fi
15668 export as_echo_body
15669 as_echo='sh -c $as_echo_body as_echo'
15670 fi
15671
15672 # The user is always right.
15673 if test "${PATH_SEPARATOR+set}" != set; then
15674 PATH_SEPARATOR=:
15675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15677 PATH_SEPARATOR=';'
15678 }
15679 fi
15680
15681
15682 # IFS
15683 # We need space, tab and new line, in precisely that order. Quoting is
15684 # there to prevent editors from complaining about space-tab.
15685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15686 # splitting by setting IFS to empty value.)
15687 IFS=" "" $as_nl"
15688
15689 # Find who we are. Look in the path if we contain no directory separator.
15690 as_myself=
15691 case $0 in #((
15692 *[\\/]* ) as_myself=$0 ;;
15693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15695 do
15696 IFS=$as_save_IFS
15697 test -z "$as_dir" && as_dir=.
15698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15699 done
15700 IFS=$as_save_IFS
15701
15702 ;;
15703 esac
15704 # We did not find ourselves, most probably we were run as `sh COMMAND'
15705 # in which case we are not to be found in the path.
15706 if test "x$as_myself" = x; then
15707 as_myself=$0
15708 fi
15709 if test ! -f "$as_myself"; then
15710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15711 exit 1
15712 fi
15713
15714 # Unset variables that we do not need and which cause bugs (e.g. in
15715 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15716 # suppresses any "Segmentation fault" message there. '((' could
15717 # trigger a bug in pdksh 5.2.14.
15718 for as_var in BASH_ENV ENV MAIL MAILPATH
15719 do eval test x\${$as_var+set} = xset \
15720 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15721 done
15722 PS1='$ '
15723 PS2='> '
15724 PS4='+ '
15725
15726 # NLS nuisances.
15727 LC_ALL=C
15728 export LC_ALL
15729 LANGUAGE=C
15730 export LANGUAGE
15731
15732 # CDPATH.
15733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15734
15735
15736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15737 # ----------------------------------------
15738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15740 # script with STATUS, using 1 if that was 0.
15741 as_fn_error ()
15742 {
15743 as_status=$1; test $as_status -eq 0 && as_status=1
15744 if test "$4"; then
15745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15747 fi
15748 $as_echo "$as_me: error: $2" >&2
15749 as_fn_exit $as_status
15750 } # as_fn_error
15751
15752
15753 # as_fn_set_status STATUS
15754 # -----------------------
15755 # Set $? to STATUS, without forking.
15756 as_fn_set_status ()
15757 {
15758 return $1
15759 } # as_fn_set_status
15760
15761 # as_fn_exit STATUS
15762 # -----------------
15763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15764 as_fn_exit ()
15765 {
15766 set +e
15767 as_fn_set_status $1
15768 exit $1
15769 } # as_fn_exit
15770
15771 # as_fn_unset VAR
15772 # ---------------
15773 # Portably unset VAR.
15774 as_fn_unset ()
15775 {
15776 { eval $1=; unset $1;}
15777 }
15778 as_unset=as_fn_unset
15779 # as_fn_append VAR VALUE
15780 # ----------------------
15781 # Append the text in VALUE to the end of the definition contained in VAR. Take
15782 # advantage of any shell optimizations that allow amortized linear growth over
15783 # repeated appends, instead of the typical quadratic growth present in naive
15784 # implementations.
15785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15786 eval 'as_fn_append ()
15787 {
15788 eval $1+=\$2
15789 }'
15790 else
15791 as_fn_append ()
15792 {
15793 eval $1=\$$1\$2
15794 }
15795 fi # as_fn_append
15796
15797 # as_fn_arith ARG...
15798 # ------------------
15799 # Perform arithmetic evaluation on the ARGs, and store the result in the
15800 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15801 # must be portable across $(()) and expr.
15802 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15803 eval 'as_fn_arith ()
15804 {
15805 as_val=$(( $* ))
15806 }'
15807 else
15808 as_fn_arith ()
15809 {
15810 as_val=`expr "$@" || test $? -eq 1`
15811 }
15812 fi # as_fn_arith
15813
15814
15815 if expr a : '\(a\)' >/dev/null 2>&1 &&
15816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15817 as_expr=expr
15818 else
15819 as_expr=false
15820 fi
15821
15822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15823 as_basename=basename
15824 else
15825 as_basename=false
15826 fi
15827
15828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15829 as_dirname=dirname
15830 else
15831 as_dirname=false
15832 fi
15833
15834 as_me=`$as_basename -- "$0" ||
15835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15836 X"$0" : 'X\(//\)$' \| \
15837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15838 $as_echo X/"$0" |
15839 sed '/^.*\/\([^/][^/]*\)\/*$/{
15840 s//\1/
15841 q
15842 }
15843 /^X\/\(\/\/\)$/{
15844 s//\1/
15845 q
15846 }
15847 /^X\/\(\/\).*/{
15848 s//\1/
15849 q
15850 }
15851 s/.*/./; q'`
15852
15853 # Avoid depending upon Character Ranges.
15854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15857 as_cr_digits='0123456789'
15858 as_cr_alnum=$as_cr_Letters$as_cr_digits
15859
15860 ECHO_C= ECHO_N= ECHO_T=
15861 case `echo -n x` in #(((((
15862 -n*)
15863 case `echo 'xy\c'` in
15864 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15865 xy) ECHO_C='\c';;
15866 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15867 ECHO_T=' ';;
15868 esac;;
15869 *)
15870 ECHO_N='-n';;
15871 esac
15872
15873 rm -f conf$$ conf$$.exe conf$$.file
15874 if test -d conf$$.dir; then
15875 rm -f conf$$.dir/conf$$.file
15876 else
15877 rm -f conf$$.dir
15878 mkdir conf$$.dir 2>/dev/null
15879 fi
15880 if (echo >conf$$.file) 2>/dev/null; then
15881 if ln -s conf$$.file conf$$ 2>/dev/null; then
15882 as_ln_s='ln -s'
15883 # ... but there are two gotchas:
15884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15886 # In both cases, we have to default to `cp -pR'.
15887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15888 as_ln_s='cp -pR'
15889 elif ln conf$$.file conf$$ 2>/dev/null; then
15890 as_ln_s=ln
15891 else
15892 as_ln_s='cp -pR'
15893 fi
15894 else
15895 as_ln_s='cp -pR'
15896 fi
15897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15898 rmdir conf$$.dir 2>/dev/null
15899
15900
15901 # as_fn_mkdir_p
15902 # -------------
15903 # Create "$as_dir" as a directory, including parents if necessary.
15904 as_fn_mkdir_p ()
15905 {
15906
15907 case $as_dir in #(
15908 -*) as_dir=./$as_dir;;
15909 esac
15910 test -d "$as_dir" || eval $as_mkdir_p || {
15911 as_dirs=
15912 while :; do
15913 case $as_dir in #(
15914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15915 *) as_qdir=$as_dir;;
15916 esac
15917 as_dirs="'$as_qdir' $as_dirs"
15918 as_dir=`$as_dirname -- "$as_dir" ||
15919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15920 X"$as_dir" : 'X\(//\)[^/]' \| \
15921 X"$as_dir" : 'X\(//\)$' \| \
15922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15923 $as_echo X"$as_dir" |
15924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15925 s//\1/
15926 q
15927 }
15928 /^X\(\/\/\)[^/].*/{
15929 s//\1/
15930 q
15931 }
15932 /^X\(\/\/\)$/{
15933 s//\1/
15934 q
15935 }
15936 /^X\(\/\).*/{
15937 s//\1/
15938 q
15939 }
15940 s/.*/./; q'`
15941 test -d "$as_dir" && break
15942 done
15943 test -z "$as_dirs" || eval "mkdir $as_dirs"
15944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15945
15946
15947 } # as_fn_mkdir_p
15948 if mkdir -p . 2>/dev/null; then
15949 as_mkdir_p='mkdir -p "$as_dir"'
15950 else
15951 test -d ./-p && rmdir ./-p
15952 as_mkdir_p=false
15953 fi
15954
15955
15956 # as_fn_executable_p FILE
15957 # -----------------------
15958 # Test if FILE is an executable regular file.
15959 as_fn_executable_p ()
15960 {
15961 test -f "$1" && test -x "$1"
15962 } # as_fn_executable_p
15963 as_test_x='test -x'
15964 as_executable_p=as_fn_executable_p
15965
15966 # Sed expression to map a string onto a valid CPP name.
15967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15968
15969 # Sed expression to map a string onto a valid variable name.
15970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15971
15972
15973 exec 6>&1
15974 ## ----------------------------------- ##
15975 ## Main body of $CONFIG_STATUS script. ##
15976 ## ----------------------------------- ##
15977 _ASEOF
15978 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15979
15980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981 # Save the log message, to keep $0 and so on meaningful, and to
15982 # report actual input values of CONFIG_FILES etc. instead of their
15983 # values after options handling.
15984 ac_log="
15985 This file was extended by package-unused $as_me version-unused, which was
15986 generated by GNU Autoconf 2.69. Invocation command line was
15987
15988 CONFIG_FILES = $CONFIG_FILES
15989 CONFIG_HEADERS = $CONFIG_HEADERS
15990 CONFIG_LINKS = $CONFIG_LINKS
15991 CONFIG_COMMANDS = $CONFIG_COMMANDS
15992 $ $0 $@
15993
15994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15995 "
15996
15997 _ACEOF
15998
15999 case $ac_config_files in *"
16000 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16001 esac
16002
16003 case $ac_config_headers in *"
16004 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16005 esac
16006
16007
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 # Files that config.status was made for.
16010 config_files="$ac_config_files"
16011 config_headers="$ac_config_headers"
16012 config_commands="$ac_config_commands"
16013
16014 _ACEOF
16015
16016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16017 ac_cs_usage="\
16018 \`$as_me' instantiates files and other configuration actions
16019 from templates according to the current configuration. Unless the files
16020 and actions are specified as TAGs, all are instantiated by default.
16021
16022 Usage: $0 [OPTION]... [TAG]...
16023
16024 -h, --help print this help, then exit
16025 -V, --version print version number and configuration settings, then exit
16026 --config print configuration, then exit
16027 -q, --quiet, --silent
16028 do not print progress messages
16029 -d, --debug don't remove temporary files
16030 --recheck update $as_me by reconfiguring in the same conditions
16031 --file=FILE[:TEMPLATE]
16032 instantiate the configuration file FILE
16033 --header=FILE[:TEMPLATE]
16034 instantiate the configuration header FILE
16035
16036 Configuration files:
16037 $config_files
16038
16039 Configuration headers:
16040 $config_headers
16041
16042 Configuration commands:
16043 $config_commands
16044
16045 Report bugs to the package provider."
16046
16047 _ACEOF
16048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16050 ac_cs_version="\\
16051 package-unused config.status version-unused
16052 configured by $0, generated by GNU Autoconf 2.69,
16053 with options \\"\$ac_cs_config\\"
16054
16055 Copyright (C) 2012 Free Software Foundation, Inc.
16056 This config.status script is free software; the Free Software Foundation
16057 gives unlimited permission to copy, distribute and modify it."
16058
16059 ac_pwd='$ac_pwd'
16060 srcdir='$srcdir'
16061 INSTALL='$INSTALL'
16062 MKDIR_P='$MKDIR_P'
16063 AWK='$AWK'
16064 test -n "\$AWK" || AWK=awk
16065 _ACEOF
16066
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 # The default lists apply if the user does not specify any file.
16069 ac_need_defaults=:
16070 while test $# != 0
16071 do
16072 case $1 in
16073 --*=?*)
16074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16076 ac_shift=:
16077 ;;
16078 --*=)
16079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16080 ac_optarg=
16081 ac_shift=:
16082 ;;
16083 *)
16084 ac_option=$1
16085 ac_optarg=$2
16086 ac_shift=shift
16087 ;;
16088 esac
16089
16090 case $ac_option in
16091 # Handling of the options.
16092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16093 ac_cs_recheck=: ;;
16094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16095 $as_echo "$ac_cs_version"; exit ;;
16096 --config | --confi | --conf | --con | --co | --c )
16097 $as_echo "$ac_cs_config"; exit ;;
16098 --debug | --debu | --deb | --de | --d | -d )
16099 debug=: ;;
16100 --file | --fil | --fi | --f )
16101 $ac_shift
16102 case $ac_optarg in
16103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16104 '') as_fn_error $? "missing file argument" ;;
16105 esac
16106 as_fn_append CONFIG_FILES " '$ac_optarg'"
16107 ac_need_defaults=false;;
16108 --header | --heade | --head | --hea )
16109 $ac_shift
16110 case $ac_optarg in
16111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16112 esac
16113 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16114 ac_need_defaults=false;;
16115 --he | --h)
16116 # Conflict between --help and --header
16117 as_fn_error $? "ambiguous option: \`$1'
16118 Try \`$0 --help' for more information.";;
16119 --help | --hel | -h )
16120 $as_echo "$ac_cs_usage"; exit ;;
16121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16123 ac_cs_silent=: ;;
16124
16125 # This is an error.
16126 -*) as_fn_error $? "unrecognized option: \`$1'
16127 Try \`$0 --help' for more information." ;;
16128
16129 *) as_fn_append ac_config_targets " $1"
16130 ac_need_defaults=false ;;
16131
16132 esac
16133 shift
16134 done
16135
16136 ac_configure_extra_args=
16137
16138 if $ac_cs_silent; then
16139 exec 6>/dev/null
16140 ac_configure_extra_args="$ac_configure_extra_args --silent"
16141 fi
16142
16143 _ACEOF
16144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145 if \$ac_cs_recheck; then
16146 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16147 shift
16148 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16149 CONFIG_SHELL='$SHELL'
16150 export CONFIG_SHELL
16151 exec "\$@"
16152 fi
16153
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156 exec 5>>config.log
16157 {
16158 echo
16159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16160 ## Running $as_me. ##
16161 _ASBOX
16162 $as_echo "$ac_log"
16163 } >&5
16164
16165 _ACEOF
16166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16167 #
16168 # INIT-COMMANDS
16169 #
16170
16171 srcdir="$srcdir"
16172 host="$host"
16173 target="$target"
16174 with_multisubdir="$with_multisubdir"
16175 with_multisrctop="$with_multisrctop"
16176 with_target_subdir="$with_target_subdir"
16177 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16178 multi_basedir="$multi_basedir"
16179 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16180 CC="$CC"
16181 CXX="$CXX"
16182 GFORTRAN="$GFORTRAN"
16183 GDC="$GDC"
16184
16185
16186 # The HP-UX ksh and POSIX shell print the target directory to stdout
16187 # if CDPATH is set.
16188 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16189
16190 sed_quote_subst='$sed_quote_subst'
16191 double_quote_subst='$double_quote_subst'
16192 delay_variable_subst='$delay_variable_subst'
16193 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16194 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16195 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16196 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16197 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16198 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16199 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16200 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16201 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16202 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16203 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16204 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16205 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16206 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16207 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16208 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16209 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16210 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16211 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16212 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16213 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16214 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16215 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16216 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16217 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16218 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16219 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16220 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16221 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16222 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16223 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16224 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16225 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16226 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16227 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16228 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16229 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16230 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16231 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16232 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16233 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16234 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16235 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16236 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16237 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16238 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16239 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16240 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16241 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16242 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16243 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16244 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16245 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16246 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16247 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16248 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16249 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16250 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16251 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16252 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16253 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16254 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16255 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16256 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16257 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16258 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16259 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16260 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16261 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16262 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16263 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16265 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16266 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16267 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16268 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16269 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16270 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16271 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16272 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16273 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16274 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16275 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16276 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16277 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16278 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16279 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16280 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16281 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16282 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16283 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16284 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16285 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16286 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16287 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16288 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16289 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16290 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16291 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16292 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16293 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16294 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16295 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16296 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16297 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16298 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16299 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16300 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16301 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16302 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16303 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16304 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16305 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16306 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16307 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16308 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16309 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16310 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16311 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16312 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16313 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16314 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16315 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16316 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16317 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16318 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16319 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16321 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16322 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16323 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16324 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16325 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16326 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16327 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16328 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16329 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16330 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16331 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16332 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16333 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16334 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16335 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16336 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16337 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16338 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16339 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16340 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16341 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16342 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16343 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16344 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16345 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16346 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16347 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16348 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16349 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16350 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16351 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16352 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16353 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16354 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16355 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16356
16357 LTCC='$LTCC'
16358 LTCFLAGS='$LTCFLAGS'
16359 compiler='$compiler_DEFAULT'
16360
16361 # A function that is used when there is no print builtin or printf.
16362 func_fallback_echo ()
16363 {
16364 eval 'cat <<_LTECHO_EOF
16365 \$1
16366 _LTECHO_EOF'
16367 }
16368
16369 # Quote evaled strings.
16370 for var in SHELL \
16371 ECHO \
16372 SED \
16373 GREP \
16374 EGREP \
16375 FGREP \
16376 LD \
16377 NM \
16378 LN_S \
16379 lt_SP2NL \
16380 lt_NL2SP \
16381 reload_flag \
16382 OBJDUMP \
16383 deplibs_check_method \
16384 file_magic_cmd \
16385 AR \
16386 AR_FLAGS \
16387 STRIP \
16388 RANLIB \
16389 CC \
16390 CFLAGS \
16391 compiler \
16392 lt_cv_sys_global_symbol_pipe \
16393 lt_cv_sys_global_symbol_to_cdecl \
16394 lt_cv_sys_global_symbol_to_c_name_address \
16395 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16396 lt_prog_compiler_no_builtin_flag \
16397 lt_prog_compiler_wl \
16398 lt_prog_compiler_pic \
16399 lt_prog_compiler_static \
16400 lt_cv_prog_compiler_c_o \
16401 need_locks \
16402 DSYMUTIL \
16403 NMEDIT \
16404 LIPO \
16405 OTOOL \
16406 OTOOL64 \
16407 shrext_cmds \
16408 export_dynamic_flag_spec \
16409 whole_archive_flag_spec \
16410 compiler_needs_object \
16411 with_gnu_ld \
16412 allow_undefined_flag \
16413 no_undefined_flag \
16414 hardcode_libdir_flag_spec \
16415 hardcode_libdir_flag_spec_ld \
16416 hardcode_libdir_separator \
16417 fix_srcfile_path \
16418 exclude_expsyms \
16419 include_expsyms \
16420 file_list_spec \
16421 variables_saved_for_relink \
16422 libname_spec \
16423 library_names_spec \
16424 soname_spec \
16425 install_override_mode \
16426 finish_eval \
16427 old_striplib \
16428 striplib \
16429 LD_D \
16430 reload_flag_D \
16431 compiler_D \
16432 lt_prog_compiler_no_builtin_flag_D \
16433 lt_prog_compiler_wl_D \
16434 lt_prog_compiler_pic_D \
16435 lt_prog_compiler_static_D \
16436 lt_cv_prog_compiler_c_o_D \
16437 export_dynamic_flag_spec_D \
16438 whole_archive_flag_spec_D \
16439 compiler_needs_object_D \
16440 with_gnu_ld_D \
16441 allow_undefined_flag_D \
16442 no_undefined_flag_D \
16443 hardcode_libdir_flag_spec_D \
16444 hardcode_libdir_flag_spec_ld_D \
16445 hardcode_libdir_separator_D \
16446 fix_srcfile_path_D \
16447 exclude_expsyms_D \
16448 include_expsyms_D \
16449 file_list_spec_D; do
16450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16451 *[\\\\\\\`\\"\\\$]*)
16452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16453 ;;
16454 *)
16455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16456 ;;
16457 esac
16458 done
16459
16460 # Double-quote double-evaled strings.
16461 for var in reload_cmds \
16462 old_postinstall_cmds \
16463 old_postuninstall_cmds \
16464 old_archive_cmds \
16465 extract_expsyms_cmds \
16466 old_archive_from_new_cmds \
16467 old_archive_from_expsyms_cmds \
16468 archive_cmds \
16469 archive_expsym_cmds \
16470 module_cmds \
16471 module_expsym_cmds \
16472 export_symbols_cmds \
16473 prelink_cmds \
16474 postinstall_cmds \
16475 postuninstall_cmds \
16476 finish_cmds \
16477 sys_lib_search_path_spec \
16478 sys_lib_dlsearch_path_spec \
16479 reload_cmds_D \
16480 old_archive_cmds_D \
16481 old_archive_from_new_cmds_D \
16482 old_archive_from_expsyms_cmds_D \
16483 archive_cmds_D \
16484 archive_expsym_cmds_D \
16485 module_cmds_D \
16486 module_expsym_cmds_D \
16487 export_symbols_cmds_D \
16488 prelink_cmds_D; do
16489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16490 *[\\\\\\\`\\"\\\$]*)
16491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16492 ;;
16493 *)
16494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16495 ;;
16496 esac
16497 done
16498
16499 ac_aux_dir='$ac_aux_dir'
16500 xsi_shell='$xsi_shell'
16501 lt_shell_append='$lt_shell_append'
16502
16503 # See if we are running on zsh, and set the options which allow our
16504 # commands through without removal of \ escapes INIT.
16505 if test -n "\${ZSH_VERSION+set}" ; then
16506 setopt NO_GLOB_SUBST
16507 fi
16508
16509
16510 PACKAGE='$PACKAGE'
16511 VERSION='$VERSION'
16512 TIMESTAMP='$TIMESTAMP'
16513 RM='$RM'
16514 ofile='$ofile'
16515
16516
16517
16518
16519
16520
16521 _ACEOF
16522
16523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16524
16525 # Handling of arguments.
16526 for ac_config_target in $ac_config_targets
16527 do
16528 case $ac_config_target in
16529 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16530 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16531 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16532 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16533 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16534 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16535 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16536 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16537 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16538 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16539 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16540
16541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16542 esac
16543 done
16544
16545
16546 # If the user did not use the arguments to specify the items to instantiate,
16547 # then the envvar interface is used. Set only those that are not.
16548 # We use the long form for the default assignment because of an extremely
16549 # bizarre bug on SunOS 4.1.3.
16550 if $ac_need_defaults; then
16551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16554 fi
16555
16556 # Have a temporary directory for convenience. Make it in the build tree
16557 # simply because there is no reason against having it here, and in addition,
16558 # creating and moving files from /tmp can sometimes cause problems.
16559 # Hook for its removal unless debugging.
16560 # Note that there is a small window in which the directory will not be cleaned:
16561 # after its creation but before its name has been assigned to `$tmp'.
16562 $debug ||
16563 {
16564 tmp= ac_tmp=
16565 trap 'exit_status=$?
16566 : "${ac_tmp:=$tmp}"
16567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16568 ' 0
16569 trap 'as_fn_exit 1' 1 2 13 15
16570 }
16571 # Create a (secure) tmp directory for tmp files.
16572
16573 {
16574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16575 test -d "$tmp"
16576 } ||
16577 {
16578 tmp=./conf$$-$RANDOM
16579 (umask 077 && mkdir "$tmp")
16580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16581 ac_tmp=$tmp
16582
16583 # Set up the scripts for CONFIG_FILES section.
16584 # No need to generate them if there are no CONFIG_FILES.
16585 # This happens for instance with `./config.status config.h'.
16586 if test -n "$CONFIG_FILES"; then
16587
16588 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16589 ac_cs_awk_getline=:
16590 ac_cs_awk_pipe_init=
16591 ac_cs_awk_read_file='
16592 while ((getline aline < (F[key])) > 0)
16593 print(aline)
16594 close(F[key])'
16595 ac_cs_awk_pipe_fini=
16596 else
16597 ac_cs_awk_getline=false
16598 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16599 ac_cs_awk_read_file='
16600 print "|#_!!_#|"
16601 print "cat " F[key] " &&"
16602 '$ac_cs_awk_pipe_init
16603 # The final `:' finishes the AND list.
16604 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16605 fi
16606 ac_cr=`echo X | tr X '\015'`
16607 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16608 # But we know of no other shell where ac_cr would be empty at this
16609 # point, so we can use a bashism as a fallback.
16610 if test "x$ac_cr" = x; then
16611 eval ac_cr=\$\'\\r\'
16612 fi
16613 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16614 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16615 ac_cs_awk_cr='\\r'
16616 else
16617 ac_cs_awk_cr=$ac_cr
16618 fi
16619
16620 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16621 _ACEOF
16622
16623 # Create commands to substitute file output variables.
16624 {
16625 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16626 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16627 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16628 echo "_ACAWK" &&
16629 echo "_ACEOF"
16630 } >conf$$files.sh &&
16631 . ./conf$$files.sh ||
16632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16633 rm -f conf$$files.sh
16634
16635 {
16636 echo "cat >conf$$subs.awk <<_ACEOF" &&
16637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16638 echo "_ACEOF"
16639 } >conf$$subs.sh ||
16640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16641 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16642 ac_delim='%!_!# '
16643 for ac_last_try in false false false false false :; do
16644 . ./conf$$subs.sh ||
16645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16646
16647 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16648 if test $ac_delim_n = $ac_delim_num; then
16649 break
16650 elif $ac_last_try; then
16651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16652 else
16653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16654 fi
16655 done
16656 rm -f conf$$subs.sh
16657
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16660 _ACEOF
16661 sed -n '
16662 h
16663 s/^/S["/; s/!.*/"]=/
16664 p
16665 g
16666 s/^[^!]*!//
16667 :repl
16668 t repl
16669 s/'"$ac_delim"'$//
16670 t delim
16671 :nl
16672 h
16673 s/\(.\{148\}\)..*/\1/
16674 t more1
16675 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16676 p
16677 n
16678 b repl
16679 :more1
16680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16681 p
16682 g
16683 s/.\{148\}//
16684 t nl
16685 :delim
16686 h
16687 s/\(.\{148\}\)..*/\1/
16688 t more2
16689 s/["\\]/\\&/g; s/^/"/; s/$/"/
16690 p
16691 b
16692 :more2
16693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16694 p
16695 g
16696 s/.\{148\}//
16697 t delim
16698 ' <conf$$subs.awk | sed '
16699 /^[^""]/{
16700 N
16701 s/\n//
16702 }
16703 ' >>$CONFIG_STATUS || ac_write_fail=1
16704 rm -f conf$$subs.awk
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 _ACAWK
16707 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16708 for (key in S) S_is_set[key] = 1
16709 FS = "\a"
16710 \$ac_cs_awk_pipe_init
16711 }
16712 {
16713 line = $ 0
16714 nfields = split(line, field, "@")
16715 substed = 0
16716 len = length(field[1])
16717 for (i = 2; i < nfields; i++) {
16718 key = field[i]
16719 keylen = length(key)
16720 if (S_is_set[key]) {
16721 value = S[key]
16722 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16723 len += length(value) + length(field[++i])
16724 substed = 1
16725 } else
16726 len += 1 + keylen
16727 }
16728 if (nfields == 3 && !substed) {
16729 key = field[2]
16730 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16731 \$ac_cs_awk_read_file
16732 next
16733 }
16734 }
16735 print line
16736 }
16737 \$ac_cs_awk_pipe_fini
16738 _ACAWK
16739 _ACEOF
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16743 else
16744 cat
16745 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16746 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16747 _ACEOF
16748
16749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16751 # trailing colons and then remove the whole line if VPATH becomes empty
16752 # (actually we leave an empty line to preserve line numbers).
16753 if test "x$srcdir" = x.; then
16754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16755 h
16756 s///
16757 s/^/:/
16758 s/[ ]*$/:/
16759 s/:\$(srcdir):/:/g
16760 s/:\${srcdir}:/:/g
16761 s/:@srcdir@:/:/g
16762 s/^:*//
16763 s/:*$//
16764 x
16765 s/\(=[ ]*\).*/\1/
16766 G
16767 s/\n//
16768 s/^[^=]*=[ ]*$//
16769 }'
16770 fi
16771
16772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16773 fi # test -n "$CONFIG_FILES"
16774
16775 # Set up the scripts for CONFIG_HEADERS section.
16776 # No need to generate them if there are no CONFIG_HEADERS.
16777 # This happens for instance with `./config.status Makefile'.
16778 if test -n "$CONFIG_HEADERS"; then
16779 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16780 BEGIN {
16781 _ACEOF
16782
16783 # Transform confdefs.h into an awk script `defines.awk', embedded as
16784 # here-document in config.status, that substitutes the proper values into
16785 # config.h.in to produce config.h.
16786
16787 # Create a delimiter string that does not exist in confdefs.h, to ease
16788 # handling of long lines.
16789 ac_delim='%!_!# '
16790 for ac_last_try in false false :; do
16791 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16792 if test -z "$ac_tt"; then
16793 break
16794 elif $ac_last_try; then
16795 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16796 else
16797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16798 fi
16799 done
16800
16801 # For the awk script, D is an array of macro values keyed by name,
16802 # likewise P contains macro parameters if any. Preserve backslash
16803 # newline sequences.
16804
16805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16806 sed -n '
16807 s/.\{148\}/&'"$ac_delim"'/g
16808 t rset
16809 :rset
16810 s/^[ ]*#[ ]*define[ ][ ]*/ /
16811 t def
16812 d
16813 :def
16814 s/\\$//
16815 t bsnl
16816 s/["\\]/\\&/g
16817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16818 D["\1"]=" \3"/p
16819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16820 d
16821 :bsnl
16822 s/["\\]/\\&/g
16823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16824 D["\1"]=" \3\\\\\\n"\\/p
16825 t cont
16826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16827 t cont
16828 d
16829 :cont
16830 n
16831 s/.\{148\}/&'"$ac_delim"'/g
16832 t clear
16833 :clear
16834 s/\\$//
16835 t bsnlc
16836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16837 d
16838 :bsnlc
16839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16840 b cont
16841 ' <confdefs.h | sed '
16842 s/'"$ac_delim"'/"\\\
16843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16844
16845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846 for (key in D) D_is_set[key] = 1
16847 FS = "\a"
16848 }
16849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16850 line = \$ 0
16851 split(line, arg, " ")
16852 if (arg[1] == "#") {
16853 defundef = arg[2]
16854 mac1 = arg[3]
16855 } else {
16856 defundef = substr(arg[1], 2)
16857 mac1 = arg[2]
16858 }
16859 split(mac1, mac2, "(") #)
16860 macro = mac2[1]
16861 prefix = substr(line, 1, index(line, defundef) - 1)
16862 if (D_is_set[macro]) {
16863 # Preserve the white space surrounding the "#".
16864 print prefix "define", macro P[macro] D[macro]
16865 next
16866 } else {
16867 # Replace #undef with comments. This is necessary, for example,
16868 # in the case of _POSIX_SOURCE, which is predefined and required
16869 # on some systems where configure will not decide to define it.
16870 if (defundef == "undef") {
16871 print "/*", prefix defundef, macro, "*/"
16872 next
16873 }
16874 }
16875 }
16876 { print }
16877 _ACAWK
16878 _ACEOF
16879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16880 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16881 fi # test -n "$CONFIG_HEADERS"
16882
16883
16884 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16885 shift
16886 for ac_tag
16887 do
16888 case $ac_tag in
16889 :[FHLC]) ac_mode=$ac_tag; continue;;
16890 esac
16891 case $ac_mode$ac_tag in
16892 :[FHL]*:*);;
16893 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16894 :[FH]-) ac_tag=-:-;;
16895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16896 esac
16897 ac_save_IFS=$IFS
16898 IFS=:
16899 set x $ac_tag
16900 IFS=$ac_save_IFS
16901 shift
16902 ac_file=$1
16903 shift
16904
16905 case $ac_mode in
16906 :L) ac_source=$1;;
16907 :[FH])
16908 ac_file_inputs=
16909 for ac_f
16910 do
16911 case $ac_f in
16912 -) ac_f="$ac_tmp/stdin";;
16913 *) # Look for the file first in the build tree, then in the source tree
16914 # (if the path is not absolute). The absolute path cannot be DOS-style,
16915 # because $ac_f cannot contain `:'.
16916 test -f "$ac_f" ||
16917 case $ac_f in
16918 [\\/$]*) false;;
16919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16920 esac ||
16921 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16922 esac
16923 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16924 as_fn_append ac_file_inputs " '$ac_f'"
16925 done
16926
16927 # Let's still pretend it is `configure' which instantiates (i.e., don't
16928 # use $as_me), people would be surprised to read:
16929 # /* config.h. Generated by config.status. */
16930 configure_input='Generated from '`
16931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16932 `' by configure.'
16933 if test x"$ac_file" != x-; then
16934 configure_input="$ac_file. $configure_input"
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16936 $as_echo "$as_me: creating $ac_file" >&6;}
16937 fi
16938 # Neutralize special characters interpreted by sed in replacement strings.
16939 case $configure_input in #(
16940 *\&* | *\|* | *\\* )
16941 ac_sed_conf_input=`$as_echo "$configure_input" |
16942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16943 *) ac_sed_conf_input=$configure_input;;
16944 esac
16945
16946 case $ac_tag in
16947 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16949 esac
16950 ;;
16951 esac
16952
16953 ac_dir=`$as_dirname -- "$ac_file" ||
16954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16955 X"$ac_file" : 'X\(//\)[^/]' \| \
16956 X"$ac_file" : 'X\(//\)$' \| \
16957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16958 $as_echo X"$ac_file" |
16959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16960 s//\1/
16961 q
16962 }
16963 /^X\(\/\/\)[^/].*/{
16964 s//\1/
16965 q
16966 }
16967 /^X\(\/\/\)$/{
16968 s//\1/
16969 q
16970 }
16971 /^X\(\/\).*/{
16972 s//\1/
16973 q
16974 }
16975 s/.*/./; q'`
16976 as_dir="$ac_dir"; as_fn_mkdir_p
16977 ac_builddir=.
16978
16979 case "$ac_dir" in
16980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16981 *)
16982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16983 # A ".." for each directory in $ac_dir_suffix.
16984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16985 case $ac_top_builddir_sub in
16986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16988 esac ;;
16989 esac
16990 ac_abs_top_builddir=$ac_pwd
16991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16992 # for backward compatibility:
16993 ac_top_builddir=$ac_top_build_prefix
16994
16995 case $srcdir in
16996 .) # We are building in place.
16997 ac_srcdir=.
16998 ac_top_srcdir=$ac_top_builddir_sub
16999 ac_abs_top_srcdir=$ac_pwd ;;
17000 [\\/]* | ?:[\\/]* ) # Absolute name.
17001 ac_srcdir=$srcdir$ac_dir_suffix;
17002 ac_top_srcdir=$srcdir
17003 ac_abs_top_srcdir=$srcdir ;;
17004 *) # Relative name.
17005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17006 ac_top_srcdir=$ac_top_build_prefix$srcdir
17007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17008 esac
17009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17010
17011
17012 case $ac_mode in
17013 :F)
17014 #
17015 # CONFIG_FILE
17016 #
17017
17018 case $INSTALL in
17019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17021 esac
17022 ac_MKDIR_P=$MKDIR_P
17023 case $MKDIR_P in
17024 [\\/$]* | ?:[\\/]* ) ;;
17025 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17026 esac
17027 _ACEOF
17028
17029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030 # If the template does not know about datarootdir, expand it.
17031 # FIXME: This hack should be removed a few years after 2.60.
17032 ac_datarootdir_hack=; ac_datarootdir_seen=
17033 ac_sed_dataroot='
17034 /datarootdir/ {
17035 p
17036 q
17037 }
17038 /@datadir@/p
17039 /@docdir@/p
17040 /@infodir@/p
17041 /@localedir@/p
17042 /@mandir@/p'
17043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17044 *datarootdir*) ac_datarootdir_seen=yes;;
17045 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17047 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17048 _ACEOF
17049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17050 ac_datarootdir_hack='
17051 s&@datadir@&$datadir&g
17052 s&@docdir@&$docdir&g
17053 s&@infodir@&$infodir&g
17054 s&@localedir@&$localedir&g
17055 s&@mandir@&$mandir&g
17056 s&\\\${datarootdir}&$datarootdir&g' ;;
17057 esac
17058 _ACEOF
17059
17060 # Neutralize VPATH when `$srcdir' = `.'.
17061 # Shell code in configure.ac might set extrasub.
17062 # FIXME: do we really want to maintain this feature?
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 ac_sed_extra="$ac_vpsub
17065 $extrasub
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 :t
17069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17070 s|@configure_input@|$ac_sed_conf_input|;t t
17071 s&@top_builddir@&$ac_top_builddir_sub&;t t
17072 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17073 s&@srcdir@&$ac_srcdir&;t t
17074 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17075 s&@top_srcdir@&$ac_top_srcdir&;t t
17076 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17077 s&@builddir@&$ac_builddir&;t t
17078 s&@abs_builddir@&$ac_abs_builddir&;t t
17079 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17080 s&@INSTALL@&$ac_INSTALL&;t t
17081 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17082 $ac_datarootdir_hack
17083 "
17084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17085 if $ac_cs_awk_getline; then
17086 $AWK -f "$ac_tmp/subs.awk"
17087 else
17088 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17089 fi \
17090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17091
17092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17097 which seems to be undefined. Please make sure it is defined" >&5
17098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17099 which seems to be undefined. Please make sure it is defined" >&2;}
17100
17101 rm -f "$ac_tmp/stdin"
17102 case $ac_file in
17103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17105 esac \
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17107 ;;
17108 :H)
17109 #
17110 # CONFIG_HEADER
17111 #
17112 if test x"$ac_file" != x-; then
17113 {
17114 $as_echo "/* $configure_input */" \
17115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17116 } >"$ac_tmp/config.h" \
17117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17121 else
17122 rm -f "$ac_file"
17123 mv "$ac_tmp/config.h" "$ac_file" \
17124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17125 fi
17126 else
17127 $as_echo "/* $configure_input */" \
17128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17129 || as_fn_error $? "could not create -" "$LINENO" 5
17130 fi
17131 # Compute "$ac_file"'s index in $config_headers.
17132 _am_arg="$ac_file"
17133 _am_stamp_count=1
17134 for _am_header in $config_headers :; do
17135 case $_am_header in
17136 $_am_arg | $_am_arg:* )
17137 break ;;
17138 * )
17139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17140 esac
17141 done
17142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17144 X"$_am_arg" : 'X\(//\)[^/]' \| \
17145 X"$_am_arg" : 'X\(//\)$' \| \
17146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17147 $as_echo X"$_am_arg" |
17148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17149 s//\1/
17150 q
17151 }
17152 /^X\(\/\/\)[^/].*/{
17153 s//\1/
17154 q
17155 }
17156 /^X\(\/\/\)$/{
17157 s//\1/
17158 q
17159 }
17160 /^X\(\/\).*/{
17161 s//\1/
17162 q
17163 }
17164 s/.*/./; q'`/stamp-h$_am_stamp_count
17165 ;;
17166
17167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17168 $as_echo "$as_me: executing $ac_file commands" >&6;}
17169 ;;
17170 esac
17171
17172
17173 case $ac_file$ac_mode in
17174 "default-1":C)
17175 # Only add multilib support code if we just rebuilt the top-level
17176 # Makefile.
17177 case " $CONFIG_FILES " in
17178 *" Makefile "*)
17179 ac_file=Makefile . ${multi_basedir}/config-ml.in
17180 ;;
17181 esac ;;
17182 "libtool":C)
17183
17184 # See if we are running on zsh, and set the options which allow our
17185 # commands through without removal of \ escapes.
17186 if test -n "${ZSH_VERSION+set}" ; then
17187 setopt NO_GLOB_SUBST
17188 fi
17189
17190 cfgfile="${ofile}T"
17191 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17192 $RM "$cfgfile"
17193
17194 cat <<_LT_EOF >> "$cfgfile"
17195 #! $SHELL
17196
17197 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17198 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17199 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17201 #
17202 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17203 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17204 # Written by Gordon Matzigkeit, 1996
17205 #
17206 # This file is part of GNU Libtool.
17207 #
17208 # GNU Libtool is free software; you can redistribute it and/or
17209 # modify it under the terms of the GNU General Public License as
17210 # published by the Free Software Foundation; either version 2 of
17211 # the License, or (at your option) any later version.
17212 #
17213 # As a special exception to the GNU General Public License,
17214 # if you distribute this file as part of a program or library that
17215 # is built using GNU Libtool, you may include this file under the
17216 # same distribution terms that you use for the rest of that program.
17217 #
17218 # GNU Libtool is distributed in the hope that it will be useful,
17219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17221 # GNU General Public License for more details.
17222 #
17223 # You should have received a copy of the GNU General Public License
17224 # along with GNU Libtool; see the file COPYING. If not, a copy
17225 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17226 # obtained by writing to the Free Software Foundation, Inc.,
17227 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17228
17229
17230 # The names of the tagged configurations supported by this script.
17231 available_tags="D "
17232
17233 # ### BEGIN LIBTOOL CONFIG
17234
17235 # Which release of libtool.m4 was used?
17236 macro_version=$macro_version
17237 macro_revision=$macro_revision
17238
17239 # Whether or not to build shared libraries.
17240 build_libtool_libs=$enable_shared
17241
17242 # Whether or not to build static libraries.
17243 build_old_libs=$enable_static
17244
17245 # What type of objects to build.
17246 pic_mode=$pic_mode
17247
17248 # Whether or not to optimize for fast installation.
17249 fast_install=$enable_fast_install
17250
17251 # Shell to use when invoking shell scripts.
17252 SHELL=$lt_SHELL
17253
17254 # An echo program that protects backslashes.
17255 ECHO=$lt_ECHO
17256
17257 # The host system.
17258 host_alias=$host_alias
17259 host=$host
17260 host_os=$host_os
17261
17262 # The build system.
17263 build_alias=$build_alias
17264 build=$build
17265 build_os=$build_os
17266
17267 # A sed program that does not truncate output.
17268 SED=$lt_SED
17269
17270 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17271 Xsed="\$SED -e 1s/^X//"
17272
17273 # A grep program that handles long lines.
17274 GREP=$lt_GREP
17275
17276 # An ERE matcher.
17277 EGREP=$lt_EGREP
17278
17279 # A literal string matcher.
17280 FGREP=$lt_FGREP
17281
17282 # A BSD- or MS-compatible name lister.
17283 NM=$lt_NM
17284
17285 # Whether we need soft or hard links.
17286 LN_S=$lt_LN_S
17287
17288 # What is the maximum length of a command?
17289 max_cmd_len=$max_cmd_len
17290
17291 # Object file suffix (normally "o").
17292 objext=$ac_objext
17293
17294 # Executable file suffix (normally "").
17295 exeext=$exeext
17296
17297 # whether the shell understands "unset".
17298 lt_unset=$lt_unset
17299
17300 # turn spaces into newlines.
17301 SP2NL=$lt_lt_SP2NL
17302
17303 # turn newlines into spaces.
17304 NL2SP=$lt_lt_NL2SP
17305
17306 # An object symbol dumper.
17307 OBJDUMP=$lt_OBJDUMP
17308
17309 # Method to check whether dependent libraries are shared objects.
17310 deplibs_check_method=$lt_deplibs_check_method
17311
17312 # Command to use when deplibs_check_method == "file_magic".
17313 file_magic_cmd=$lt_file_magic_cmd
17314
17315 # The archiver.
17316 AR=$lt_AR
17317 AR_FLAGS=$lt_AR_FLAGS
17318
17319 # A symbol stripping program.
17320 STRIP=$lt_STRIP
17321
17322 # Commands used to install an old-style archive.
17323 RANLIB=$lt_RANLIB
17324 old_postinstall_cmds=$lt_old_postinstall_cmds
17325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17326
17327 # Whether to use a lock for old archive extraction.
17328 lock_old_archive_extraction=$lock_old_archive_extraction
17329
17330 # A C compiler.
17331 LTCC=$lt_CC
17332
17333 # LTCC compiler flags.
17334 LTCFLAGS=$lt_CFLAGS
17335
17336 # Take the output of nm and produce a listing of raw symbols and C names.
17337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17338
17339 # Transform the output of nm in a proper C declaration.
17340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17341
17342 # Transform the output of nm in a C name address pair.
17343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17344
17345 # Transform the output of nm in a C name address pair when lib prefix is needed.
17346 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17347
17348 # The name of the directory that contains temporary libtool files.
17349 objdir=$objdir
17350
17351 # Used to examine libraries when file_magic_cmd begins with "file".
17352 MAGIC_CMD=$MAGIC_CMD
17353
17354 # Must we lock files when doing compilation?
17355 need_locks=$lt_need_locks
17356
17357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17358 DSYMUTIL=$lt_DSYMUTIL
17359
17360 # Tool to change global to local symbols on Mac OS X.
17361 NMEDIT=$lt_NMEDIT
17362
17363 # Tool to manipulate fat objects and archives on Mac OS X.
17364 LIPO=$lt_LIPO
17365
17366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17367 OTOOL=$lt_OTOOL
17368
17369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17370 OTOOL64=$lt_OTOOL64
17371
17372 # Old archive suffix (normally "a").
17373 libext=$libext
17374
17375 # Shared library suffix (normally ".so").
17376 shrext_cmds=$lt_shrext_cmds
17377
17378 # The commands to extract the exported symbol list from a shared archive.
17379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17380
17381 # Variables whose values should be saved in libtool wrapper scripts and
17382 # restored at link time.
17383 variables_saved_for_relink=$lt_variables_saved_for_relink
17384
17385 # Do we need the "lib" prefix for modules?
17386 need_lib_prefix=$need_lib_prefix
17387
17388 # Do we need a version for libraries?
17389 need_version=$need_version
17390
17391 # Library versioning type.
17392 version_type=$version_type
17393
17394 # Shared library runtime path variable.
17395 runpath_var=$runpath_var
17396
17397 # Shared library path variable.
17398 shlibpath_var=$shlibpath_var
17399
17400 # Is shlibpath searched before the hard-coded library search path?
17401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17402
17403 # Format of library name prefix.
17404 libname_spec=$lt_libname_spec
17405
17406 # List of archive names. First name is the real one, the rest are links.
17407 # The last name is the one that the linker finds with -lNAME
17408 library_names_spec=$lt_library_names_spec
17409
17410 # The coded name of the library, if different from the real name.
17411 soname_spec=$lt_soname_spec
17412
17413 # Permission mode override for installation of shared libraries.
17414 install_override_mode=$lt_install_override_mode
17415
17416 # Command to use after installation of a shared archive.
17417 postinstall_cmds=$lt_postinstall_cmds
17418
17419 # Command to use after uninstallation of a shared archive.
17420 postuninstall_cmds=$lt_postuninstall_cmds
17421
17422 # Commands used to finish a libtool library installation in a directory.
17423 finish_cmds=$lt_finish_cmds
17424
17425 # As "finish_cmds", except a single script fragment to be evaled but
17426 # not shown.
17427 finish_eval=$lt_finish_eval
17428
17429 # Whether we should hardcode library paths into libraries.
17430 hardcode_into_libs=$hardcode_into_libs
17431
17432 # Compile-time system search path for libraries.
17433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17434
17435 # Run-time system search path for libraries.
17436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17437
17438 # Whether dlopen is supported.
17439 dlopen_support=$enable_dlopen
17440
17441 # Whether dlopen of programs is supported.
17442 dlopen_self=$enable_dlopen_self
17443
17444 # Whether dlopen of statically linked programs is supported.
17445 dlopen_self_static=$enable_dlopen_self_static
17446
17447 # Commands to strip libraries.
17448 old_striplib=$lt_old_striplib
17449 striplib=$lt_striplib
17450
17451
17452 # The linker used to build libraries.
17453 LD=$lt_LD
17454
17455 # How to create reloadable object files.
17456 reload_flag=$lt_reload_flag
17457 reload_cmds=$lt_reload_cmds
17458
17459 # Commands used to build an old-style archive.
17460 old_archive_cmds=$lt_old_archive_cmds
17461
17462 # A language specific compiler.
17463 CC=$lt_compiler
17464
17465 # Is the compiler the GNU compiler?
17466 with_gcc=$GCC
17467
17468 # Compiler flag to turn off builtin functions.
17469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17470
17471 # How to pass a linker flag through the compiler.
17472 wl=$lt_lt_prog_compiler_wl
17473
17474 # Additional compiler flags for building library objects.
17475 pic_flag=$lt_lt_prog_compiler_pic
17476
17477 # Compiler flag to prevent dynamic linking.
17478 link_static_flag=$lt_lt_prog_compiler_static
17479
17480 # Does compiler simultaneously support -c and -o options?
17481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17482
17483 # Whether or not to add -lc for building shared libraries.
17484 build_libtool_need_lc=$archive_cmds_need_lc
17485
17486 # Whether or not to disallow shared libs when runtime libs are static.
17487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17488
17489 # Compiler flag to allow reflexive dlopens.
17490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17491
17492 # Compiler flag to generate shared objects directly from archives.
17493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17494
17495 # Whether the compiler copes with passing no objects directly.
17496 compiler_needs_object=$lt_compiler_needs_object
17497
17498 # Create an old-style archive from a shared archive.
17499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17500
17501 # Create a temporary old-style archive to link instead of a shared archive.
17502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17503
17504 # Commands used to build a shared archive.
17505 archive_cmds=$lt_archive_cmds
17506 archive_expsym_cmds=$lt_archive_expsym_cmds
17507
17508 # Commands used to build a loadable module if different from building
17509 # a shared archive.
17510 module_cmds=$lt_module_cmds
17511 module_expsym_cmds=$lt_module_expsym_cmds
17512
17513 # Whether we are building with GNU ld or not.
17514 with_gnu_ld=$lt_with_gnu_ld
17515
17516 # Flag that allows shared libraries with undefined symbols to be built.
17517 allow_undefined_flag=$lt_allow_undefined_flag
17518
17519 # Flag that enforces no undefined symbols.
17520 no_undefined_flag=$lt_no_undefined_flag
17521
17522 # Flag to hardcode \$libdir into a binary during linking.
17523 # This must work even if \$libdir does not exist
17524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17525
17526 # If ld is used when linking, flag to hardcode \$libdir into a binary
17527 # during linking. This must work even if \$libdir does not exist.
17528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17529
17530 # Whether we need a single "-rpath" flag with a separated argument.
17531 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17532
17533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17534 # DIR into the resulting binary.
17535 hardcode_direct=$hardcode_direct
17536
17537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17538 # DIR into the resulting binary and the resulting library dependency is
17539 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17540 # library is relocated.
17541 hardcode_direct_absolute=$hardcode_direct_absolute
17542
17543 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17544 # into the resulting binary.
17545 hardcode_minus_L=$hardcode_minus_L
17546
17547 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17548 # into the resulting binary.
17549 hardcode_shlibpath_var=$hardcode_shlibpath_var
17550
17551 # Set to "yes" if building a shared library automatically hardcodes DIR
17552 # into the library and all subsequent libraries and executables linked
17553 # against it.
17554 hardcode_automatic=$hardcode_automatic
17555
17556 # Set to yes if linker adds runtime paths of dependent libraries
17557 # to runtime path list.
17558 inherit_rpath=$inherit_rpath
17559
17560 # Whether libtool must link a program against all its dependency libraries.
17561 link_all_deplibs=$link_all_deplibs
17562
17563 # Fix the shell variable \$srcfile for the compiler.
17564 fix_srcfile_path=$lt_fix_srcfile_path
17565
17566 # Set to "yes" if exported symbols are required.
17567 always_export_symbols=$always_export_symbols
17568
17569 # The commands to list exported symbols.
17570 export_symbols_cmds=$lt_export_symbols_cmds
17571
17572 # Symbols that should not be listed in the preloaded symbols.
17573 exclude_expsyms=$lt_exclude_expsyms
17574
17575 # Symbols that must always be exported.
17576 include_expsyms=$lt_include_expsyms
17577
17578 # Commands necessary for linking programs (against libraries) with templates.
17579 prelink_cmds=$lt_prelink_cmds
17580
17581 # Specify filename containing input files.
17582 file_list_spec=$lt_file_list_spec
17583
17584 # How to hardcode a shared library path into an executable.
17585 hardcode_action=$hardcode_action
17586
17587 # ### END LIBTOOL CONFIG
17588
17589 _LT_EOF
17590
17591 case $host_os in
17592 aix3*)
17593 cat <<\_LT_EOF >> "$cfgfile"
17594 # AIX sometimes has problems with the GCC collect2 program. For some
17595 # reason, if we set the COLLECT_NAMES environment variable, the problems
17596 # vanish in a puff of smoke.
17597 if test "X${COLLECT_NAMES+set}" != Xset; then
17598 COLLECT_NAMES=
17599 export COLLECT_NAMES
17600 fi
17601 _LT_EOF
17602 ;;
17603 esac
17604
17605
17606 ltmain="$ac_aux_dir/ltmain.sh"
17607
17608
17609 # We use sed instead of cat because bash on DJGPP gets confused if
17610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17611 # text mode, it properly converts lines to CR/LF. This bash problem
17612 # is reportedly fixed, but why not run on old versions too?
17613 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17614 || (rm -f "$cfgfile"; exit 1)
17615
17616 case $xsi_shell in
17617 yes)
17618 cat << \_LT_EOF >> "$cfgfile"
17619
17620 # func_dirname file append nondir_replacement
17621 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17622 # otherwise set result to NONDIR_REPLACEMENT.
17623 func_dirname ()
17624 {
17625 case ${1} in
17626 */*) func_dirname_result="${1%/*}${2}" ;;
17627 * ) func_dirname_result="${3}" ;;
17628 esac
17629 }
17630
17631 # func_basename file
17632 func_basename ()
17633 {
17634 func_basename_result="${1##*/}"
17635 }
17636
17637 # func_dirname_and_basename file append nondir_replacement
17638 # perform func_basename and func_dirname in a single function
17639 # call:
17640 # dirname: Compute the dirname of FILE. If nonempty,
17641 # add APPEND to the result, otherwise set result
17642 # to NONDIR_REPLACEMENT.
17643 # value returned in "$func_dirname_result"
17644 # basename: Compute filename of FILE.
17645 # value retuned in "$func_basename_result"
17646 # Implementation must be kept synchronized with func_dirname
17647 # and func_basename. For efficiency, we do not delegate to
17648 # those functions but instead duplicate the functionality here.
17649 func_dirname_and_basename ()
17650 {
17651 case ${1} in
17652 */*) func_dirname_result="${1%/*}${2}" ;;
17653 * ) func_dirname_result="${3}" ;;
17654 esac
17655 func_basename_result="${1##*/}"
17656 }
17657
17658 # func_stripname prefix suffix name
17659 # strip PREFIX and SUFFIX off of NAME.
17660 # PREFIX and SUFFIX must not contain globbing or regex special
17661 # characters, hashes, percent signs, but SUFFIX may contain a leading
17662 # dot (in which case that matches only a dot).
17663 func_stripname ()
17664 {
17665 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17666 # positional parameters, so assign one to ordinary parameter first.
17667 func_stripname_result=${3}
17668 func_stripname_result=${func_stripname_result#"${1}"}
17669 func_stripname_result=${func_stripname_result%"${2}"}
17670 }
17671
17672 # func_opt_split
17673 func_opt_split ()
17674 {
17675 func_opt_split_opt=${1%%=*}
17676 func_opt_split_arg=${1#*=}
17677 }
17678
17679 # func_lo2o object
17680 func_lo2o ()
17681 {
17682 case ${1} in
17683 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17684 *) func_lo2o_result=${1} ;;
17685 esac
17686 }
17687
17688 # func_xform libobj-or-source
17689 func_xform ()
17690 {
17691 func_xform_result=${1%.*}.lo
17692 }
17693
17694 # func_arith arithmetic-term...
17695 func_arith ()
17696 {
17697 func_arith_result=$(( $* ))
17698 }
17699
17700 # func_len string
17701 # STRING may not start with a hyphen.
17702 func_len ()
17703 {
17704 func_len_result=${#1}
17705 }
17706
17707 _LT_EOF
17708 ;;
17709 *) # Bourne compatible functions.
17710 cat << \_LT_EOF >> "$cfgfile"
17711
17712 # func_dirname file append nondir_replacement
17713 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17714 # otherwise set result to NONDIR_REPLACEMENT.
17715 func_dirname ()
17716 {
17717 # Extract subdirectory from the argument.
17718 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17719 if test "X$func_dirname_result" = "X${1}"; then
17720 func_dirname_result="${3}"
17721 else
17722 func_dirname_result="$func_dirname_result${2}"
17723 fi
17724 }
17725
17726 # func_basename file
17727 func_basename ()
17728 {
17729 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17730 }
17731
17732
17733 # func_stripname prefix suffix name
17734 # strip PREFIX and SUFFIX off of NAME.
17735 # PREFIX and SUFFIX must not contain globbing or regex special
17736 # characters, hashes, percent signs, but SUFFIX may contain a leading
17737 # dot (in which case that matches only a dot).
17738 # func_strip_suffix prefix name
17739 func_stripname ()
17740 {
17741 case ${2} in
17742 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17743 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17744 esac
17745 }
17746
17747 # sed scripts:
17748 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17749 my_sed_long_arg='1s/^-[^=]*=//'
17750
17751 # func_opt_split
17752 func_opt_split ()
17753 {
17754 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17755 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17756 }
17757
17758 # func_lo2o object
17759 func_lo2o ()
17760 {
17761 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17762 }
17763
17764 # func_xform libobj-or-source
17765 func_xform ()
17766 {
17767 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17768 }
17769
17770 # func_arith arithmetic-term...
17771 func_arith ()
17772 {
17773 func_arith_result=`expr "$@"`
17774 }
17775
17776 # func_len string
17777 # STRING may not start with a hyphen.
17778 func_len ()
17779 {
17780 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17781 }
17782
17783 _LT_EOF
17784 esac
17785
17786 case $lt_shell_append in
17787 yes)
17788 cat << \_LT_EOF >> "$cfgfile"
17789
17790 # func_append var value
17791 # Append VALUE to the end of shell variable VAR.
17792 func_append ()
17793 {
17794 eval "$1+=\$2"
17795 }
17796 _LT_EOF
17797 ;;
17798 *)
17799 cat << \_LT_EOF >> "$cfgfile"
17800
17801 # func_append var value
17802 # Append VALUE to the end of shell variable VAR.
17803 func_append ()
17804 {
17805 eval "$1=\$$1\$2"
17806 }
17807
17808 _LT_EOF
17809 ;;
17810 esac
17811
17812
17813 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17814 || (rm -f "$cfgfile"; exit 1)
17815
17816 mv -f "$cfgfile" "$ofile" ||
17817 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17818 chmod +x "$ofile"
17819
17820
17821 cat <<_LT_EOF >> "$ofile"
17822
17823 # ### BEGIN LIBTOOL TAG CONFIG: D
17824
17825 # The linker used to build libraries.
17826 LD=$lt_LD_D
17827
17828 # How to create reloadable object files.
17829 reload_flag=$lt_reload_flag_D
17830 reload_cmds=$lt_reload_cmds_D
17831
17832 # Commands used to build an old-style archive.
17833 old_archive_cmds=$lt_old_archive_cmds_D
17834
17835 # A language specific compiler.
17836 CC=$lt_compiler_D
17837
17838 # Is the compiler the GNU compiler?
17839 with_gcc=$GCC_D
17840
17841 # Compiler flag to turn off builtin functions.
17842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17843
17844 # How to pass a linker flag through the compiler.
17845 wl=$lt_lt_prog_compiler_wl_D
17846
17847 # Additional compiler flags for building library objects.
17848 pic_flag=$lt_lt_prog_compiler_pic_D
17849
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_D
17852
17853 # Does compiler simultaneously support -c and -o options?
17854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17855
17856 # Whether or not to add -lc for building shared libraries.
17857 build_libtool_need_lc=$archive_cmds_need_lc_D
17858
17859 # Whether or not to disallow shared libs when runtime libs are static.
17860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17861
17862 # Compiler flag to allow reflexive dlopens.
17863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17864
17865 # Compiler flag to generate shared objects directly from archives.
17866 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17867
17868 # Whether the compiler copes with passing no objects directly.
17869 compiler_needs_object=$lt_compiler_needs_object_D
17870
17871 # Create an old-style archive from a shared archive.
17872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17873
17874 # Create a temporary old-style archive to link instead of a shared archive.
17875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17876
17877 # Commands used to build a shared archive.
17878 archive_cmds=$lt_archive_cmds_D
17879 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17880
17881 # Commands used to build a loadable module if different from building
17882 # a shared archive.
17883 module_cmds=$lt_module_cmds_D
17884 module_expsym_cmds=$lt_module_expsym_cmds_D
17885
17886 # Whether we are building with GNU ld or not.
17887 with_gnu_ld=$lt_with_gnu_ld_D
17888
17889 # Flag that allows shared libraries with undefined symbols to be built.
17890 allow_undefined_flag=$lt_allow_undefined_flag_D
17891
17892 # Flag that enforces no undefined symbols.
17893 no_undefined_flag=$lt_no_undefined_flag_D
17894
17895 # Flag to hardcode \$libdir into a binary during linking.
17896 # This must work even if \$libdir does not exist
17897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17898
17899 # If ld is used when linking, flag to hardcode \$libdir into a binary
17900 # during linking. This must work even if \$libdir does not exist.
17901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17902
17903 # Whether we need a single "-rpath" flag with a separated argument.
17904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17905
17906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17907 # DIR into the resulting binary.
17908 hardcode_direct=$hardcode_direct_D
17909
17910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17911 # DIR into the resulting binary and the resulting library dependency is
17912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17913 # library is relocated.
17914 hardcode_direct_absolute=$hardcode_direct_absolute_D
17915
17916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17917 # into the resulting binary.
17918 hardcode_minus_L=$hardcode_minus_L_D
17919
17920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17921 # into the resulting binary.
17922 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17923
17924 # Set to "yes" if building a shared library automatically hardcodes DIR
17925 # into the library and all subsequent libraries and executables linked
17926 # against it.
17927 hardcode_automatic=$hardcode_automatic_D
17928
17929 # Set to yes if linker adds runtime paths of dependent libraries
17930 # to runtime path list.
17931 inherit_rpath=$inherit_rpath_D
17932
17933 # Whether libtool must link a program against all its dependency libraries.
17934 link_all_deplibs=$link_all_deplibs_D
17935
17936 # Fix the shell variable \$srcfile for the compiler.
17937 fix_srcfile_path=$lt_fix_srcfile_path_D
17938
17939 # Set to "yes" if exported symbols are required.
17940 always_export_symbols=$always_export_symbols_D
17941
17942 # The commands to list exported symbols.
17943 export_symbols_cmds=$lt_export_symbols_cmds_D
17944
17945 # Symbols that should not be listed in the preloaded symbols.
17946 exclude_expsyms=$lt_exclude_expsyms_D
17947
17948 # Symbols that must always be exported.
17949 include_expsyms=$lt_include_expsyms_D
17950
17951 # Commands necessary for linking programs (against libraries) with templates.
17952 prelink_cmds=$lt_prelink_cmds_D
17953
17954 # Specify filename containing input files.
17955 file_list_spec=$lt_file_list_spec_D
17956
17957 # How to hardcode a shared library path into an executable.
17958 hardcode_action=$hardcode_action_D
17959
17960 # ### END LIBTOOL TAG CONFIG: D
17961 _LT_EOF
17962
17963 ;;
17964 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17965 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17966 s!`test -f '$<' || echo '$(srcdir)/'`!!
17967 _EOF
17968 sed -f vpsed$$ $ac_file > tmp$$
17969 mv tmp$$ $ac_file
17970 rm vpsed$$
17971 echo 'MULTISUBDIR =' >> $ac_file
17972 ml_norecursion=yes
17973 . ${multi_basedir}/config-ml.in
17974 { ml_norecursion=; unset ml_norecursion;}
17975 ;;
17976 "src/Makefile":F) cat > vpsed$$ << \_EOF
17977 s!`test -f '$<' || echo '$(srcdir)/'`!!
17978 _EOF
17979 sed -f vpsed$$ $ac_file > tmp$$
17980 mv tmp$$ $ac_file
17981 rm vpsed$$
17982 echo 'MULTISUBDIR =' >> $ac_file
17983 ml_norecursion=yes
17984 . ${multi_basedir}/config-ml.in
17985 { ml_norecursion=; unset ml_norecursion;}
17986 ;;
17987 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17988 s!`test -f '$<' || echo '$(srcdir)/'`!!
17989 _EOF
17990 sed -f vpsed$$ $ac_file > tmp$$
17991 mv tmp$$ $ac_file
17992 rm vpsed$$
17993 echo 'MULTISUBDIR =' >> $ac_file
17994 ml_norecursion=yes
17995 . ${multi_basedir}/config-ml.in
17996 { ml_norecursion=; unset ml_norecursion;}
17997 ;;
17998
17999 esac
18000 done # for ac_tag
18001
18002
18003 as_fn_exit 0
18004 _ACEOF
18005 ac_clean_files=$ac_clean_files_save
18006
18007 test $ac_write_fail = 0 ||
18008 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18009
18010
18011 # configure is writing to config.log, and then calls config.status.
18012 # config.status does its own redirection, appending to config.log.
18013 # Unfortunately, on DOS this fails, as config.log is still kept open
18014 # by configure, so config.status won't be able to write to it; its
18015 # output is simply discarded. So we exec the FD to /dev/null,
18016 # effectively closing config.log, so it can be properly (re)opened and
18017 # appended to by config.status. When coming back to configure, we
18018 # need to make the FD available again.
18019 if test "$no_create" != yes; then
18020 ac_cs_success=:
18021 ac_config_status_args=
18022 test "$silent" = yes &&
18023 ac_config_status_args="$ac_config_status_args --quiet"
18024 exec 5>/dev/null
18025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18026 exec 5>>config.log
18027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18028 # would make configure fail if this is the last instruction.
18029 $ac_cs_success || as_fn_exit 1
18030 fi
18031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18034 fi
18035