Fix hashing of prestreamed nodes
[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 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
703 libphobos_srcdir
704 libphobos_builddir
705 get_gcc_base_ver
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 SED
721 LIBTOOL
722 CFLAGS_FOR_BUILD
723 CC_FOR_BUILD
724 AR
725 CET_FLAGS
726 RANLIB
727 MAINT
728 MAINTAINER_MODE_FALSE
729 MAINTAINER_MODE_TRUE
730 GDCFLAGS
731 GDC
732 CCASFLAGS
733 CCAS
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 EGREP
762 GREP
763 CPP
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 target_os
772 target_vendor
773 target_cpu
774 target
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 multi_basedir
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files='DRTSTUFF_SPEC'
823 ac_user_opts='
824 enable_option_checking
825 enable_multilib
826 enable_silent_rules
827 enable_maintainer_mode
828 enable_cet
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 enable_libtool_lock
835 with_gcc_major_version_only
836 enable_werror
837 with_libatomic
838 with_libbacktrace
839 with_target_system_zlib
840 with_cross_host
841 enable_version_specific_runtime_libs
842 with_toolexeclibdir
843 enable_libphobos
844 with_libphobos_druntime_only
845 enable_libphobos_checking
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of package-unused version-unused:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-multilib build many library versions (default)
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-cet enable Intel CET in target libraries [default=auto]
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-werror turns on -Werror [default=no]
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 --enable-libphobos-checking[=LIST]
1493 enable expensive run-time checks. With LIST, enable
1494 only specific categories of checks. Categories are:
1495 yes,no,all,none,release. Flags are: assert or other
1496 strings
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-gcc-major-version-only
1505 use only GCC major number in filesystem paths
1506 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1507 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1508 auto)
1509 --with-target-system-zlib={yes,no,auto}
1510 use installed libz (default: no)
1511 --with-cross-host=HOST configuring with a cross compiler
1512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1514 DIR
1515 --with-libphobos-druntime-only={yes,no,auto}
1516 build only the druntime library (default: auto)
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 GDC D compiler command
1530 GDCFLAGS D compiler flags
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to the package provider.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 package-unused configure version-unused
1599 generated by GNU Autoconf 2.69
1600
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1606 fi
1607
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1611
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_cpp ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_cpp
1686
1687 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690 # the include files in INCLUDES and setting the cache variable VAR
1691 # accordingly.
1692 ac_fn_c_check_header_mongrel ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if eval \${$3+:} false; then :
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 else
1705 # Is the header compilable?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707 $as_echo_n "checking $2 usability... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 $4
1711 #include <$2>
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1715 else
1716 ac_header_compiler=no
1717 fi
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720 $as_echo "$ac_header_compiler" >&6; }
1721
1722 # Is the header present?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724 $as_echo_n "checking $2 presence... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1731 else
1732 ac_header_preproc=no
1733 fi
1734 rm -f conftest.err conftest.i conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736 $as_echo "$ac_header_preproc" >&6; }
1737
1738 # So? What about this header?
1739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 yes:no: )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ;;
1746 no:yes:* )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 ;;
1758 esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 eval "$3=\$ac_header_compiler"
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_header_mongrel
1773
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
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_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=$ac_status
1809 fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_run
1815
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_header_compile
1846
1847 # ac_fn_d_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_d_try_compile ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_d_try_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=1
1920 fi
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1947
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1952
1953 #ifdef __STDC__
1954 # include <limits.h>
1955 #else
1956 # include <assert.h>
1957 #endif
1958
1959 #undef $2
1960
1961 /* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1964 #ifdef __cplusplus
1965 extern "C"
1966 #endif
1967 char $2 ();
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined __stub_$2 || defined __stub___$2
1972 choke me
1973 #endif
1974
1975 int
1976 main ()
1977 {
1978 return $2 ();
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_link "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_func
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041 else
2042 eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_member
2054
2055 # ac_fn_d_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_d_try_link ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest$ac_exeext
2083 }; then :
2084 ac_retval=0
2085 else
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1
2090 fi
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099 } # ac_fn_d_try_link
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by package-unused $as_me version-unused, which was
2105 generated by GNU Autoconf 2.69. Invocation command line was
2106
2107 $ $0 $@
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201 done
2202 { ac_configure_args0=; unset ac_configure_args0;}
2203 { ac_configure_args1=; unset ac_configure_args1;}
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
2215 $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220 (
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248 )
2249 echo
2250
2251 $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##"
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296 ' 0
2297 for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2301
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2304
2305 $as_echo "/* confdefs.h */" > confdefs.h
2306
2307 # Predefined preprocessor variables.
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2332
2333
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
2345 elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348 else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351 fi
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353 do
2354 test "x$ac_site_file" = xNONE && continue
2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $? "failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5; }
2364 fi
2365 done
2366
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382 fi
2383
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2402 *)
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2432 fi
2433 done
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2440 fi
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453
2454
2455
2456 ac_config_headers="$ac_config_headers config.h"
2457
2458
2459 # Default to --enable-multilib
2460 # Check whether --enable-multilib was given.
2461 if test "${enable_multilib+set}" = set; then :
2462 enableval=$enable_multilib; case "$enableval" in
2463 yes) multilib=yes ;;
2464 no) multilib=no ;;
2465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2466 esac
2467 else
2468 multilib=yes
2469 fi
2470
2471
2472 # We may get other options which we leave undocumented:
2473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2474 # See config-ml.in if you want the gory details.
2475
2476 if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir="$srcdir/$with_multisrctop../.."
2479 else
2480 multi_basedir="$srcdir/$with_multisrctop.."
2481 fi
2482 else
2483 multi_basedir="$srcdir/.."
2484 fi
2485
2486
2487 # Even if the default multilib is not a cross compilation,
2488 # it may be that some of the other multilibs are.
2489 if test $cross_compiling = no && test $multilib = yes \
2490 && test "x${with_multisubdir}" != x ; then
2491 cross_compiling=maybe
2492 fi
2493
2494 ac_config_commands="$ac_config_commands default-1"
2495
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2501 break
2502 elif test -f "$ac_dir/install.sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2505 break
2506 elif test -f "$ac_dir/shtool"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2509 break
2510 fi
2511 done
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 fi
2515
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523
2524
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570 else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2573 fi
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2578 case $ac_cv_host in
2579 *-*-*) ;;
2580 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2581 esac
2582 host=$ac_cv_host
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_host
2585 shift
2586 host_cpu=$1
2587 host_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 host_os=$*
2592 IFS=$ac_save_IFS
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if ${ac_cv_target+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603 else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2606 fi
2607
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2612 *-*-*) ;;
2613 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2614 esac
2615 target=$ac_cv_target
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_target
2618 shift
2619 target_cpu=$1
2620 target_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 target_os=$*
2625 IFS=$ac_save_IFS
2626 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2627
2628
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2635
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 fi
2683 if test -z "$ac_cv_prog_CC"; then
2684 ac_ct_CC=$CC
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686 set dummy gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_ac_ct_CC="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715 $as_echo "$ac_ct_CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2731 fi
2732 else
2733 CC="$ac_cv_prog_CC"
2734 fi
2735
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}cc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 fi
2777 if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779 set dummy cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 ac_prog_rejected=no
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected=yes
2798 continue
2799 fi
2800 ac_cv_prog_CC="cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 fi
2819 fi
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 test -n "$CC" && break
2875 done
2876 fi
2877 if test -z "$CC"; then
2878 ac_ct_CC=$CC
2879 for ac_prog in cl.exe
2880 do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 test -n "$ac_ct_CC" && break
2919 done
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 fi
2933
2934 fi
2935
2936
2937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details" "$LINENO" 5; }
2941
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2961 fi
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965 done
2966
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2969
2970 int
2971 main ()
2972 {
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2982 # of exeext.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984 $as_echo_n "checking whether the C compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989
2990 ac_rmfiles=
2991 for ac_file in $ac_files
2992 do
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997 done
2998 rm -f $ac_rmfiles
2999
3000 if { { ac_try="$ac_link_default"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3017 do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043 else
3044 ac_file=''
3045 fi
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error 77 "C compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext=$ac_cv_exeext
3065
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093 done
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3099 fi
3100 rm -f conftest conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3103
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_exeext=$EXEEXT
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <stdio.h>
3110 int
3111 main ()
3112 {
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3158 fi
3159 fi
3160 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3163
3164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201 done
3202 else
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3216 ac_objext=$OBJEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238 else
3239 ac_compiler_gnu=no
3240 fi
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3248 GCC=yes
3249 else
3250 GCC=
3251 fi
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3261 ac_cv_prog_cc_g=no
3262 CFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_g=yes
3276 else
3277 CFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290
3291 else
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3321 CFLAGS="-g -O2"
3322 else
3323 CFLAGS="-g"
3324 fi
3325 else
3326 if test "$GCC" = yes; then
3327 CFLAGS="-O2"
3328 else
3329 CFLAGS=
3330 fi
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 ac_cv_prog_cc_c89=no
3338 ac_save_CC=$CC
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 struct stat;
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3350 {
3351 return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361 }
3362
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3383 int
3384 main ()
3385 {
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420 fi
3421
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435 if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3454 for am_i in 1 2; do
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3461 : OK
3462 else
3463 am_cv_prog_cc_c_o=no
3464 break
3465 fi
3466 done
3467 rm -f core conftest*
3468 unset am_i
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3472 if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3479 fi
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3495 # On Suns, sometimes $CPP names a directory.
3496 if test -n "$CPP" && test -d "$CPP"; then
3497 CPP=
3498 fi
3499 if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3505 do
3506 ac_preproc_ok=false
3507 for ac_c_preproc_warn_flag in '' yes
3508 do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #ifdef __STDC__
3518 # include <limits.h>
3519 #else
3520 # include <assert.h>
3521 #endif
3522 Syntax error
3523 _ACEOF
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3525
3526 else
3527 # Broken: fails on valid input.
3528 continue
3529 fi
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <ac_nonexistent.h>
3537 _ACEOF
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540 continue
3541 else
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3545 fi
3546 rm -f conftest.err conftest.i conftest.$ac_ext
3547
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.i conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then :
3552 break
3553 fi
3554
3555 done
3556 ac_cv_prog_CPP=$CPP
3557
3558 fi
3559 CPP=$ac_cv_prog_CPP
3560 else
3561 ac_cv_prog_CPP=$CPP
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3565 ac_preproc_ok=false
3566 for ac_c_preproc_warn_flag in '' yes
3567 do
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #ifdef __STDC__
3577 # include <limits.h>
3578 #else
3579 # include <assert.h>
3580 #endif
3581 Syntax error
3582 _ACEOF
3583 if ac_fn_c_try_cpp "$LINENO"; then :
3584
3585 else
3586 # Broken: fails on valid input.
3587 continue
3588 fi
3589 rm -f conftest.err conftest.i conftest.$ac_ext
3590
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3596 _ACEOF
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3598 # Broken: success on invalid input.
3599 continue
3600 else
3601 # Passes both tests.
3602 ac_preproc_ok=:
3603 break
3604 fi
3605 rm -f conftest.err conftest.i conftest.$ac_ext
3606
3607 done
3608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609 rm -f conftest.i conftest.err conftest.$ac_ext
3610 if $ac_preproc_ok; then :
3611
3612 else
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details" "$LINENO" 5; }
3617 fi
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if ${ac_cv_path_GREP+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p "$ac_path_GREP" || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 *)
3649 ac_count=0
3650 $as_echo_n 0123456789 >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3664 fi
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671 $ac_path_GREP_found && break 3
3672 done
3673 done
3674 done
3675 IFS=$as_save_IFS
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3678 fi
3679 else
3680 ac_cv_path_GREP=$GREP
3681 fi
3682
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685 $as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP="$ac_cv_path_GREP"
3687
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690 $as_echo_n "checking for egrep... " >&6; }
3691 if ${ac_cv_path_EGREP+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3695 then ac_cv_path_EGREP="$GREP -E"
3696 else
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in egrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p "$ac_path_EGREP" || continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3712 *GNU*)
3713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3714 *)
3715 ac_count=0
3716 $as_echo_n 0123456789 >"conftest.in"
3717 while :
3718 do
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 as_fn_arith $ac_count + 1 && ac_count=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP="$ac_path_EGREP"
3729 ac_path_EGREP_max=$ac_count
3730 fi
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3733 done
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 esac
3736
3737 $ac_path_EGREP_found && break 3
3738 done
3739 done
3740 done
3741 IFS=$as_save_IFS
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3744 fi
3745 else
3746 ac_cv_path_EGREP=$EGREP
3747 fi
3748
3749 fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752 $as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP="$ac_cv_path_EGREP"
3754
3755
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757 $as_echo_n "checking for ANSI C header files... " >&6; }
3758 if ${ac_cv_header_stdc+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdlib.h>
3764 #include <stdarg.h>
3765 #include <string.h>
3766 #include <float.h>
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_header_stdc=yes
3778 else
3779 ac_cv_header_stdc=no
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782
3783 if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <string.h>
3788
3789 _ACEOF
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev/null 2>&1; then :
3792
3793 else
3794 ac_cv_header_stdc=no
3795 fi
3796 rm -f conftest*
3797
3798 fi
3799
3800 if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdlib.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then :
3809
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest*
3814
3815 fi
3816
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3820 :
3821 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <ctype.h>
3825 #include <stdlib.h>
3826 #if ((' ' & 0x0FF) == 0x020)
3827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3829 #else
3830 # define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3835 #endif
3836
3837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3838 int
3839 main ()
3840 {
3841 int i;
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3845 return 2;
3846 return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_run "$LINENO"; then :
3850
3851 else
3852 ac_cv_header_stdc=no
3853 fi
3854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3855 conftest.$ac_objext conftest.beam conftest.$ac_ext
3856 fi
3857
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861 $as_echo "$ac_cv_header_stdc" >&6; }
3862 if test $ac_cv_header_stdc = yes; then
3863
3864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3865
3866 fi
3867
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3870 inttypes.h stdint.h unistd.h
3871 do :
3872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3874 "
3875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3876 cat >>confdefs.h <<_ACEOF
3877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3878 _ACEOF
3879
3880 fi
3881
3882 done
3883
3884
3885
3886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3888 MINIX=yes
3889 else
3890 MINIX=
3891 fi
3892
3893
3894 if test "$MINIX" = yes; then
3895
3896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3897
3898
3899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3900
3901
3902 $as_echo "#define _MINIX 1" >>confdefs.h
3903
3904 fi
3905
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914
3915 # define __EXTENSIONS__ 1
3916 $ac_includes_default
3917 int
3918 main ()
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__=yes
3927 else
3928 ac_cv_safe_to_define___extensions__=no
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3936
3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3938
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3940
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3942
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3944
3945
3946
3947 target_alias=${target_alias-$target}
3948
3949
3950 # 1.11.1: Require that version of automake.
3951 # foreign: Don't require README, INSTALL, NEWS, etc.
3952 # no-define: Don't define PACKAGE and VERSION.
3953 # no-dependencies: Don't generate automatic dependencies.
3954 # (because it breaks when using bootstrap-lean, since some of the
3955 # headers are gone at "make install" time).
3956 # subdir-objects: Build objects in sub-directories.
3957 # -Wall: Issue all automake warnings.
3958 # -Wno-portability: Don't warn about constructs supported by GNU make.
3959 # (because GCC requires GNU make anyhow).
3960 # -Wno-override: Overrides used in testsuite.
3961 am__api_version='1.15'
3962
3963 # Find a good install program. We prefer a C program (faster),
3964 # so one script is as good as another. But avoid the broken or
3965 # incompatible versions:
3966 # SysV /etc/install, /usr/sbin/install
3967 # SunOS /usr/etc/install
3968 # IRIX /sbin/install
3969 # AIX /bin/install
3970 # AmigaOS /C/install, which installs bootblocks on floppy discs
3971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974 # OS/2's system install, which has a completely different semantic
3975 # ./install, which can be erroneously created by make from ./install.sh.
3976 # Reject install programs that cannot install multiple files.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3979 if test -z "$INSTALL"; then
3980 if ${ac_cv_path_install+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 # Account for people who put trailing slashes in PATH elements.
3989 case $as_dir/ in #((
3990 ./ | .// | /[cC]/* | \
3991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3993 /usr/ucb/* ) ;;
3994 *)
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3997 # by default.
3998 for ac_prog in ginstall scoinst install; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4004 :
4005 elif test $ac_prog = install &&
4006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4008 :
4009 else
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one > conftest.one
4012 echo two > conftest.two
4013 mkdir conftest.dir
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4015 test -s conftest.one && test -s conftest.two &&
4016 test -s conftest.dir/conftest.one &&
4017 test -s conftest.dir/conftest.two
4018 then
4019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4020 break 3
4021 fi
4022 fi
4023 fi
4024 done
4025 done
4026 ;;
4027 esac
4028
4029 done
4030 IFS=$as_save_IFS
4031
4032 rm -rf conftest.one conftest.two conftest.dir
4033
4034 fi
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL=$ac_install_sh
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046 $as_echo "$INSTALL" >&6; }
4047
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4051
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4053
4054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057 $as_echo_n "checking whether build environment is sane... " >&6; }
4058 # Reject unsafe characters in $srcdir or the absolute working directory
4059 # name. Accept space and tab only in the latter.
4060 am_lf='
4061 '
4062 case `pwd` in
4063 *[\\\"\#\$\&\'\`$am_lf]*)
4064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4065 esac
4066 case $srcdir in
4067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4069 esac
4070
4071 # Do 'set' in a subshell so we don't clobber the current shell's
4072 # arguments. Must try -L first in case configure is actually a
4073 # symlink; some systems play weird games with the mod time of symlinks
4074 # (eg FreeBSD returns the mod time of the symlink's containing
4075 # directory).
4076 if (
4077 am_has_slept=no
4078 for am_try in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.file
4080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4082 # -L didn't work.
4083 set X `ls -t "$srcdir/configure" conftest.file`
4084 fi
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4087
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4094 fi
4095 if test "$2" = conftest.file || test $am_try -eq 2; then
4096 break
4097 fi
4098 # Just in case.
4099 sleep 1
4100 am_has_slept=yes
4101 done
4102 test "$2" = conftest.file
4103 )
4104 then
4105 # Ok.
4106 :
4107 else
4108 as_fn_error $? "newly created file is older than distributed files!
4109 Check your system clock" "$LINENO" 5
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 # If we didn't sleep, we still need to ensure time stamps of config.status and
4114 # generated files are strictly newer.
4115 am_sleep_pid=
4116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4117 ( sleep 1 ) &
4118 am_sleep_pid=$!
4119 fi
4120
4121 rm -f conftest.file
4122
4123 test "$program_prefix" != NONE &&
4124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4125 # Use a double $ so make ignores it.
4126 test "$program_suffix" != NONE &&
4127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4128 # Double any \ or $.
4129 # By default was `s,x,x', remove it if useless.
4130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4132
4133 if test x"${MISSING+set}" != xset; then
4134 case $am_aux_dir in
4135 *\ * | *\ *)
4136 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4137 *)
4138 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4139 esac
4140 fi
4141 # Use eval to expand $SHELL
4142 if eval "$MISSING --is-lightweight"; then
4143 am_missing_run="$MISSING "
4144 else
4145 am_missing_run=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4148 fi
4149
4150 if test x"${install_sh+set}" != xset; then
4151 case $am_aux_dir in
4152 *\ * | *\ *)
4153 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4154 *)
4155 install_sh="\${SHELL} $am_aux_dir/install-sh"
4156 esac
4157 fi
4158
4159 # Installed binaries are usually stripped using 'strip' when the user
4160 # run "make install-strip". However 'strip' might not be the right
4161 # tool to use in cross-compilation environments, therefore Automake
4162 # will honor the 'STRIP' environment variable to overrule this program.
4163 if test "$cross_compiling" != no; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}strip; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_STRIP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 STRIP=$ac_cv_prog_STRIP
4193 if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195 $as_echo "$STRIP" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_STRIP"; then
4204 ac_ct_STRIP=$STRIP
4205 # Extract the first word of "strip", so it can be a program name with args.
4206 set dummy strip; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_STRIP="strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4233 if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235 $as_echo "$ac_ct_STRIP" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241 if test "x$ac_ct_STRIP" = x; then
4242 STRIP=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 STRIP=$ac_ct_STRIP
4251 fi
4252 else
4253 STRIP="$ac_cv_prog_STRIP"
4254 fi
4255
4256 fi
4257 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261 if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in mkdir gmkdir; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4278 break 3;;
4279 esac
4280 done
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 fi
4286
4287 test -d ./--version && rmdir ./--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P="$ac_cv_path_mkdir -p"
4290 else
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P="$ac_install_sh -d"
4296 fi
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299 $as_echo "$MKDIR_P" >&6; }
4300
4301 for ac_prog in gawk mawk nawk awk
4302 do
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AWK+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AWK="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 AWK=$ac_cv_prog_AWK
4331 if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333 $as_echo "$AWK" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 test -n "$AWK" && break
4341 done
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4345 set x ${MAKE-make}
4346 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4347 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat >conftest.make <<\_ACEOF
4351 SHELL = /bin/sh
4352 all:
4353 @echo '@@@%%%=$(MAKE)=@@@%%%'
4354 _ACEOF
4355 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4357 *@@@%%%=?*=@@@%%%*)
4358 eval ac_cv_prog_make_${ac_make}_set=yes;;
4359 *)
4360 eval ac_cv_prog_make_${ac_make}_set=no;;
4361 esac
4362 rm -f conftest.make
4363 fi
4364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4367 SET_MAKE=
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 SET_MAKE="MAKE=${MAKE-make}"
4372 fi
4373
4374 rm -rf .tst 2>/dev/null
4375 mkdir .tst 2>/dev/null
4376 if test -d .tst; then
4377 am__leading_dot=.
4378 else
4379 am__leading_dot=_
4380 fi
4381 rmdir .tst 2>/dev/null
4382
4383 # Check whether --enable-silent-rules was given.
4384 if test "${enable_silent_rules+set}" = set; then :
4385 enableval=$enable_silent_rules;
4386 fi
4387
4388 case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY=0;;
4390 no) AM_DEFAULT_VERBOSITY=1;;
4391 *) AM_DEFAULT_VERBOSITY=1;;
4392 esac
4393 am_make=${MAKE-make}
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396 if ${am_cv_make_support_nested_variables+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if $as_echo 'TRUE=$(BAR$(V))
4400 BAR0=false
4401 BAR1=true
4402 V=1
4403 am__doit:
4404 @$(TRUE)
4405 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406 am_cv_make_support_nested_variables=yes
4407 else
4408 am_cv_make_support_nested_variables=no
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4413 if test $am_cv_make_support_nested_variables = yes; then
4414 AM_V='$(V)'
4415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4416 else
4417 AM_V=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4419 fi
4420 AM_BACKSLASH='\'
4421
4422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status; then
4428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4429 fi
4430 fi
4431
4432 # test whether we have cygpath
4433 if test -z "$CYGPATH_W"; then
4434 if (cygpath --version) >/dev/null 2>/dev/null; then
4435 CYGPATH_W='cygpath -w'
4436 else
4437 CYGPATH_W=echo
4438 fi
4439 fi
4440
4441
4442 # Define the identity of the package.
4443 PACKAGE='libphobos'
4444 VERSION='version-unused'
4445
4446
4447 # Some tools Automake needs.
4448
4449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4450
4451
4452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4453
4454
4455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4456
4457
4458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4459
4460
4461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4462
4463 # For better backward compatibility. To be removed once Automake 1.9.x
4464 # dies out for good. For more background, see:
4465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467 mkdir_p='$(MKDIR_P)'
4468
4469 # We need awk for the "check" target (and possibly the TAP driver). The
4470 # system "awk" is bad on some platforms.
4471 # Always define AMTAR for backward compatibility. Yes, it's still used
4472 # in the wild :-( We should find a proper way to deprecate it ...
4473 AMTAR='$${TAR-tar}'
4474
4475
4476 # We'll loop over all known methods to create a tar archive until one works.
4477 _am_tools='gnutar pax cpio none'
4478
4479 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4480
4481
4482
4483
4484
4485
4486 # POSIX will say in a future version that running "rm -f" with no argument
4487 # is OK; and we want to be able to make that assumption in our Makefile
4488 # recipes. So use an aggressive probe to check that the usage we want is
4489 # actually supported "in the wild" to an acceptable degree.
4490 # See automake bug#10828.
4491 # To make any issue more visible, cause the running configure to be aborted
4492 # by default if the 'rm' program in use doesn't match our expectations; the
4493 # user can still override this though.
4494 if rm -f && rm -fr && rm -rf; then : OK; else
4495 cat >&2 <<'END'
4496 Oops!
4497
4498 Your 'rm' program seems unable to run without file operands specified
4499 on the command line, even when the '-f' option is present. This is contrary
4500 to the behaviour of most rm programs out there, and not conforming with
4501 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4502
4503 Please tell bug-automake@gnu.org about your system, including the value
4504 of your $PATH and any error possibly output before this message. This
4505 can help us improve future automake versions.
4506
4507 END
4508 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4511 echo >&2
4512 else
4513 cat >&2 <<'END'
4514 Aborting the configuration process, to ensure you take notice of the issue.
4515
4516 You can download and install GNU coreutils to get an 'rm' implementation
4517 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4518
4519 If you want to complete the configuration process using your problematic
4520 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521 to "yes", and re-run configure.
4522
4523 END
4524 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4525 fi
4526 fi
4527
4528
4529
4530
4531 # By default we simply use the C compiler to build assembly code.
4532
4533 test "${CCAS+set}" = set || CCAS=$CC
4534 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4535
4536
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CC=$ac_cv_prog_CC
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605 done
4606 done
4607 IFS=$as_save_IFS
4608
4609 fi
4610 fi
4611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4612 if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614 $as_echo "$ac_ct_CC" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4619
4620 if test "x$ac_ct_CC" = x; then
4621 CC=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 CC=$ac_ct_CC
4630 fi
4631 else
4632 CC="$ac_cv_prog_CC"
4633 fi
4634
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 CC=$ac_cv_prog_CC
4665 if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667 $as_echo "$CC" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 fi
4675 fi
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_CC+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_CC="cc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718 fi
4719 fi
4720 fi
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 $as_echo "$CC" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_CC+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766 $as_echo "$CC" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 test -n "$CC" && break
4774 done
4775 fi
4776 if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
4779 do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810 $as_echo "$ac_ct_CC" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 test -n "$ac_ct_CC" && break
4818 done
4819
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 CC=$ac_ct_CC
4830 fi
4831 fi
4832
4833 fi
4834
4835
4836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $? "no acceptable C compiler found in \$PATH
4839 See \`config.log' for more details" "$LINENO" 5; }
4840
4841 # Provide some information about the compiler.
4842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843 set X $ac_compile
4844 ac_compiler=$2
4845 for ac_option in --version -v -V -qversion; do
4846 { { ac_try="$ac_compiler $ac_option >&5"
4847 case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 ac_status=$?
4855 if test -s conftest.err; then
4856 sed '10a\
4857 ... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
4860 fi
4861 rm -f conftest.er1 conftest.err
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4864 done
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4868 if ${ac_cv_c_compiler_gnu+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873
4874 int
4875 main ()
4876 {
4877 #ifndef __GNUC__
4878 choke me
4879 #endif
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_compiler_gnu=yes
4887 else
4888 ac_compiler_gnu=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896 if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898 else
4899 GCC=
4900 fi
4901 ac_test_CFLAGS=${CFLAGS+set}
4902 ac_save_CFLAGS=$CFLAGS
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4905 if ${ac_cv_prog_cc_g+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_prog_cc_g=yes
4925 else
4926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939
4940 else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942 CFLAGS="-g"
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 int
4947 main ()
4948 {
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_prog_cc_g=yes
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965 $as_echo "$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974 else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4983 if ${ac_cv_prog_cc_c89+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 ac_cv_prog_cc_c89=no
4987 ac_save_CC=$CC
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <stdarg.h>
4991 #include <stdio.h>
4992 struct stat;
4993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994 struct buf { int x; };
4995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996 static char *e (p, i)
4997 char **p;
4998 int i;
4999 {
5000 return p[i];
5001 }
5002 static char *f (char * (*g) (char **, int), char **p, ...)
5003 {
5004 char *s;
5005 va_list v;
5006 va_start (v,p);
5007 s = g (p, va_arg (v,int));
5008 va_end (v);
5009 return s;
5010 }
5011
5012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5020
5021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5023 #define FOO(x) 'x'
5024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5025
5026 int test (int i, double x);
5027 struct s1 {int (*f) (int a);};
5028 struct s2 {int (*f) (double a);};
5029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030 int argc;
5031 char **argv;
5032 int
5033 main ()
5034 {
5035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5042 do
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5049 done
5050 rm -f conftest.$ac_ext
5051 CC=$ac_save_CC
5052
5053 fi
5054 # AC_CACHE_VAL
5055 case "x$ac_cv_prog_cc_c89" in
5056 x)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058 $as_echo "none needed" >&6; } ;;
5059 xno)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061 $as_echo "unsupported" >&6; } ;;
5062 *)
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066 esac
5067 if test "x$ac_cv_prog_cc_c89" != xno; then :
5068
5069 fi
5070
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084 if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089
5090 int
5091 main ()
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5103 for am_i in 1 2; do
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5110 : OK
5111 else
5112 am_cv_prog_cc_c_o=no
5113 break
5114 fi
5115 done
5116 rm -f core conftest*
5117 unset am_i
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5121 if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5128 fi
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
5135
5136 ac_ext=d
5137 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=yes
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_GDC+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 GDC=$ac_cv_prog_GDC
5169 if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171 $as_echo "$GDC" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$ac_cv_prog_GDC"; then
5180 ac_ct_GDC=$GDC
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182 set dummy gdc; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202 done
5203 done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209 if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211 $as_echo "$ac_ct_GDC" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217 if test "x$ac_ct_GDC" = x; then
5218 GDC=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226 GDC=$ac_ct_GDC
5227 fi
5228 else
5229 GDC="$ac_cv_prog_GDC"
5230 fi
5231
5232 if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_GDC+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 GDC=$ac_cv_prog_GDC
5262 if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264 $as_echo "$GDC" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 fi
5272 fi
5273 if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275 set dummy gdc; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_GDC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5283 else
5284 ac_prog_rejected=no
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5294 continue
5295 fi
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5307 shift
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5312 shift
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5314 fi
5315 fi
5316 fi
5317 fi
5318 GDC=$ac_cv_prog_GDC
5319 if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321 $as_echo "$GDC" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 fi
5329
5330
5331 # Provide some information about the compiler.
5332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5333 set X $ac_compile
5334 ac_compiler=$2
5335 { { ac_try="$ac_compiler --version >&5"
5336 case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341 $as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5343 ac_status=$?
5344 if test -s conftest.err; then
5345 sed '10a\
5346 ... rest of stderr output deleted ...
5347 10q' conftest.err >conftest.er1
5348 cat conftest.er1 >&5
5349 fi
5350 rm -f conftest.er1 conftest.err
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5362 if ${phobos_cv_abs_srcdir+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5370
5371 else
5372 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5373 fi
5374
5375
5376
5377
5378 gdc_save_DFLAGS=$GDCFLAGS
5379 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5380
5381 ac_ext=d
5382 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=yes
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.$ac_ext <<_ACEOF
5389 module mod;
5390
5391
5392 extern(C) int main() {
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_d_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412 GDCFLAGS=$gdc_save_DFLAGS
5413
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422 if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5424 else
5425 USE_MAINTAINER_MODE=no
5426 fi
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE=
5432 MAINTAINER_MODE_FALSE='#'
5433 else
5434 MAINTAINER_MODE_TRUE='#'
5435 MAINTAINER_MODE_FALSE=
5436 fi
5437
5438 MAINT=$MAINTAINER_MODE_TRUE
5439
5440
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_RANLIB+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 RANLIB=$ac_cv_prog_RANLIB
5470 if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472 $as_echo "$RANLIB" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483 set dummy ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_RANLIB="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5510 if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512 $as_echo "$ac_ct_RANLIB" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518 if test "x$ac_ct_RANLIB" = x; then
5519 RANLIB=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned=yes ;;
5526 esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529 else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531 fi
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5536 set x ${MAKE-make}
5537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat >conftest.make <<\_ACEOF
5542 SHELL = /bin/sh
5543 all:
5544 @echo '@@@%%%=$(MAKE)=@@@%%%'
5545 _ACEOF
5546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5548 *@@@%%%=?*=@@@%%%*)
5549 eval ac_cv_prog_make_${ac_make}_set=yes;;
5550 *)
5551 eval ac_cv_prog_make_${ac_make}_set=no;;
5552 esac
5553 rm -f conftest.make
5554 fi
5555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558 SET_MAKE=
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 SET_MAKE="MAKE=${MAKE-make}"
5563 fi
5564
5565
5566 # Add CET specific flags if CET is enabled
5567 # Check whether --enable-cet was given.
5568 if test "${enable_cet+set}" = set; then :
5569 enableval=$enable_cet;
5570 case "$enableval" in
5571 yes|no|auto) ;;
5572 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5573 esac
5574
5575 else
5576 enable_cet=auto
5577 fi
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5581 $as_echo_n "checking for CET support... " >&6; }
5582
5583 case "$host" in
5584 i[34567]86-*-linux* | x86_64-*-linux*)
5585 case "$enable_cet" in
5586 auto)
5587 # Check if target supports multi-byte NOPs
5588 # and if assembler supports CET insn.
5589 save_CFLAGS="$CFLAGS"
5590 CFLAGS="$CFLAGS -fcf-protection"
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593
5594 int
5595 main ()
5596 {
5597
5598 #if !defined(__SSE2__)
5599 #error target does not support multi-byte NOPs
5600 #else
5601 asm ("setssbsy");
5602 #endif
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 enable_cet=yes
5610 else
5611 enable_cet=no
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 CFLAGS="$save_CFLAGS"
5615 ;;
5616 yes)
5617 # Check if assembler supports CET.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620
5621 int
5622 main ()
5623 {
5624 asm ("setssbsy");
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630
5631 else
5632 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ;;
5636 esac
5637 ;;
5638 *)
5639 enable_cet=no
5640 ;;
5641 esac
5642 if test x$enable_cet = xyes; then
5643 CET_FLAGS="-fcf-protection -mshstk"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645 $as_echo "yes" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652
5653 # This should be inherited in the recursive make, but ensure it is defined.
5654 test "$AR" || AR=ar
5655
5656
5657 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5658
5659
5660
5661 # Enable libtool
5662 case `pwd` in
5663 *\ * | *\ *)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5666 esac
5667
5668
5669
5670 macro_version='2.2.7a'
5671 macro_revision='1.3134'
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 ltmain="$ac_aux_dir/ltmain.sh"
5686
5687 # Backslashify metacharacters that are still active within
5688 # double-quoted strings.
5689 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5690
5691 # Same as above, but do not quote variable references.
5692 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5693
5694 # Sed substitution to delay expansion of an escaped shell variable in a
5695 # double_quote_subst'ed string.
5696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5697
5698 # Sed substitution to delay expansion of an escaped single quote.
5699 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5700
5701 # Sed substitution to avoid accidental globbing in evaled expressions
5702 no_glob_subst='s/\*/\\\*/g'
5703
5704 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5709 $as_echo_n "checking how to print strings... " >&6; }
5710 # Test print first, because it will be a builtin if present.
5711 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5713 ECHO='print -r --'
5714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5715 ECHO='printf %s\n'
5716 else
5717 # Use this function as a fallback that always works.
5718 func_fallback_echo ()
5719 {
5720 eval 'cat <<_LTECHO_EOF
5721 $1
5722 _LTECHO_EOF'
5723 }
5724 ECHO='func_fallback_echo'
5725 fi
5726
5727 # func_echo_all arg...
5728 # Invoke $ECHO with all args, space-separated.
5729 func_echo_all ()
5730 {
5731 $ECHO ""
5732 }
5733
5734 case "$ECHO" in
5735 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5736 $as_echo "printf" >&6; } ;;
5737 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5738 $as_echo "print -r" >&6; } ;;
5739 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5740 $as_echo "cat" >&6; } ;;
5741 esac
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5758 if ${ac_cv_path_SED+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5762 for ac_i in 1 2 3 4 5 6 7; do
5763 ac_script="$ac_script$as_nl$ac_script"
5764 done
5765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5766 { ac_script=; unset ac_script;}
5767 if test -z "$SED"; then
5768 ac_path_SED_found=false
5769 # Loop through the user's path and test for each of PROGNAME-LIST
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_prog in sed gsed; do
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5778 as_fn_executable_p "$ac_path_SED" || continue
5779 # Check for GNU ac_path_SED and select it if it is found.
5780 # Check for GNU $ac_path_SED
5781 case `"$ac_path_SED" --version 2>&1` in
5782 *GNU*)
5783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5784 *)
5785 ac_count=0
5786 $as_echo_n 0123456789 >"conftest.in"
5787 while :
5788 do
5789 cat "conftest.in" "conftest.in" >"conftest.tmp"
5790 mv "conftest.tmp" "conftest.in"
5791 cp "conftest.in" "conftest.nl"
5792 $as_echo '' >> "conftest.nl"
5793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5795 as_fn_arith $ac_count + 1 && ac_count=$as_val
5796 if test $ac_count -gt ${ac_path_SED_max-0}; then
5797 # Best one so far, save it but keep looking for a better one
5798 ac_cv_path_SED="$ac_path_SED"
5799 ac_path_SED_max=$ac_count
5800 fi
5801 # 10*(2^10) chars as input seems more than enough
5802 test $ac_count -gt 10 && break
5803 done
5804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805 esac
5806
5807 $ac_path_SED_found && break 3
5808 done
5809 done
5810 done
5811 IFS=$as_save_IFS
5812 if test -z "$ac_cv_path_SED"; then
5813 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5814 fi
5815 else
5816 ac_cv_path_SED=$SED
5817 fi
5818
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5821 $as_echo "$ac_cv_path_SED" >&6; }
5822 SED="$ac_cv_path_SED"
5823 rm -f conftest.sed
5824
5825 test -z "$SED" && SED=sed
5826 Xsed="$SED -e 1s/^X//"
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5839 $as_echo_n "checking for fgrep... " >&6; }
5840 if ${ac_cv_path_FGREP+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5844 then ac_cv_path_FGREP="$GREP -F"
5845 else
5846 if test -z "$FGREP"; then
5847 ac_path_FGREP_found=false
5848 # Loop through the user's path and test for each of PROGNAME-LIST
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_prog in fgrep; do
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5857 as_fn_executable_p "$ac_path_FGREP" || continue
5858 # Check for GNU ac_path_FGREP and select it if it is found.
5859 # Check for GNU $ac_path_FGREP
5860 case `"$ac_path_FGREP" --version 2>&1` in
5861 *GNU*)
5862 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5863 *)
5864 ac_count=0
5865 $as_echo_n 0123456789 >"conftest.in"
5866 while :
5867 do
5868 cat "conftest.in" "conftest.in" >"conftest.tmp"
5869 mv "conftest.tmp" "conftest.in"
5870 cp "conftest.in" "conftest.nl"
5871 $as_echo 'FGREP' >> "conftest.nl"
5872 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5874 as_fn_arith $ac_count + 1 && ac_count=$as_val
5875 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5876 # Best one so far, save it but keep looking for a better one
5877 ac_cv_path_FGREP="$ac_path_FGREP"
5878 ac_path_FGREP_max=$ac_count
5879 fi
5880 # 10*(2^10) chars as input seems more than enough
5881 test $ac_count -gt 10 && break
5882 done
5883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5884 esac
5885
5886 $ac_path_FGREP_found && break 3
5887 done
5888 done
5889 done
5890 IFS=$as_save_IFS
5891 if test -z "$ac_cv_path_FGREP"; then
5892 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5893 fi
5894 else
5895 ac_cv_path_FGREP=$FGREP
5896 fi
5897
5898 fi
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5901 $as_echo "$ac_cv_path_FGREP" >&6; }
5902 FGREP="$ac_cv_path_FGREP"
5903
5904
5905 test -z "$GREP" && GREP=grep
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 # Check whether --with-gnu-ld was given.
5926 if test "${with_gnu_ld+set}" = set; then :
5927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5928 else
5929 with_gnu_ld=no
5930 fi
5931
5932 ac_prog=ld
5933 if test "$GCC" = yes; then
5934 # Check if gcc -print-prog-name=ld gives a path.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5936 $as_echo_n "checking for ld used by $CC... " >&6; }
5937 case $host in
5938 *-*-mingw*)
5939 # gcc leaves a trailing carriage return which upsets mingw
5940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5941 *)
5942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5943 esac
5944 case $ac_prog in
5945 # Accept absolute paths.
5946 [\\/]* | ?:[\\/]*)
5947 re_direlt='/[^/][^/]*/\.\./'
5948 # Canonicalize the pathname of ld
5949 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5950 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5951 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5952 done
5953 test -z "$LD" && LD="$ac_prog"
5954 ;;
5955 "")
5956 # If it fails, then pretend we aren't using GCC.
5957 ac_prog=ld
5958 ;;
5959 *)
5960 # If it is relative, then search for the first ld in PATH.
5961 with_gnu_ld=unknown
5962 ;;
5963 esac
5964 elif test "$with_gnu_ld" = yes; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5966 $as_echo_n "checking for GNU ld... " >&6; }
5967 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5969 $as_echo_n "checking for non-GNU ld... " >&6; }
5970 fi
5971 if ${lt_cv_path_LD+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -z "$LD"; then
5975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5976 for ac_dir in $PATH; do
5977 IFS="$lt_save_ifs"
5978 test -z "$ac_dir" && ac_dir=.
5979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5980 lt_cv_path_LD="$ac_dir/$ac_prog"
5981 # Check to see if the program is GNU ld. I'd rather use --version,
5982 # but apparently some variants of GNU ld only accept -v.
5983 # Break only if it was the GNU/non-GNU ld that we prefer.
5984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5985 *GNU* | *'with BFD'*)
5986 test "$with_gnu_ld" != no && break
5987 ;;
5988 *)
5989 test "$with_gnu_ld" != yes && break
5990 ;;
5991 esac
5992 fi
5993 done
5994 IFS="$lt_save_ifs"
5995 else
5996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5997 fi
5998 fi
5999
6000 LD="$lt_cv_path_LD"
6001 if test -n "$LD"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6003 $as_echo "$LD" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6011 if ${lt_cv_prog_gnu_ld+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6015 case `$LD -v 2>&1 </dev/null` in
6016 *GNU* | *'with BFD'*)
6017 lt_cv_prog_gnu_ld=yes
6018 ;;
6019 *)
6020 lt_cv_prog_gnu_ld=no
6021 ;;
6022 esac
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6026 with_gnu_ld=$lt_cv_prog_gnu_ld
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6037 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6038 if ${lt_cv_path_NM+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$NM"; then
6042 # Let the user override the test.
6043 lt_cv_path_NM="$NM"
6044 else
6045 lt_nm_to_check="${ac_tool_prefix}nm"
6046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6047 lt_nm_to_check="$lt_nm_to_check nm"
6048 fi
6049 for lt_tmp_nm in $lt_nm_to_check; do
6050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6051 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6052 IFS="$lt_save_ifs"
6053 test -z "$ac_dir" && ac_dir=.
6054 tmp_nm="$ac_dir/$lt_tmp_nm"
6055 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6056 # Check to see if the nm accepts a BSD-compat flag.
6057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6058 # nm: unknown option "B" ignored
6059 # Tru64's nm complains that /dev/null is an invalid object file
6060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6061 */dev/null* | *'Invalid file or object type'*)
6062 lt_cv_path_NM="$tmp_nm -B"
6063 break
6064 ;;
6065 *)
6066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6067 */dev/null*)
6068 lt_cv_path_NM="$tmp_nm -p"
6069 break
6070 ;;
6071 *)
6072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6073 continue # so that we can try to find one that supports BSD flags
6074 ;;
6075 esac
6076 ;;
6077 esac
6078 fi
6079 done
6080 IFS="$lt_save_ifs"
6081 done
6082 : ${lt_cv_path_NM=no}
6083 fi
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6086 $as_echo "$lt_cv_path_NM" >&6; }
6087 if test "$lt_cv_path_NM" != "no"; then
6088 NM="$lt_cv_path_NM"
6089 else
6090 # Didn't find any BSD compatible name lister, look for dumpbin.
6091 if test -n "$DUMPBIN"; then :
6092 # Let the user override the test.
6093 else
6094 if test -n "$ac_tool_prefix"; then
6095 for ac_prog in dumpbin "link -dump"
6096 do
6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_DUMPBIN+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -n "$DUMPBIN"; then
6105 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 DUMPBIN=$ac_cv_prog_DUMPBIN
6125 if test -n "$DUMPBIN"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6127 $as_echo "$DUMPBIN" >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 test -n "$DUMPBIN" && break
6135 done
6136 fi
6137 if test -z "$DUMPBIN"; then
6138 ac_ct_DUMPBIN=$DUMPBIN
6139 for ac_prog in dumpbin "link -dump"
6140 do
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy $ac_prog; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$ac_ct_DUMPBIN"; then
6149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6169 if test -n "$ac_ct_DUMPBIN"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6171 $as_echo "$ac_ct_DUMPBIN" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 test -n "$ac_ct_DUMPBIN" && break
6179 done
6180
6181 if test "x$ac_ct_DUMPBIN" = x; then
6182 DUMPBIN=":"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190 DUMPBIN=$ac_ct_DUMPBIN
6191 fi
6192 fi
6193
6194 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6195 *COFF*)
6196 DUMPBIN="$DUMPBIN -symbols"
6197 ;;
6198 *)
6199 DUMPBIN=:
6200 ;;
6201 esac
6202 fi
6203
6204 if test "$DUMPBIN" != ":"; then
6205 NM="$DUMPBIN"
6206 fi
6207 fi
6208 test -z "$NM" && NM=nm
6209
6210
6211
6212
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6216 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6217 if ${lt_cv_nm_interface+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 lt_cv_nm_interface="BSD nm"
6221 echo "int some_variable = 0;" > conftest.$ac_ext
6222 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6223 (eval "$ac_compile" 2>conftest.err)
6224 cat conftest.err >&5
6225 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6227 cat conftest.err >&5
6228 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6229 cat conftest.out >&5
6230 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6231 lt_cv_nm_interface="MS dumpbin"
6232 fi
6233 rm -f conftest*
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6236 $as_echo "$lt_cv_nm_interface" >&6; }
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6239 $as_echo_n "checking whether ln -s works... " >&6; }
6240 LN_S=$as_ln_s
6241 if test "$LN_S" = "ln -s"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6243 $as_echo "yes" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6246 $as_echo "no, using $LN_S" >&6; }
6247 fi
6248
6249 # find the maximum length of command line arguments
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6252 if ${lt_cv_sys_max_cmd_len+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 i=0
6256 teststring="ABCD"
6257
6258 case $build_os in
6259 msdosdjgpp*)
6260 # On DJGPP, this test can blow up pretty badly due to problems in libc
6261 # (any single argument exceeding 2000 bytes causes a buffer overrun
6262 # during glob expansion). Even if it were fixed, the result of this
6263 # check would be larger than it should be.
6264 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6265 ;;
6266
6267 gnu*)
6268 # Under GNU Hurd, this test is not required because there is
6269 # no limit to the length of command line arguments.
6270 # Libtool will interpret -1 as no limit whatsoever
6271 lt_cv_sys_max_cmd_len=-1;
6272 ;;
6273
6274 cygwin* | mingw* | cegcc*)
6275 # On Win9x/ME, this test blows up -- it succeeds, but takes
6276 # about 5 minutes as the teststring grows exponentially.
6277 # Worse, since 9x/ME are not pre-emptively multitasking,
6278 # you end up with a "frozen" computer, even though with patience
6279 # the test eventually succeeds (with a max line length of 256k).
6280 # Instead, let's just punt: use the minimum linelength reported by
6281 # all of the supported platforms: 8192 (on NT/2K/XP).
6282 lt_cv_sys_max_cmd_len=8192;
6283 ;;
6284
6285 mint*)
6286 # On MiNT this can take a long time and run out of memory.
6287 lt_cv_sys_max_cmd_len=8192;
6288 ;;
6289
6290 amigaos*)
6291 # On AmigaOS with pdksh, this test takes hours, literally.
6292 # So we just punt and use a minimum line length of 8192.
6293 lt_cv_sys_max_cmd_len=8192;
6294 ;;
6295
6296 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6297 # This has been around since 386BSD, at least. Likely further.
6298 if test -x /sbin/sysctl; then
6299 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6300 elif test -x /usr/sbin/sysctl; then
6301 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6302 else
6303 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6304 fi
6305 # And add a safety zone
6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6308 ;;
6309
6310 interix*)
6311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6312 lt_cv_sys_max_cmd_len=196608
6313 ;;
6314
6315 osf*)
6316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318 # nice to cause kernel panics so lets avoid the loop below.
6319 # First set a reasonable default.
6320 lt_cv_sys_max_cmd_len=16384
6321 #
6322 if test -x /sbin/sysconfig; then
6323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6325 esac
6326 fi
6327 ;;
6328 sco3.2v5*)
6329 lt_cv_sys_max_cmd_len=102400
6330 ;;
6331 sysv5* | sco5v6* | sysv4.2uw2*)
6332 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333 if test -n "$kargmax"; then
6334 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6335 else
6336 lt_cv_sys_max_cmd_len=32768
6337 fi
6338 ;;
6339 *)
6340 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6341 if test -n "$lt_cv_sys_max_cmd_len"; then
6342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6344 else
6345 # Make teststring a little bigger before we do anything with it.
6346 # a 1K string should be a reasonable start.
6347 for i in 1 2 3 4 5 6 7 8 ; do
6348 teststring=$teststring$teststring
6349 done
6350 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6351 # If test is not a shell built-in, we'll probably end up computing a
6352 # maximum length that is only half of the actual maximum length, but
6353 # we can't tell.
6354 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6355 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6356 test $i != 17 # 1/2 MB should be enough
6357 do
6358 i=`expr $i + 1`
6359 teststring=$teststring$teststring
6360 done
6361 # Only check the string length outside the loop.
6362 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6363 teststring=
6364 # Add a significant safety factor because C++ compilers can tack on
6365 # massive amounts of additional arguments before passing them to the
6366 # linker. It appears as though 1/2 is a usable value.
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6368 fi
6369 ;;
6370 esac
6371
6372 fi
6373
6374 if test -n $lt_cv_sys_max_cmd_len ; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6376 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6379 $as_echo "none" >&6; }
6380 fi
6381 max_cmd_len=$lt_cv_sys_max_cmd_len
6382
6383
6384
6385
6386
6387
6388 : ${CP="cp -f"}
6389 : ${MV="mv -f"}
6390 : ${RM="rm -f"}
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6393 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6394 # Try some XSI features
6395 xsi_shell=no
6396 ( _lt_dummy="a/b/c"
6397 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6398 = c,a/b,, \
6399 && eval 'test $(( 1 + 1 )) -eq 2 \
6400 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6401 && xsi_shell=yes
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6403 $as_echo "$xsi_shell" >&6; }
6404
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6407 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6408 lt_shell_append=no
6409 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6410 >/dev/null 2>&1 \
6411 && lt_shell_append=yes
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6413 $as_echo "$lt_shell_append" >&6; }
6414
6415
6416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6417 lt_unset=unset
6418 else
6419 lt_unset=false
6420 fi
6421
6422
6423
6424
6425
6426 # test EBCDIC or ASCII
6427 case `echo X|tr X '\101'` in
6428 A) # ASCII based system
6429 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6430 lt_SP2NL='tr \040 \012'
6431 lt_NL2SP='tr \015\012 \040\040'
6432 ;;
6433 *) # EBCDIC based system
6434 lt_SP2NL='tr \100 \n'
6435 lt_NL2SP='tr \r\n \100\100'
6436 ;;
6437 esac
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6448 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6449 if ${lt_cv_ld_reload_flag+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 lt_cv_ld_reload_flag='-r'
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6455 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6456 reload_flag=$lt_cv_ld_reload_flag
6457 case $reload_flag in
6458 "" | " "*) ;;
6459 *) reload_flag=" $reload_flag" ;;
6460 esac
6461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6462 case $host_os in
6463 darwin*)
6464 if test "$GCC" = yes; then
6465 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6466 else
6467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6468 fi
6469 ;;
6470 esac
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_OBJDUMP+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$OBJDUMP"; then
6489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 OBJDUMP=$ac_cv_prog_OBJDUMP
6509 if test -n "$OBJDUMP"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6511 $as_echo "$OBJDUMP" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517
6518 fi
6519 if test -z "$ac_cv_prog_OBJDUMP"; then
6520 ac_ct_OBJDUMP=$OBJDUMP
6521 # Extract the first word of "objdump", so it can be a program name with args.
6522 set dummy objdump; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$ac_ct_OBJDUMP"; then
6529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6549 if test -n "$ac_ct_OBJDUMP"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6551 $as_echo "$ac_ct_OBJDUMP" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556
6557 if test "x$ac_ct_OBJDUMP" = x; then
6558 OBJDUMP="false"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 OBJDUMP=$ac_ct_OBJDUMP
6567 fi
6568 else
6569 OBJDUMP="$ac_cv_prog_OBJDUMP"
6570 fi
6571
6572 test -z "$OBJDUMP" && OBJDUMP=objdump
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6583 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6584 if ${lt_cv_deplibs_check_method+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 lt_cv_file_magic_cmd='$MAGIC_CMD'
6588 lt_cv_file_magic_test_file=
6589 lt_cv_deplibs_check_method='unknown'
6590 # Need to set the preceding variable on all platforms that support
6591 # interlibrary dependencies.
6592 # 'none' -- dependencies not supported.
6593 # `unknown' -- same as none, but documents that we really don't know.
6594 # 'pass_all' -- all dependencies passed with no checks.
6595 # 'test_compile' -- check by making test program.
6596 # 'file_magic [[regex]]' -- check by looking for files in library path
6597 # which responds to the $file_magic_cmd with a given extended regex.
6598 # If you have `file' or equivalent on your system and you're not sure
6599 # whether `pass_all' will *always* work, you probably want this one.
6600
6601 case $host_os in
6602 aix[4-9]*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 beos*)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 bsdi[45]*)
6611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6612 lt_cv_file_magic_cmd='/usr/bin/file -L'
6613 lt_cv_file_magic_test_file=/shlib/libc.so
6614 ;;
6615
6616 cygwin*)
6617 # func_win32_libid is a shell function defined in ltmain.sh
6618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6619 lt_cv_file_magic_cmd='func_win32_libid'
6620 ;;
6621
6622 mingw* | pw32*)
6623 # Base MSYS/MinGW do not provide the 'file' command needed by
6624 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6625 # unless we find 'file', for example because we are cross-compiling.
6626 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6627 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6629 lt_cv_file_magic_cmd='func_win32_libid'
6630 else
6631 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6632 lt_cv_file_magic_cmd='$OBJDUMP -f'
6633 fi
6634 ;;
6635
6636 cegcc*)
6637 # use the weaker test based on 'objdump'. See mingw*.
6638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6639 lt_cv_file_magic_cmd='$OBJDUMP -f'
6640 ;;
6641
6642 darwin* | rhapsody*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645
6646 freebsd* | dragonfly*)
6647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6648 case $host_cpu in
6649 i*86 )
6650 # Not sure whether the presence of OpenBSD here was a mistake.
6651 # Let's accept both of them until this is cleared up.
6652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6653 lt_cv_file_magic_cmd=/usr/bin/file
6654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6655 ;;
6656 esac
6657 else
6658 lt_cv_deplibs_check_method=pass_all
6659 fi
6660 ;;
6661
6662 gnu*)
6663 lt_cv_deplibs_check_method=pass_all
6664 ;;
6665
6666 haiku*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669
6670 hpux10.20* | hpux11*)
6671 lt_cv_file_magic_cmd=/usr/bin/file
6672 case $host_cpu in
6673 ia64*)
6674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6676 ;;
6677 hppa*64*)
6678 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]'
6679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6680 ;;
6681 *)
6682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6684 ;;
6685 esac
6686 ;;
6687
6688 interix[3-9]*)
6689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6691 ;;
6692
6693 irix5* | irix6* | nonstopux*)
6694 case $LD in
6695 *-32|*"-32 ") libmagic=32-bit;;
6696 *-n32|*"-n32 ") libmagic=N32;;
6697 *-64|*"-64 ") libmagic=64-bit;;
6698 *) libmagic=never-match;;
6699 esac
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 # This must be Linux ELF.
6704 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
6707
6708 netbsd*)
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6711 else
6712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6713 fi
6714 ;;
6715
6716 newos6*)
6717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6718 lt_cv_file_magic_cmd=/usr/bin/file
6719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6720 ;;
6721
6722 *nto* | *qnx*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725
6726 openbsd*)
6727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6729 else
6730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6731 fi
6732 ;;
6733
6734 osf3* | osf4* | osf5*)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737
6738 rdos*)
6739 lt_cv_deplibs_check_method=pass_all
6740 ;;
6741
6742 solaris*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749
6750 sysv4 | sysv4.3*)
6751 case $host_vendor in
6752 motorola)
6753 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]'
6754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6755 ;;
6756 ncr)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759 sequent)
6760 lt_cv_file_magic_cmd='/bin/file'
6761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6762 ;;
6763 sni)
6764 lt_cv_file_magic_cmd='/bin/file'
6765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6766 lt_cv_file_magic_test_file=/lib/libc.so
6767 ;;
6768 siemens)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771 pc)
6772 lt_cv_deplibs_check_method=pass_all
6773 ;;
6774 esac
6775 ;;
6776
6777 tpf*)
6778 lt_cv_deplibs_check_method=pass_all
6779 ;;
6780 esac
6781
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6784 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6785 file_magic_cmd=$lt_cv_file_magic_cmd
6786 deplibs_check_method=$lt_cv_deplibs_check_method
6787 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}ar; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_AR+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_AR="${ac_tool_prefix}ar"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 AR=$ac_cv_prog_AR
6829 if test -n "$AR"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6831 $as_echo "$AR" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_AR"; then
6840 ac_ct_AR=$AR
6841 # Extract the first word of "ar", so it can be a program name with args.
6842 set dummy ar; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 if test -n "$ac_ct_AR"; then
6849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_ac_ct_AR="ar"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6869 if test -n "$ac_ct_AR"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6871 $as_echo "$ac_ct_AR" >&6; }
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877 if test "x$ac_ct_AR" = x; then
6878 AR="false"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886 AR=$ac_ct_AR
6887 fi
6888 else
6889 AR="$ac_cv_prog_AR"
6890 fi
6891
6892 test -z "$AR" && AR=ar
6893 test -z "$AR_FLAGS" && AR_FLAGS=cru
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}strip; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_STRIP+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$STRIP"; then
6914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 STRIP=$ac_cv_prog_STRIP
6934 if test -n "$STRIP"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6936 $as_echo "$STRIP" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943 fi
6944 if test -z "$ac_cv_prog_STRIP"; then
6945 ac_ct_STRIP=$STRIP
6946 # Extract the first word of "strip", so it can be a program name with args.
6947 set dummy strip; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -n "$ac_ct_STRIP"; then
6954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_STRIP="strip"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6974 if test -n "$ac_ct_STRIP"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6976 $as_echo "$ac_ct_STRIP" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982 if test "x$ac_ct_STRIP" = x; then
6983 STRIP=":"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991 STRIP=$ac_ct_STRIP
6992 fi
6993 else
6994 STRIP="$ac_cv_prog_STRIP"
6995 fi
6996
6997 test -z "$STRIP" && STRIP=:
6998
6999
7000
7001
7002
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_RANLIB+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$RANLIB"; then
7013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 RANLIB=$ac_cv_prog_RANLIB
7033 if test -n "$RANLIB"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7035 $as_echo "$RANLIB" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_RANLIB"; then
7044 ac_ct_RANLIB=$RANLIB
7045 # Extract the first word of "ranlib", so it can be a program name with args.
7046 set dummy ranlib; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_RANLIB"; then
7053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_RANLIB="ranlib"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7073 if test -n "$ac_ct_RANLIB"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7075 $as_echo "$ac_ct_RANLIB" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_RANLIB" = x; then
7082 RANLIB=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 RANLIB=$ac_ct_RANLIB
7091 fi
7092 else
7093 RANLIB="$ac_cv_prog_RANLIB"
7094 fi
7095
7096 test -z "$RANLIB" && RANLIB=:
7097
7098
7099
7100
7101
7102
7103 # Determine commands to create old-style static archives.
7104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7105 old_postinstall_cmds='chmod 644 $oldlib'
7106 old_postuninstall_cmds=
7107
7108 if test -n "$RANLIB"; then
7109 case $host_os in
7110 openbsd*)
7111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7112 ;;
7113 *)
7114 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7115 ;;
7116 esac
7117 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7118 fi
7119
7120 case $host_os in
7121 darwin*)
7122 lock_old_archive_extraction=yes ;;
7123 *)
7124 lock_old_archive_extraction=no ;;
7125 esac
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 # If no C compiler was specified, use CC.
7166 LTCC=${LTCC-"$CC"}
7167
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7170
7171 # Allow CC to be a program name with arguments.
7172 compiler=$CC
7173
7174
7175 # Check for command to grab the raw symbol name followed by C symbol from nm.
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7177 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7178 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181
7182 # These are sane defaults that work on at least a few old systems.
7183 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7184
7185 # Character class describing NM global symbol codes.
7186 symcode='[BCDEGRST]'
7187
7188 # Regexp to match symbols that can be accessed directly from C.
7189 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7190
7191 # Define system-specific variables.
7192 case $host_os in
7193 aix*)
7194 symcode='[BCDT]'
7195 ;;
7196 cygwin* | mingw* | pw32* | cegcc*)
7197 symcode='[ABCDGISTW]'
7198 ;;
7199 hpux*)
7200 if test "$host_cpu" = ia64; then
7201 symcode='[ABCDEGRST]'
7202 fi
7203 ;;
7204 irix* | nonstopux*)
7205 symcode='[BCDEGRST]'
7206 ;;
7207 osf*)
7208 symcode='[BCDEGQRST]'
7209 ;;
7210 solaris*)
7211 symcode='[BDRT]'
7212 ;;
7213 sco3.2v5*)
7214 symcode='[DT]'
7215 ;;
7216 sysv4.2uw2*)
7217 symcode='[DT]'
7218 ;;
7219 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7220 symcode='[ABDT]'
7221 ;;
7222 sysv4)
7223 symcode='[DFNSTU]'
7224 ;;
7225 esac
7226
7227 # If we're using GNU nm, then use its standard symbol codes.
7228 case `$NM -V 2>&1` in
7229 *GNU* | *'with BFD'*)
7230 symcode='[ABCDGIRSTW]' ;;
7231 esac
7232
7233 # Transform an extracted symbol line into a proper C declaration.
7234 # Some systems (esp. on ia64) link data and code symbols differently,
7235 # so use this general approach.
7236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7237
7238 # Transform an extracted symbol line into symbol name and symbol address
7239 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7240 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'"
7241
7242 # Handle CRLF in mingw tool chain
7243 opt_cr=
7244 case $build_os in
7245 mingw*)
7246 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7247 ;;
7248 esac
7249
7250 # Try without a prefix underscore, then with it.
7251 for ac_symprfx in "" "_"; do
7252
7253 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7254 symxfrm="\\1 $ac_symprfx\\2 \\2"
7255
7256 # Write the raw and C identifiers.
7257 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7258 # Fake it for dumpbin and say T for any non-static function
7259 # and D for any global variable.
7260 # Also find C++ and __fastcall symbols from MSVC++,
7261 # which start with @ or ?.
7262 lt_cv_sys_global_symbol_pipe="$AWK '"\
7263 " {last_section=section; section=\$ 3};"\
7264 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7265 " \$ 0!~/External *\|/{next};"\
7266 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7267 " {if(hide[section]) next};"\
7268 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7269 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7270 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7271 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7272 " ' prfx=^$ac_symprfx"
7273 else
7274 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7275 fi
7276
7277 # Check to see that the pipe works correctly.
7278 pipe_works=no
7279
7280 rm -f conftest*
7281 cat > conftest.$ac_ext <<_LT_EOF
7282 #ifdef __cplusplus
7283 extern "C" {
7284 #endif
7285 char nm_test_var;
7286 void nm_test_func(void);
7287 void nm_test_func(void){}
7288 #ifdef __cplusplus
7289 }
7290 #endif
7291 int main(){nm_test_var='a';nm_test_func();return(0);}
7292 _LT_EOF
7293
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7295 (eval $ac_compile) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; }; then
7299 # Now try to grab the symbols.
7300 nlist=conftest.nm
7301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7302 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; } && test -s "$nlist"; then
7306 # Try sorting and uniquifying the output.
7307 if sort "$nlist" | uniq > "$nlist"T; then
7308 mv -f "$nlist"T "$nlist"
7309 else
7310 rm -f "$nlist"T
7311 fi
7312
7313 # Make sure that we snagged all the symbols we need.
7314 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7315 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7316 cat <<_LT_EOF > conftest.$ac_ext
7317 #ifdef __cplusplus
7318 extern "C" {
7319 #endif
7320
7321 _LT_EOF
7322 # Now generate the symbol file.
7323 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7324
7325 cat <<_LT_EOF >> conftest.$ac_ext
7326
7327 /* The mapping between symbol names and symbols. */
7328 const struct {
7329 const char *name;
7330 void *address;
7331 }
7332 lt__PROGRAM__LTX_preloaded_symbols[] =
7333 {
7334 { "@PROGRAM@", (void *) 0 },
7335 _LT_EOF
7336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7337 cat <<\_LT_EOF >> conftest.$ac_ext
7338 {0, (void *) 0}
7339 };
7340
7341 /* This works around a problem in FreeBSD linker */
7342 #ifdef FREEBSD_WORKAROUND
7343 static const void *lt_preloaded_setup() {
7344 return lt__PROGRAM__LTX_preloaded_symbols;
7345 }
7346 #endif
7347
7348 #ifdef __cplusplus
7349 }
7350 #endif
7351 _LT_EOF
7352 # Now try linking the two files.
7353 mv conftest.$ac_objext conftstm.$ac_objext
7354 lt_save_LIBS="$LIBS"
7355 lt_save_CFLAGS="$CFLAGS"
7356 LIBS="conftstm.$ac_objext"
7357 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7359 (eval $ac_link) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7363 pipe_works=yes
7364 fi
7365 LIBS="$lt_save_LIBS"
7366 CFLAGS="$lt_save_CFLAGS"
7367 else
7368 echo "cannot find nm_test_func in $nlist" >&5
7369 fi
7370 else
7371 echo "cannot find nm_test_var in $nlist" >&5
7372 fi
7373 else
7374 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7375 fi
7376 else
7377 echo "$progname: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7379 fi
7380 rm -rf conftest* conftst*
7381
7382 # Do not use the global_symbol_pipe unless it works.
7383 if test "$pipe_works" = yes; then
7384 break
7385 else
7386 lt_cv_sys_global_symbol_pipe=
7387 fi
7388 done
7389
7390 fi
7391
7392 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7393 lt_cv_sys_global_symbol_to_cdecl=
7394 fi
7395 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7397 $as_echo "failed" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7400 $as_echo "ok" >&6; }
7401 fi
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424 # Check whether --enable-libtool-lock was given.
7425 if test "${enable_libtool_lock+set}" = set; then :
7426 enableval=$enable_libtool_lock;
7427 fi
7428
7429 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7430
7431 # Some flags need to be propagated to the compiler or linker for good
7432 # libtool support.
7433 case $host in
7434 ia64-*-hpux*)
7435 # Find out which ABI we are using.
7436 echo 'int i;' > conftest.$ac_ext
7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 case `/usr/bin/file conftest.$ac_objext` in
7443 *ELF-32*)
7444 HPUX_IA64_MODE="32"
7445 ;;
7446 *ELF-64*)
7447 HPUX_IA64_MODE="64"
7448 ;;
7449 esac
7450 fi
7451 rm -rf conftest*
7452 ;;
7453 *-*-irix6*)
7454 # Find out which ABI we are using.
7455 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7457 (eval $ac_compile) 2>&5
7458 ac_status=$?
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; }; then
7461 if test "$lt_cv_prog_gnu_ld" = yes; then
7462 case `/usr/bin/file conftest.$ac_objext` in
7463 *32-bit*)
7464 LD="${LD-ld} -melf32bsmip"
7465 ;;
7466 *N32*)
7467 LD="${LD-ld} -melf32bmipn32"
7468 ;;
7469 *64-bit*)
7470 LD="${LD-ld} -melf64bmip"
7471 ;;
7472 esac
7473 else
7474 case `/usr/bin/file conftest.$ac_objext` in
7475 *32-bit*)
7476 LD="${LD-ld} -32"
7477 ;;
7478 *N32*)
7479 LD="${LD-ld} -n32"
7480 ;;
7481 *64-bit*)
7482 LD="${LD-ld} -64"
7483 ;;
7484 esac
7485 fi
7486 fi
7487 rm -rf conftest*
7488 ;;
7489
7490 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7491 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7492 # Find out which ABI we are using.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `/usr/bin/file conftest.o` in
7500 *32-bit*)
7501 case $host in
7502 x86_64-*kfreebsd*-gnu)
7503 LD="${LD-ld} -m elf_i386_fbsd"
7504 ;;
7505 x86_64-*linux*)
7506 case `/usr/bin/file conftest.o` in
7507 *x86-64*)
7508 LD="${LD-ld} -m elf32_x86_64"
7509 ;;
7510 *)
7511 LD="${LD-ld} -m elf_i386"
7512 ;;
7513 esac
7514 ;;
7515 powerpc64le-*linux*)
7516 LD="${LD-ld} -m elf32lppclinux"
7517 ;;
7518 powerpc64-*linux*)
7519 LD="${LD-ld} -m elf32ppclinux"
7520 ;;
7521 s390x-*linux*)
7522 LD="${LD-ld} -m elf_s390"
7523 ;;
7524 sparc64-*linux*)
7525 LD="${LD-ld} -m elf32_sparc"
7526 ;;
7527 esac
7528 ;;
7529 *64-bit*)
7530 case $host in
7531 x86_64-*kfreebsd*-gnu)
7532 LD="${LD-ld} -m elf_x86_64_fbsd"
7533 ;;
7534 x86_64-*linux*)
7535 LD="${LD-ld} -m elf_x86_64"
7536 ;;
7537 powerpcle-*linux*)
7538 LD="${LD-ld} -m elf64lppc"
7539 ;;
7540 powerpc-*linux*)
7541 LD="${LD-ld} -m elf64ppc"
7542 ;;
7543 s390*-*linux*|s390*-*tpf*)
7544 LD="${LD-ld} -m elf64_s390"
7545 ;;
7546 sparc*-*linux*)
7547 LD="${LD-ld} -m elf64_sparc"
7548 ;;
7549 esac
7550 ;;
7551 esac
7552 fi
7553 rm -rf conftest*
7554 ;;
7555
7556 *-*-sco3.2v5*)
7557 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7558 SAVE_CFLAGS="$CFLAGS"
7559 CFLAGS="$CFLAGS -belf"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7561 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7562 if ${lt_cv_cc_needs_belf+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573
7574 int
7575 main ()
7576 {
7577
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"; then :
7583 lt_cv_cc_needs_belf=yes
7584 else
7585 lt_cv_cc_needs_belf=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 ac_ext=c
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7597 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7600 CFLAGS="$SAVE_CFLAGS"
7601 fi
7602 ;;
7603 sparc*-*solaris*)
7604 # Find out which ABI we are using.
7605 echo 'int i;' > conftest.$ac_ext
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7608 ac_status=$?
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 case `/usr/bin/file conftest.o` in
7612 *64-bit*)
7613 case $lt_cv_prog_gnu_ld in
7614 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7615 *)
7616 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7617 LD="${LD-ld} -64"
7618 fi
7619 ;;
7620 esac
7621 ;;
7622 esac
7623 fi
7624 rm -rf conftest*
7625 ;;
7626 esac
7627
7628 need_locks="$enable_libtool_lock"
7629
7630
7631 case $host_os in
7632 rhapsody* | darwin*)
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 if test -n "$DSYMUTIL"; then
7642 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7662 if test -n "$DSYMUTIL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7664 $as_echo "$DSYMUTIL" >&6; }
7665 else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_DSYMUTIL"; then
7673 ac_ct_DSYMUTIL=$DSYMUTIL
7674 # Extract the first word of "dsymutil", so it can be a program name with args.
7675 set dummy dsymutil; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$ac_ct_DSYMUTIL"; then
7682 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7702 if test -n "$ac_ct_DSYMUTIL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7704 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710 if test "x$ac_ct_DSYMUTIL" = x; then
7711 DSYMUTIL=":"
7712 else
7713 case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719 DSYMUTIL=$ac_ct_DSYMUTIL
7720 fi
7721 else
7722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7723 fi
7724
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_NMEDIT+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$NMEDIT"; then
7734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 NMEDIT=$ac_cv_prog_NMEDIT
7754 if test -n "$NMEDIT"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7756 $as_echo "$NMEDIT" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 fi
7764 if test -z "$ac_cv_prog_NMEDIT"; then
7765 ac_ct_NMEDIT=$NMEDIT
7766 # Extract the first word of "nmedit", so it can be a program name with args.
7767 set dummy nmedit; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_NMEDIT"; then
7774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7794 if test -n "$ac_ct_NMEDIT"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7796 $as_echo "$ac_ct_NMEDIT" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802 if test "x$ac_ct_NMEDIT" = x; then
7803 NMEDIT=":"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 NMEDIT=$ac_ct_NMEDIT
7812 fi
7813 else
7814 NMEDIT="$ac_cv_prog_NMEDIT"
7815 fi
7816
7817 if test -n "$ac_tool_prefix"; then
7818 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_LIPO+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 if test -n "$LIPO"; then
7826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 LIPO=$ac_cv_prog_LIPO
7846 if test -n "$LIPO"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7848 $as_echo "$LIPO" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855 fi
7856 if test -z "$ac_cv_prog_LIPO"; then
7857 ac_ct_LIPO=$LIPO
7858 # Extract the first word of "lipo", so it can be a program name with args.
7859 set dummy lipo; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$ac_ct_LIPO"; then
7866 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_ac_ct_LIPO="lipo"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7886 if test -n "$ac_ct_LIPO"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7888 $as_echo "$ac_ct_LIPO" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894 if test "x$ac_ct_LIPO" = x; then
7895 LIPO=":"
7896 else
7897 case $cross_compiling:$ac_tool_warned in
7898 yes:)
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7902 esac
7903 LIPO=$ac_ct_LIPO
7904 fi
7905 else
7906 LIPO="$ac_cv_prog_LIPO"
7907 fi
7908
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_OTOOL+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 if test -n "$OTOOL"; then
7918 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 OTOOL=$ac_cv_prog_OTOOL
7938 if test -n "$OTOOL"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7940 $as_echo "$OTOOL" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_OTOOL"; then
7949 ac_ct_OTOOL=$OTOOL
7950 # Extract the first word of "otool", so it can be a program name with args.
7951 set dummy otool; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$ac_ct_OTOOL"; then
7958 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_ac_ct_OTOOL="otool"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7978 if test -n "$ac_ct_OTOOL"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7980 $as_echo "$ac_ct_OTOOL" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986 if test "x$ac_ct_OTOOL" = x; then
7987 OTOOL=":"
7988 else
7989 case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995 OTOOL=$ac_ct_OTOOL
7996 fi
7997 else
7998 OTOOL="$ac_cv_prog_OTOOL"
7999 fi
8000
8001 if test -n "$ac_tool_prefix"; then
8002 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8003 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if ${ac_cv_prog_OTOOL64+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$OTOOL64"; then
8010 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 OTOOL64=$ac_cv_prog_OTOOL64
8030 if test -n "$OTOOL64"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8032 $as_echo "$OTOOL64" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039 fi
8040 if test -z "$ac_cv_prog_OTOOL64"; then
8041 ac_ct_OTOOL64=$OTOOL64
8042 # Extract the first word of "otool64", so it can be a program name with args.
8043 set dummy otool64; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 if test -n "$ac_ct_OTOOL64"; then
8050 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8051 else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_ac_ct_OTOOL64="otool64"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063 done
8064 done
8065 IFS=$as_save_IFS
8066
8067 fi
8068 fi
8069 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8070 if test -n "$ac_ct_OTOOL64"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8072 $as_echo "$ac_ct_OTOOL64" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077
8078 if test "x$ac_ct_OTOOL64" = x; then
8079 OTOOL64=":"
8080 else
8081 case $cross_compiling:$ac_tool_warned in
8082 yes:)
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8086 esac
8087 OTOOL64=$ac_ct_OTOOL64
8088 fi
8089 else
8090 OTOOL64="$ac_cv_prog_OTOOL64"
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8120 $as_echo_n "checking for -single_module linker flag... " >&6; }
8121 if ${lt_cv_apple_cc_single_mod+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_apple_cc_single_mod=no
8125 if test -z "${LT_MULTI_MODULE}"; then
8126 # By default we will add the -single_module flag. You can override
8127 # by either setting the environment variable LT_MULTI_MODULE
8128 # non-empty at configure time, or by adding -multi_module to the
8129 # link flags.
8130 rm -rf libconftest.dylib*
8131 echo "int foo(void){return 1;}" > conftest.c
8132 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8133 -dynamiclib -Wl,-single_module conftest.c" >&5
8134 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8135 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8136 _lt_result=$?
8137 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8138 lt_cv_apple_cc_single_mod=yes
8139 else
8140 cat conftest.err >&5
8141 fi
8142 rm -rf libconftest.dylib*
8143 rm -f conftest.*
8144 fi
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8147 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8149 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8150 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 lt_cv_ld_exported_symbols_list=no
8154 save_LDFLAGS=$LDFLAGS
8155 echo "_main" > conftest.sym
8156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159
8160 int
8161 main ()
8162 {
8163
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 lt_cv_ld_exported_symbols_list=yes
8170 else
8171 lt_cv_ld_exported_symbols_list=no
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 LDFLAGS="$save_LDFLAGS"
8176
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8179 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8181 $as_echo_n "checking for -force_load linker flag... " >&6; }
8182 if ${lt_cv_ld_force_load+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_ld_force_load=no
8186 cat > conftest.c << _LT_EOF
8187 int forced_loaded() { return 2;}
8188 _LT_EOF
8189 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8190 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8191 echo "$AR cru libconftest.a conftest.o" >&5
8192 $AR cru libconftest.a conftest.o 2>&5
8193 cat > conftest.c << _LT_EOF
8194 int main() { return 0;}
8195 _LT_EOF
8196 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8198 _lt_result=$?
8199 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8200 lt_cv_ld_force_load=yes
8201 else
8202 cat conftest.err >&5
8203 fi
8204 rm -f conftest.err libconftest.a conftest conftest.c
8205 rm -rf conftest.dSYM
8206
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8209 $as_echo "$lt_cv_ld_force_load" >&6; }
8210 case $host_os in
8211 rhapsody* | darwin1.[012])
8212 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8213 darwin1.*)
8214 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8215 darwin*) # darwin 5.x on
8216 # if running on 10.5 or later, the deployment target defaults
8217 # to the OS version, if on x86, and 10.4, the deployment
8218 # target defaults to 10.4. Don't you love it?
8219 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8220 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8221 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8222 10.[012][,.]*)
8223 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8224 10.*)
8225 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8226 esac
8227 ;;
8228 esac
8229 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8230 _lt_dar_single_mod='$single_module'
8231 fi
8232 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8233 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8234 else
8235 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8236 fi
8237 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8238 _lt_dsymutil='~$DSYMUTIL $lib || :'
8239 else
8240 _lt_dsymutil=
8241 fi
8242 ;;
8243 esac
8244
8245 for ac_header in dlfcn.h
8246 do :
8247 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8248 "
8249 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8250 cat >>confdefs.h <<_ACEOF
8251 #define HAVE_DLFCN_H 1
8252 _ACEOF
8253
8254 fi
8255
8256 done
8257
8258
8259
8260
8261
8262 # Set options
8263 enable_dlopen=yes
8264
8265
8266
8267
8268 enable_win32_dll=no
8269
8270
8271 # Check whether --enable-shared was given.
8272 if test "${enable_shared+set}" = set; then :
8273 enableval=$enable_shared; p=${PACKAGE-default}
8274 case $enableval in
8275 yes) enable_shared=yes ;;
8276 no) enable_shared=no ;;
8277 *)
8278 enable_shared=no
8279 # Look at the argument we got. We use all the common list separators.
8280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8281 for pkg in $enableval; do
8282 IFS="$lt_save_ifs"
8283 if test "X$pkg" = "X$p"; then
8284 enable_shared=yes
8285 fi
8286 done
8287 IFS="$lt_save_ifs"
8288 ;;
8289 esac
8290 else
8291 enable_shared=yes
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 # Check whether --enable-static was given.
8303 if test "${enable_static+set}" = set; then :
8304 enableval=$enable_static; p=${PACKAGE-default}
8305 case $enableval in
8306 yes) enable_static=yes ;;
8307 no) enable_static=no ;;
8308 *)
8309 enable_static=no
8310 # Look at the argument we got. We use all the common list separators.
8311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8312 for pkg in $enableval; do
8313 IFS="$lt_save_ifs"
8314 if test "X$pkg" = "X$p"; then
8315 enable_static=yes
8316 fi
8317 done
8318 IFS="$lt_save_ifs"
8319 ;;
8320 esac
8321 else
8322 enable_static=yes
8323 fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334 # Check whether --with-pic was given.
8335 if test "${with_pic+set}" = set; then :
8336 withval=$with_pic; pic_mode="$withval"
8337 else
8338 pic_mode=default
8339 fi
8340
8341
8342 test -z "$pic_mode" && pic_mode=default
8343
8344
8345
8346
8347
8348
8349
8350 # Check whether --enable-fast-install was given.
8351 if test "${enable_fast_install+set}" = set; then :
8352 enableval=$enable_fast_install; p=${PACKAGE-default}
8353 case $enableval in
8354 yes) enable_fast_install=yes ;;
8355 no) enable_fast_install=no ;;
8356 *)
8357 enable_fast_install=no
8358 # Look at the argument we got. We use all the common list separators.
8359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8360 for pkg in $enableval; do
8361 IFS="$lt_save_ifs"
8362 if test "X$pkg" = "X$p"; then
8363 enable_fast_install=yes
8364 fi
8365 done
8366 IFS="$lt_save_ifs"
8367 ;;
8368 esac
8369 else
8370 enable_fast_install=yes
8371 fi
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 # This can be used to rebuild libtool when needed
8384 LIBTOOL_DEPS="$ltmain"
8385
8386 # Always use our own libtool.
8387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 test -z "$LN_S" && LN_S="ln -s"
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 if test -n "${ZSH_VERSION+set}" ; then
8430 setopt NO_GLOB_SUBST
8431 fi
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8434 $as_echo_n "checking for objdir... " >&6; }
8435 if ${lt_cv_objdir+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 rm -f .libs 2>/dev/null
8439 mkdir .libs 2>/dev/null
8440 if test -d .libs; then
8441 lt_cv_objdir=.libs
8442 else
8443 # MS-DOS does not allow filenames that begin with a dot.
8444 lt_cv_objdir=_libs
8445 fi
8446 rmdir .libs 2>/dev/null
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8449 $as_echo "$lt_cv_objdir" >&6; }
8450 objdir=$lt_cv_objdir
8451
8452
8453
8454
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define LT_OBJDIR "$lt_cv_objdir/"
8458 _ACEOF
8459
8460
8461
8462
8463 case $host_os in
8464 aix3*)
8465 # AIX sometimes has problems with the GCC collect2 program. For some
8466 # reason, if we set the COLLECT_NAMES environment variable, the problems
8467 # vanish in a puff of smoke.
8468 if test "X${COLLECT_NAMES+set}" != Xset; then
8469 COLLECT_NAMES=
8470 export COLLECT_NAMES
8471 fi
8472 ;;
8473 esac
8474
8475 # Global variables:
8476 ofile=libtool
8477 can_build_shared=yes
8478
8479 # All known linkers require a `.a' archive for static linking (except MSVC,
8480 # which needs '.lib').
8481 libext=a
8482
8483 with_gnu_ld="$lt_cv_prog_gnu_ld"
8484
8485 old_CC="$CC"
8486 old_CFLAGS="$CFLAGS"
8487
8488 # Set sane defaults for various variables
8489 test -z "$CC" && CC=cc
8490 test -z "$LTCC" && LTCC=$CC
8491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8492 test -z "$LD" && LD=ld
8493 test -z "$ac_objext" && ac_objext=o
8494
8495 for cc_temp in $compiler""; do
8496 case $cc_temp in
8497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8499 \-*) ;;
8500 *) break;;
8501 esac
8502 done
8503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8504
8505
8506 # Only perform the check for file, if the check method requires it
8507 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8508 case $deplibs_check_method in
8509 file_magic*)
8510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8512 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 case $MAGIC_CMD in
8517 [\\/*] | ?:[\\/]*)
8518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8519 ;;
8520 *)
8521 lt_save_MAGIC_CMD="$MAGIC_CMD"
8522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8524 for ac_dir in $ac_dummy; do
8525 IFS="$lt_save_ifs"
8526 test -z "$ac_dir" && ac_dir=.
8527 if test -f $ac_dir/${ac_tool_prefix}file; then
8528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8529 if test -n "$file_magic_test_file"; then
8530 case $deplibs_check_method in
8531 "file_magic "*)
8532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8535 $EGREP "$file_magic_regex" > /dev/null; then
8536 :
8537 else
8538 cat <<_LT_EOF 1>&2
8539
8540 *** Warning: the command libtool uses to detect shared libraries,
8541 *** $file_magic_cmd, produces output that libtool cannot recognize.
8542 *** The result is that libtool may fail to recognize shared libraries
8543 *** as such. This will affect the creation of libtool libraries that
8544 *** depend on shared libraries, but programs linked with such libtool
8545 *** libraries will work regardless of this problem. Nevertheless, you
8546 *** may want to report the problem to your system manager and/or to
8547 *** bug-libtool@gnu.org
8548
8549 _LT_EOF
8550 fi ;;
8551 esac
8552 fi
8553 break
8554 fi
8555 done
8556 IFS="$lt_save_ifs"
8557 MAGIC_CMD="$lt_save_MAGIC_CMD"
8558 ;;
8559 esac
8560 fi
8561
8562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8563 if test -n "$MAGIC_CMD"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8565 $as_echo "$MAGIC_CMD" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570
8571
8572
8573
8574
8575 if test -z "$lt_cv_path_MAGIC_CMD"; then
8576 if test -n "$ac_tool_prefix"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8578 $as_echo_n "checking for file... " >&6; }
8579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 case $MAGIC_CMD in
8583 [\\/*] | ?:[\\/]*)
8584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8585 ;;
8586 *)
8587 lt_save_MAGIC_CMD="$MAGIC_CMD"
8588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8590 for ac_dir in $ac_dummy; do
8591 IFS="$lt_save_ifs"
8592 test -z "$ac_dir" && ac_dir=.
8593 if test -f $ac_dir/file; then
8594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8595 if test -n "$file_magic_test_file"; then
8596 case $deplibs_check_method in
8597 "file_magic "*)
8598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8601 $EGREP "$file_magic_regex" > /dev/null; then
8602 :
8603 else
8604 cat <<_LT_EOF 1>&2
8605
8606 *** Warning: the command libtool uses to detect shared libraries,
8607 *** $file_magic_cmd, produces output that libtool cannot recognize.
8608 *** The result is that libtool may fail to recognize shared libraries
8609 *** as such. This will affect the creation of libtool libraries that
8610 *** depend on shared libraries, but programs linked with such libtool
8611 *** libraries will work regardless of this problem. Nevertheless, you
8612 *** may want to report the problem to your system manager and/or to
8613 *** bug-libtool@gnu.org
8614
8615 _LT_EOF
8616 fi ;;
8617 esac
8618 fi
8619 break
8620 fi
8621 done
8622 IFS="$lt_save_ifs"
8623 MAGIC_CMD="$lt_save_MAGIC_CMD"
8624 ;;
8625 esac
8626 fi
8627
8628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8629 if test -n "$MAGIC_CMD"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8631 $as_echo "$MAGIC_CMD" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637
8638 else
8639 MAGIC_CMD=:
8640 fi
8641 fi
8642
8643 fi
8644 ;;
8645 esac
8646
8647 # Use C for the default configuration in the libtool script
8648
8649 lt_save_CC="$CC"
8650 ac_ext=c
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
8657 # Source file extension for C test sources.
8658 ac_ext=c
8659
8660 # Object file extension for compiled C test sources.
8661 objext=o
8662 objext=$objext
8663
8664 # Code to be used in simple compile tests
8665 lt_simple_compile_test_code="int some_variable = 0;"
8666
8667 # Code to be used in simple link tests
8668 lt_simple_link_test_code='int main(){return(0);}'
8669
8670
8671
8672
8673
8674
8675
8676 # If no C compiler was specified, use CC.
8677 LTCC=${LTCC-"$CC"}
8678
8679 # If no C compiler flags were specified, use CFLAGS.
8680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8681
8682 # Allow CC to be a program name with arguments.
8683 compiler=$CC
8684
8685 # Save the default compiler, since it gets overwritten when the other
8686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8687 compiler_DEFAULT=$CC
8688
8689 # save warnings/boilerplate of simple test code
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8693 _lt_compiler_boilerplate=`cat conftest.err`
8694 $RM conftest*
8695
8696 ac_outfile=conftest.$ac_objext
8697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8699 _lt_linker_boilerplate=`cat conftest.err`
8700 $RM -r conftest*
8701
8702
8703 ## CAVEAT EMPTOR:
8704 ## There is no encapsulation within the following macros, do not change
8705 ## the running order or otherwise move them around unless you know exactly
8706 ## what you are doing...
8707 if test -n "$compiler"; then
8708
8709 lt_prog_compiler_no_builtin_flag=
8710
8711 if test "$GCC" = yes; then
8712 case $cc_basename in
8713 nvcc*)
8714 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8715 *)
8716 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8717 esac
8718
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8720 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8721 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 lt_cv_prog_compiler_rtti_exceptions=no
8725 ac_outfile=conftest.$ac_objext
8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8727 lt_compiler_flag="-fno-rtti -fno-exceptions"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 # The option is referenced via a variable to avoid confusing sed.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>conftest.err)
8739 ac_status=$?
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s "$ac_outfile"; then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings other than the usual output.
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_rtti_exceptions=yes
8749 fi
8750 fi
8751 $RM conftest*
8752
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8755 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8756
8757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8758 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8759 else
8760 :
8761 fi
8762
8763 fi
8764
8765
8766
8767
8768
8769
8770 lt_prog_compiler_wl=
8771 lt_prog_compiler_pic=
8772 lt_prog_compiler_static=
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8776
8777 if test "$GCC" = yes; then
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_static='-static'
8780
8781 case $host_os in
8782 aix*)
8783 # All AIX code is PIC.
8784 if test "$host_cpu" = ia64; then
8785 # AIX 5 now supports IA64 processor
8786 lt_prog_compiler_static='-Bstatic'
8787 fi
8788 lt_prog_compiler_pic='-fPIC'
8789 ;;
8790
8791 amigaos*)
8792 case $host_cpu in
8793 powerpc)
8794 # see comment about AmigaOS4 .so support
8795 lt_prog_compiler_pic='-fPIC'
8796 ;;
8797 m68k)
8798 # FIXME: we need at least 68020 code to build shared libraries, but
8799 # adding the `-m68020' flag to GCC prevents building anything better,
8800 # like `-m68040'.
8801 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8802 ;;
8803 esac
8804 ;;
8805
8806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8807 # PIC is the default for these OSes.
8808 ;;
8809
8810 mingw* | cygwin* | pw32* | os2* | cegcc*)
8811 # This hack is so that the source file can tell whether it is being
8812 # built for inclusion in a dll (and should export symbols for example).
8813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8814 # (--disable-auto-import) libraries
8815 lt_prog_compiler_pic='-DDLL_EXPORT'
8816 ;;
8817
8818 darwin* | rhapsody*)
8819 # PIC is the default on this platform
8820 # Common symbols not allowed in MH_DYLIB files
8821 lt_prog_compiler_pic='-fno-common'
8822 ;;
8823
8824 haiku*)
8825 # PIC is the default for Haiku.
8826 # The "-static" flag exists, but is broken.
8827 lt_prog_compiler_static=
8828 ;;
8829
8830 hpux*)
8831 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8832 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8833 # sets the default TLS model and affects inlining.
8834 case $host_cpu in
8835 hppa*64*)
8836 # +Z the default
8837 ;;
8838 *)
8839 lt_prog_compiler_pic='-fPIC'
8840 ;;
8841 esac
8842 ;;
8843
8844 interix[3-9]*)
8845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8846 # Instead, we relocate shared libraries at runtime.
8847 ;;
8848
8849 msdosdjgpp*)
8850 # Just because we use GCC doesn't mean we suddenly get shared libraries
8851 # on systems that don't support them.
8852 lt_prog_compiler_can_build_shared=no
8853 enable_shared=no
8854 ;;
8855
8856 *nto* | *qnx*)
8857 # QNX uses GNU C++, but need to define -shared option too, otherwise
8858 # it will coredump.
8859 lt_prog_compiler_pic='-fPIC -shared'
8860 ;;
8861
8862 sysv4*MP*)
8863 if test -d /usr/nec; then
8864 lt_prog_compiler_pic=-Kconform_pic
8865 fi
8866 ;;
8867
8868 *)
8869 lt_prog_compiler_pic='-fPIC'
8870 ;;
8871 esac
8872
8873 case $cc_basename in
8874 nvcc*) # Cuda Compiler Driver 2.2
8875 lt_prog_compiler_wl='-Xlinker '
8876 lt_prog_compiler_pic='-Xcompiler -fPIC'
8877 ;;
8878 esac
8879 else
8880 # PORTME Check for flag to pass linker flags through the system compiler.
8881 case $host_os in
8882 aix*)
8883 lt_prog_compiler_wl='-Wl,'
8884 if test "$host_cpu" = ia64; then
8885 # AIX 5 now supports IA64 processor
8886 lt_prog_compiler_static='-Bstatic'
8887 else
8888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8889 fi
8890 ;;
8891
8892 mingw* | cygwin* | pw32* | os2* | cegcc*)
8893 # This hack is so that the source file can tell whether it is being
8894 # built for inclusion in a dll (and should export symbols for example).
8895 lt_prog_compiler_pic='-DDLL_EXPORT'
8896 ;;
8897
8898 hpux9* | hpux10* | hpux11*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8901 # not for PA HP-UX.
8902 case $host_cpu in
8903 hppa*64*|ia64*)
8904 # +Z the default
8905 ;;
8906 *)
8907 lt_prog_compiler_pic='+Z'
8908 ;;
8909 esac
8910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8911 lt_prog_compiler_static='${wl}-a ${wl}archive'
8912 ;;
8913
8914 irix5* | irix6* | nonstopux*)
8915 lt_prog_compiler_wl='-Wl,'
8916 # PIC (with -KPIC) is the default.
8917 lt_prog_compiler_static='-non_shared'
8918 ;;
8919
8920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8921 case $cc_basename in
8922 # old Intel for x86_64 which still supported -KPIC.
8923 ecc*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-static'
8927 ;;
8928 # icc used to be incompatible with GCC.
8929 # ICC 10 doesn't accept -KPIC any more.
8930 icc* | ifort*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-fPIC'
8933 lt_prog_compiler_static='-static'
8934 ;;
8935 # Lahey Fortran 8.1.
8936 lf95*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='--shared'
8939 lt_prog_compiler_static='--static'
8940 ;;
8941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8942 # Portland Group compilers (*not* the Pentium gcc compiler,
8943 # which looks to be a dead project)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='-fpic'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948 ccc*)
8949 lt_prog_compiler_wl='-Wl,'
8950 # All Alpha code is PIC.
8951 lt_prog_compiler_static='-non_shared'
8952 ;;
8953 xl* | bgxl* | bgf* | mpixl*)
8954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8955 lt_prog_compiler_wl='-Wl,'
8956 lt_prog_compiler_pic='-qpic'
8957 lt_prog_compiler_static='-qstaticlink'
8958 ;;
8959 *)
8960 case `$CC -V 2>&1 | sed 5q` in
8961 *Sun\ F* | *Sun*Fortran*)
8962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 lt_prog_compiler_wl=''
8966 ;;
8967 *Sun\ C*)
8968 # Sun C 5.9
8969 lt_prog_compiler_pic='-KPIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 lt_prog_compiler_wl='-Wl,'
8972 ;;
8973 esac
8974 ;;
8975 esac
8976 ;;
8977
8978 newsos6)
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8981 ;;
8982
8983 *nto* | *qnx*)
8984 # QNX uses GNU C++, but need to define -shared option too, otherwise
8985 # it will coredump.
8986 lt_prog_compiler_pic='-fPIC -shared'
8987 ;;
8988
8989 osf3* | osf4* | osf5*)
8990 lt_prog_compiler_wl='-Wl,'
8991 # All OSF/1 code is PIC.
8992 lt_prog_compiler_static='-non_shared'
8993 ;;
8994
8995 rdos*)
8996 lt_prog_compiler_static='-non_shared'
8997 ;;
8998
8999 solaris*)
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 case $cc_basename in
9003 f77* | f90* | f95*)
9004 lt_prog_compiler_wl='-Qoption ld ';;
9005 *)
9006 lt_prog_compiler_wl='-Wl,';;
9007 esac
9008 ;;
9009
9010 sunos4*)
9011 lt_prog_compiler_wl='-Qoption ld '
9012 lt_prog_compiler_pic='-PIC'
9013 lt_prog_compiler_static='-Bstatic'
9014 ;;
9015
9016 sysv4 | sysv4.2uw2* | sysv4.3*)
9017 lt_prog_compiler_wl='-Wl,'
9018 lt_prog_compiler_pic='-KPIC'
9019 lt_prog_compiler_static='-Bstatic'
9020 ;;
9021
9022 sysv4*MP*)
9023 if test -d /usr/nec ;then
9024 lt_prog_compiler_pic='-Kconform_pic'
9025 lt_prog_compiler_static='-Bstatic'
9026 fi
9027 ;;
9028
9029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 ;;
9034
9035 unicos*)
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_can_build_shared=no
9038 ;;
9039
9040 uts4*)
9041 lt_prog_compiler_pic='-pic'
9042 lt_prog_compiler_static='-Bstatic'
9043 ;;
9044
9045 *)
9046 lt_prog_compiler_can_build_shared=no
9047 ;;
9048 esac
9049 fi
9050
9051 case $host_os in
9052 # For platforms which do not support PIC, -DPIC is meaningless:
9053 *djgpp*)
9054 lt_prog_compiler_pic=
9055 ;;
9056 *)
9057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9058 ;;
9059 esac
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9061 $as_echo "$lt_prog_compiler_pic" >&6; }
9062
9063
9064
9065
9066
9067
9068 #
9069 # Check to make sure the PIC flag actually works.
9070 #
9071 if test -n "$lt_prog_compiler_pic"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 lt_cv_prog_compiler_pic_works=no
9078 ac_outfile=conftest.$ac_objext
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 # The option is referenced via a variable to avoid confusing sed.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>conftest.err)
9092 ac_status=$?
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s "$ac_outfile"; then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings other than the usual output.
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_pic_works=yes
9102 fi
9103 fi
9104 $RM conftest*
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9109
9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9111 case $lt_prog_compiler_pic in
9112 "" | " "*) ;;
9113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9114 esac
9115 else
9116 lt_prog_compiler_pic=
9117 lt_prog_compiler_can_build_shared=no
9118 fi
9119
9120 fi
9121
9122
9123
9124
9125
9126
9127 #
9128 # Check to make sure the static flag actually works.
9129 #
9130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9133 if ${lt_cv_prog_compiler_static_works+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler_static_works=no
9137 save_LDFLAGS="$LDFLAGS"
9138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9141 # The linker can only warn and ignore the option if not recognized
9142 # So say no if there are warnings
9143 if test -s conftest.err; then
9144 # Append any errors to the config.log.
9145 cat conftest.err 1>&5
9146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148 if diff conftest.exp conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_static_works=yes
9150 fi
9151 else
9152 lt_cv_prog_compiler_static_works=yes
9153 fi
9154 fi
9155 $RM -r conftest*
9156 LDFLAGS="$save_LDFLAGS"
9157
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9161
9162 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9163 :
9164 else
9165 lt_prog_compiler_static=
9166 fi
9167
9168
9169
9170
9171
9172
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9176 if ${lt_cv_prog_compiler_c_o+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 lt_cv_prog_compiler_c_o=no
9180 $RM -r conftest 2>/dev/null
9181 mkdir conftest
9182 cd conftest
9183 mkdir out
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185
9186 lt_compiler_flag="-o out/conftest2.$ac_objext"
9187 # Insert the option either (1) after the last *FLAGS variable, or
9188 # (2) before a word containing "conftest.", or (3) at the end.
9189 # Note that $ac_compile itself does not contain backslashes and begins
9190 # with a dollar sign (not a hyphen), so the echo should work correctly.
9191 lt_compile=`echo "$ac_compile" | $SED \
9192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194 -e 's:$: $lt_compiler_flag:'`
9195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9196 (eval "$lt_compile" 2>out/conftest.err)
9197 ac_status=$?
9198 cat out/conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9201 then
9202 # The compiler can only warn and ignore the option if not recognized
9203 # So say no if there are warnings
9204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_c_o=yes
9208 fi
9209 fi
9210 chmod u+w . 2>&5
9211 $RM conftest*
9212 # SGI C++ compiler will create directory out/ii_files/ for
9213 # template instantiation
9214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9215 $RM out/* && rmdir out
9216 cd ..
9217 $RM -r conftest
9218 $RM conftest*
9219
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9223
9224
9225
9226
9227
9228
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9231 if ${lt_cv_prog_compiler_c_o+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 lt_cv_prog_compiler_c_o=no
9235 $RM -r conftest 2>/dev/null
9236 mkdir conftest
9237 cd conftest
9238 mkdir out
9239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9240
9241 lt_compiler_flag="-o out/conftest2.$ac_objext"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 lt_compile=`echo "$ac_compile" | $SED \
9247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9249 -e 's:$: $lt_compiler_flag:'`
9250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9251 (eval "$lt_compile" 2>out/conftest.err)
9252 ac_status=$?
9253 cat out/conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9256 then
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_c_o=yes
9263 fi
9264 fi
9265 chmod u+w . 2>&5
9266 $RM conftest*
9267 # SGI C++ compiler will create directory out/ii_files/ for
9268 # template instantiation
9269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9270 $RM out/* && rmdir out
9271 cd ..
9272 $RM -r conftest
9273 $RM conftest*
9274
9275 fi
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9278
9279
9280
9281
9282 hard_links="nottested"
9283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9284 # do not overwrite the value of need_locks provided by the user
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9286 $as_echo_n "checking if we can lock with hard links... " >&6; }
9287 hard_links=yes
9288 $RM conftest*
9289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9290 touch conftest.a
9291 ln conftest.a conftest.b 2>&5 || hard_links=no
9292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9294 $as_echo "$hard_links" >&6; }
9295 if test "$hard_links" = no; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9297 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9298 need_locks=warn
9299 fi
9300 else
9301 need_locks=no
9302 fi
9303
9304
9305
9306
9307
9308
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9311
9312 runpath_var=
9313 allow_undefined_flag=
9314 always_export_symbols=no
9315 archive_cmds=
9316 archive_expsym_cmds=
9317 compiler_needs_object=no
9318 enable_shared_with_static_runtimes=no
9319 export_dynamic_flag_spec=
9320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9321 hardcode_automatic=no
9322 hardcode_direct=no
9323 hardcode_direct_absolute=no
9324 hardcode_libdir_flag_spec=
9325 hardcode_libdir_flag_spec_ld=
9326 hardcode_libdir_separator=
9327 hardcode_minus_L=no
9328 hardcode_shlibpath_var=unsupported
9329 inherit_rpath=no
9330 link_all_deplibs=unknown
9331 module_cmds=
9332 module_expsym_cmds=
9333 old_archive_from_new_cmds=
9334 old_archive_from_expsyms_cmds=
9335 thread_safe_flag_spec=
9336 whole_archive_flag_spec=
9337 # include_expsyms should be a list of space-separated symbols to be *always*
9338 # included in the symbol list
9339 include_expsyms=
9340 # exclude_expsyms can be an extended regexp of symbols to exclude
9341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9343 # as well as any symbol that contains `d'.
9344 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9346 # platforms (ab)use it in PIC code, but their linkers get confused if
9347 # the symbol is explicitly referenced. Since portable code cannot
9348 # rely on this symbol name, it's probably fine to never include it in
9349 # preloaded symbol tables.
9350 # Exclude shared library initialization/finalization symbols.
9351 extract_expsyms_cmds=
9352
9353 case $host_os in
9354 cygwin* | mingw* | pw32* | cegcc*)
9355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9356 # When not using gcc, we currently assume that we are using
9357 # Microsoft Visual C++.
9358 if test "$GCC" != yes; then
9359 with_gnu_ld=no
9360 fi
9361 ;;
9362 interix*)
9363 # we just hope/assume this is gcc and not c89 (= MSVC++)
9364 with_gnu_ld=yes
9365 ;;
9366 openbsd*)
9367 with_gnu_ld=no
9368 ;;
9369 esac
9370
9371 ld_shlibs=yes
9372
9373 # On some targets, GNU ld is compatible enough with the native linker
9374 # that we're better off using the native interface for both.
9375 lt_use_gnu_ld_interface=no
9376 if test "$with_gnu_ld" = yes; then
9377 case $host_os in
9378 aix*)
9379 # The AIX port of GNU ld has always aspired to compatibility
9380 # with the native linker. However, as the warning in the GNU ld
9381 # block says, versions before 2.19.5* couldn't really create working
9382 # shared libraries, regardless of the interface used.
9383 case `$LD -v 2>&1` in
9384 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9385 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9386 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9387 *)
9388 lt_use_gnu_ld_interface=yes
9389 ;;
9390 esac
9391 ;;
9392 *)
9393 lt_use_gnu_ld_interface=yes
9394 ;;
9395 esac
9396 fi
9397
9398 if test "$lt_use_gnu_ld_interface" = yes; then
9399 # If archive_cmds runs LD, not CC, wlarc should be empty
9400 wlarc='${wl}'
9401
9402 # Set some defaults for GNU ld with shared library support. These
9403 # are reset later if shared libraries are not supported. Putting them
9404 # here allows them to be overridden if necessary.
9405 runpath_var=LD_RUN_PATH
9406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 export_dynamic_flag_spec='${wl}--export-dynamic'
9408 # ancient GNU ld didn't support --whole-archive et. al.
9409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9411 else
9412 whole_archive_flag_spec=
9413 fi
9414 supports_anon_versioning=no
9415 case `$LD -v 2>&1` in
9416 *GNU\ gold*) supports_anon_versioning=yes ;;
9417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9420 *\ 2.11.*) ;; # other 2.11 versions
9421 *) supports_anon_versioning=yes ;;
9422 esac
9423
9424 # See if GNU ld supports shared libraries.
9425 case $host_os in
9426 aix[3-9]*)
9427 # On AIX/PPC, the GNU linker is very broken
9428 if test "$host_cpu" != ia64; then
9429 ld_shlibs=no
9430 cat <<_LT_EOF 1>&2
9431
9432 *** Warning: the GNU linker, at least up to release 2.19, is reported
9433 *** to be unable to reliably create shared libraries on AIX.
9434 *** Therefore, libtool is disabling shared libraries support. If you
9435 *** really care for shared libraries, you may want to install binutils
9436 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9437 *** You will then need to restart the configuration process.
9438
9439 _LT_EOF
9440 fi
9441 ;;
9442
9443 amigaos*)
9444 case $host_cpu in
9445 powerpc)
9446 # see comment about AmigaOS4 .so support
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds=''
9449 ;;
9450 m68k)
9451 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)'
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 hardcode_minus_L=yes
9454 ;;
9455 esac
9456 ;;
9457
9458 beos*)
9459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9460 allow_undefined_flag=unsupported
9461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9462 # support --undefined. This deserves some investigation. FIXME
9463 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 else
9465 ld_shlibs=no
9466 fi
9467 ;;
9468
9469 cygwin* | mingw* | pw32* | cegcc*)
9470 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9471 # as there is no search path for DLLs.
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 export_dynamic_flag_spec='${wl}--export-all-symbols'
9474 allow_undefined_flag=unsupported
9475 always_export_symbols=no
9476 enable_shared_with_static_runtimes=yes
9477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9478
9479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 # If the export-symbols file already is a .def file (1st line
9482 # is EXPORTS), use it as is; otherwise, prepend...
9483 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9484 cp $export_symbols $output_objdir/$soname.def;
9485 else
9486 echo EXPORTS > $output_objdir/$soname.def;
9487 cat $export_symbols >> $output_objdir/$soname.def;
9488 fi~
9489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9490 else
9491 ld_shlibs=no
9492 fi
9493 ;;
9494
9495 haiku*)
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 link_all_deplibs=yes
9498 ;;
9499
9500 interix[3-9]*)
9501 hardcode_direct=no
9502 hardcode_shlibpath_var=no
9503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9504 export_dynamic_flag_spec='${wl}-E'
9505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9506 # Instead, shared libraries are loaded at an image base (0x10000000 by
9507 # default) and relocated if they conflict, which is a slow very memory
9508 # consuming and fragmenting process. To avoid this, we pick a random,
9509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9512 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'
9513 ;;
9514
9515 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9516 tmp_diet=no
9517 if test "$host_os" = linux-dietlibc; then
9518 case $cc_basename in
9519 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9520 esac
9521 fi
9522 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9523 && test "$tmp_diet" = no
9524 then
9525 tmp_addflag=' $pic_flag'
9526 tmp_sharedflag='-shared'
9527 case $cc_basename,$host_cpu in
9528 pgcc*) # Portland Group C compiler
9529 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'
9530 tmp_addflag=' $pic_flag'
9531 ;;
9532 pgf77* | pgf90* | pgf95* | pgfortran*)
9533 # Portland Group f77 and f90 compilers
9534 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'
9535 tmp_addflag=' $pic_flag -Mnomain' ;;
9536 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9537 tmp_addflag=' -i_dynamic' ;;
9538 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9539 tmp_addflag=' -i_dynamic -nofor_main' ;;
9540 ifc* | ifort*) # Intel Fortran compiler
9541 tmp_addflag=' -nofor_main' ;;
9542 lf95*) # Lahey Fortran 8.1
9543 whole_archive_flag_spec=
9544 tmp_sharedflag='--shared' ;;
9545 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9546 tmp_sharedflag='-qmkshrobj'
9547 tmp_addflag= ;;
9548 nvcc*) # Cuda Compiler Driver 2.2
9549 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'
9550 compiler_needs_object=yes
9551 ;;
9552 esac
9553 case `$CC -V 2>&1 | sed 5q` in
9554 *Sun\ C*) # Sun C 5.9
9555 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'
9556 compiler_needs_object=yes
9557 tmp_sharedflag='-G' ;;
9558 *Sun\ F*) # Sun Fortran 8.3
9559 tmp_sharedflag='-G' ;;
9560 esac
9561 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562
9563 if test "x$supports_anon_versioning" = xyes; then
9564 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9566 echo "local: *; };" >> $output_objdir/$libname.ver~
9567 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9568 fi
9569
9570 case $cc_basename in
9571 xlf* | bgf* | bgxlf* | mpixlf*)
9572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9573 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9574 hardcode_libdir_flag_spec=
9575 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9576 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9577 if test "x$supports_anon_versioning" = xyes; then
9578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9580 echo "local: *; };" >> $output_objdir/$libname.ver~
9581 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9582 fi
9583 ;;
9584 esac
9585 else
9586 ld_shlibs=no
9587 fi
9588 ;;
9589
9590 netbsd*)
9591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9593 wlarc=
9594 else
9595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9597 fi
9598 ;;
9599
9600 solaris*)
9601 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9602 ld_shlibs=no
9603 cat <<_LT_EOF 1>&2
9604
9605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9606 *** create shared libraries on Solaris systems. Therefore, libtool
9607 *** is disabling shared libraries support. We urge you to upgrade GNU
9608 *** binutils to release 2.9.1 or newer. Another option is to modify
9609 *** your PATH or compiler configuration so that the native linker is
9610 *** used, and then restart.
9611
9612 _LT_EOF
9613 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9616 else
9617 ld_shlibs=no
9618 fi
9619 ;;
9620
9621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9622 case `$LD -v 2>&1` in
9623 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9624 ld_shlibs=no
9625 cat <<_LT_EOF 1>&2
9626
9627 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9628 *** reliably create shared libraries on SCO systems. Therefore, libtool
9629 *** is disabling shared libraries support. We urge you to upgrade GNU
9630 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9631 *** your PATH or compiler configuration so that the native linker is
9632 *** used, and then restart.
9633
9634 _LT_EOF
9635 ;;
9636 *)
9637 # For security reasons, it is highly recommended that you always
9638 # use absolute paths for naming shared libraries, and exclude the
9639 # DT_RUNPATH tag from executables and libraries. But doing so
9640 # requires that you compile everything twice, which is a pain.
9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645 else
9646 ld_shlibs=no
9647 fi
9648 ;;
9649 esac
9650 ;;
9651
9652 sunos4*)
9653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9654 wlarc=
9655 hardcode_direct=yes
9656 hardcode_shlibpath_var=no
9657 ;;
9658
9659 *)
9660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9663 else
9664 ld_shlibs=no
9665 fi
9666 ;;
9667 esac
9668
9669 if test "$ld_shlibs" = no; then
9670 runpath_var=
9671 hardcode_libdir_flag_spec=
9672 export_dynamic_flag_spec=
9673 whole_archive_flag_spec=
9674 fi
9675 else
9676 # PORTME fill in a description of your system's linker (not GNU ld)
9677 case $host_os in
9678 aix3*)
9679 allow_undefined_flag=unsupported
9680 always_export_symbols=yes
9681 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'
9682 # Note: this linker hardcodes the directories in LIBPATH if there
9683 # are no directories specified by -L.
9684 hardcode_minus_L=yes
9685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9686 # Neither direct hardcoding nor static linking is supported with a
9687 # broken collect2.
9688 hardcode_direct=unsupported
9689 fi
9690 ;;
9691
9692 aix[4-9]*)
9693 if test "$host_cpu" = ia64; then
9694 # On IA64, the linker does run time linking by default, so we don't
9695 # have to do anything special.
9696 aix_use_runtimelinking=no
9697 exp_sym_flag='-Bexport'
9698 no_entry_flag=""
9699 else
9700 # If we're using GNU nm, then we don't want the "-C" option.
9701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9702 # Also, AIX nm treats weak defined symbols like other global
9703 # defined symbols, whereas GNU nm marks them as "W".
9704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9705 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'
9706 else
9707 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'
9708 fi
9709 aix_use_runtimelinking=no
9710
9711 # Test if we are trying to use run time linking or normal
9712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9713 # need to do runtime linking.
9714 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9715 for ld_flag in $LDFLAGS; do
9716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9717 aix_use_runtimelinking=yes
9718 break
9719 fi
9720 done
9721 ;;
9722 esac
9723
9724 exp_sym_flag='-bexport'
9725 no_entry_flag='-bnoentry'
9726 fi
9727
9728 # When large executables or shared objects are built, AIX ld can
9729 # have problems creating the table of contents. If linking a library
9730 # or program results in "error TOC overflow" add -mminimal-toc to
9731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9733
9734 archive_cmds=''
9735 hardcode_direct=yes
9736 hardcode_direct_absolute=yes
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 file_list_spec='${wl}-f,'
9740
9741 if test "$GCC" = yes; then
9742 case $host_os in aix4.[012]|aix4.[012].*)
9743 # We only want to do this on AIX 4.2 and lower, the check
9744 # below for broken collect2 doesn't work under 4.3+
9745 collect2name=`${CC} -print-prog-name=collect2`
9746 if test -f "$collect2name" &&
9747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9748 then
9749 # We have reworked collect2
9750 :
9751 else
9752 # We have old collect2
9753 hardcode_direct=unsupported
9754 # It fails to find uninstalled libraries when the uninstalled
9755 # path is not listed in the libpath. Setting hardcode_minus_L
9756 # to unsupported forces relinking
9757 hardcode_minus_L=yes
9758 hardcode_libdir_flag_spec='-L$libdir'
9759 hardcode_libdir_separator=
9760 fi
9761 ;;
9762 esac
9763 shared_flag='-shared'
9764 if test "$aix_use_runtimelinking" = yes; then
9765 shared_flag="$shared_flag "'${wl}-G'
9766 fi
9767 else
9768 # not using gcc
9769 if test "$host_cpu" = ia64; then
9770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9771 # chokes on -Wl,-G. The following line is correct:
9772 shared_flag='-G'
9773 else
9774 if test "$aix_use_runtimelinking" = yes; then
9775 shared_flag='${wl}-G'
9776 else
9777 shared_flag='${wl}-bM:SRE'
9778 fi
9779 fi
9780 fi
9781
9782 export_dynamic_flag_spec='${wl}-bexpall'
9783 # It seems that -bexpall does not export symbols beginning with
9784 # underscore (_), so it is better to generate a list of symbols to export.
9785 always_export_symbols=yes
9786 if test "$aix_use_runtimelinking" = yes; then
9787 # Warning - without using the other runtime loading flags (-brtl),
9788 # -berok will link without error, but may produce a broken library.
9789 allow_undefined_flag='-berok'
9790 # Determine the default libpath from the value encoded in an
9791 # empty executable.
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794
9795 int
9796 main ()
9797 {
9798
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804
9805 lt_aix_libpath_sed='
9806 /Import File Strings/,/^$/ {
9807 /^0/ {
9808 s/^0 *\(.*\)$/\1/
9809 p
9810 }
9811 }'
9812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9813 # Check for a 64-bit object if we didn't find anything.
9814 if test -z "$aix_libpath"; then
9815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9816 fi
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9821
9822 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9823 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"
9824 else
9825 if test "$host_cpu" = ia64; then
9826 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9827 allow_undefined_flag="-z nodefs"
9828 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"
9829 else
9830 # Determine the default libpath from the value encoded in an
9831 # empty executable.
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834
9835 int
9836 main ()
9837 {
9838
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844
9845 lt_aix_libpath_sed='
9846 /Import File Strings/,/^$/ {
9847 /^0/ {
9848 s/^0 *\(.*\)$/\1/
9849 p
9850 }
9851 }'
9852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 # Check for a 64-bit object if we didn't find anything.
9854 if test -z "$aix_libpath"; then
9855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856 fi
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9861
9862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9863 # Warning - without using the other run time loading flags,
9864 # -berok will link without error, but may produce a broken library.
9865 no_undefined_flag=' ${wl}-bernotok'
9866 allow_undefined_flag=' ${wl}-berok'
9867 if test "$with_gnu_ld" = yes; then
9868 # We only use this code for GNU lds that support --whole-archive.
9869 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9870 else
9871 # Exported symbols can be pulled into shared objects from archives
9872 whole_archive_flag_spec='$convenience'
9873 fi
9874 archive_cmds_need_lc=yes
9875 # This is similar to how AIX traditionally builds its shared libraries.
9876 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'
9877 fi
9878 fi
9879 ;;
9880
9881 amigaos*)
9882 case $host_cpu in
9883 powerpc)
9884 # see comment about AmigaOS4 .so support
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds=''
9887 ;;
9888 m68k)
9889 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)'
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_minus_L=yes
9892 ;;
9893 esac
9894 ;;
9895
9896 bsdi[45]*)
9897 export_dynamic_flag_spec=-rdynamic
9898 ;;
9899
9900 cygwin* | mingw* | pw32* | cegcc*)
9901 # When not using gcc, we currently assume that we are using
9902 # Microsoft Visual C++.
9903 # hardcode_libdir_flag_spec is actually meaningless, as there is
9904 # no search path for DLLs.
9905 hardcode_libdir_flag_spec=' '
9906 allow_undefined_flag=unsupported
9907 # Tell ltmain to make .lib files, not .a files.
9908 libext=lib
9909 # Tell ltmain to make .dll files, not .so files.
9910 shrext_cmds=".dll"
9911 # FIXME: Setting linknames here is a bad hack.
9912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9913 # The linker will automatically build a .lib file if we build a DLL.
9914 old_archive_from_new_cmds='true'
9915 # FIXME: Should let the user specify the lib program.
9916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9917 fix_srcfile_path='`cygpath -w "$srcfile"`'
9918 enable_shared_with_static_runtimes=yes
9919 ;;
9920
9921 darwin* | rhapsody*)
9922
9923
9924 archive_cmds_need_lc=no
9925 hardcode_direct=no
9926 hardcode_automatic=yes
9927 hardcode_shlibpath_var=unsupported
9928 if test "$lt_cv_ld_force_load" = "yes"; then
9929 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\"`'
9930 else
9931 whole_archive_flag_spec=''
9932 fi
9933 link_all_deplibs=yes
9934 allow_undefined_flag="$_lt_dar_allow_undefined"
9935 case $cc_basename in
9936 ifort*) _lt_dar_can_shared=yes ;;
9937 *) _lt_dar_can_shared=$GCC ;;
9938 esac
9939 if test "$_lt_dar_can_shared" = "yes"; then
9940 output_verbose_link_cmd=func_echo_all
9941 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9942 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9943 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}"
9944 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}"
9945
9946 else
9947 ld_shlibs=no
9948 fi
9949
9950 ;;
9951
9952 dgux*)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_shlibpath_var=no
9956 ;;
9957
9958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9959 # support. Future versions do this automatically, but an explicit c++rt0.o
9960 # does not break anything, and helps significantly (at the cost of a little
9961 # extra space).
9962 freebsd2.2*)
9963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9970 freebsd2.*)
9971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes
9973 hardcode_minus_L=yes
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9978 freebsd* | dragonfly*)
9979 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9980 hardcode_libdir_flag_spec='-R$libdir'
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 hpux9*)
9986 if test "$GCC" = yes; then
9987 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'
9988 else
9989 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'
9990 fi
9991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992 hardcode_libdir_separator=:
9993 hardcode_direct=yes
9994
9995 # hardcode_minus_L: Not really in the search PATH,
9996 # but as the default location of the library.
9997 hardcode_minus_L=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 ;;
10000
10001 hpux10*)
10002 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10004 else
10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10006 fi
10007 if test "$with_gnu_ld" = no; then
10008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10009 hardcode_libdir_flag_spec_ld='+b $libdir'
10010 hardcode_libdir_separator=:
10011 hardcode_direct=yes
10012 hardcode_direct_absolute=yes
10013 export_dynamic_flag_spec='${wl}-E'
10014 # hardcode_minus_L: Not really in the search PATH,
10015 # but as the default location of the library.
10016 hardcode_minus_L=yes
10017 fi
10018 ;;
10019
10020 hpux11*)
10021 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10022 case $host_cpu in
10023 hppa*64*)
10024 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 ia64*)
10027 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 *)
10030 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10031 ;;
10032 esac
10033 else
10034 case $host_cpu in
10035 hppa*64*)
10036 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 ;;
10038 ia64*)
10039 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10040 ;;
10041 *)
10042
10043 # Older versions of the 11.00 compiler do not understand -b yet
10044 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10046 $as_echo_n "checking if $CC understands -b... " >&6; }
10047 if ${lt_cv_prog_compiler__b+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 lt_cv_prog_compiler__b=no
10051 save_LDFLAGS="$LDFLAGS"
10052 LDFLAGS="$LDFLAGS -b"
10053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10055 # The linker can only warn and ignore the option if not recognized
10056 # So say no if there are warnings
10057 if test -s conftest.err; then
10058 # Append any errors to the config.log.
10059 cat conftest.err 1>&5
10060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10062 if diff conftest.exp conftest.er2 >/dev/null; then
10063 lt_cv_prog_compiler__b=yes
10064 fi
10065 else
10066 lt_cv_prog_compiler__b=yes
10067 fi
10068 fi
10069 $RM -r conftest*
10070 LDFLAGS="$save_LDFLAGS"
10071
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10074 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10075
10076 if test x"$lt_cv_prog_compiler__b" = xyes; then
10077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10078 else
10079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10080 fi
10081
10082 ;;
10083 esac
10084 fi
10085 if test "$with_gnu_ld" = no; then
10086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10087 hardcode_libdir_separator=:
10088
10089 case $host_cpu in
10090 hppa*64*|ia64*)
10091 hardcode_direct=no
10092 hardcode_shlibpath_var=no
10093 ;;
10094 *)
10095 hardcode_direct=yes
10096 hardcode_direct_absolute=yes
10097 export_dynamic_flag_spec='${wl}-E'
10098
10099 # hardcode_minus_L: Not really in the search PATH,
10100 # but as the default location of the library.
10101 hardcode_minus_L=yes
10102 ;;
10103 esac
10104 fi
10105 ;;
10106
10107 irix5* | irix6* | nonstopux*)
10108 if test "$GCC" = yes; then
10109 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'
10110 # Try to use the -exported_symbol ld option, if it does not
10111 # work, assume that -exports_file does not work either and
10112 # implicitly export all symbols.
10113 save_LDFLAGS="$LDFLAGS"
10114 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117 int foo(void) {}
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"; then :
10120 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'
10121
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LDFLAGS="$save_LDFLAGS"
10126 else
10127 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'
10128 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'
10129 fi
10130 archive_cmds_need_lc='no'
10131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132 hardcode_libdir_separator=:
10133 inherit_rpath=yes
10134 link_all_deplibs=yes
10135 ;;
10136
10137 netbsd*)
10138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10140 else
10141 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10142 fi
10143 hardcode_libdir_flag_spec='-R$libdir'
10144 hardcode_direct=yes
10145 hardcode_shlibpath_var=no
10146 ;;
10147
10148 newsos6)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes
10151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10152 hardcode_libdir_separator=:
10153 hardcode_shlibpath_var=no
10154 ;;
10155
10156 *nto* | *qnx*)
10157 ;;
10158
10159 openbsd*)
10160 if test -f /usr/libexec/ld.so; then
10161 hardcode_direct=yes
10162 hardcode_shlibpath_var=no
10163 hardcode_direct_absolute=yes
10164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10168 export_dynamic_flag_spec='${wl}-E'
10169 else
10170 case $host_os in
10171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_libdir_flag_spec='-R$libdir'
10174 ;;
10175 *)
10176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10178 ;;
10179 esac
10180 fi
10181 else
10182 ld_shlibs=no
10183 fi
10184 ;;
10185
10186 os2*)
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_minus_L=yes
10189 allow_undefined_flag=unsupported
10190 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'
10191 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10192 ;;
10193
10194 osf3*)
10195 if test "$GCC" = yes; then
10196 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10197 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'
10198 else
10199 allow_undefined_flag=' -expect_unresolved \*'
10200 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'
10201 fi
10202 archive_cmds_need_lc='no'
10203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10204 hardcode_libdir_separator=:
10205 ;;
10206
10207 osf4* | osf5*) # as osf3* with the addition of -msym flag
10208 if test "$GCC" = yes; then
10209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10210 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'
10211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212 else
10213 allow_undefined_flag=' -expect_unresolved \*'
10214 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'
10215 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~
10216 $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'
10217
10218 # Both c and cxx compiler support -rpath directly
10219 hardcode_libdir_flag_spec='-rpath $libdir'
10220 fi
10221 archive_cmds_need_lc='no'
10222 hardcode_libdir_separator=:
10223 ;;
10224
10225 solaris*)
10226 no_undefined_flag=' -z defs'
10227 if test "$GCC" = yes; then
10228 wlarc='${wl}'
10229 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10231 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10232 else
10233 case `$CC -V 2>&1` in
10234 *"Compilers 5.0"*)
10235 wlarc=''
10236 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10239 ;;
10240 *)
10241 wlarc='${wl}'
10242 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10245 ;;
10246 esac
10247 fi
10248 hardcode_libdir_flag_spec='-R$libdir'
10249 hardcode_shlibpath_var=no
10250 case $host_os in
10251 solaris2.[0-5] | solaris2.[0-5].*) ;;
10252 *)
10253 # The compiler driver will combine and reorder linker options,
10254 # but understands `-z linker_flag'. GCC discards it without `$wl',
10255 # but is careful enough not to reorder.
10256 # Supported since Solaris 2.6 (maybe 2.5.1?)
10257 if test "$GCC" = yes; then
10258 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10259 else
10260 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10261 fi
10262 ;;
10263 esac
10264 link_all_deplibs=yes
10265 ;;
10266
10267 sunos4*)
10268 if test "x$host_vendor" = xsequent; then
10269 # Use $CC to link under sequent, because it throws in some extra .o
10270 # files that make .init and .fini sections work.
10271 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10272 else
10273 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10274 fi
10275 hardcode_libdir_flag_spec='-L$libdir'
10276 hardcode_direct=yes
10277 hardcode_minus_L=yes
10278 hardcode_shlibpath_var=no
10279 ;;
10280
10281 sysv4)
10282 case $host_vendor in
10283 sni)
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_direct=yes # is this really true???
10286 ;;
10287 siemens)
10288 ## LD is ld it makes a PLAMLIB
10289 ## CC just makes a GrossModule.
10290 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10291 reload_cmds='$CC -r -o $output$reload_objs'
10292 hardcode_direct=no
10293 ;;
10294 motorola)
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10297 ;;
10298 esac
10299 runpath_var='LD_RUN_PATH'
10300 hardcode_shlibpath_var=no
10301 ;;
10302
10303 sysv4.3*)
10304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_shlibpath_var=no
10306 export_dynamic_flag_spec='-Bexport'
10307 ;;
10308
10309 sysv4*MP*)
10310 if test -d /usr/nec; then
10311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_shlibpath_var=no
10313 runpath_var=LD_RUN_PATH
10314 hardcode_runpath_var=yes
10315 ld_shlibs=yes
10316 fi
10317 ;;
10318
10319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10320 no_undefined_flag='${wl}-z,text'
10321 archive_cmds_need_lc=no
10322 hardcode_shlibpath_var=no
10323 runpath_var='LD_RUN_PATH'
10324
10325 if test "$GCC" = yes; then
10326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 else
10329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 fi
10332 ;;
10333
10334 sysv5* | sco3.2v5* | sco5v6*)
10335 # Note: We can NOT use -z defs as we might desire, because we do not
10336 # link with -lc, and that would cause any symbols used from libc to
10337 # always be unresolved, which means just about no library would
10338 # ever link correctly. If we're not using GNU ld we use -z text
10339 # though, which does catch some bad symbols but isn't as heavy-handed
10340 # as -z defs.
10341 no_undefined_flag='${wl}-z,text'
10342 allow_undefined_flag='${wl}-z,nodefs'
10343 archive_cmds_need_lc=no
10344 hardcode_shlibpath_var=no
10345 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10346 hardcode_libdir_separator=':'
10347 link_all_deplibs=yes
10348 export_dynamic_flag_spec='${wl}-Bexport'
10349 runpath_var='LD_RUN_PATH'
10350
10351 if test "$GCC" = yes; then
10352 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 else
10355 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 fi
10358 ;;
10359
10360 uts4*)
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_libdir_flag_spec='-L$libdir'
10363 hardcode_shlibpath_var=no
10364 ;;
10365
10366 *)
10367 ld_shlibs=no
10368 ;;
10369 esac
10370
10371 if test x$host_vendor = xsni; then
10372 case $host in
10373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10374 export_dynamic_flag_spec='${wl}-Blargedynsym'
10375 ;;
10376 esac
10377 fi
10378 fi
10379
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10381 $as_echo "$ld_shlibs" >&6; }
10382 test "$ld_shlibs" = no && can_build_shared=no
10383
10384 with_gnu_ld=$with_gnu_ld
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400 #
10401 # Do we need to explicitly link libc?
10402 #
10403 case "x$archive_cmds_need_lc" in
10404 x|xyes)
10405 # Assume -lc should be added
10406 archive_cmds_need_lc=yes
10407
10408 if test "$enable_shared" = yes && test "$GCC" = yes; then
10409 case $archive_cmds in
10410 *'~'*)
10411 # FIXME: we may have to deal with multi-command sequences.
10412 ;;
10413 '$CC '*)
10414 # Test whether the compiler implicitly links with -lc since on some
10415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10416 # to ld, don't add -lc before -lgcc.
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10419 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 $RM conftest*
10423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10424
10425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10426 (eval $ac_compile) 2>&5
10427 ac_status=$?
10428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10429 test $ac_status = 0; } 2>conftest.err; then
10430 soname=conftest
10431 lib=conftest
10432 libobjs=conftest.$ac_objext
10433 deplibs=
10434 wl=$lt_prog_compiler_wl
10435 pic_flag=$lt_prog_compiler_pic
10436 compiler_flags=-v
10437 linker_flags=-v
10438 verstring=
10439 output_objdir=.
10440 libname=conftest
10441 lt_save_allow_undefined_flag=$allow_undefined_flag
10442 allow_undefined_flag=
10443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10445 ac_status=$?
10446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10447 test $ac_status = 0; }
10448 then
10449 lt_cv_archive_cmds_need_lc=no
10450 else
10451 lt_cv_archive_cmds_need_lc=yes
10452 fi
10453 allow_undefined_flag=$lt_save_allow_undefined_flag
10454 else
10455 cat conftest.err 1>&5
10456 fi
10457 $RM conftest*
10458
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10461 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10462 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10463 ;;
10464 esac
10465 fi
10466 ;;
10467 esac
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10627
10628 if test "$GCC" = yes; then
10629 case $host_os in
10630 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10631 *) lt_awk_arg="/^libraries:/" ;;
10632 esac
10633 case $host_os in
10634 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10635 *) lt_sed_strip_eq="s,=/,/,g" ;;
10636 esac
10637 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10638 case $lt_search_path_spec in
10639 *\;*)
10640 # if the path contains ";" then we assume it to be the separator
10641 # otherwise default to the standard path separator (i.e. ":") - it is
10642 # assumed that no part of a normal pathname contains ";" but that should
10643 # okay in the real world where ";" in dirpaths is itself problematic.
10644 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10645 ;;
10646 *)
10647 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10648 ;;
10649 esac
10650 # Ok, now we have the path, separated by spaces, we can step through it
10651 # and add multilib dir if necessary.
10652 lt_tmp_lt_search_path_spec=
10653 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10654 for lt_sys_path in $lt_search_path_spec; do
10655 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10657 else
10658 test -d "$lt_sys_path" && \
10659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10660 fi
10661 done
10662 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10663 BEGIN {RS=" "; FS="/|\n";} {
10664 lt_foo="";
10665 lt_count=0;
10666 for (lt_i = NF; lt_i > 0; lt_i--) {
10667 if ($lt_i != "" && $lt_i != ".") {
10668 if ($lt_i == "..") {
10669 lt_count++;
10670 } else {
10671 if (lt_count == 0) {
10672 lt_foo="/" $lt_i lt_foo;
10673 } else {
10674 lt_count--;
10675 }
10676 }
10677 }
10678 }
10679 if (lt_foo != "") { lt_freq[lt_foo]++; }
10680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10681 }'`
10682 # AWK program above erroneously prepends '/' to C:/dos/paths
10683 # for these hosts.
10684 case $host_os in
10685 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10686 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10687 esac
10688 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10689 else
10690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10691 fi
10692 library_names_spec=
10693 libname_spec='lib$name'
10694 soname_spec=
10695 shrext_cmds=".so"
10696 postinstall_cmds=
10697 postuninstall_cmds=
10698 finish_cmds=
10699 finish_eval=
10700 shlibpath_var=
10701 shlibpath_overrides_runpath=unknown
10702 version_type=none
10703 dynamic_linker="$host_os ld.so"
10704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10705 need_lib_prefix=unknown
10706 hardcode_into_libs=no
10707
10708 # when you set need_version to no, make sure it does not cause -set_version
10709 # flags to be left without arguments
10710 need_version=unknown
10711
10712 case $host_os in
10713 aix3*)
10714 version_type=linux
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10716 shlibpath_var=LIBPATH
10717
10718 # AIX 3 has no versioning support, so we append a major version to the name.
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 ;;
10721
10722 aix[4-9]*)
10723 version_type=linux
10724 need_lib_prefix=no
10725 need_version=no
10726 hardcode_into_libs=yes
10727 if test "$host_cpu" = ia64; then
10728 # AIX 5 supports IA64
10729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 else
10732 # With GCC up to 2.95.x, collect2 would create an import file
10733 # for dependence libraries. The import file would start with
10734 # the line `#! .'. This would cause the generated library to
10735 # depend on `.', always an invalid library. This was fixed in
10736 # development snapshots of GCC prior to 3.0.
10737 case $host_os in
10738 aix4 | aix4.[01] | aix4.[01].*)
10739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10740 echo ' yes '
10741 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10742 :
10743 else
10744 can_build_shared=no
10745 fi
10746 ;;
10747 esac
10748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10749 # soname into executable. Probably we can add versioning support to
10750 # collect2, so additional links can be useful in future.
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10753 # instead of lib<name>.a to let people know that these are not
10754 # typical AIX shared libraries.
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 else
10757 # We preserve .a as extension for shared libraries through AIX4.2
10758 # and later when we are not doing run time linking.
10759 library_names_spec='${libname}${release}.a $libname.a'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 fi
10762 shlibpath_var=LIBPATH
10763 fi
10764 ;;
10765
10766 amigaos*)
10767 case $host_cpu in
10768 powerpc)
10769 # Since July 2007 AmigaOS4 officially supports .so libraries.
10770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 ;;
10773 m68k)
10774 library_names_spec='$libname.ixlibrary $libname.a'
10775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10776 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'
10777 ;;
10778 esac
10779 ;;
10780
10781 beos*)
10782 library_names_spec='${libname}${shared_ext}'
10783 dynamic_linker="$host_os ld.so"
10784 shlibpath_var=LIBRARY_PATH
10785 ;;
10786
10787 bsdi[45]*)
10788 version_type=linux
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10796 # the default ld.so.conf also contains /usr/contrib/lib and
10797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10798 # libtool to hard-code these into programs
10799 ;;
10800
10801 cygwin* | mingw* | pw32* | cegcc*)
10802 version_type=windows
10803 shrext_cmds=".dll"
10804 need_version=no
10805 need_lib_prefix=no
10806
10807 case $GCC,$host_os in
10808 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10809 library_names_spec='$libname.dll.a'
10810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10811 postinstall_cmds='base_file=`basename \${file}`~
10812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10813 dldir=$destdir/`dirname \$dlpath`~
10814 test -d \$dldir || mkdir -p \$dldir~
10815 $install_prog $dir/$dlname \$dldir/$dlname~
10816 chmod a+x \$dldir/$dlname~
10817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10819 fi'
10820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10821 dlpath=$dir/\$dldll~
10822 $RM \$dlpath'
10823 shlibpath_overrides_runpath=yes
10824
10825 case $host_os in
10826 cygwin*)
10827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829
10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10831 ;;
10832 mingw* | cegcc*)
10833 # MinGW DLLs use traditional 'lib' prefix
10834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10835 ;;
10836 pw32*)
10837 # pw32 DLLs use 'pw' prefix rather than 'lib'
10838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839 ;;
10840 esac
10841 ;;
10842
10843 *)
10844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10845 ;;
10846 esac
10847 dynamic_linker='Win32 ld.exe'
10848 # FIXME: first we should search . and the directory the executable is in
10849 shlibpath_var=PATH
10850 ;;
10851
10852 darwin* | rhapsody*)
10853 dynamic_linker="$host_os dyld"
10854 version_type=darwin
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10858 soname_spec='${libname}${release}${major}$shared_ext'
10859 shlibpath_overrides_runpath=yes
10860 shlibpath_var=DYLD_LIBRARY_PATH
10861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10862
10863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10865 ;;
10866
10867 dgux*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 ;;
10875
10876 freebsd* | dragonfly*)
10877 # DragonFly does not have aout. When/if they implement a new
10878 # versioning mechanism, adjust this.
10879 if test -x /usr/bin/objformat; then
10880 objformat=`/usr/bin/objformat`
10881 else
10882 case $host_os in
10883 freebsd[23].*) objformat=aout ;;
10884 *) objformat=elf ;;
10885 esac
10886 fi
10887 version_type=freebsd-$objformat
10888 case $version_type in
10889 freebsd-elf*)
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10891 need_version=no
10892 need_lib_prefix=no
10893 ;;
10894 freebsd-*)
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10896 need_version=yes
10897 ;;
10898 esac
10899 shlibpath_var=LD_LIBRARY_PATH
10900 case $host_os in
10901 freebsd2.*)
10902 shlibpath_overrides_runpath=yes
10903 ;;
10904 freebsd3.[01]* | freebsdelf3.[01]*)
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 ;;
10908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10910 shlibpath_overrides_runpath=no
10911 hardcode_into_libs=yes
10912 ;;
10913 *) # from 4.6 on, and DragonFly
10914 shlibpath_overrides_runpath=yes
10915 hardcode_into_libs=yes
10916 ;;
10917 esac
10918 ;;
10919
10920 gnu*)
10921 version_type=linux
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 hardcode_into_libs=yes
10928 ;;
10929
10930 haiku*)
10931 version_type=linux
10932 need_lib_prefix=no
10933 need_version=no
10934 dynamic_linker="$host_os runtime_loader"
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes
10939 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10940 hardcode_into_libs=yes
10941 ;;
10942
10943 hpux9* | hpux10* | hpux11*)
10944 # Give a soname corresponding to the major version so that dld.sl refuses to
10945 # link against other versions.
10946 version_type=sunos
10947 need_lib_prefix=no
10948 need_version=no
10949 case $host_cpu in
10950 ia64*)
10951 shrext_cmds='.so'
10952 hardcode_into_libs=yes
10953 dynamic_linker="$host_os dld.so"
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 if test "X$HPUX_IA64_MODE" = X32; then
10959 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10960 else
10961 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10962 fi
10963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 ;;
10965 hppa*64*)
10966 shrext_cmds='.sl'
10967 hardcode_into_libs=yes
10968 dynamic_linker="$host_os dld.sl"
10969 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975 ;;
10976 *)
10977 shrext_cmds='.sl'
10978 dynamic_linker="$host_os dld.sl"
10979 shlibpath_var=SHLIB_PATH
10980 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 ;;
10984 esac
10985 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10986 postinstall_cmds='chmod 555 $lib'
10987 # or fails outright, so override atomically:
10988 install_override_mode=555
10989 ;;
10990
10991 interix[3-9]*)
10992 version_type=linux
10993 need_lib_prefix=no
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=no
11000 hardcode_into_libs=yes
11001 ;;
11002
11003 irix5* | irix6* | nonstopux*)
11004 case $host_os in
11005 nonstopux*) version_type=nonstopux ;;
11006 *)
11007 if test "$lt_cv_prog_gnu_ld" = yes; then
11008 version_type=linux
11009 else
11010 version_type=irix
11011 fi ;;
11012 esac
11013 need_lib_prefix=no
11014 need_version=no
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11017 case $host_os in
11018 irix5* | nonstopux*)
11019 libsuff= shlibsuff=
11020 ;;
11021 *)
11022 case $LD in # libtool.m4 will add one of these switches to LD
11023 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11024 libsuff= shlibsuff= libmagic=32-bit;;
11025 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11026 libsuff=32 shlibsuff=N32 libmagic=N32;;
11027 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11028 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11029 *) libsuff= shlibsuff= libmagic=never-match;;
11030 esac
11031 ;;
11032 esac
11033 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11034 shlibpath_overrides_runpath=no
11035 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11036 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11037 hardcode_into_libs=yes
11038 ;;
11039
11040 # No shared lib support for Linux oldld, aout, or coff.
11041 linux*oldld* | linux*aout* | linux*coff*)
11042 dynamic_linker=no
11043 ;;
11044
11045 # This must be Linux ELF.
11046
11047 # uclinux* changes (here and below) have been submitted to the libtool
11048 # project, but have not yet been accepted: they are GCC-local changes
11049 # for the time being. (See
11050 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11051 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11052 version_type=linux
11053 need_lib_prefix=no
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060
11061 # Some binutils ld are patched to set DT_RUNPATH
11062 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 lt_cv_shlibpath_overrides_runpath=no
11066 save_LDFLAGS=$LDFLAGS
11067 save_libdir=$libdir
11068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072
11073 int
11074 main ()
11075 {
11076
11077 ;
11078 return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11083 lt_cv_shlibpath_overrides_runpath=yes
11084 fi
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LDFLAGS=$save_LDFLAGS
11089 libdir=$save_libdir
11090
11091 fi
11092
11093 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11094
11095 # This implies no fast_install, which is unacceptable.
11096 # Some rework will be needed to allow for fast_install
11097 # before this can be enabled.
11098 hardcode_into_libs=yes
11099
11100 # Append ld.so.conf contents to the search path
11101 if test -f /etc/ld.so.conf; then
11102 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' ' '`
11103 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11104 fi
11105
11106 # We used to test for /lib/ld.so.1 and disable shared libraries on
11107 # powerpc, because MkLinux only supported shared libraries with the
11108 # GNU dynamic linker. Since this was broken with cross compilers,
11109 # most powerpc-linux boxes support dynamic linking these days and
11110 # people can always --disable-shared, the test was removed, and we
11111 # assume the GNU/Linux dynamic linker is in use.
11112 dynamic_linker='GNU/Linux ld.so'
11113 ;;
11114
11115 netbsd*)
11116 version_type=sunos
11117 need_lib_prefix=no
11118 need_version=no
11119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 dynamic_linker='NetBSD (a.out) ld.so'
11123 else
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 dynamic_linker='NetBSD ld.elf_so'
11127 fi
11128 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11131 ;;
11132
11133 newsos6)
11134 version_type=linux
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 ;;
11139
11140 *nto* | *qnx*)
11141 version_type=qnx
11142 need_lib_prefix=no
11143 need_version=no
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=no
11148 hardcode_into_libs=yes
11149 dynamic_linker='ldqnx.so'
11150 ;;
11151
11152 openbsd*)
11153 version_type=sunos
11154 sys_lib_dlsearch_path_spec="/usr/lib"
11155 need_lib_prefix=no
11156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11157 case $host_os in
11158 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11159 *) need_version=no ;;
11160 esac
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11165 case $host_os in
11166 openbsd2.[89] | openbsd2.[89].*)
11167 shlibpath_overrides_runpath=no
11168 ;;
11169 *)
11170 shlibpath_overrides_runpath=yes
11171 ;;
11172 esac
11173 else
11174 shlibpath_overrides_runpath=yes
11175 fi
11176 ;;
11177
11178 os2*)
11179 libname_spec='$name'
11180 shrext_cmds=".dll"
11181 need_lib_prefix=no
11182 library_names_spec='$libname${shared_ext} $libname.a'
11183 dynamic_linker='OS/2 ld.exe'
11184 shlibpath_var=LIBPATH
11185 ;;
11186
11187 osf3* | osf4* | osf5*)
11188 version_type=osf
11189 need_lib_prefix=no
11190 need_version=no
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11195 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11196 ;;
11197
11198 rdos*)
11199 dynamic_linker=no
11200 ;;
11201
11202 solaris*)
11203 version_type=linux
11204 need_lib_prefix=no
11205 need_version=no
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 shlibpath_overrides_runpath=yes
11210 hardcode_into_libs=yes
11211 # ldd complains unless libraries are executable
11212 postinstall_cmds='chmod +x $lib'
11213 ;;
11214
11215 sunos4*)
11216 version_type=sunos
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 if test "$with_gnu_ld" = yes; then
11222 need_lib_prefix=no
11223 fi
11224 need_version=yes
11225 ;;
11226
11227 sysv4 | sysv4.3*)
11228 version_type=linux
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 case $host_vendor in
11233 sni)
11234 shlibpath_overrides_runpath=no
11235 need_lib_prefix=no
11236 runpath_var=LD_RUN_PATH
11237 ;;
11238 siemens)
11239 need_lib_prefix=no
11240 ;;
11241 motorola)
11242 need_lib_prefix=no
11243 need_version=no
11244 shlibpath_overrides_runpath=no
11245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11246 ;;
11247 esac
11248 ;;
11249
11250 sysv4*MP*)
11251 if test -d /usr/nec ;then
11252 version_type=linux
11253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11254 soname_spec='$libname${shared_ext}.$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 fi
11257 ;;
11258
11259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11260 version_type=freebsd-elf
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11267 hardcode_into_libs=yes
11268 if test "$with_gnu_ld" = yes; then
11269 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11270 else
11271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11272 case $host_os in
11273 sco3.2v5*)
11274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11275 ;;
11276 esac
11277 fi
11278 sys_lib_dlsearch_path_spec='/usr/lib'
11279 ;;
11280
11281 tpf*)
11282 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11283 version_type=linux
11284 need_lib_prefix=no
11285 need_version=no
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11290 ;;
11291
11292 uts4*)
11293 version_type=linux
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 ;;
11298
11299 *)
11300 dynamic_linker=no
11301 ;;
11302 esac
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11304 $as_echo "$dynamic_linker" >&6; }
11305 test "$dynamic_linker" = no && can_build_shared=no
11306
11307 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11308 if test "$GCC" = yes; then
11309 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11310 fi
11311
11312 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11313 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11314 fi
11315 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11316 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11317 fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11412 hardcode_action=
11413 if test -n "$hardcode_libdir_flag_spec" ||
11414 test -n "$runpath_var" ||
11415 test "X$hardcode_automatic" = "Xyes" ; then
11416
11417 # We can hardcode non-existent directories.
11418 if test "$hardcode_direct" != no &&
11419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11420 # have to relink, otherwise we might link with an installed library
11421 # when we should be linking with a yet-to-be-installed one
11422 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11423 test "$hardcode_minus_L" != no; then
11424 # Linking always hardcodes the temporary library directory.
11425 hardcode_action=relink
11426 else
11427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11428 hardcode_action=immediate
11429 fi
11430 else
11431 # We cannot hardcode anything, or else we can only hardcode existing
11432 # directories.
11433 hardcode_action=unsupported
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11436 $as_echo "$hardcode_action" >&6; }
11437
11438 if test "$hardcode_action" = relink ||
11439 test "$inherit_rpath" = yes; then
11440 # Fast installation is not supported
11441 enable_fast_install=no
11442 elif test "$shlibpath_overrides_runpath" = yes ||
11443 test "$enable_shared" = no; then
11444 # Fast installation is not necessary
11445 enable_fast_install=needless
11446 fi
11447
11448
11449
11450
11451
11452
11453 if test "x$enable_dlopen" != xyes; then
11454 enable_dlopen=unknown
11455 enable_dlopen_self=unknown
11456 enable_dlopen_self_static=unknown
11457 else
11458 lt_cv_dlopen=no
11459 lt_cv_dlopen_libs=
11460
11461 case $host_os in
11462 beos*)
11463 lt_cv_dlopen="load_add_on"
11464 lt_cv_dlopen_libs=
11465 lt_cv_dlopen_self=yes
11466 ;;
11467
11468 mingw* | pw32* | cegcc*)
11469 lt_cv_dlopen="LoadLibrary"
11470 lt_cv_dlopen_libs=
11471 ;;
11472
11473 cygwin*)
11474 lt_cv_dlopen="dlopen"
11475 lt_cv_dlopen_libs=
11476 ;;
11477
11478 darwin*)
11479 # if libdl is installed we need to link against it
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11482 if ${ac_cv_lib_dl_dlopen+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldl $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dlopen ();
11497 int
11498 main ()
11499 {
11500 return dlopen ();
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_dl_dlopen=yes
11507 else
11508 ac_cv_lib_dl_dlopen=no
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11518 else
11519
11520 lt_cv_dlopen="dyld"
11521 lt_cv_dlopen_libs=
11522 lt_cv_dlopen_self=yes
11523
11524 fi
11525
11526 ;;
11527
11528 *)
11529 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11530 if test "x$ac_cv_func_shl_load" = xyes; then :
11531 lt_cv_dlopen="shl_load"
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11534 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11535 if ${ac_cv_lib_dld_shl_load+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-ldld $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char shl_load ();
11550 int
11551 main ()
11552 {
11553 return shl_load ();
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_dld_shl_load=yes
11560 else
11561 ac_cv_lib_dld_shl_load=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11568 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11569 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11570 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11571 else
11572 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11573 if test "x$ac_cv_func_dlopen" = xyes; then :
11574 lt_cv_dlopen="dlopen"
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11578 if ${ac_cv_lib_dl_dlopen+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-ldl $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char dlopen ();
11593 int
11594 main ()
11595 {
11596 return dlopen ();
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_dl_dlopen=yes
11603 else
11604 ac_cv_lib_dl_dlopen=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11612 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11616 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11617 if ${ac_cv_lib_svld_dlopen+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lsvld $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char dlopen ();
11632 int
11633 main ()
11634 {
11635 return dlopen ();
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_svld_dlopen=yes
11642 else
11643 ac_cv_lib_svld_dlopen=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11650 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11651 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11655 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11656 if ${ac_cv_lib_dld_dld_link+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-ldld $LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char dld_link ();
11671 int
11672 main ()
11673 {
11674 return dld_link ();
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 ac_cv_lib_dld_dld_link=yes
11681 else
11682 ac_cv_lib_dld_dld_link=no
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11689 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11690 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11692 fi
11693
11694
11695 fi
11696
11697
11698 fi
11699
11700
11701 fi
11702
11703
11704 fi
11705
11706
11707 fi
11708
11709 ;;
11710 esac
11711
11712 if test "x$lt_cv_dlopen" != xno; then
11713 enable_dlopen=yes
11714 else
11715 enable_dlopen=no
11716 fi
11717
11718 case $lt_cv_dlopen in
11719 dlopen)
11720 save_CPPFLAGS="$CPPFLAGS"
11721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11722
11723 save_LDFLAGS="$LDFLAGS"
11724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725
11726 save_LIBS="$LIBS"
11727 LIBS="$lt_cv_dlopen_libs $LIBS"
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11730 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11731 if ${lt_cv_dlopen_self+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 if test "$cross_compiling" = yes; then :
11735 lt_cv_dlopen_self=cross
11736 else
11737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738 lt_status=$lt_dlunknown
11739 cat > conftest.$ac_ext <<_LT_EOF
11740 #line 11740 "configure"
11741 #include "confdefs.h"
11742
11743 #if HAVE_DLFCN_H
11744 #include <dlfcn.h>
11745 #endif
11746
11747 #include <stdio.h>
11748
11749 #ifdef RTLD_GLOBAL
11750 # define LT_DLGLOBAL RTLD_GLOBAL
11751 #else
11752 # ifdef DL_GLOBAL
11753 # define LT_DLGLOBAL DL_GLOBAL
11754 # else
11755 # define LT_DLGLOBAL 0
11756 # endif
11757 #endif
11758
11759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760 find out it does not work in some platform. */
11761 #ifndef LT_DLLAZY_OR_NOW
11762 # ifdef RTLD_LAZY
11763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11764 # else
11765 # ifdef DL_LAZY
11766 # define LT_DLLAZY_OR_NOW DL_LAZY
11767 # else
11768 # ifdef RTLD_NOW
11769 # define LT_DLLAZY_OR_NOW RTLD_NOW
11770 # else
11771 # ifdef DL_NOW
11772 # define LT_DLLAZY_OR_NOW DL_NOW
11773 # else
11774 # define LT_DLLAZY_OR_NOW 0
11775 # endif
11776 # endif
11777 # endif
11778 # endif
11779 #endif
11780
11781 /* When -fvisbility=hidden is used, assume the code has been annotated
11782 correspondingly for the symbols needed. */
11783 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11784 void fnord () __attribute__((visibility("default")));
11785 #endif
11786
11787 void fnord () { int i=42; }
11788 int main ()
11789 {
11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791 int status = $lt_dlunknown;
11792
11793 if (self)
11794 {
11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11796 else
11797 {
11798 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799 else puts (dlerror ());
11800 }
11801 /* dlclose (self); */
11802 }
11803 else
11804 puts (dlerror ());
11805
11806 return status;
11807 }
11808 _LT_EOF
11809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11814 (./conftest; exit; ) >&5 2>/dev/null
11815 lt_status=$?
11816 case x$lt_status in
11817 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11818 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11820 esac
11821 else :
11822 # compilation failed
11823 lt_cv_dlopen_self=no
11824 fi
11825 fi
11826 rm -fr conftest*
11827
11828
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11831 $as_echo "$lt_cv_dlopen_self" >&6; }
11832
11833 if test "x$lt_cv_dlopen_self" = xyes; then
11834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11836 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11837 if ${lt_cv_dlopen_self_static+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 if test "$cross_compiling" = yes; then :
11841 lt_cv_dlopen_self_static=cross
11842 else
11843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844 lt_status=$lt_dlunknown
11845 cat > conftest.$ac_ext <<_LT_EOF
11846 #line 11846 "configure"
11847 #include "confdefs.h"
11848
11849 #if HAVE_DLFCN_H
11850 #include <dlfcn.h>
11851 #endif
11852
11853 #include <stdio.h>
11854
11855 #ifdef RTLD_GLOBAL
11856 # define LT_DLGLOBAL RTLD_GLOBAL
11857 #else
11858 # ifdef DL_GLOBAL
11859 # define LT_DLGLOBAL DL_GLOBAL
11860 # else
11861 # define LT_DLGLOBAL 0
11862 # endif
11863 #endif
11864
11865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866 find out it does not work in some platform. */
11867 #ifndef LT_DLLAZY_OR_NOW
11868 # ifdef RTLD_LAZY
11869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11870 # else
11871 # ifdef DL_LAZY
11872 # define LT_DLLAZY_OR_NOW DL_LAZY
11873 # else
11874 # ifdef RTLD_NOW
11875 # define LT_DLLAZY_OR_NOW RTLD_NOW
11876 # else
11877 # ifdef DL_NOW
11878 # define LT_DLLAZY_OR_NOW DL_NOW
11879 # else
11880 # define LT_DLLAZY_OR_NOW 0
11881 # endif
11882 # endif
11883 # endif
11884 # endif
11885 #endif
11886
11887 /* When -fvisbility=hidden is used, assume the code has been annotated
11888 correspondingly for the symbols needed. */
11889 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11890 void fnord () __attribute__((visibility("default")));
11891 #endif
11892
11893 void fnord () { int i=42; }
11894 int main ()
11895 {
11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897 int status = $lt_dlunknown;
11898
11899 if (self)
11900 {
11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11902 else
11903 {
11904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905 else puts (dlerror ());
11906 }
11907 /* dlclose (self); */
11908 }
11909 else
11910 puts (dlerror ());
11911
11912 return status;
11913 }
11914 _LT_EOF
11915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11916 (eval $ac_link) 2>&5
11917 ac_status=$?
11918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11919 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11920 (./conftest; exit; ) >&5 2>/dev/null
11921 lt_status=$?
11922 case x$lt_status in
11923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11926 esac
11927 else :
11928 # compilation failed
11929 lt_cv_dlopen_self_static=no
11930 fi
11931 fi
11932 rm -fr conftest*
11933
11934
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11937 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11938 fi
11939
11940 CPPFLAGS="$save_CPPFLAGS"
11941 LDFLAGS="$save_LDFLAGS"
11942 LIBS="$save_LIBS"
11943 ;;
11944 esac
11945
11946 case $lt_cv_dlopen_self in
11947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11948 *) enable_dlopen_self=unknown ;;
11949 esac
11950
11951 case $lt_cv_dlopen_self_static in
11952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11953 *) enable_dlopen_self_static=unknown ;;
11954 esac
11955 fi
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973 striplib=
11974 old_striplib=
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11976 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11977 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11978 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11979 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; }
11982 else
11983 # FIXME - insert some real tests, host_os isn't really good enough
11984 case $host_os in
11985 darwin*)
11986 if test -n "$STRIP" ; then
11987 striplib="$STRIP -x"
11988 old_striplib="$STRIP -S"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990 $as_echo "yes" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11994 fi
11995 ;;
11996 *)
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
11999 ;;
12000 esac
12001 fi
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014 # Report which library types will actually be built
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12016 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12018 $as_echo "$can_build_shared" >&6; }
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12021 $as_echo_n "checking whether to build shared libraries... " >&6; }
12022 test "$can_build_shared" = "no" && enable_shared=no
12023
12024 # On AIX, shared libraries and static libraries use the same namespace, and
12025 # are all built from PIC.
12026 case $host_os in
12027 aix3*)
12028 test "$enable_shared" = yes && enable_static=no
12029 if test -n "$RANLIB"; then
12030 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12031 postinstall_cmds='$RANLIB $lib'
12032 fi
12033 ;;
12034
12035 aix[4-9]*)
12036 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12037 test "$enable_shared" = yes && enable_static=no
12038 fi
12039 ;;
12040 esac
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12042 $as_echo "$enable_shared" >&6; }
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12045 $as_echo_n "checking whether to build static libraries... " >&6; }
12046 # Make sure either enable_shared or enable_static is yes.
12047 test "$enable_shared" = yes || enable_static=yes
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12049 $as_echo "$enable_static" >&6; }
12050
12051
12052
12053
12054 fi
12055 ac_ext=c
12056 ac_cpp='$CPP $CPPFLAGS'
12057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12060
12061 CC="$lt_save_CC"
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 ac_config_commands="$ac_config_commands libtool"
12076
12077
12078
12079
12080 # Only expand once:
12081
12082
12083
12084
12085
12086 gdc_save_DFLAGS=$GDCFLAGS
12087 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12088
12089
12090 # Source file extension for D test sources.
12091 ac_ext=d
12092
12093 # Object file extension for compiled D test sources.
12094 objext=o
12095 objext_D=$objext
12096
12097 # Code to be used in simple compile tests
12098 lt_simple_compile_test_code="\
12099 module object;
12100 shared int some_variable = 0;
12101 "
12102
12103 # Code to be used in simple link tests
12104 lt_simple_link_test_code="\
12105 module object;
12106 extern(C) int main() { return 0; }
12107 "
12108
12109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12110
12111
12112
12113
12114
12115
12116 # If no C compiler was specified, use CC.
12117 LTCC=${LTCC-"$CC"}
12118
12119 # If no C compiler flags were specified, use CFLAGS.
12120 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12121
12122 # Allow CC to be a program name with arguments.
12123 compiler=$CC
12124
12125
12126 # save warnings/boilerplate of simple test code
12127 ac_outfile=conftest.$ac_objext
12128 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12130 _lt_compiler_boilerplate=`cat conftest.err`
12131 $RM conftest*
12132
12133 ac_outfile=conftest.$ac_objext
12134 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12136 _lt_linker_boilerplate=`cat conftest.err`
12137 $RM -r conftest*
12138
12139
12140 # Allow CC to be a program name with arguments.
12141 lt_save_CC=$CC
12142 lt_save_CFLAGS=$CFLAGS
12143 lt_save_GCC=$GCC
12144 GCC=yes
12145 CC=${GDC-"gdc"}
12146 CFLAGS=$GDCFLAGS
12147 compiler=$CC
12148 compiler_D=$CC
12149 LD_D=$CC
12150 for cc_temp in $compiler""; do
12151 case $cc_temp in
12152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12154 \-*) ;;
12155 *) break;;
12156 esac
12157 done
12158 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12159
12160
12161 # GDC did not exist at the time GCC didn't implicitly link libc in.
12162 archive_cmds_need_lc_D=no
12163
12164 old_archive_cmds_D=$old_archive_cmds
12165 reload_flag_D=$reload_flag
12166 reload_cmds_D=$reload_cmds
12167
12168 ## CAVEAT EMPTOR:
12169 ## There is no encapsulation within the following macros, do not change
12170 ## the running order or otherwise move them around unless you know exactly
12171 ## what you are doing...
12172 if test -n "$compiler"; then
12173
12174 lt_prog_compiler_no_builtin_flag_D=
12175
12176 if test "$GCC" = yes; then
12177 case $cc_basename in
12178 nvcc*)
12179 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12180 *)
12181 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12182 esac
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12185 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12186 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 lt_cv_prog_compiler_rtti_exceptions=no
12190 ac_outfile=conftest.$ac_objext
12191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12192 lt_compiler_flag="-fno-rtti -fno-exceptions"
12193 # Insert the option either (1) after the last *FLAGS variable, or
12194 # (2) before a word containing "conftest.", or (3) at the end.
12195 # Note that $ac_compile itself does not contain backslashes and begins
12196 # with a dollar sign (not a hyphen), so the echo should work correctly.
12197 # The option is referenced via a variable to avoid confusing sed.
12198 lt_compile=`echo "$ac_compile" | $SED \
12199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12201 -e 's:$: $lt_compiler_flag:'`
12202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12203 (eval "$lt_compile" 2>conftest.err)
12204 ac_status=$?
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 if (exit $ac_status) && test -s "$ac_outfile"; then
12208 # The compiler can only warn and ignore the option if not recognized
12209 # So say no if there are warnings other than the usual output.
12210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12213 lt_cv_prog_compiler_rtti_exceptions=yes
12214 fi
12215 fi
12216 $RM conftest*
12217
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12221
12222 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12223 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12224 else
12225 :
12226 fi
12227
12228 fi
12229
12230
12231
12232 lt_prog_compiler_wl_D=
12233 lt_prog_compiler_pic_D=
12234 lt_prog_compiler_static_D=
12235
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12237 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12238
12239 if test "$GCC" = yes; then
12240 lt_prog_compiler_wl_D='-Wl,'
12241 lt_prog_compiler_static_D='-static'
12242
12243 case $host_os in
12244 aix*)
12245 # All AIX code is PIC.
12246 if test "$host_cpu" = ia64; then
12247 # AIX 5 now supports IA64 processor
12248 lt_prog_compiler_static_D='-Bstatic'
12249 fi
12250 lt_prog_compiler_pic_D='-fPIC'
12251 ;;
12252
12253 amigaos*)
12254 case $host_cpu in
12255 powerpc)
12256 # see comment about AmigaOS4 .so support
12257 lt_prog_compiler_pic_D='-fPIC'
12258 ;;
12259 m68k)
12260 # FIXME: we need at least 68020 code to build shared libraries, but
12261 # adding the `-m68020' flag to GCC prevents building anything better,
12262 # like `-m68040'.
12263 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12264 ;;
12265 esac
12266 ;;
12267
12268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12269 # PIC is the default for these OSes.
12270 ;;
12271
12272 mingw* | cygwin* | pw32* | os2* | cegcc*)
12273 # This hack is so that the source file can tell whether it is being
12274 # built for inclusion in a dll (and should export symbols for example).
12275 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12276 # (--disable-auto-import) libraries
12277 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12278 ;;
12279
12280 darwin* | rhapsody*)
12281 # PIC is the default on this platform
12282 # Common symbols not allowed in MH_DYLIB files
12283 lt_prog_compiler_pic_D='-fno-common'
12284 ;;
12285
12286 haiku*)
12287 # PIC is the default for Haiku.
12288 # The "-static" flag exists, but is broken.
12289 lt_prog_compiler_static_D=
12290 ;;
12291
12292 hpux*)
12293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12295 # sets the default TLS model and affects inlining.
12296 case $host_cpu in
12297 hppa*64*)
12298 # +Z the default
12299 ;;
12300 *)
12301 lt_prog_compiler_pic_D='-fPIC'
12302 ;;
12303 esac
12304 ;;
12305
12306 interix[3-9]*)
12307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12308 # Instead, we relocate shared libraries at runtime.
12309 ;;
12310
12311 msdosdjgpp*)
12312 # Just because we use GCC doesn't mean we suddenly get shared libraries
12313 # on systems that don't support them.
12314 lt_prog_compiler_can_build_shared_D=no
12315 enable_shared=no
12316 ;;
12317
12318 *nto* | *qnx*)
12319 # QNX uses GNU C++, but need to define -shared option too, otherwise
12320 # it will coredump.
12321 lt_prog_compiler_pic_D='-fPIC -shared'
12322 ;;
12323
12324 sysv4*MP*)
12325 if test -d /usr/nec; then
12326 lt_prog_compiler_pic_D=-Kconform_pic
12327 fi
12328 ;;
12329
12330 *)
12331 lt_prog_compiler_pic_D='-fPIC'
12332 ;;
12333 esac
12334
12335 case $cc_basename in
12336 nvcc*) # Cuda Compiler Driver 2.2
12337 lt_prog_compiler_wl_D='-Xlinker '
12338 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12339 ;;
12340 esac
12341 else
12342 # PORTME Check for flag to pass linker flags through the system compiler.
12343 case $host_os in
12344 aix*)
12345 lt_prog_compiler_wl_D='-Wl,'
12346 if test "$host_cpu" = ia64; then
12347 # AIX 5 now supports IA64 processor
12348 lt_prog_compiler_static_D='-Bstatic'
12349 else
12350 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12351 fi
12352 ;;
12353
12354 mingw* | cygwin* | pw32* | os2* | cegcc*)
12355 # This hack is so that the source file can tell whether it is being
12356 # built for inclusion in a dll (and should export symbols for example).
12357 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12358 ;;
12359
12360 hpux9* | hpux10* | hpux11*)
12361 lt_prog_compiler_wl_D='-Wl,'
12362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12363 # not for PA HP-UX.
12364 case $host_cpu in
12365 hppa*64*|ia64*)
12366 # +Z the default
12367 ;;
12368 *)
12369 lt_prog_compiler_pic_D='+Z'
12370 ;;
12371 esac
12372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12373 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12374 ;;
12375
12376 irix5* | irix6* | nonstopux*)
12377 lt_prog_compiler_wl_D='-Wl,'
12378 # PIC (with -KPIC) is the default.
12379 lt_prog_compiler_static_D='-non_shared'
12380 ;;
12381
12382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12383 case $cc_basename in
12384 # old Intel for x86_64 which still supported -KPIC.
12385 ecc*)
12386 lt_prog_compiler_wl_D='-Wl,'
12387 lt_prog_compiler_pic_D='-KPIC'
12388 lt_prog_compiler_static_D='-static'
12389 ;;
12390 # icc used to be incompatible with GCC.
12391 # ICC 10 doesn't accept -KPIC any more.
12392 icc* | ifort*)
12393 lt_prog_compiler_wl_D='-Wl,'
12394 lt_prog_compiler_pic_D='-fPIC'
12395 lt_prog_compiler_static_D='-static'
12396 ;;
12397 # Lahey Fortran 8.1.
12398 lf95*)
12399 lt_prog_compiler_wl_D='-Wl,'
12400 lt_prog_compiler_pic_D='--shared'
12401 lt_prog_compiler_static_D='--static'
12402 ;;
12403 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12404 # Portland Group compilers (*not* the Pentium gcc compiler,
12405 # which looks to be a dead project)
12406 lt_prog_compiler_wl_D='-Wl,'
12407 lt_prog_compiler_pic_D='-fpic'
12408 lt_prog_compiler_static_D='-Bstatic'
12409 ;;
12410 ccc*)
12411 lt_prog_compiler_wl_D='-Wl,'
12412 # All Alpha code is PIC.
12413 lt_prog_compiler_static_D='-non_shared'
12414 ;;
12415 xl* | bgxl* | bgf* | mpixl*)
12416 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12417 lt_prog_compiler_wl_D='-Wl,'
12418 lt_prog_compiler_pic_D='-qpic'
12419 lt_prog_compiler_static_D='-qstaticlink'
12420 ;;
12421 *)
12422 case `$CC -V 2>&1 | sed 5q` in
12423 *Sun\ F* | *Sun*Fortran*)
12424 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12425 lt_prog_compiler_pic_D='-KPIC'
12426 lt_prog_compiler_static_D='-Bstatic'
12427 lt_prog_compiler_wl_D=''
12428 ;;
12429 *Sun\ C*)
12430 # Sun C 5.9
12431 lt_prog_compiler_pic_D='-KPIC'
12432 lt_prog_compiler_static_D='-Bstatic'
12433 lt_prog_compiler_wl_D='-Wl,'
12434 ;;
12435 esac
12436 ;;
12437 esac
12438 ;;
12439
12440 newsos6)
12441 lt_prog_compiler_pic_D='-KPIC'
12442 lt_prog_compiler_static_D='-Bstatic'
12443 ;;
12444
12445 *nto* | *qnx*)
12446 # QNX uses GNU C++, but need to define -shared option too, otherwise
12447 # it will coredump.
12448 lt_prog_compiler_pic_D='-fPIC -shared'
12449 ;;
12450
12451 osf3* | osf4* | osf5*)
12452 lt_prog_compiler_wl_D='-Wl,'
12453 # All OSF/1 code is PIC.
12454 lt_prog_compiler_static_D='-non_shared'
12455 ;;
12456
12457 rdos*)
12458 lt_prog_compiler_static_D='-non_shared'
12459 ;;
12460
12461 solaris*)
12462 lt_prog_compiler_pic_D='-KPIC'
12463 lt_prog_compiler_static_D='-Bstatic'
12464 case $cc_basename in
12465 f77* | f90* | f95*)
12466 lt_prog_compiler_wl_D='-Qoption ld ';;
12467 *)
12468 lt_prog_compiler_wl_D='-Wl,';;
12469 esac
12470 ;;
12471
12472 sunos4*)
12473 lt_prog_compiler_wl_D='-Qoption ld '
12474 lt_prog_compiler_pic_D='-PIC'
12475 lt_prog_compiler_static_D='-Bstatic'
12476 ;;
12477
12478 sysv4 | sysv4.2uw2* | sysv4.3*)
12479 lt_prog_compiler_wl_D='-Wl,'
12480 lt_prog_compiler_pic_D='-KPIC'
12481 lt_prog_compiler_static_D='-Bstatic'
12482 ;;
12483
12484 sysv4*MP*)
12485 if test -d /usr/nec ;then
12486 lt_prog_compiler_pic_D='-Kconform_pic'
12487 lt_prog_compiler_static_D='-Bstatic'
12488 fi
12489 ;;
12490
12491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12492 lt_prog_compiler_wl_D='-Wl,'
12493 lt_prog_compiler_pic_D='-KPIC'
12494 lt_prog_compiler_static_D='-Bstatic'
12495 ;;
12496
12497 unicos*)
12498 lt_prog_compiler_wl_D='-Wl,'
12499 lt_prog_compiler_can_build_shared_D=no
12500 ;;
12501
12502 uts4*)
12503 lt_prog_compiler_pic_D='-pic'
12504 lt_prog_compiler_static_D='-Bstatic'
12505 ;;
12506
12507 *)
12508 lt_prog_compiler_can_build_shared_D=no
12509 ;;
12510 esac
12511 fi
12512
12513 case $host_os in
12514 # For platforms which do not support PIC, -DPIC is meaningless:
12515 *djgpp*)
12516 lt_prog_compiler_pic_D=
12517 ;;
12518 *)
12519 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12520 ;;
12521 esac
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12523 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12524
12525
12526
12527 #
12528 # Check to make sure the PIC flag actually works.
12529 #
12530 if test -n "$lt_prog_compiler_pic_D"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12532 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12533 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 lt_cv_prog_compiler_pic_works_D=no
12537 ac_outfile=conftest.$ac_objext
12538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12539 lt_compiler_flag="$lt_prog_compiler_pic_D"
12540 # Insert the option either (1) after the last *FLAGS variable, or
12541 # (2) before a word containing "conftest.", or (3) at the end.
12542 # Note that $ac_compile itself does not contain backslashes and begins
12543 # with a dollar sign (not a hyphen), so the echo should work correctly.
12544 # The option is referenced via a variable to avoid confusing sed.
12545 lt_compile=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
12549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12550 (eval "$lt_compile" 2>conftest.err)
12551 ac_status=$?
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 if (exit $ac_status) && test -s "$ac_outfile"; then
12555 # The compiler can only warn and ignore the option if not recognized
12556 # So say no if there are warnings other than the usual output.
12557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12560 lt_cv_prog_compiler_pic_works_D=yes
12561 fi
12562 fi
12563 $RM conftest*
12564
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12567 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12568
12569 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12570 case $lt_prog_compiler_pic_D in
12571 "" | " "*) ;;
12572 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12573 esac
12574 else
12575 lt_prog_compiler_pic_D=
12576 lt_prog_compiler_can_build_shared_D=no
12577 fi
12578
12579 fi
12580
12581
12582
12583 #
12584 # Check to make sure the static flag actually works.
12585 #
12586 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12589 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 lt_cv_prog_compiler_static_works_D=no
12593 save_LDFLAGS="$LDFLAGS"
12594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12597 # The linker can only warn and ignore the option if not recognized
12598 # So say no if there are warnings
12599 if test -s conftest.err; then
12600 # Append any errors to the config.log.
12601 cat conftest.err 1>&5
12602 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12604 if diff conftest.exp conftest.er2 >/dev/null; then
12605 lt_cv_prog_compiler_static_works_D=yes
12606 fi
12607 else
12608 lt_cv_prog_compiler_static_works_D=yes
12609 fi
12610 fi
12611 $RM -r conftest*
12612 LDFLAGS="$save_LDFLAGS"
12613
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12616 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12617
12618 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12619 :
12620 else
12621 lt_prog_compiler_static_D=
12622 fi
12623
12624
12625
12626
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12629 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 lt_cv_prog_compiler_c_o_D=no
12633 $RM -r conftest 2>/dev/null
12634 mkdir conftest
12635 cd conftest
12636 mkdir out
12637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12638
12639 lt_compiler_flag="-o out/conftest2.$ac_objext"
12640 # Insert the option either (1) after the last *FLAGS variable, or
12641 # (2) before a word containing "conftest.", or (3) at the end.
12642 # Note that $ac_compile itself does not contain backslashes and begins
12643 # with a dollar sign (not a hyphen), so the echo should work correctly.
12644 lt_compile=`echo "$ac_compile" | $SED \
12645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12647 -e 's:$: $lt_compiler_flag:'`
12648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12649 (eval "$lt_compile" 2>out/conftest.err)
12650 ac_status=$?
12651 cat out/conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12654 then
12655 # The compiler can only warn and ignore the option if not recognized
12656 # So say no if there are warnings
12657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12660 lt_cv_prog_compiler_c_o_D=yes
12661 fi
12662 fi
12663 chmod u+w . 2>&5
12664 $RM conftest*
12665 # SGI C++ compiler will create directory out/ii_files/ for
12666 # template instantiation
12667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12668 $RM out/* && rmdir out
12669 cd ..
12670 $RM -r conftest
12671 $RM conftest*
12672
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12675 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12676
12677
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12681 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 lt_cv_prog_compiler_c_o_D=no
12685 $RM -r conftest 2>/dev/null
12686 mkdir conftest
12687 cd conftest
12688 mkdir out
12689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12690
12691 lt_compiler_flag="-o out/conftest2.$ac_objext"
12692 # Insert the option either (1) after the last *FLAGS variable, or
12693 # (2) before a word containing "conftest.", or (3) at the end.
12694 # Note that $ac_compile itself does not contain backslashes and begins
12695 # with a dollar sign (not a hyphen), so the echo should work correctly.
12696 lt_compile=`echo "$ac_compile" | $SED \
12697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12699 -e 's:$: $lt_compiler_flag:'`
12700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12701 (eval "$lt_compile" 2>out/conftest.err)
12702 ac_status=$?
12703 cat out/conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12706 then
12707 # The compiler can only warn and ignore the option if not recognized
12708 # So say no if there are warnings
12709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12712 lt_cv_prog_compiler_c_o_D=yes
12713 fi
12714 fi
12715 chmod u+w . 2>&5
12716 $RM conftest*
12717 # SGI C++ compiler will create directory out/ii_files/ for
12718 # template instantiation
12719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12720 $RM out/* && rmdir out
12721 cd ..
12722 $RM -r conftest
12723 $RM conftest*
12724
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12727 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12728
12729
12730
12731
12732 hard_links="nottested"
12733 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12734 # do not overwrite the value of need_locks provided by the user
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12736 $as_echo_n "checking if we can lock with hard links... " >&6; }
12737 hard_links=yes
12738 $RM conftest*
12739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12740 touch conftest.a
12741 ln conftest.a conftest.b 2>&5 || hard_links=no
12742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12744 $as_echo "$hard_links" >&6; }
12745 if test "$hard_links" = no; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12747 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12748 need_locks=warn
12749 fi
12750 else
12751 need_locks=no
12752 fi
12753
12754
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12758
12759 runpath_var=
12760 allow_undefined_flag_D=
12761 always_export_symbols_D=no
12762 archive_cmds_D=
12763 archive_expsym_cmds_D=
12764 compiler_needs_object_D=no
12765 enable_shared_with_static_runtimes_D=no
12766 export_dynamic_flag_spec_D=
12767 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12768 hardcode_automatic_D=no
12769 hardcode_direct_D=no
12770 hardcode_direct_absolute_D=no
12771 hardcode_libdir_flag_spec_D=
12772 hardcode_libdir_flag_spec_ld_D=
12773 hardcode_libdir_separator_D=
12774 hardcode_minus_L_D=no
12775 hardcode_shlibpath_var_D=unsupported
12776 inherit_rpath_D=no
12777 link_all_deplibs_D=unknown
12778 module_cmds_D=
12779 module_expsym_cmds_D=
12780 old_archive_from_new_cmds_D=
12781 old_archive_from_expsyms_cmds_D=
12782 thread_safe_flag_spec_D=
12783 whole_archive_flag_spec_D=
12784 # include_expsyms should be a list of space-separated symbols to be *always*
12785 # included in the symbol list
12786 include_expsyms_D=
12787 # exclude_expsyms can be an extended regexp of symbols to exclude
12788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12790 # as well as any symbol that contains `d'.
12791 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12793 # platforms (ab)use it in PIC code, but their linkers get confused if
12794 # the symbol is explicitly referenced. Since portable code cannot
12795 # rely on this symbol name, it's probably fine to never include it in
12796 # preloaded symbol tables.
12797 # Exclude shared library initialization/finalization symbols.
12798 extract_expsyms_cmds=
12799
12800 case $host_os in
12801 cygwin* | mingw* | pw32* | cegcc*)
12802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12803 # When not using gcc, we currently assume that we are using
12804 # Microsoft Visual C++.
12805 if test "$GCC" != yes; then
12806 with_gnu_ld=no
12807 fi
12808 ;;
12809 interix*)
12810 # we just hope/assume this is gcc and not c89 (= MSVC++)
12811 with_gnu_ld=yes
12812 ;;
12813 openbsd*)
12814 with_gnu_ld=no
12815 ;;
12816 esac
12817
12818 ld_shlibs_D=yes
12819
12820 # On some targets, GNU ld is compatible enough with the native linker
12821 # that we're better off using the native interface for both.
12822 lt_use_gnu_ld_interface=no
12823 if test "$with_gnu_ld" = yes; then
12824 case $host_os in
12825 aix*)
12826 # The AIX port of GNU ld has always aspired to compatibility
12827 # with the native linker. However, as the warning in the GNU ld
12828 # block says, versions before 2.19.5* couldn't really create working
12829 # shared libraries, regardless of the interface used.
12830 case `$LD -v 2>&1` in
12831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12834 *)
12835 lt_use_gnu_ld_interface=yes
12836 ;;
12837 esac
12838 ;;
12839 *)
12840 lt_use_gnu_ld_interface=yes
12841 ;;
12842 esac
12843 fi
12844
12845 if test "$lt_use_gnu_ld_interface" = yes; then
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12847 wlarc='${wl}'
12848
12849 # Set some defaults for GNU ld with shared library support. These
12850 # are reset later if shared libraries are not supported. Putting them
12851 # here allows them to be overridden if necessary.
12852 runpath_var=LD_RUN_PATH
12853 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12854 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12855 # ancient GNU ld didn't support --whole-archive et. al.
12856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12857 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12858 else
12859 whole_archive_flag_spec_D=
12860 fi
12861 supports_anon_versioning=no
12862 case `$LD -v 2>&1` in
12863 *GNU\ gold*) supports_anon_versioning=yes ;;
12864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12867 *\ 2.11.*) ;; # other 2.11 versions
12868 *) supports_anon_versioning=yes ;;
12869 esac
12870
12871 # See if GNU ld supports shared libraries.
12872 case $host_os in
12873 aix[3-9]*)
12874 # On AIX/PPC, the GNU linker is very broken
12875 if test "$host_cpu" != ia64; then
12876 ld_shlibs_D=no
12877 cat <<_LT_EOF 1>&2
12878
12879 *** Warning: the GNU linker, at least up to release 2.19, is reported
12880 *** to be unable to reliably create shared libraries on AIX.
12881 *** Therefore, libtool is disabling shared libraries support. If you
12882 *** really care for shared libraries, you may want to install binutils
12883 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12884 *** You will then need to restart the configuration process.
12885
12886 _LT_EOF
12887 fi
12888 ;;
12889
12890 amigaos*)
12891 case $host_cpu in
12892 powerpc)
12893 # see comment about AmigaOS4 .so support
12894 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 archive_expsym_cmds_D=''
12896 ;;
12897 m68k)
12898 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)'
12899 hardcode_libdir_flag_spec_D='-L$libdir'
12900 hardcode_minus_L_D=yes
12901 ;;
12902 esac
12903 ;;
12904
12905 beos*)
12906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12907 allow_undefined_flag_D=unsupported
12908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12909 # support --undefined. This deserves some investigation. FIXME
12910 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911 else
12912 ld_shlibs_D=no
12913 fi
12914 ;;
12915
12916 cygwin* | mingw* | pw32* | cegcc*)
12917 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12918 # as there is no search path for DLLs.
12919 hardcode_libdir_flag_spec_D='-L$libdir'
12920 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12921 allow_undefined_flag_D=unsupported
12922 always_export_symbols_D=no
12923 enable_shared_with_static_runtimes_D=yes
12924 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12925
12926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12927 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12928 # If the export-symbols file already is a .def file (1st line
12929 # is EXPORTS), use it as is; otherwise, prepend...
12930 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12931 cp $export_symbols $output_objdir/$soname.def;
12932 else
12933 echo EXPORTS > $output_objdir/$soname.def;
12934 cat $export_symbols >> $output_objdir/$soname.def;
12935 fi~
12936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12937 else
12938 ld_shlibs_D=no
12939 fi
12940 ;;
12941
12942 haiku*)
12943 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 link_all_deplibs_D=yes
12945 ;;
12946
12947 interix[3-9]*)
12948 hardcode_direct_D=no
12949 hardcode_shlibpath_var_D=no
12950 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12951 export_dynamic_flag_spec_D='${wl}-E'
12952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12953 # Instead, shared libraries are loaded at an image base (0x10000000 by
12954 # default) and relocated if they conflict, which is a slow very memory
12955 # consuming and fragmenting process. To avoid this, we pick a random,
12956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12958 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'
12959 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'
12960 ;;
12961
12962 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12963 tmp_diet=no
12964 if test "$host_os" = linux-dietlibc; then
12965 case $cc_basename in
12966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12967 esac
12968 fi
12969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12970 && test "$tmp_diet" = no
12971 then
12972 tmp_addflag=' $pic_flag'
12973 tmp_sharedflag='-shared'
12974 case $cc_basename,$host_cpu in
12975 pgcc*) # Portland Group C compiler
12976 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'
12977 tmp_addflag=' $pic_flag'
12978 ;;
12979 pgf77* | pgf90* | pgf95* | pgfortran*)
12980 # Portland Group f77 and f90 compilers
12981 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'
12982 tmp_addflag=' $pic_flag -Mnomain' ;;
12983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12984 tmp_addflag=' -i_dynamic' ;;
12985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12986 tmp_addflag=' -i_dynamic -nofor_main' ;;
12987 ifc* | ifort*) # Intel Fortran compiler
12988 tmp_addflag=' -nofor_main' ;;
12989 lf95*) # Lahey Fortran 8.1
12990 whole_archive_flag_spec_D=
12991 tmp_sharedflag='--shared' ;;
12992 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12993 tmp_sharedflag='-qmkshrobj'
12994 tmp_addflag= ;;
12995 nvcc*) # Cuda Compiler Driver 2.2
12996 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'
12997 compiler_needs_object_D=yes
12998 ;;
12999 esac
13000 case `$CC -V 2>&1 | sed 5q` in
13001 *Sun\ C*) # Sun C 5.9
13002 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'
13003 compiler_needs_object_D=yes
13004 tmp_sharedflag='-G' ;;
13005 *Sun\ F*) # Sun Fortran 8.3
13006 tmp_sharedflag='-G' ;;
13007 esac
13008 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13009
13010 if test "x$supports_anon_versioning" = xyes; then
13011 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13013 echo "local: *; };" >> $output_objdir/$libname.ver~
13014 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13015 fi
13016
13017 case $cc_basename in
13018 xlf* | bgf* | bgxlf* | mpixlf*)
13019 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13020 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13021 hardcode_libdir_flag_spec_D=
13022 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13023 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13024 if test "x$supports_anon_versioning" = xyes; then
13025 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13027 echo "local: *; };" >> $output_objdir/$libname.ver~
13028 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13029 fi
13030 ;;
13031 esac
13032 else
13033 ld_shlibs_D=no
13034 fi
13035 ;;
13036
13037 netbsd*)
13038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13039 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13040 wlarc=
13041 else
13042 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13044 fi
13045 ;;
13046
13047 solaris*)
13048 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13049 ld_shlibs_D=no
13050 cat <<_LT_EOF 1>&2
13051
13052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13053 *** create shared libraries on Solaris systems. Therefore, libtool
13054 *** is disabling shared libraries support. We urge you to upgrade GNU
13055 *** binutils to release 2.9.1 or newer. Another option is to modify
13056 *** your PATH or compiler configuration so that the native linker is
13057 *** used, and then restart.
13058
13059 _LT_EOF
13060 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13061 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13063 else
13064 ld_shlibs_D=no
13065 fi
13066 ;;
13067
13068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13069 case `$LD -v 2>&1` in
13070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13071 ld_shlibs_D=no
13072 cat <<_LT_EOF 1>&2
13073
13074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13075 *** reliably create shared libraries on SCO systems. Therefore, libtool
13076 *** is disabling shared libraries support. We urge you to upgrade GNU
13077 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13078 *** your PATH or compiler configuration so that the native linker is
13079 *** used, and then restart.
13080
13081 _LT_EOF
13082 ;;
13083 *)
13084 # For security reasons, it is highly recommended that you always
13085 # use absolute paths for naming shared libraries, and exclude the
13086 # DT_RUNPATH tag from executables and libraries. But doing so
13087 # requires that you compile everything twice, which is a pain.
13088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13089 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13090 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13092 else
13093 ld_shlibs_D=no
13094 fi
13095 ;;
13096 esac
13097 ;;
13098
13099 sunos4*)
13100 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13101 wlarc=
13102 hardcode_direct_D=yes
13103 hardcode_shlibpath_var_D=no
13104 ;;
13105
13106 *)
13107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13108 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13109 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13110 else
13111 ld_shlibs_D=no
13112 fi
13113 ;;
13114 esac
13115
13116 if test "$ld_shlibs_D" = no; then
13117 runpath_var=
13118 hardcode_libdir_flag_spec_D=
13119 export_dynamic_flag_spec_D=
13120 whole_archive_flag_spec_D=
13121 fi
13122 else
13123 # PORTME fill in a description of your system's linker (not GNU ld)
13124 case $host_os in
13125 aix3*)
13126 allow_undefined_flag_D=unsupported
13127 always_export_symbols_D=yes
13128 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'
13129 # Note: this linker hardcodes the directories in LIBPATH if there
13130 # are no directories specified by -L.
13131 hardcode_minus_L_D=yes
13132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13133 # Neither direct hardcoding nor static linking is supported with a
13134 # broken collect2.
13135 hardcode_direct_D=unsupported
13136 fi
13137 ;;
13138
13139 aix[4-9]*)
13140 if test "$host_cpu" = ia64; then
13141 # On IA64, the linker does run time linking by default, so we don't
13142 # have to do anything special.
13143 aix_use_runtimelinking=no
13144 exp_sym_flag='-Bexport'
13145 no_entry_flag=""
13146 else
13147 # If we're using GNU nm, then we don't want the "-C" option.
13148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13149 # Also, AIX nm treats weak defined symbols like other global
13150 # defined symbols, whereas GNU nm marks them as "W".
13151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13152 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'
13153 else
13154 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'
13155 fi
13156 aix_use_runtimelinking=no
13157
13158 # Test if we are trying to use run time linking or normal
13159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13160 # need to do runtime linking.
13161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13162 for ld_flag in $LDFLAGS; do
13163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13164 aix_use_runtimelinking=yes
13165 break
13166 fi
13167 done
13168 ;;
13169 esac
13170
13171 exp_sym_flag='-bexport'
13172 no_entry_flag='-bnoentry'
13173 fi
13174
13175 # When large executables or shared objects are built, AIX ld can
13176 # have problems creating the table of contents. If linking a library
13177 # or program results in "error TOC overflow" add -mminimal-toc to
13178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13180
13181 archive_cmds_D=''
13182 hardcode_direct_D=yes
13183 hardcode_direct_absolute_D=yes
13184 hardcode_libdir_separator_D=':'
13185 link_all_deplibs_D=yes
13186 file_list_spec_D='${wl}-f,'
13187
13188 if test "$GCC" = yes; then
13189 case $host_os in aix4.[012]|aix4.[012].*)
13190 # We only want to do this on AIX 4.2 and lower, the check
13191 # below for broken collect2 doesn't work under 4.3+
13192 collect2name=`${CC} -print-prog-name=collect2`
13193 if test -f "$collect2name" &&
13194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13195 then
13196 # We have reworked collect2
13197 :
13198 else
13199 # We have old collect2
13200 hardcode_direct_D=unsupported
13201 # It fails to find uninstalled libraries when the uninstalled
13202 # path is not listed in the libpath. Setting hardcode_minus_L
13203 # to unsupported forces relinking
13204 hardcode_minus_L_D=yes
13205 hardcode_libdir_flag_spec_D='-L$libdir'
13206 hardcode_libdir_separator_D=
13207 fi
13208 ;;
13209 esac
13210 shared_flag='-shared'
13211 if test "$aix_use_runtimelinking" = yes; then
13212 shared_flag="$shared_flag "'${wl}-G'
13213 fi
13214 else
13215 # not using gcc
13216 if test "$host_cpu" = ia64; then
13217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13218 # chokes on -Wl,-G. The following line is correct:
13219 shared_flag='-G'
13220 else
13221 if test "$aix_use_runtimelinking" = yes; then
13222 shared_flag='${wl}-G'
13223 else
13224 shared_flag='${wl}-bM:SRE'
13225 fi
13226 fi
13227 fi
13228
13229 export_dynamic_flag_spec_D='${wl}-bexpall'
13230 # It seems that -bexpall does not export symbols beginning with
13231 # underscore (_), so it is better to generate a list of symbols to export.
13232 always_export_symbols_D=yes
13233 if test "$aix_use_runtimelinking" = yes; then
13234 # Warning - without using the other runtime loading flags (-brtl),
13235 # -berok will link without error, but may produce a broken library.
13236 allow_undefined_flag_D='-berok'
13237 # Determine the default libpath from the value encoded in an
13238 # empty executable.
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241
13242 int
13243 main ()
13244 {
13245
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251
13252 lt_aix_libpath_sed='
13253 /Import File Strings/,/^$/ {
13254 /^0/ {
13255 s/^0 *\(.*\)$/\1/
13256 p
13257 }
13258 }'
13259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260 # Check for a 64-bit object if we didn't find anything.
13261 if test -z "$aix_libpath"; then
13262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13263 fi
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13268
13269 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13270 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"
13271 else
13272 if test "$host_cpu" = ia64; then
13273 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13274 allow_undefined_flag_D="-z nodefs"
13275 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"
13276 else
13277 # Determine the default libpath from the value encoded in an
13278 # empty executable.
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13281
13282 int
13283 main ()
13284 {
13285
13286 ;
13287 return 0;
13288 }
13289 _ACEOF
13290 if ac_fn_c_try_link "$LINENO"; then :
13291
13292 lt_aix_libpath_sed='
13293 /Import File Strings/,/^$/ {
13294 /^0/ {
13295 s/^0 *\(.*\)$/\1/
13296 p
13297 }
13298 }'
13299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13300 # Check for a 64-bit object if we didn't find anything.
13301 if test -z "$aix_libpath"; then
13302 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13303 fi
13304 fi
13305 rm -f core conftest.err conftest.$ac_objext \
13306 conftest$ac_exeext conftest.$ac_ext
13307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13308
13309 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13310 # Warning - without using the other run time loading flags,
13311 # -berok will link without error, but may produce a broken library.
13312 no_undefined_flag_D=' ${wl}-bernotok'
13313 allow_undefined_flag_D=' ${wl}-berok'
13314 if test "$with_gnu_ld" = yes; then
13315 # We only use this code for GNU lds that support --whole-archive.
13316 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13317 else
13318 # Exported symbols can be pulled into shared objects from archives
13319 whole_archive_flag_spec_D='$convenience'
13320 fi
13321 archive_cmds_need_lc_D=yes
13322 # This is similar to how AIX traditionally builds its shared libraries.
13323 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'
13324 fi
13325 fi
13326 ;;
13327
13328 amigaos*)
13329 case $host_cpu in
13330 powerpc)
13331 # see comment about AmigaOS4 .so support
13332 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 archive_expsym_cmds_D=''
13334 ;;
13335 m68k)
13336 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)'
13337 hardcode_libdir_flag_spec_D='-L$libdir'
13338 hardcode_minus_L_D=yes
13339 ;;
13340 esac
13341 ;;
13342
13343 bsdi[45]*)
13344 export_dynamic_flag_spec_D=-rdynamic
13345 ;;
13346
13347 cygwin* | mingw* | pw32* | cegcc*)
13348 # When not using gcc, we currently assume that we are using
13349 # Microsoft Visual C++.
13350 # hardcode_libdir_flag_spec is actually meaningless, as there is
13351 # no search path for DLLs.
13352 hardcode_libdir_flag_spec_D=' '
13353 allow_undefined_flag_D=unsupported
13354 # Tell ltmain to make .lib files, not .a files.
13355 libext=lib
13356 # Tell ltmain to make .dll files, not .so files.
13357 shrext_cmds=".dll"
13358 # FIXME: Setting linknames here is a bad hack.
13359 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13360 # The linker will automatically build a .lib file if we build a DLL.
13361 old_archive_from_new_cmds_D='true'
13362 # FIXME: Should let the user specify the lib program.
13363 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13364 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13365 enable_shared_with_static_runtimes_D=yes
13366 ;;
13367
13368 darwin* | rhapsody*)
13369
13370
13371 archive_cmds_need_lc_D=no
13372 hardcode_direct_D=no
13373 hardcode_automatic_D=yes
13374 hardcode_shlibpath_var_D=unsupported
13375 if test "$lt_cv_ld_force_load" = "yes"; then
13376 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\"`'
13377 else
13378 whole_archive_flag_spec_D=''
13379 fi
13380 link_all_deplibs_D=yes
13381 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13382 case $cc_basename in
13383 ifort*) _lt_dar_can_shared=yes ;;
13384 *) _lt_dar_can_shared=$GCC ;;
13385 esac
13386 if test "$_lt_dar_can_shared" = "yes"; then
13387 output_verbose_link_cmd=func_echo_all
13388 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}"
13389 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13390 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}"
13391 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}"
13392
13393 else
13394 ld_shlibs_D=no
13395 fi
13396
13397 ;;
13398
13399 dgux*)
13400 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13401 hardcode_libdir_flag_spec_D='-L$libdir'
13402 hardcode_shlibpath_var_D=no
13403 ;;
13404
13405 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13406 # support. Future versions do this automatically, but an explicit c++rt0.o
13407 # does not break anything, and helps significantly (at the cost of a little
13408 # extra space).
13409 freebsd2.2*)
13410 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13411 hardcode_libdir_flag_spec_D='-R$libdir'
13412 hardcode_direct_D=yes
13413 hardcode_shlibpath_var_D=no
13414 ;;
13415
13416 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13417 freebsd2.*)
13418 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_direct_D=yes
13420 hardcode_minus_L_D=yes
13421 hardcode_shlibpath_var_D=no
13422 ;;
13423
13424 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13425 freebsd* | dragonfly*)
13426 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13427 hardcode_libdir_flag_spec_D='-R$libdir'
13428 hardcode_direct_D=yes
13429 hardcode_shlibpath_var_D=no
13430 ;;
13431
13432 hpux9*)
13433 if test "$GCC" = yes; then
13434 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'
13435 else
13436 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'
13437 fi
13438 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13439 hardcode_libdir_separator_D=:
13440 hardcode_direct_D=yes
13441
13442 # hardcode_minus_L: Not really in the search PATH,
13443 # but as the default location of the library.
13444 hardcode_minus_L_D=yes
13445 export_dynamic_flag_spec_D='${wl}-E'
13446 ;;
13447
13448 hpux10*)
13449 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13450 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13451 else
13452 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13453 fi
13454 if test "$with_gnu_ld" = no; then
13455 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13456 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13457 hardcode_libdir_separator_D=:
13458 hardcode_direct_D=yes
13459 hardcode_direct_absolute_D=yes
13460 export_dynamic_flag_spec_D='${wl}-E'
13461 # hardcode_minus_L: Not really in the search PATH,
13462 # but as the default location of the library.
13463 hardcode_minus_L_D=yes
13464 fi
13465 ;;
13466
13467 hpux11*)
13468 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13469 case $host_cpu in
13470 hppa*64*)
13471 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 ;;
13473 ia64*)
13474 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13475 ;;
13476 *)
13477 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13478 ;;
13479 esac
13480 else
13481 case $host_cpu in
13482 hppa*64*)
13483 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 ;;
13485 ia64*)
13486 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13487 ;;
13488 *)
13489 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13490 ;;
13491 esac
13492 fi
13493 if test "$with_gnu_ld" = no; then
13494 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13495 hardcode_libdir_separator_D=:
13496
13497 case $host_cpu in
13498 hppa*64*|ia64*)
13499 hardcode_direct_D=no
13500 hardcode_shlibpath_var_D=no
13501 ;;
13502 *)
13503 hardcode_direct_D=yes
13504 hardcode_direct_absolute_D=yes
13505 export_dynamic_flag_spec_D='${wl}-E'
13506
13507 # hardcode_minus_L: Not really in the search PATH,
13508 # but as the default location of the library.
13509 hardcode_minus_L_D=yes
13510 ;;
13511 esac
13512 fi
13513 ;;
13514
13515 irix5* | irix6* | nonstopux*)
13516 if test "$GCC" = yes; then
13517 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'
13518 # Try to use the -exported_symbol ld option, if it does not
13519 # work, assume that -exports_file does not work either and
13520 # implicitly export all symbols.
13521 save_LDFLAGS="$LDFLAGS"
13522 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 int foo(void) {}
13526 _ACEOF
13527 if ac_fn_c_try_link "$LINENO"; then :
13528 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'
13529
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LDFLAGS="$save_LDFLAGS"
13534 else
13535 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'
13536 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'
13537 fi
13538 archive_cmds_need_lc_D='no'
13539 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13540 hardcode_libdir_separator_D=:
13541 inherit_rpath_D=yes
13542 link_all_deplibs_D=yes
13543 ;;
13544
13545 netbsd*)
13546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13547 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13548 else
13549 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13550 fi
13551 hardcode_libdir_flag_spec_D='-R$libdir'
13552 hardcode_direct_D=yes
13553 hardcode_shlibpath_var_D=no
13554 ;;
13555
13556 newsos6)
13557 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13558 hardcode_direct_D=yes
13559 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13560 hardcode_libdir_separator_D=:
13561 hardcode_shlibpath_var_D=no
13562 ;;
13563
13564 *nto* | *qnx*)
13565 ;;
13566
13567 openbsd*)
13568 if test -f /usr/libexec/ld.so; then
13569 hardcode_direct_D=yes
13570 hardcode_shlibpath_var_D=no
13571 hardcode_direct_absolute_D=yes
13572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13573 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13575 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13576 export_dynamic_flag_spec_D='${wl}-E'
13577 else
13578 case $host_os in
13579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13580 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13581 hardcode_libdir_flag_spec_D='-R$libdir'
13582 ;;
13583 *)
13584 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13585 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13586 ;;
13587 esac
13588 fi
13589 else
13590 ld_shlibs_D=no
13591 fi
13592 ;;
13593
13594 os2*)
13595 hardcode_libdir_flag_spec_D='-L$libdir'
13596 hardcode_minus_L_D=yes
13597 allow_undefined_flag_D=unsupported
13598 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'
13599 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13600 ;;
13601
13602 osf3*)
13603 if test "$GCC" = yes; then
13604 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13605 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'
13606 else
13607 allow_undefined_flag_D=' -expect_unresolved \*'
13608 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'
13609 fi
13610 archive_cmds_need_lc_D='no'
13611 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator_D=:
13613 ;;
13614
13615 osf4* | osf5*) # as osf3* with the addition of -msym flag
13616 if test "$GCC" = yes; then
13617 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13618 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'
13619 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13620 else
13621 allow_undefined_flag_D=' -expect_unresolved \*'
13622 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'
13623 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~
13624 $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'
13625
13626 # Both c and cxx compiler support -rpath directly
13627 hardcode_libdir_flag_spec_D='-rpath $libdir'
13628 fi
13629 archive_cmds_need_lc_D='no'
13630 hardcode_libdir_separator_D=:
13631 ;;
13632
13633 solaris*)
13634 no_undefined_flag_D=' -z defs'
13635 if test "$GCC" = yes; then
13636 wlarc='${wl}'
13637 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13638 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13640 else
13641 case `$CC -V 2>&1` in
13642 *"Compilers 5.0"*)
13643 wlarc=''
13644 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13647 ;;
13648 *)
13649 wlarc='${wl}'
13650 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13653 ;;
13654 esac
13655 fi
13656 hardcode_libdir_flag_spec_D='-R$libdir'
13657 hardcode_shlibpath_var_D=no
13658 case $host_os in
13659 solaris2.[0-5] | solaris2.[0-5].*) ;;
13660 *)
13661 # The compiler driver will combine and reorder linker options,
13662 # but understands `-z linker_flag'. GCC discards it without `$wl',
13663 # but is careful enough not to reorder.
13664 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665 if test "$GCC" = yes; then
13666 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13667 else
13668 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13669 fi
13670 ;;
13671 esac
13672 link_all_deplibs_D=yes
13673 ;;
13674
13675 sunos4*)
13676 if test "x$host_vendor" = xsequent; then
13677 # Use $CC to link under sequent, because it throws in some extra .o
13678 # files that make .init and .fini sections work.
13679 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13680 else
13681 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13682 fi
13683 hardcode_libdir_flag_spec_D='-L$libdir'
13684 hardcode_direct_D=yes
13685 hardcode_minus_L_D=yes
13686 hardcode_shlibpath_var_D=no
13687 ;;
13688
13689 sysv4)
13690 case $host_vendor in
13691 sni)
13692 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13693 hardcode_direct_D=yes # is this really true???
13694 ;;
13695 siemens)
13696 ## LD is ld it makes a PLAMLIB
13697 ## CC just makes a GrossModule.
13698 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13699 reload_cmds_D='$CC -r -o $output$reload_objs'
13700 hardcode_direct_D=no
13701 ;;
13702 motorola)
13703 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13704 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13705 ;;
13706 esac
13707 runpath_var='LD_RUN_PATH'
13708 hardcode_shlibpath_var_D=no
13709 ;;
13710
13711 sysv4.3*)
13712 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13713 hardcode_shlibpath_var_D=no
13714 export_dynamic_flag_spec_D='-Bexport'
13715 ;;
13716
13717 sysv4*MP*)
13718 if test -d /usr/nec; then
13719 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 hardcode_shlibpath_var_D=no
13721 runpath_var=LD_RUN_PATH
13722 hardcode_runpath_var=yes
13723 ld_shlibs_D=yes
13724 fi
13725 ;;
13726
13727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13728 no_undefined_flag_D='${wl}-z,text'
13729 archive_cmds_need_lc_D=no
13730 hardcode_shlibpath_var_D=no
13731 runpath_var='LD_RUN_PATH'
13732
13733 if test "$GCC" = yes; then
13734 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13735 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 else
13737 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 fi
13740 ;;
13741
13742 sysv5* | sco3.2v5* | sco5v6*)
13743 # Note: We can NOT use -z defs as we might desire, because we do not
13744 # link with -lc, and that would cause any symbols used from libc to
13745 # always be unresolved, which means just about no library would
13746 # ever link correctly. If we're not using GNU ld we use -z text
13747 # though, which does catch some bad symbols but isn't as heavy-handed
13748 # as -z defs.
13749 no_undefined_flag_D='${wl}-z,text'
13750 allow_undefined_flag_D='${wl}-z,nodefs'
13751 archive_cmds_need_lc_D=no
13752 hardcode_shlibpath_var_D=no
13753 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13754 hardcode_libdir_separator_D=':'
13755 link_all_deplibs_D=yes
13756 export_dynamic_flag_spec_D='${wl}-Bexport'
13757 runpath_var='LD_RUN_PATH'
13758
13759 if test "$GCC" = yes; then
13760 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 else
13763 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 fi
13766 ;;
13767
13768 uts4*)
13769 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_libdir_flag_spec_D='-L$libdir'
13771 hardcode_shlibpath_var_D=no
13772 ;;
13773
13774 *)
13775 ld_shlibs_D=no
13776 ;;
13777 esac
13778
13779 if test x$host_vendor = xsni; then
13780 case $host in
13781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13782 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13783 ;;
13784 esac
13785 fi
13786 fi
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13789 $as_echo "$ld_shlibs_D" >&6; }
13790 test "$ld_shlibs_D" = no && can_build_shared=no
13791
13792 with_gnu_ld_D=$with_gnu_ld
13793
13794
13795
13796
13797
13798
13799 #
13800 # Do we need to explicitly link libc?
13801 #
13802 case "x$archive_cmds_need_lc_D" in
13803 x|xyes)
13804 # Assume -lc should be added
13805 archive_cmds_need_lc_D=yes
13806
13807 if test "$enable_shared" = yes && test "$GCC" = yes; then
13808 case $archive_cmds_D in
13809 *'~'*)
13810 # FIXME: we may have to deal with multi-command sequences.
13811 ;;
13812 '$CC '*)
13813 # Test whether the compiler implicitly links with -lc since on some
13814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13815 # to ld, don't add -lc before -lgcc.
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13818 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 $RM conftest*
13822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13823
13824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825 (eval $ac_compile) 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; } 2>conftest.err; then
13829 soname=conftest
13830 lib=conftest
13831 libobjs=conftest.$ac_objext
13832 deplibs=
13833 wl=$lt_prog_compiler_wl_D
13834 pic_flag=$lt_prog_compiler_pic_D
13835 compiler_flags=-v
13836 linker_flags=-v
13837 verstring=
13838 output_objdir=.
13839 libname=conftest
13840 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13841 allow_undefined_flag_D=
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13843 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13844 ac_status=$?
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }
13847 then
13848 lt_cv_archive_cmds_need_lc_D=no
13849 else
13850 lt_cv_archive_cmds_need_lc_D=yes
13851 fi
13852 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13853 else
13854 cat conftest.err 1>&5
13855 fi
13856 $RM conftest*
13857
13858 fi
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13860 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13861 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13862 ;;
13863 esac
13864 fi
13865 ;;
13866 esac
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13933 hardcode_action_D=
13934 if test -n "$hardcode_libdir_flag_spec_D" ||
13935 test -n "$runpath_var_D" ||
13936 test "X$hardcode_automatic_D" = "Xyes" ; then
13937
13938 # We can hardcode non-existent directories.
13939 if test "$hardcode_direct_D" != no &&
13940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13941 # have to relink, otherwise we might link with an installed library
13942 # when we should be linking with a yet-to-be-installed one
13943 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13944 test "$hardcode_minus_L_D" != no; then
13945 # Linking always hardcodes the temporary library directory.
13946 hardcode_action_D=relink
13947 else
13948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13949 hardcode_action_D=immediate
13950 fi
13951 else
13952 # We cannot hardcode anything, or else we can only hardcode existing
13953 # directories.
13954 hardcode_action_D=unsupported
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13957 $as_echo "$hardcode_action_D" >&6; }
13958
13959 if test "$hardcode_action_D" = relink ||
13960 test "$inherit_rpath_D" = yes; then
13961 # Fast installation is not supported
13962 enable_fast_install=no
13963 elif test "$shlibpath_overrides_runpath" = yes ||
13964 test "$enable_shared" = no; then
13965 # Fast installation is not necessary
13966 enable_fast_install=needless
13967 fi
13968
13969
13970
13971
13972
13973
13974
13975 fi
13976
13977 ac_ext=c
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
13983
13984 GCC=$lt_save_GCC
13985 CC=$lt_save_CC
13986 CFLAGS=$lt_save_CFLAGS
13987
13988 GDCFLAGS=$gdc_save_DFLAGS
13989
13990
13991 # libtool variables for Phobos shared and position-independent compiles.
13992 #
13993 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13994 # creating shared objects. Default: -fversion=Shared.
13995 #
13996 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13997 # creating position-independent objects. This varies with the target
13998 # hardware and operating system, but is often: -fPIC.
13999 #
14000 # The distinction between pic and shared compilation flags is not present in
14001 # libtool, and so we make it here. How it is handled is that in shared
14002 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14003 # ensure that conditional compilation of shared runtime code is compiled in.
14004 # The original PIC flags are then used in the compilation of every object.
14005 #
14006 # Why are objects destined for libgphobos.a compiled with -fPIC?
14007 # Because -fPIC is not harmful to use for objects destined for static
14008 # libraries. In addition, using -fPIC will allow the use of static
14009 # libgphobos.a in the creation of other D shared libraries.
14010 if test "$enable_shared" = yes; then
14011 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14012 phobos_compiler_shared_flag="-fversion=Shared"
14013 else
14014 phobos_compiler_pic_flag=
14015 phobos_compiler_shared_flag=
14016 fi
14017
14018
14019
14020 # Override the libtool's pic_flag and pic_mode.
14021 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14022 # NB: this impacts --with-pic and --without-pic.
14023 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14024 pic_mode='default'
14025
14026 # Determine what GCC version number to use in filesystem paths.
14027
14028 get_gcc_base_ver="cat"
14029
14030 # Check whether --with-gcc-major-version-only was given.
14031 if test "${with_gcc_major_version_only+set}" = set; then :
14032 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14033 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14034 fi
14035
14036 fi
14037
14038
14039
14040
14041 # libphobos/libdruntime specific options and feature detection
14042
14043 # These need to be absolute paths, yet at the same time need to
14044 # canonicalize only relative paths, because then amd will not unmount
14045 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14046 libphobos_builddir=`${PWDCMD-pwd}`
14047 case $srcdir in
14048 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14049 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14050 esac
14051
14052
14053
14054
14055 if test ${multilib} = yes; then
14056 multilib_arg="--enable-multilib"
14057 else
14058 multilib_arg=
14059 fi
14060
14061
14062 # Check whether --enable-werror was given.
14063 if test "${enable_werror+set}" = set; then :
14064 enableval=$enable_werror;
14065 fi
14066
14067 WERROR_FLAG=""
14068 if test "x$enable_werror" = "xyes"; then
14069 WERROR_FLAG="-Werror"
14070 fi
14071
14072
14073 druntime_target_cpu_parsed=""
14074 case "$target_cpu" in
14075 aarch64*)
14076 druntime_target_cpu_parsed="aarch64"
14077 ;;
14078 arm*) druntime_target_cpu_parsed="arm"
14079 ;;
14080 mips*) druntime_target_cpu_parsed="mips"
14081 ;;
14082 powerpc*)
14083 druntime_target_cpu_parsed="powerpc"
14084 ;;
14085 i[34567]86|x86_64)
14086 druntime_target_cpu_parsed="x86"
14087 ;;
14088 s390x)
14089 druntime_target_cpu_parsed="s390x"
14090 ;;
14091 s390)
14092 druntime_target_cpu_parsed="s390"
14093 ;;
14094 esac
14095 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14096 DRUNTIME_CPU_AARCH64_TRUE=
14097 DRUNTIME_CPU_AARCH64_FALSE='#'
14098 else
14099 DRUNTIME_CPU_AARCH64_TRUE='#'
14100 DRUNTIME_CPU_AARCH64_FALSE=
14101 fi
14102
14103 if test "$druntime_target_cpu_parsed" = "arm"; then
14104 DRUNTIME_CPU_ARM_TRUE=
14105 DRUNTIME_CPU_ARM_FALSE='#'
14106 else
14107 DRUNTIME_CPU_ARM_TRUE='#'
14108 DRUNTIME_CPU_ARM_FALSE=
14109 fi
14110
14111 if test "$druntime_target_cpu_parsed" = "mips"; then
14112 DRUNTIME_CPU_MIPS_TRUE=
14113 DRUNTIME_CPU_MIPS_FALSE='#'
14114 else
14115 DRUNTIME_CPU_MIPS_TRUE='#'
14116 DRUNTIME_CPU_MIPS_FALSE=
14117 fi
14118
14119 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14120 DRUNTIME_CPU_POWERPC_TRUE=
14121 DRUNTIME_CPU_POWERPC_FALSE='#'
14122 else
14123 DRUNTIME_CPU_POWERPC_TRUE='#'
14124 DRUNTIME_CPU_POWERPC_FALSE=
14125 fi
14126
14127 if test "$druntime_target_cpu_parsed" = "x86"; then
14128 DRUNTIME_CPU_X86_TRUE=
14129 DRUNTIME_CPU_X86_FALSE='#'
14130 else
14131 DRUNTIME_CPU_X86_TRUE='#'
14132 DRUNTIME_CPU_X86_FALSE=
14133 fi
14134
14135 if test "$druntime_target_cpu_parsed" = "s390x"; then
14136 DRUNTIME_CPU_SYSTEMZ_TRUE=
14137 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14138 else
14139 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14140 DRUNTIME_CPU_SYSTEMZ_FALSE=
14141 fi
14142
14143 if test "$druntime_target_cpu_parsed" = "s390"; then
14144 DRUNTIME_CPU_S390_TRUE=
14145 DRUNTIME_CPU_S390_FALSE='#'
14146 else
14147 DRUNTIME_CPU_S390_TRUE='#'
14148 DRUNTIME_CPU_S390_FALSE=
14149 fi
14150
14151
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14154 $as_echo_n "checking for target OS... " >&6; }
14155 if ${druntime_cv_target_os+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14161 $as_echo "$druntime_cv_target_os" >&6; }
14162 if test -z "$druntime_cv_target_os"; then :
14163 as_fn_error $? "can't detect target OS" "$LINENO" 5
14164 fi
14165
14166
14167
14168
14169 druntime_target_os_parsed=""
14170 case "$druntime_cv_target_os" in
14171 aix*) druntime_target_os_parsed="aix"
14172 ;;
14173 *android*)
14174 druntime_target_os_parsed="android"
14175 ;;
14176 darwin*) druntime_target_os_parsed="darwin"
14177 ;;
14178 dragonfly*)
14179 druntime_target_os_parsed="dragonflybsd"
14180 ;;
14181 freebsd*|k*bsd*-gnu)
14182 druntime_target_os_parsed="freebsd"
14183 ;;
14184 openbsd*)
14185 druntime_target_os_parsed="openbsd"
14186 ;;
14187 netbsd*)
14188 druntime_target_os_parsed="netbsd"
14189 ;;
14190 linux*) druntime_target_os_parsed="linux"
14191 ;;
14192 mingw*) druntime_target_os_parsed="mingw"
14193 ;;
14194 *solaris*) druntime_target_os_parsed="solaris"
14195 esac
14196 if test "$druntime_target_os_parsed" = "aix"; then
14197 DRUNTIME_OS_AIX_TRUE=
14198 DRUNTIME_OS_AIX_FALSE='#'
14199 else
14200 DRUNTIME_OS_AIX_TRUE='#'
14201 DRUNTIME_OS_AIX_FALSE=
14202 fi
14203
14204 if test "$druntime_target_os_parsed" = "android"; then
14205 DRUNTIME_OS_ANDROID_TRUE=
14206 DRUNTIME_OS_ANDROID_FALSE='#'
14207 else
14208 DRUNTIME_OS_ANDROID_TRUE='#'
14209 DRUNTIME_OS_ANDROID_FALSE=
14210 fi
14211
14212 if test "$druntime_target_os_parsed" = "darwin"; then
14213 DRUNTIME_OS_DARWIN_TRUE=
14214 DRUNTIME_OS_DARWIN_FALSE='#'
14215 else
14216 DRUNTIME_OS_DARWIN_TRUE='#'
14217 DRUNTIME_OS_DARWIN_FALSE=
14218 fi
14219
14220 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14221 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14222 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14223 else
14224 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14225 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14226 fi
14227
14228 if test "$druntime_target_os_parsed" = "freebsd"; then
14229 DRUNTIME_OS_FREEBSD_TRUE=
14230 DRUNTIME_OS_FREEBSD_FALSE='#'
14231 else
14232 DRUNTIME_OS_FREEBSD_TRUE='#'
14233 DRUNTIME_OS_FREEBSD_FALSE=
14234 fi
14235
14236 if test "$druntime_target_os_parsed" = "netbsd"; then
14237 DRUNTIME_OS_NETBSD_TRUE=
14238 DRUNTIME_OS_NETBSD_FALSE='#'
14239 else
14240 DRUNTIME_OS_NETBSD_TRUE='#'
14241 DRUNTIME_OS_NETBSD_FALSE=
14242 fi
14243
14244 if test "$druntime_target_os_parsed" = "openbsd"; then
14245 DRUNTIME_OS_OPENBSD_TRUE=
14246 DRUNTIME_OS_OPENBSD_FALSE='#'
14247 else
14248 DRUNTIME_OS_OPENBSD_TRUE='#'
14249 DRUNTIME_OS_OPENBSD_FALSE=
14250 fi
14251
14252 if test "$druntime_target_os_parsed" = "linux"; then
14253 DRUNTIME_OS_LINUX_TRUE=
14254 DRUNTIME_OS_LINUX_FALSE='#'
14255 else
14256 DRUNTIME_OS_LINUX_TRUE='#'
14257 DRUNTIME_OS_LINUX_FALSE=
14258 fi
14259
14260 if test "$druntime_target_os_parsed" = "mingw"; then
14261 DRUNTIME_OS_MINGW_TRUE=
14262 DRUNTIME_OS_MINGW_FALSE='#'
14263 else
14264 DRUNTIME_OS_MINGW_TRUE='#'
14265 DRUNTIME_OS_MINGW_FALSE=
14266 fi
14267
14268 if test "$druntime_target_os_parsed" = "solaris"; then
14269 DRUNTIME_OS_SOLARIS_TRUE=
14270 DRUNTIME_OS_SOLARIS_FALSE='#'
14271 else
14272 DRUNTIME_OS_SOLARIS_TRUE='#'
14273 DRUNTIME_OS_SOLARIS_FALSE=
14274 fi
14275
14276
14277 druntime_target_posix="no"
14278 case "$druntime_cv_target_os" in
14279 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14280 druntime_target_posix="yes"
14281 ;;
14282 esac
14283 if test "$druntime_target_posix" = "yes"; then
14284 DRUNTIME_OS_POSIX_TRUE=
14285 DRUNTIME_OS_POSIX_FALSE='#'
14286 else
14287 DRUNTIME_OS_POSIX_TRUE='#'
14288 DRUNTIME_OS_POSIX_FALSE=
14289 fi
14290
14291
14292
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14295 $as_echo_n "checking for thread model used by GDC... " >&6; }
14296 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14298 $as_echo "$d_thread_model" >&6; }
14299
14300 # Map from thread model to thread interface.
14301
14302 case $d_thread_model in
14303 aix) DCFG_THREAD_MODEL="Posix" ;;
14304 lynx) DCFG_THREAD_MODEL="Posix" ;;
14305 posix) DCFG_THREAD_MODEL="Posix" ;;
14306 single) DCFG_THREAD_MODEL="Single" ;;
14307 win32) DCFG_THREAD_MODEL="Win32" ;;
14308 # TODO: These targets need porting.
14309 dce|mipssde|rtems|tpf|vxworks)
14310 DCFG_THREAD_MODEL="Single" ;;
14311 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14312 esac
14313
14314
14315
14316
14317 ac_ext=c
14318 ac_cpp='$CPP $CPPFLAGS'
14319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14322
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14324 $as_echo_n "checking for ARM unwinder... " >&6; }
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #include <unwind.h>
14328 int
14329 main ()
14330 {
14331
14332 #if __ARM_EABI_UNWINDER__
14333 #error Yes, it is.
14334 #endif
14335
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_compile "$LINENO"; then :
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 DCFG_ARM_EABI_UNWINDER=false
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14346 $as_echo "yes" >&6; }
14347 DCFG_ARM_EABI_UNWINDER=true
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350
14351 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14352 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14353 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14354 else
14355 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14356 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14357 fi
14358
14359 ac_ext=c
14360 ac_cpp='$CPP $CPPFLAGS'
14361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364
14365
14366
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14374 $as_echo_n "checking for minfo section bracketing... " >&6; }
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378 void* module_info_ptr __attribute__((section ("minfo")));
14379 extern void* __start_minfo __attribute__((visibility ("hidden")));
14380 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14381
14382 int main()
14383 {
14384 // Never run, just to prevent compiler from optimizing access
14385 return &__start_minfo == &__stop_minfo;
14386 }
14387
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"; then :
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14391 $as_echo "yes" >&6; }
14392 DCFG_MINFO_BRACKETING=true
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 DCFG_MINFO_BRACKETING=false
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400
14401 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14402 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14403 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14404 else
14405 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14406 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14407 fi
14408
14409 ac_ext=c
14410 ac_cpp='$CPP $CPPFLAGS'
14411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14414
14415
14416
14417 ac_ext=c
14418 ac_cpp='$CPP $CPPFLAGS'
14419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14422
14423 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>
14424 "
14425 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14426 DCFG_DLPI_TLS_MODID=true
14427 else
14428 DCFG_DLPI_TLS_MODID=false
14429 fi
14430
14431
14432 ac_ext=c
14433 ac_cpp='$CPP $CPPFLAGS'
14434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14437
14438
14439
14440 case $target in
14441 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14442 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14443 # relocs. Work around by disabling TLS transitions. Not necessary
14444 # on 32-bit x86, but cannot be distinguished reliably in specs.
14445 druntime_ld_prog=`$CC -print-prog-name=ld`
14446 druntime_ld_gld=no
14447 druntime_ld_relax_transtls=no
14448 if test -n "$druntime_ld_prog" \
14449 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14450 druntime_ld_gld=yes
14451 else
14452 echo 'int main (void) { return 0; }' > conftest.c
14453 save_LDFLAGS="$LDFLAGS"
14454 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14455 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14456 druntime_ld_relax_transtls=yes
14457 fi
14458 LDFLAGS="$save_LDFLAGS"
14459 rm -f conftest.c conftest
14460 fi
14461 if test "$druntime_ld_relax_transtls" = "yes"; then
14462 OS_LINK_SPEC='-z relax=transtls'
14463 fi
14464 ;;
14465 esac
14466
14467
14468
14469 ac_ext=c
14470 ac_cpp='$CPP $CPPFLAGS'
14471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14474
14475 DCFG_HAVE_QSORT_R=false
14476 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14477 if test "x$ac_cv_func_qsort_r" = xyes; then :
14478 DCFG_HAVE_QSORT_R=true
14479 fi
14480
14481
14482 ac_ext=c
14483 ac_cpp='$CPP $CPPFLAGS'
14484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14487
14488
14489
14490
14491
14492 gdc_save_DFLAGS=$GDCFLAGS
14493 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14494
14495 ac_ext=d
14496 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14497 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14498 ac_compiler_gnu=yes
14499
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14501 $as_echo_n "checking for library containing malloc... " >&6; }
14502 if ${ac_cv_search_malloc+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 ac_func_search_save_LIBS=$LIBS
14506 cat > conftest.$ac_ext <<_ACEOF
14507 module mod;
14508 extern(C) int malloc();
14509
14510 extern(C) int main() {
14511 malloc(); return 0;
14512 }
14513 _ACEOF
14514 for ac_lib in '' c; do
14515 if test -z "$ac_lib"; then
14516 ac_res="none required"
14517 else
14518 ac_res=-l$ac_lib
14519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14520 fi
14521 if ac_fn_d_try_link "$LINENO"; then :
14522 ac_cv_search_malloc=$ac_res
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext
14526 if ${ac_cv_search_malloc+:} false; then :
14527 break
14528 fi
14529 done
14530 if ${ac_cv_search_malloc+:} false; then :
14531
14532 else
14533 ac_cv_search_malloc=no
14534 fi
14535 rm conftest.$ac_ext
14536 LIBS=$ac_func_search_save_LIBS
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14539 $as_echo "$ac_cv_search_malloc" >&6; }
14540 ac_res=$ac_cv_search_malloc
14541 if test "$ac_res" != no; then :
14542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14543
14544 fi
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14547 $as_echo_n "checking for library containing pthread_create... " >&6; }
14548 if ${ac_cv_search_pthread_create+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 ac_func_search_save_LIBS=$LIBS
14552 cat > conftest.$ac_ext <<_ACEOF
14553 module mod;
14554 extern(C) int pthread_create();
14555
14556 extern(C) int main() {
14557 pthread_create(); return 0;
14558 }
14559 _ACEOF
14560 for ac_lib in '' pthread; do
14561 if test -z "$ac_lib"; then
14562 ac_res="none required"
14563 else
14564 ac_res=-l$ac_lib
14565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14566 fi
14567 if ac_fn_d_try_link "$LINENO"; then :
14568 ac_cv_search_pthread_create=$ac_res
14569 fi
14570 rm -f core conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext
14572 if ${ac_cv_search_pthread_create+:} false; then :
14573 break
14574 fi
14575 done
14576 if ${ac_cv_search_pthread_create+:} false; then :
14577
14578 else
14579 ac_cv_search_pthread_create=no
14580 fi
14581 rm conftest.$ac_ext
14582 LIBS=$ac_func_search_save_LIBS
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14585 $as_echo "$ac_cv_search_pthread_create" >&6; }
14586 ac_res=$ac_cv_search_pthread_create
14587 if test "$ac_res" != no; then :
14588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14589
14590 fi
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14593 $as_echo_n "checking for library containing cosf... " >&6; }
14594 if ${ac_cv_search_cosf+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 ac_func_search_save_LIBS=$LIBS
14598 cat > conftest.$ac_ext <<_ACEOF
14599 module mod;
14600 extern(C) int cosf();
14601
14602 extern(C) int main() {
14603 cosf(); return 0;
14604 }
14605 _ACEOF
14606 for ac_lib in '' m; do
14607 if test -z "$ac_lib"; then
14608 ac_res="none required"
14609 else
14610 ac_res=-l$ac_lib
14611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14612 fi
14613 if ac_fn_d_try_link "$LINENO"; then :
14614 ac_cv_search_cosf=$ac_res
14615 fi
14616 rm -f core conftest.err conftest.$ac_objext \
14617 conftest$ac_exeext
14618 if ${ac_cv_search_cosf+:} false; then :
14619 break
14620 fi
14621 done
14622 if ${ac_cv_search_cosf+:} false; then :
14623
14624 else
14625 ac_cv_search_cosf=no
14626 fi
14627 rm conftest.$ac_ext
14628 LIBS=$ac_func_search_save_LIBS
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14631 $as_echo "$ac_cv_search_cosf" >&6; }
14632 ac_res=$ac_cv_search_cosf
14633 if test "$ac_res" != no; then :
14634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14635
14636 fi
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14639 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14640 if ${ac_cv_search_clock_gettime+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 ac_func_search_save_LIBS=$LIBS
14644 cat > conftest.$ac_ext <<_ACEOF
14645 module mod;
14646 extern(C) int clock_gettime();
14647
14648 extern(C) int main() {
14649 clock_gettime(); return 0;
14650 }
14651 _ACEOF
14652 for ac_lib in '' rt; do
14653 if test -z "$ac_lib"; then
14654 ac_res="none required"
14655 else
14656 ac_res=-l$ac_lib
14657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14658 fi
14659 if ac_fn_d_try_link "$LINENO"; then :
14660 ac_cv_search_clock_gettime=$ac_res
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext \
14663 conftest$ac_exeext
14664 if ${ac_cv_search_clock_gettime+:} false; then :
14665 break
14666 fi
14667 done
14668 if ${ac_cv_search_clock_gettime+:} false; then :
14669
14670 else
14671 ac_cv_search_clock_gettime=no
14672 fi
14673 rm conftest.$ac_ext
14674 LIBS=$ac_func_search_save_LIBS
14675 fi
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14677 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14678 ac_res=$ac_cv_search_clock_gettime
14679 if test "$ac_res" != no; then :
14680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14681
14682 fi
14683
14684
14685 # This checks to see if the host supports the compiler-generated builtins
14686 # for atomic operations for various integral sizes. Note, this is intended
14687 # to be an all-or-nothing switch, so all the atomic operations that are
14688 # used should be checked.
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14690 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14691 if ${druntime_cv_atomic_byte+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694
14695 cat > conftest.$ac_ext <<_ACEOF
14696 module mod;
14697 import gcc.builtins;
14698
14699 extern(C) int main() {
14700
14701 shared(byte) c1;
14702 byte c2, c3;
14703 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14704 __atomic_load_1(&c1, 5);
14705 __atomic_store_1(&c1, c2, 5);
14706 return 0;
14707
14708 }
14709 _ACEOF
14710 if ac_fn_d_try_link "$LINENO"; then :
14711 druntime_cv_atomic_byte=yes
14712 else
14713 druntime_cv_atomic_byte=no
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717
14718 fi
14719
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14721 $as_echo "$druntime_cv_atomic_byte" >&6; }
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14724 $as_echo_n "checking for atomic builtins for short... " >&6; }
14725 if ${druntime_cv_atomic_short+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728
14729 cat > conftest.$ac_ext <<_ACEOF
14730 module mod;
14731 import gcc.builtins;
14732
14733 extern(C) int main() {
14734
14735 shared(short) c1;
14736 short c2, c3;
14737 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14738 __atomic_load_2(&c1, 5);
14739 __atomic_store_2(&c1, c2, 5);
14740 return 0;
14741
14742 }
14743 _ACEOF
14744 if ac_fn_d_try_link "$LINENO"; then :
14745 druntime_cv_atomic_short=yes
14746 else
14747 druntime_cv_atomic_short=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext \
14750 conftest$ac_exeext conftest.$ac_ext
14751
14752 fi
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14755 $as_echo "$druntime_cv_atomic_short" >&6; }
14756
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14758 $as_echo_n "checking for atomic builtins for int... " >&6; }
14759 if ${druntime_cv_atomic_int+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762
14763 cat > conftest.$ac_ext <<_ACEOF
14764 module mod;
14765 import gcc.builtins;
14766
14767 extern(C) int main() {
14768
14769 shared(int) c1;
14770 int c2, c3;
14771 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14772 __atomic_load_4(&c1, 5);
14773 __atomic_store_4(&c1, c2, 5);
14774 return 0;
14775
14776 }
14777 _ACEOF
14778 if ac_fn_d_try_link "$LINENO"; then :
14779 druntime_cv_atomic_int=yes
14780 else
14781 druntime_cv_atomic_int=no
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext conftest.$ac_ext
14785
14786 fi
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14789 $as_echo "$druntime_cv_atomic_int" >&6; }
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14792 $as_echo_n "checking for atomic builtins for long... " >&6; }
14793 if ${druntime_cv_atomic_long+:} false; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796
14797 cat > conftest.$ac_ext <<_ACEOF
14798 module mod;
14799 import gcc.builtins;
14800
14801 extern(C) int main() {
14802
14803 shared(long) c1;
14804 long c2, c3;
14805 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14806 __atomic_load_8(&c1, 5);
14807 __atomic_store_8(&c1, c2, 5);
14808 return 0;
14809
14810 }
14811 _ACEOF
14812 if ac_fn_d_try_link "$LINENO"; then :
14813 druntime_cv_atomic_long=yes
14814 else
14815 druntime_cv_atomic_long=no
14816 fi
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14819
14820 fi
14821
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14823 $as_echo "$druntime_cv_atomic_long" >&6; }
14824
14825 # Have atomic builtin support if all but the long test above passes.
14826 DCFG_HAVE_ATOMIC_BUILTINS=false
14827 if test "$druntime_cv_atomic_byte" = yes \
14828 && test "$druntime_cv_atomic_short" = yes \
14829 && test "$druntime_cv_atomic_int" = yes; then \
14830 DCFG_HAVE_ATOMIC_BUILTINS=true
14831 fi
14832
14833 # Have 64-bit atomic support if the long test above passes.
14834 DCFG_HAVE_64BIT_ATOMICS=false
14835 if test "$druntime_cv_atomic_long" = yes; then
14836 DCFG_HAVE_64BIT_ATOMICS=true
14837 fi
14838
14839
14840
14841
14842 ac_ext=c
14843 ac_cpp='$CPP $CPPFLAGS'
14844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847
14848
14849 GDCFLAGS=$gdc_save_DFLAGS
14850
14851
14852
14853
14854 # Check whether --with-libatomic was given.
14855 if test "${with_libatomic+set}" = set; then :
14856 withval=$with_libatomic;
14857 fi
14858
14859
14860 DCFG_HAVE_LIBATOMIC=false
14861 LIBATOMIC=
14862 if test "x$with_libatomic" != "xno"; then :
14863
14864 DCFG_HAVE_LIBATOMIC=true
14865 LIBATOMIC=../../libatomic/libatomic_convenience.la
14866
14867 else
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14870 $as_echo_n "checking for libatomic... " >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14872 $as_echo "disabled" >&6; }
14873
14874 fi
14875
14876
14877
14878
14879
14880 ac_ext=c
14881 ac_cpp='$CPP $CPPFLAGS'
14882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885
14886 BACKTRACE_SUPPORTED=false
14887 BACKTRACE_USES_MALLOC=false
14888 BACKTRACE_SUPPORTS_THREADS=false
14889 LIBBACKTRACE=""
14890
14891
14892 # Check whether --with-libbacktrace was given.
14893 if test "${with_libbacktrace+set}" = set; then :
14894 withval=$with_libbacktrace;
14895 fi
14896
14897
14898 if test "x$with_libbacktrace" != "xno"; then :
14899
14900 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14901
14902 gdc_save_CPPFLAGS=$CPPFLAGS
14903 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14904
14905 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14906 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14907 have_libbacktrace_h=true
14908 else
14909 have_libbacktrace_h=false
14910 fi
14911
14912
14913
14914 if $have_libbacktrace_h; then
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14916 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919
14920 #include <backtrace-supported.h>
14921 #if BACKTRACE_SUPPORTED
14922 FOUND_LIBBACKTRACE_RESULT_GDC
14923 #endif
14924
14925 _ACEOF
14926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14927 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14928 BACKTRACE_SUPPORTED=true
14929 else
14930 BACKTRACE_SUPPORTED=false
14931 fi
14932 rm -f conftest*
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14935 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14938 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 #include <backtrace-supported.h>
14943 #if BACKTRACE_USES_MALLOC
14944 FOUND_LIBBACKTRACE_RESULT_GDC
14945 #endif
14946
14947 _ACEOF
14948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14949 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14950 BACKTRACE_USES_MALLOC=true
14951 else
14952 BACKTRACE_USES_MALLOC=false
14953 fi
14954 rm -f conftest*
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14957 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14960 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963
14964 #include <backtrace-supported.h>
14965 #if BACKTRACE_SUPPORTS_THREADS
14966 FOUND_LIBBACKTRACE_RESULT_GDC
14967 #endif
14968
14969 _ACEOF
14970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14971 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14972 BACKTRACE_SUPPORTS_THREADS=true
14973 else
14974 BACKTRACE_SUPPORTS_THREADS=false
14975 fi
14976 rm -f conftest*
14977
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14979 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14980 fi
14981 CPPFLAGS=$gdc_save_CPPFLAGS
14982
14983 else
14984
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14986 $as_echo_n "checking for libbacktrace... " >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14988 $as_echo "disabled" >&6; }
14989
14990 fi
14991
14992
14993
14994
14995
14996 ac_ext=c
14997 ac_cpp='$CPP $CPPFLAGS'
14998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15001
15002
15003
15004 # Libtool has already checked this, so re-use the inferred dlopen lib.
15005 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15006
15007 LIBS="$LIBS $lt_cv_dlopen_libs"
15008
15009 fi
15010
15011
15012 druntime_check_both=no
15013 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15014 if test "x$ac_cv_func_connect" = xyes; then :
15015
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15018 $as_echo_n "checking for connect in -lsocket... " >&6; }
15019 if ${ac_cv_lib_socket_connect+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-lsocket $LIBS"
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15026
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char connect ();
15034 int
15035 main ()
15036 {
15037 return connect ();
15038 ;
15039 return 0;
15040 }
15041 _ACEOF
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 ac_cv_lib_socket_connect=yes
15044 else
15045 ac_cv_lib_socket_connect=no
15046 fi
15047 rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LIBS=$ac_check_lib_save_LIBS
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15052 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15053 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15054 LIBS="$LIBS -lsocket"
15055 else
15056 druntime_check_both=yes
15057 fi
15058
15059 fi
15060
15061 if test "$druntime_check_both" = "yes"; then
15062 druntime_old_libs=$LIBS
15063 LIBS="$LIBS -lsocket -lnsl"
15064 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15065 if test "x$ac_cv_func_accept" = xyes; then :
15066
15067 else
15068 LIBS=$druntime_old_libs
15069 fi
15070
15071 fi
15072 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15073 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15074
15075 else
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15077 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15078 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lnsl $LIBS"
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085
15086 /* Override any GCC internal prototype to avoid an error.
15087 Use char because int might match the return type of a GCC
15088 builtin and then its argument prototype would still apply. */
15089 #ifdef __cplusplus
15090 extern "C"
15091 #endif
15092 char gethostbyname ();
15093 int
15094 main ()
15095 {
15096 return gethostbyname ();
15097 ;
15098 return 0;
15099 }
15100 _ACEOF
15101 if ac_fn_c_try_link "$LINENO"; then :
15102 ac_cv_lib_nsl_gethostbyname=yes
15103 else
15104 ac_cv_lib_nsl_gethostbyname=no
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext \
15107 conftest$ac_exeext conftest.$ac_ext
15108 LIBS=$ac_check_lib_save_LIBS
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15111 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15112 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15113 LIBS="$LIBS -lnsl"
15114 fi
15115
15116 fi
15117
15118
15119
15120 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15121 # "yes" for targets that have 'version = AsmExternal'.
15122 druntime_fiber_asm_external=no
15123 case "$target_cpu" in
15124 aarch64* | \
15125 arm* | \
15126 i[34567]86|x86_64 | \
15127 powerpc)
15128 druntime_fiber_asm_external=yes
15129 ;;
15130 esac
15131 if test "$druntime_fiber_asm_external" = no; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15133 $as_echo_n "checking for library containing swapcontext... " >&6; }
15134 if ${ac_cv_search_swapcontext+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 ac_func_search_save_LIBS=$LIBS
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15144 #ifdef __cplusplus
15145 extern "C"
15146 #endif
15147 char swapcontext ();
15148 int
15149 main ()
15150 {
15151 return swapcontext ();
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 for ac_lib in '' c ucontext; do
15157 if test -z "$ac_lib"; then
15158 ac_res="none required"
15159 else
15160 ac_res=-l$ac_lib
15161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15162 fi
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 ac_cv_search_swapcontext=$ac_res
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext
15168 if ${ac_cv_search_swapcontext+:} false; then :
15169 break
15170 fi
15171 done
15172 if ${ac_cv_search_swapcontext+:} false; then :
15173
15174 else
15175 ac_cv_search_swapcontext=no
15176 fi
15177 rm conftest.$ac_ext
15178 LIBS=$ac_func_search_save_LIBS
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15181 $as_echo "$ac_cv_search_swapcontext" >&6; }
15182 ac_res=$ac_cv_search_swapcontext
15183 if test "$ac_res" != no; then :
15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15185
15186 else
15187 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15188 fi
15189
15190 fi
15191
15192
15193 ac_ext=c
15194 ac_cpp='$CPP $CPPFLAGS'
15195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15198
15199 LIBZ=""
15200
15201
15202 # Check whether --with-target-system-zlib was given.
15203 if test "${with_target_system_zlib+set}" = set; then :
15204 withval=$with_target_system_zlib;
15205 else
15206 with_target_system_zlib=no
15207 fi
15208
15209
15210 case "$with_target_system_zlib" in
15211 yes|no|auto) ;;
15212 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15213 esac
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15216 $as_echo_n "checking for system zlib... " >&6; }
15217 save_LIBS=$LIBS
15218 LIBS="$LIBS -lz"
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 #include <zlib.h>
15222 int
15223 main ()
15224 {
15225 gzopen("none", "rb")
15226 ;
15227 return 0;
15228 }
15229 _ACEOF
15230 if ac_fn_c_try_link "$LINENO"; then :
15231
15232 if test "$cross_compiling" = yes; then :
15233 system_zlib_found=no
15234
15235 else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239 #include <zlib.h>
15240 int main() {
15241 gzFile file = gzopen("none", "rb");
15242 return 0;
15243 }
15244
15245 _ACEOF
15246 if ac_fn_c_try_run "$LINENO"; then :
15247 system_zlib_found=yes
15248 else
15249 system_zlib_found=no
15250 fi
15251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15252 conftest.$ac_objext conftest.beam conftest.$ac_ext
15253 fi
15254
15255
15256 else
15257 system_zlib_found=no
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$save_LIBS
15262
15263 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15265 $as_echo "found" >&6; }
15266 LIBS="$LIBS -lz"
15267 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15268 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15271 $as_echo "just compiled" >&6; }
15272 LIBZ=../../zlib/libz_convenience.la
15273 fi
15274
15275
15276 ac_ext=c
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
15282
15283
15284
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15287 $as_echo_n "checking D GCC version... " >&6; }
15288 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15290 $as_echo "$gcc_version" >&6; }
15291
15292
15293
15294 # Check whether --with-cross-host was given.
15295 if test "${with_cross_host+set}" = set; then :
15296 withval=$with_cross_host;
15297 fi
15298
15299
15300 libphobos_toolexecdir=no
15301 libphobos_toolexeclibdir=no
15302
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15304 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15305 # Check whether --enable-version-specific-runtime-libs was given.
15306 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15307 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15308 yes) version_specific_libs=yes ;;
15309 no) version_specific_libs=no ;;
15310 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15311 esac
15312 else
15313 version_specific_libs=no
15314 fi
15315
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15317 $as_echo "$version_specific_libs" >&6; }
15318
15319
15320 # Check whether --with-toolexeclibdir was given.
15321 if test "${with_toolexeclibdir+set}" = set; then :
15322 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15323 /)
15324 ;;
15325 */)
15326 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15327 ;;
15328 esac
15329 else
15330 with_toolexeclibdir=no
15331 fi
15332
15333
15334
15335 # Version-specific runtime libs processing.
15336 if test $version_specific_libs = yes; then
15337 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15338 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15339 else
15340 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15341 # Install a library built with a cross compiler in tooldir, not libdir.
15342 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15343 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15344 case ${with_toolexeclibdir} in
15345 no)
15346 libphobos_toolexeclibdir='${toolexecdir}/lib'
15347 ;;
15348 *)
15349 libphobos_toolexeclibdir=${with_toolexeclibdir}
15350 ;;
15351 esac
15352 else
15353 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15354 libphobos_toolexeclibdir='${libdir}'
15355 fi
15356 multi_os_directory=`$GDC -print-multi-os-directory`
15357 case $multi_os_directory in
15358 .) ;; # Avoid trailing /.
15359 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15360 esac
15361 fi
15362
15363
15364
15365 # Default case for install directory for D sources files.
15366 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15367
15368
15369
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15371 $as_echo_n "checking for --enable-libphobos... " >&6; }
15372 # Check whether --enable-libphobos was given.
15373 if test "${enable_libphobos+set}" = set; then :
15374 enableval=$enable_libphobos;
15375 fi
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15378 $as_echo "$enable_libphobos" >&6; }
15379
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15381 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15382
15383 # Check whether --with-libphobos-druntime-only was given.
15384 if test "${with_libphobos_druntime_only+set}" = set; then :
15385 withval=$with_libphobos_druntime_only;
15386 else
15387 with_libphobos_druntime_only=auto
15388 fi
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15391 $as_echo "$with_libphobos_druntime_only" >&6; }
15392
15393 case "$with_libphobos_druntime_only" in
15394 yes|no|auto) ;;
15395 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15396 esac
15397
15398 # See if supported.
15399 unset LIBPHOBOS_SUPPORTED
15400 unset LIBDRUNTIME_ONLY
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15402 $as_echo_n "checking for host support for libphobos... " >&6; }
15403 . ${srcdir}/configure.tgt
15404 case ${host} in
15405 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15406 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15407 # relatively low linelength limit.
15408 as_prog=`$CC -print-prog-name=as`
15409 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15410 druntime_cv_use_gas=yes;
15411 else
15412 druntime_cv_use_gas=no;
15413 fi
15414 rm -f a.out
15415 if test x$druntime_cv_use_gas = xno; then
15416 LIBPHOBOS_SUPPORTED=no
15417 fi
15418 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15419 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15420 LIBPHOBOS_SUPPORTED=no
15421 fi
15422 ;;
15423 esac
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15425 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15426
15427 # Decide if it's usable.
15428 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15429 *:no) use_libphobos=no ;;
15430 *:yes) use_libphobos=yes ;;
15431 yes:*) use_libphobos=yes ;;
15432 *:*) use_libphobos=no ;;
15433 esac
15434 if test x$use_libphobos = xyes; then
15435 ENABLE_LIBPHOBOS_TRUE=
15436 ENABLE_LIBPHOBOS_FALSE='#'
15437 else
15438 ENABLE_LIBPHOBOS_TRUE='#'
15439 ENABLE_LIBPHOBOS_FALSE=
15440 fi
15441
15442
15443 # Decide if only libdruntime should be built.
15444 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15445 *:no) only_libdruntime=no ;;
15446 *:yes) only_libdruntime=yes ;;
15447 yes:*) only_libdruntime=yes ;;
15448 *:*) only_libdruntime=no ;;
15449 esac
15450 if test x$only_libdruntime = xyes; then
15451 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15452 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15453 else
15454 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15455 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15456 fi
15457
15458
15459 # Enable expensive internal checks
15460 # Check whether --enable-libphobos-checking was given.
15461 if test "${enable_libphobos_checking+set}" = set; then :
15462 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15463 else
15464 ac_checking_flags=release
15465 fi
15466
15467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15468 for check in release $ac_checking_flags
15469 do
15470 case $check in
15471 # These set all the flags to specific states
15472 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15473 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15474 # These enable particular checks
15475 assert) ASSERT_FLAG="-fassert" ;;
15476 # Accept
15477 *) ;;
15478 esac
15479 done
15480 IFS="$ac_save_IFS"
15481 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15482
15483
15484 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15485 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15486 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15487 else
15488 DRTSTUFF_SPEC=/dev/null
15489 fi
15490
15491
15492 # Add dependencies for libgphobos.spec file
15493 SPEC_PHOBOS_DEPS="$LIBS"
15494
15495
15496 # Libdruntime / phobos soname version
15497 libtool_VERSION=1:0:0
15498
15499
15500 # Set default flags (after DRUNTIME_WERROR!)
15501 if test -z "$GDCFLAGS"; then
15502 GDCFLAGS="-g -O2"
15503 fi
15504
15505
15506 WARN_DFLAGS="-Wall $WERROR_FLAG"
15507
15508
15509 # Sanity check for the cross-compilation case:
15510 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15511 if test "x$ac_cv_header_stdio_h" = xyes; then :
15512 :
15513 else
15514 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15515 fi
15516
15517
15518
15519 ac_config_files="$ac_config_files Makefile"
15520
15521
15522 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15523
15524 ac_config_files="$ac_config_files src/libgphobos.spec"
15525
15526 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15527
15528
15529 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15530 # that multilib installs will end up installed in the correct place.
15531 # The testsuite needs it for multilib-aware ABI baseline files.
15532 # To work around this not being passed down from config-ml.in ->
15533 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15534 # append it here. Only modify Makefiles that have just been created.
15535 #
15536 # Also, get rid of this simulated-VPATH thing that automake does.
15537 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15538
15539
15540 cat >confcache <<\_ACEOF
15541 # This file is a shell script that caches the results of configure
15542 # tests run on this system so they can be shared between configure
15543 # scripts and configure runs, see configure's option --config-cache.
15544 # It is not useful on other systems. If it contains results you don't
15545 # want to keep, you may remove or edit it.
15546 #
15547 # config.status only pays attention to the cache file if you give it
15548 # the --recheck option to rerun configure.
15549 #
15550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15552 # following values.
15553
15554 _ACEOF
15555
15556 # The following way of writing the cache mishandles newlines in values,
15557 # but we know of no workaround that is simple, portable, and efficient.
15558 # So, we kill variables containing newlines.
15559 # Ultrix sh set writes to stderr and can't be redirected directly,
15560 # and sets the high bit in the cache file unless we assign to the vars.
15561 (
15562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15563 eval ac_val=\$$ac_var
15564 case $ac_val in #(
15565 *${as_nl}*)
15566 case $ac_var in #(
15567 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15569 esac
15570 case $ac_var in #(
15571 _ | IFS | as_nl) ;; #(
15572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15573 *) { eval $ac_var=; unset $ac_var;} ;;
15574 esac ;;
15575 esac
15576 done
15577
15578 (set) 2>&1 |
15579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15580 *${as_nl}ac_space=\ *)
15581 # `set' does not quote correctly, so add quotes: double-quote
15582 # substitution turns \\\\ into \\, and sed turns \\ into \.
15583 sed -n \
15584 "s/'/'\\\\''/g;
15585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15586 ;; #(
15587 *)
15588 # `set' quotes correctly as required by POSIX, so do not add quotes.
15589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15590 ;;
15591 esac |
15592 sort
15593 ) |
15594 sed '
15595 /^ac_cv_env_/b end
15596 t clear
15597 :clear
15598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15599 t end
15600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15601 :end' >>confcache
15602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15603 if test -w "$cache_file"; then
15604 if test "x$cache_file" != "x/dev/null"; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15606 $as_echo "$as_me: updating cache $cache_file" >&6;}
15607 if test ! -f "$cache_file" || test -h "$cache_file"; then
15608 cat confcache >"$cache_file"
15609 else
15610 case $cache_file in #(
15611 */* | ?:*)
15612 mv -f confcache "$cache_file"$$ &&
15613 mv -f "$cache_file"$$ "$cache_file" ;; #(
15614 *)
15615 mv -f confcache "$cache_file" ;;
15616 esac
15617 fi
15618 fi
15619 else
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15621 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15622 fi
15623 fi
15624 rm -f confcache
15625
15626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15627 # Let make expand exec_prefix.
15628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15629
15630 DEFS=-DHAVE_CONFIG_H
15631
15632 ac_libobjs=
15633 ac_ltlibobjs=
15634 U=
15635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15636 # 1. Remove the extension, and $U if already installed.
15637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15640 # will be set to the directory where LIBOBJS objects are built.
15641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15643 done
15644 LIBOBJS=$ac_libobjs
15645
15646 LTLIBOBJS=$ac_ltlibobjs
15647
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15650 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15651 if test -n "$am_sleep_pid"; then
15652 # Hide warnings about reused PIDs.
15653 wait $am_sleep_pid 2>/dev/null
15654 fi
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15656 $as_echo "done" >&6; }
15657 if test -n "$EXEEXT"; then
15658 am__EXEEXT_TRUE=
15659 am__EXEEXT_FALSE='#'
15660 else
15661 am__EXEEXT_TRUE='#'
15662 am__EXEEXT_FALSE=
15663 fi
15664
15665 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15666 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 fi
15669 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15670 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15672 fi
15673 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15674 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676 fi
15677 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15678 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15680 fi
15681 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15682 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684 fi
15685 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15686 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15688 fi
15689 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15690 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692 fi
15693 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15694 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15696 fi
15697 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15698 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 fi
15701 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15702 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704 fi
15705 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15706 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 fi
15709 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15710 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712 fi
15713 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15714 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15716 fi
15717 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15718 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15720 fi
15721 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15722 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15724 fi
15725 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15726 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 fi
15729 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15730 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732 fi
15733 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15734 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736 fi
15737 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15738 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 fi
15741 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15742 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 fi
15745 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15746 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748 fi
15749 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15750 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 fi
15753 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15754 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 fi
15757
15758 : "${CONFIG_STATUS=./config.status}"
15759 ac_write_fail=0
15760 ac_clean_files_save=$ac_clean_files
15761 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15763 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15764 as_write_fail=0
15765 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15766 #! $SHELL
15767 # Generated by $as_me.
15768 # Run this file to recreate the current configuration.
15769 # Compiler output produced by configure, useful for debugging
15770 # configure, is in config.log if it exists.
15771
15772 debug=false
15773 ac_cs_recheck=false
15774 ac_cs_silent=false
15775
15776 SHELL=\${CONFIG_SHELL-$SHELL}
15777 export SHELL
15778 _ASEOF
15779 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15780 ## -------------------- ##
15781 ## M4sh Initialization. ##
15782 ## -------------------- ##
15783
15784 # Be more Bourne compatible
15785 DUALCASE=1; export DUALCASE # for MKS sh
15786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15787 emulate sh
15788 NULLCMD=:
15789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15790 # is contrary to our usage. Disable this feature.
15791 alias -g '${1+"$@"}'='"$@"'
15792 setopt NO_GLOB_SUBST
15793 else
15794 case `(set -o) 2>/dev/null` in #(
15795 *posix*) :
15796 set -o posix ;; #(
15797 *) :
15798 ;;
15799 esac
15800 fi
15801
15802
15803 as_nl='
15804 '
15805 export as_nl
15806 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15807 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15810 # Prefer a ksh shell builtin over an external printf program on Solaris,
15811 # but without wasting forks for bash or zsh.
15812 if test -z "$BASH_VERSION$ZSH_VERSION" \
15813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15814 as_echo='print -r --'
15815 as_echo_n='print -rn --'
15816 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15817 as_echo='printf %s\n'
15818 as_echo_n='printf %s'
15819 else
15820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15821 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15822 as_echo_n='/usr/ucb/echo -n'
15823 else
15824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15825 as_echo_n_body='eval
15826 arg=$1;
15827 case $arg in #(
15828 *"$as_nl"*)
15829 expr "X$arg" : "X\\(.*\\)$as_nl";
15830 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15831 esac;
15832 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15833 '
15834 export as_echo_n_body
15835 as_echo_n='sh -c $as_echo_n_body as_echo'
15836 fi
15837 export as_echo_body
15838 as_echo='sh -c $as_echo_body as_echo'
15839 fi
15840
15841 # The user is always right.
15842 if test "${PATH_SEPARATOR+set}" != set; then
15843 PATH_SEPARATOR=:
15844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15845 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15846 PATH_SEPARATOR=';'
15847 }
15848 fi
15849
15850
15851 # IFS
15852 # We need space, tab and new line, in precisely that order. Quoting is
15853 # there to prevent editors from complaining about space-tab.
15854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15855 # splitting by setting IFS to empty value.)
15856 IFS=" "" $as_nl"
15857
15858 # Find who we are. Look in the path if we contain no directory separator.
15859 as_myself=
15860 case $0 in #((
15861 *[\\/]* ) as_myself=$0 ;;
15862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15864 do
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
15867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15868 done
15869 IFS=$as_save_IFS
15870
15871 ;;
15872 esac
15873 # We did not find ourselves, most probably we were run as `sh COMMAND'
15874 # in which case we are not to be found in the path.
15875 if test "x$as_myself" = x; then
15876 as_myself=$0
15877 fi
15878 if test ! -f "$as_myself"; then
15879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15880 exit 1
15881 fi
15882
15883 # Unset variables that we do not need and which cause bugs (e.g. in
15884 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15885 # suppresses any "Segmentation fault" message there. '((' could
15886 # trigger a bug in pdksh 5.2.14.
15887 for as_var in BASH_ENV ENV MAIL MAILPATH
15888 do eval test x\${$as_var+set} = xset \
15889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15890 done
15891 PS1='$ '
15892 PS2='> '
15893 PS4='+ '
15894
15895 # NLS nuisances.
15896 LC_ALL=C
15897 export LC_ALL
15898 LANGUAGE=C
15899 export LANGUAGE
15900
15901 # CDPATH.
15902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15903
15904
15905 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15906 # ----------------------------------------
15907 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15908 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15909 # script with STATUS, using 1 if that was 0.
15910 as_fn_error ()
15911 {
15912 as_status=$1; test $as_status -eq 0 && as_status=1
15913 if test "$4"; then
15914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15916 fi
15917 $as_echo "$as_me: error: $2" >&2
15918 as_fn_exit $as_status
15919 } # as_fn_error
15920
15921
15922 # as_fn_set_status STATUS
15923 # -----------------------
15924 # Set $? to STATUS, without forking.
15925 as_fn_set_status ()
15926 {
15927 return $1
15928 } # as_fn_set_status
15929
15930 # as_fn_exit STATUS
15931 # -----------------
15932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15933 as_fn_exit ()
15934 {
15935 set +e
15936 as_fn_set_status $1
15937 exit $1
15938 } # as_fn_exit
15939
15940 # as_fn_unset VAR
15941 # ---------------
15942 # Portably unset VAR.
15943 as_fn_unset ()
15944 {
15945 { eval $1=; unset $1;}
15946 }
15947 as_unset=as_fn_unset
15948 # as_fn_append VAR VALUE
15949 # ----------------------
15950 # Append the text in VALUE to the end of the definition contained in VAR. Take
15951 # advantage of any shell optimizations that allow amortized linear growth over
15952 # repeated appends, instead of the typical quadratic growth present in naive
15953 # implementations.
15954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15955 eval 'as_fn_append ()
15956 {
15957 eval $1+=\$2
15958 }'
15959 else
15960 as_fn_append ()
15961 {
15962 eval $1=\$$1\$2
15963 }
15964 fi # as_fn_append
15965
15966 # as_fn_arith ARG...
15967 # ------------------
15968 # Perform arithmetic evaluation on the ARGs, and store the result in the
15969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15970 # must be portable across $(()) and expr.
15971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15972 eval 'as_fn_arith ()
15973 {
15974 as_val=$(( $* ))
15975 }'
15976 else
15977 as_fn_arith ()
15978 {
15979 as_val=`expr "$@" || test $? -eq 1`
15980 }
15981 fi # as_fn_arith
15982
15983
15984 if expr a : '\(a\)' >/dev/null 2>&1 &&
15985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15986 as_expr=expr
15987 else
15988 as_expr=false
15989 fi
15990
15991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15992 as_basename=basename
15993 else
15994 as_basename=false
15995 fi
15996
15997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15998 as_dirname=dirname
15999 else
16000 as_dirname=false
16001 fi
16002
16003 as_me=`$as_basename -- "$0" ||
16004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16005 X"$0" : 'X\(//\)$' \| \
16006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16007 $as_echo X/"$0" |
16008 sed '/^.*\/\([^/][^/]*\)\/*$/{
16009 s//\1/
16010 q
16011 }
16012 /^X\/\(\/\/\)$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\/\(\/\).*/{
16017 s//\1/
16018 q
16019 }
16020 s/.*/./; q'`
16021
16022 # Avoid depending upon Character Ranges.
16023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16026 as_cr_digits='0123456789'
16027 as_cr_alnum=$as_cr_Letters$as_cr_digits
16028
16029 ECHO_C= ECHO_N= ECHO_T=
16030 case `echo -n x` in #(((((
16031 -n*)
16032 case `echo 'xy\c'` in
16033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16034 xy) ECHO_C='\c';;
16035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16036 ECHO_T=' ';;
16037 esac;;
16038 *)
16039 ECHO_N='-n';;
16040 esac
16041
16042 rm -f conf$$ conf$$.exe conf$$.file
16043 if test -d conf$$.dir; then
16044 rm -f conf$$.dir/conf$$.file
16045 else
16046 rm -f conf$$.dir
16047 mkdir conf$$.dir 2>/dev/null
16048 fi
16049 if (echo >conf$$.file) 2>/dev/null; then
16050 if ln -s conf$$.file conf$$ 2>/dev/null; then
16051 as_ln_s='ln -s'
16052 # ... but there are two gotchas:
16053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16055 # In both cases, we have to default to `cp -pR'.
16056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16057 as_ln_s='cp -pR'
16058 elif ln conf$$.file conf$$ 2>/dev/null; then
16059 as_ln_s=ln
16060 else
16061 as_ln_s='cp -pR'
16062 fi
16063 else
16064 as_ln_s='cp -pR'
16065 fi
16066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16067 rmdir conf$$.dir 2>/dev/null
16068
16069
16070 # as_fn_mkdir_p
16071 # -------------
16072 # Create "$as_dir" as a directory, including parents if necessary.
16073 as_fn_mkdir_p ()
16074 {
16075
16076 case $as_dir in #(
16077 -*) as_dir=./$as_dir;;
16078 esac
16079 test -d "$as_dir" || eval $as_mkdir_p || {
16080 as_dirs=
16081 while :; do
16082 case $as_dir in #(
16083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16084 *) as_qdir=$as_dir;;
16085 esac
16086 as_dirs="'$as_qdir' $as_dirs"
16087 as_dir=`$as_dirname -- "$as_dir" ||
16088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089 X"$as_dir" : 'X\(//\)[^/]' \| \
16090 X"$as_dir" : 'X\(//\)$' \| \
16091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16092 $as_echo X"$as_dir" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16094 s//\1/
16095 q
16096 }
16097 /^X\(\/\/\)[^/].*/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\/\)$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\).*/{
16106 s//\1/
16107 q
16108 }
16109 s/.*/./; q'`
16110 test -d "$as_dir" && break
16111 done
16112 test -z "$as_dirs" || eval "mkdir $as_dirs"
16113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16114
16115
16116 } # as_fn_mkdir_p
16117 if mkdir -p . 2>/dev/null; then
16118 as_mkdir_p='mkdir -p "$as_dir"'
16119 else
16120 test -d ./-p && rmdir ./-p
16121 as_mkdir_p=false
16122 fi
16123
16124
16125 # as_fn_executable_p FILE
16126 # -----------------------
16127 # Test if FILE is an executable regular file.
16128 as_fn_executable_p ()
16129 {
16130 test -f "$1" && test -x "$1"
16131 } # as_fn_executable_p
16132 as_test_x='test -x'
16133 as_executable_p=as_fn_executable_p
16134
16135 # Sed expression to map a string onto a valid CPP name.
16136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16137
16138 # Sed expression to map a string onto a valid variable name.
16139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16140
16141
16142 exec 6>&1
16143 ## ----------------------------------- ##
16144 ## Main body of $CONFIG_STATUS script. ##
16145 ## ----------------------------------- ##
16146 _ASEOF
16147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16148
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150 # Save the log message, to keep $0 and so on meaningful, and to
16151 # report actual input values of CONFIG_FILES etc. instead of their
16152 # values after options handling.
16153 ac_log="
16154 This file was extended by package-unused $as_me version-unused, which was
16155 generated by GNU Autoconf 2.69. Invocation command line was
16156
16157 CONFIG_FILES = $CONFIG_FILES
16158 CONFIG_HEADERS = $CONFIG_HEADERS
16159 CONFIG_LINKS = $CONFIG_LINKS
16160 CONFIG_COMMANDS = $CONFIG_COMMANDS
16161 $ $0 $@
16162
16163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16164 "
16165
16166 _ACEOF
16167
16168 case $ac_config_files in *"
16169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16170 esac
16171
16172 case $ac_config_headers in *"
16173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16174 esac
16175
16176
16177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178 # Files that config.status was made for.
16179 config_files="$ac_config_files"
16180 config_headers="$ac_config_headers"
16181 config_commands="$ac_config_commands"
16182
16183 _ACEOF
16184
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16186 ac_cs_usage="\
16187 \`$as_me' instantiates files and other configuration actions
16188 from templates according to the current configuration. Unless the files
16189 and actions are specified as TAGs, all are instantiated by default.
16190
16191 Usage: $0 [OPTION]... [TAG]...
16192
16193 -h, --help print this help, then exit
16194 -V, --version print version number and configuration settings, then exit
16195 --config print configuration, then exit
16196 -q, --quiet, --silent
16197 do not print progress messages
16198 -d, --debug don't remove temporary files
16199 --recheck update $as_me by reconfiguring in the same conditions
16200 --file=FILE[:TEMPLATE]
16201 instantiate the configuration file FILE
16202 --header=FILE[:TEMPLATE]
16203 instantiate the configuration header FILE
16204
16205 Configuration files:
16206 $config_files
16207
16208 Configuration headers:
16209 $config_headers
16210
16211 Configuration commands:
16212 $config_commands
16213
16214 Report bugs to the package provider."
16215
16216 _ACEOF
16217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16219 ac_cs_version="\\
16220 package-unused config.status version-unused
16221 configured by $0, generated by GNU Autoconf 2.69,
16222 with options \\"\$ac_cs_config\\"
16223
16224 Copyright (C) 2012 Free Software Foundation, Inc.
16225 This config.status script is free software; the Free Software Foundation
16226 gives unlimited permission to copy, distribute and modify it."
16227
16228 ac_pwd='$ac_pwd'
16229 srcdir='$srcdir'
16230 INSTALL='$INSTALL'
16231 MKDIR_P='$MKDIR_P'
16232 AWK='$AWK'
16233 test -n "\$AWK" || AWK=awk
16234 _ACEOF
16235
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 # The default lists apply if the user does not specify any file.
16238 ac_need_defaults=:
16239 while test $# != 0
16240 do
16241 case $1 in
16242 --*=?*)
16243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16245 ac_shift=:
16246 ;;
16247 --*=)
16248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16249 ac_optarg=
16250 ac_shift=:
16251 ;;
16252 *)
16253 ac_option=$1
16254 ac_optarg=$2
16255 ac_shift=shift
16256 ;;
16257 esac
16258
16259 case $ac_option in
16260 # Handling of the options.
16261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16262 ac_cs_recheck=: ;;
16263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16264 $as_echo "$ac_cs_version"; exit ;;
16265 --config | --confi | --conf | --con | --co | --c )
16266 $as_echo "$ac_cs_config"; exit ;;
16267 --debug | --debu | --deb | --de | --d | -d )
16268 debug=: ;;
16269 --file | --fil | --fi | --f )
16270 $ac_shift
16271 case $ac_optarg in
16272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16273 '') as_fn_error $? "missing file argument" ;;
16274 esac
16275 as_fn_append CONFIG_FILES " '$ac_optarg'"
16276 ac_need_defaults=false;;
16277 --header | --heade | --head | --hea )
16278 $ac_shift
16279 case $ac_optarg in
16280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16281 esac
16282 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16283 ac_need_defaults=false;;
16284 --he | --h)
16285 # Conflict between --help and --header
16286 as_fn_error $? "ambiguous option: \`$1'
16287 Try \`$0 --help' for more information.";;
16288 --help | --hel | -h )
16289 $as_echo "$ac_cs_usage"; exit ;;
16290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16292 ac_cs_silent=: ;;
16293
16294 # This is an error.
16295 -*) as_fn_error $? "unrecognized option: \`$1'
16296 Try \`$0 --help' for more information." ;;
16297
16298 *) as_fn_append ac_config_targets " $1"
16299 ac_need_defaults=false ;;
16300
16301 esac
16302 shift
16303 done
16304
16305 ac_configure_extra_args=
16306
16307 if $ac_cs_silent; then
16308 exec 6>/dev/null
16309 ac_configure_extra_args="$ac_configure_extra_args --silent"
16310 fi
16311
16312 _ACEOF
16313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16314 if \$ac_cs_recheck; then
16315 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16316 shift
16317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16318 CONFIG_SHELL='$SHELL'
16319 export CONFIG_SHELL
16320 exec "\$@"
16321 fi
16322
16323 _ACEOF
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 exec 5>>config.log
16326 {
16327 echo
16328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16329 ## Running $as_me. ##
16330 _ASBOX
16331 $as_echo "$ac_log"
16332 } >&5
16333
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 #
16337 # INIT-COMMANDS
16338 #
16339
16340 srcdir="$srcdir"
16341 host="$host"
16342 target="$target"
16343 with_multisubdir="$with_multisubdir"
16344 with_multisrctop="$with_multisrctop"
16345 with_target_subdir="$with_target_subdir"
16346 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16347 multi_basedir="$multi_basedir"
16348 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16349 CC="$CC"
16350 CXX="$CXX"
16351 GFORTRAN="$GFORTRAN"
16352 GDC="$GDC"
16353
16354
16355 # The HP-UX ksh and POSIX shell print the target directory to stdout
16356 # if CDPATH is set.
16357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16358
16359 sed_quote_subst='$sed_quote_subst'
16360 double_quote_subst='$double_quote_subst'
16361 delay_variable_subst='$delay_variable_subst'
16362 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16363 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16364 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16365 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16366 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16367 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16370 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16371 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16372 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16373 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16374 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16375 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16376 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16377 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16378 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16379 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16380 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16381 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16382 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16383 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16384 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16385 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16386 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16387 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16388 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16389 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16390 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16391 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16392 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16393 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16394 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16395 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16396 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16410 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"`'
16411 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16412 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16413 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16414 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16415 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16416 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16418 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16419 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16420 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16421 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16422 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16423 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16424 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16425 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16426 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16427 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16428 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16429 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16430 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16431 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16432 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16433 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16434 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16435 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16436 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16437 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16438 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16439 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16440 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16442 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16443 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16444 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16445 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16446 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16447 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16448 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16449 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16450 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16451 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16452 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16453 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16454 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16455 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16456 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16457 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16458 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16459 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16460 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16461 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16462 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16463 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16464 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16465 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16466 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16467 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16468 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16469 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16470 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16471 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16472 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16473 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16474 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16475 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16476 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16477 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16478 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16479 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16480 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16481 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16482 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16483 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16484 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16485 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16486 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16487 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16488 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16492 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16493 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16494 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16495 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16496 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16497 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16498 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16499 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16500 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16501 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16502 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16503 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16504 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16505 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16506 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16507 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16508 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16509 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16510 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16511 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16512 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16513 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16514 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16515 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16516 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16517 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16518 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16519 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16520 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16521 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16522 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16523 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16524 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16525
16526 LTCC='$LTCC'
16527 LTCFLAGS='$LTCFLAGS'
16528 compiler='$compiler_DEFAULT'
16529
16530 # A function that is used when there is no print builtin or printf.
16531 func_fallback_echo ()
16532 {
16533 eval 'cat <<_LTECHO_EOF
16534 \$1
16535 _LTECHO_EOF'
16536 }
16537
16538 # Quote evaled strings.
16539 for var in SHELL \
16540 ECHO \
16541 SED \
16542 GREP \
16543 EGREP \
16544 FGREP \
16545 LD \
16546 NM \
16547 LN_S \
16548 lt_SP2NL \
16549 lt_NL2SP \
16550 reload_flag \
16551 OBJDUMP \
16552 deplibs_check_method \
16553 file_magic_cmd \
16554 AR \
16555 AR_FLAGS \
16556 STRIP \
16557 RANLIB \
16558 CC \
16559 CFLAGS \
16560 compiler \
16561 lt_cv_sys_global_symbol_pipe \
16562 lt_cv_sys_global_symbol_to_cdecl \
16563 lt_cv_sys_global_symbol_to_c_name_address \
16564 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16565 lt_prog_compiler_no_builtin_flag \
16566 lt_prog_compiler_wl \
16567 lt_prog_compiler_pic \
16568 lt_prog_compiler_static \
16569 lt_cv_prog_compiler_c_o \
16570 need_locks \
16571 DSYMUTIL \
16572 NMEDIT \
16573 LIPO \
16574 OTOOL \
16575 OTOOL64 \
16576 shrext_cmds \
16577 export_dynamic_flag_spec \
16578 whole_archive_flag_spec \
16579 compiler_needs_object \
16580 with_gnu_ld \
16581 allow_undefined_flag \
16582 no_undefined_flag \
16583 hardcode_libdir_flag_spec \
16584 hardcode_libdir_flag_spec_ld \
16585 hardcode_libdir_separator \
16586 fix_srcfile_path \
16587 exclude_expsyms \
16588 include_expsyms \
16589 file_list_spec \
16590 variables_saved_for_relink \
16591 libname_spec \
16592 library_names_spec \
16593 soname_spec \
16594 install_override_mode \
16595 finish_eval \
16596 old_striplib \
16597 striplib \
16598 LD_D \
16599 reload_flag_D \
16600 compiler_D \
16601 lt_prog_compiler_no_builtin_flag_D \
16602 lt_prog_compiler_wl_D \
16603 lt_prog_compiler_pic_D \
16604 lt_prog_compiler_static_D \
16605 lt_cv_prog_compiler_c_o_D \
16606 export_dynamic_flag_spec_D \
16607 whole_archive_flag_spec_D \
16608 compiler_needs_object_D \
16609 with_gnu_ld_D \
16610 allow_undefined_flag_D \
16611 no_undefined_flag_D \
16612 hardcode_libdir_flag_spec_D \
16613 hardcode_libdir_flag_spec_ld_D \
16614 hardcode_libdir_separator_D \
16615 fix_srcfile_path_D \
16616 exclude_expsyms_D \
16617 include_expsyms_D \
16618 file_list_spec_D; do
16619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16620 *[\\\\\\\`\\"\\\$]*)
16621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16622 ;;
16623 *)
16624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16625 ;;
16626 esac
16627 done
16628
16629 # Double-quote double-evaled strings.
16630 for var in reload_cmds \
16631 old_postinstall_cmds \
16632 old_postuninstall_cmds \
16633 old_archive_cmds \
16634 extract_expsyms_cmds \
16635 old_archive_from_new_cmds \
16636 old_archive_from_expsyms_cmds \
16637 archive_cmds \
16638 archive_expsym_cmds \
16639 module_cmds \
16640 module_expsym_cmds \
16641 export_symbols_cmds \
16642 prelink_cmds \
16643 postinstall_cmds \
16644 postuninstall_cmds \
16645 finish_cmds \
16646 sys_lib_search_path_spec \
16647 sys_lib_dlsearch_path_spec \
16648 reload_cmds_D \
16649 old_archive_cmds_D \
16650 old_archive_from_new_cmds_D \
16651 old_archive_from_expsyms_cmds_D \
16652 archive_cmds_D \
16653 archive_expsym_cmds_D \
16654 module_cmds_D \
16655 module_expsym_cmds_D \
16656 export_symbols_cmds_D \
16657 prelink_cmds_D; do
16658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16659 *[\\\\\\\`\\"\\\$]*)
16660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16661 ;;
16662 *)
16663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16664 ;;
16665 esac
16666 done
16667
16668 ac_aux_dir='$ac_aux_dir'
16669 xsi_shell='$xsi_shell'
16670 lt_shell_append='$lt_shell_append'
16671
16672 # See if we are running on zsh, and set the options which allow our
16673 # commands through without removal of \ escapes INIT.
16674 if test -n "\${ZSH_VERSION+set}" ; then
16675 setopt NO_GLOB_SUBST
16676 fi
16677
16678
16679 PACKAGE='$PACKAGE'
16680 VERSION='$VERSION'
16681 TIMESTAMP='$TIMESTAMP'
16682 RM='$RM'
16683 ofile='$ofile'
16684
16685
16686
16687
16688
16689
16690 _ACEOF
16691
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693
16694 # Handling of arguments.
16695 for ac_config_target in $ac_config_targets
16696 do
16697 case $ac_config_target in
16698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16699 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16702 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16703 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16704 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16705 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16706 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16707 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16708 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16709
16710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16711 esac
16712 done
16713
16714
16715 # If the user did not use the arguments to specify the items to instantiate,
16716 # then the envvar interface is used. Set only those that are not.
16717 # We use the long form for the default assignment because of an extremely
16718 # bizarre bug on SunOS 4.1.3.
16719 if $ac_need_defaults; then
16720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16723 fi
16724
16725 # Have a temporary directory for convenience. Make it in the build tree
16726 # simply because there is no reason against having it here, and in addition,
16727 # creating and moving files from /tmp can sometimes cause problems.
16728 # Hook for its removal unless debugging.
16729 # Note that there is a small window in which the directory will not be cleaned:
16730 # after its creation but before its name has been assigned to `$tmp'.
16731 $debug ||
16732 {
16733 tmp= ac_tmp=
16734 trap 'exit_status=$?
16735 : "${ac_tmp:=$tmp}"
16736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16737 ' 0
16738 trap 'as_fn_exit 1' 1 2 13 15
16739 }
16740 # Create a (secure) tmp directory for tmp files.
16741
16742 {
16743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16744 test -d "$tmp"
16745 } ||
16746 {
16747 tmp=./conf$$-$RANDOM
16748 (umask 077 && mkdir "$tmp")
16749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16750 ac_tmp=$tmp
16751
16752 # Set up the scripts for CONFIG_FILES section.
16753 # No need to generate them if there are no CONFIG_FILES.
16754 # This happens for instance with `./config.status config.h'.
16755 if test -n "$CONFIG_FILES"; then
16756
16757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16758 ac_cs_awk_getline=:
16759 ac_cs_awk_pipe_init=
16760 ac_cs_awk_read_file='
16761 while ((getline aline < (F[key])) > 0)
16762 print(aline)
16763 close(F[key])'
16764 ac_cs_awk_pipe_fini=
16765 else
16766 ac_cs_awk_getline=false
16767 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16768 ac_cs_awk_read_file='
16769 print "|#_!!_#|"
16770 print "cat " F[key] " &&"
16771 '$ac_cs_awk_pipe_init
16772 # The final `:' finishes the AND list.
16773 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16774 fi
16775 ac_cr=`echo X | tr X '\015'`
16776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16777 # But we know of no other shell where ac_cr would be empty at this
16778 # point, so we can use a bashism as a fallback.
16779 if test "x$ac_cr" = x; then
16780 eval ac_cr=\$\'\\r\'
16781 fi
16782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16784 ac_cs_awk_cr='\\r'
16785 else
16786 ac_cs_awk_cr=$ac_cr
16787 fi
16788
16789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16790 _ACEOF
16791
16792 # Create commands to substitute file output variables.
16793 {
16794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16795 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16796 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16797 echo "_ACAWK" &&
16798 echo "_ACEOF"
16799 } >conf$$files.sh &&
16800 . ./conf$$files.sh ||
16801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16802 rm -f conf$$files.sh
16803
16804 {
16805 echo "cat >conf$$subs.awk <<_ACEOF" &&
16806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16807 echo "_ACEOF"
16808 } >conf$$subs.sh ||
16809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16811 ac_delim='%!_!# '
16812 for ac_last_try in false false false false false :; do
16813 . ./conf$$subs.sh ||
16814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16815
16816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16817 if test $ac_delim_n = $ac_delim_num; then
16818 break
16819 elif $ac_last_try; then
16820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16821 else
16822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16823 fi
16824 done
16825 rm -f conf$$subs.sh
16826
16827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16829 _ACEOF
16830 sed -n '
16831 h
16832 s/^/S["/; s/!.*/"]=/
16833 p
16834 g
16835 s/^[^!]*!//
16836 :repl
16837 t repl
16838 s/'"$ac_delim"'$//
16839 t delim
16840 :nl
16841 h
16842 s/\(.\{148\}\)..*/\1/
16843 t more1
16844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16845 p
16846 n
16847 b repl
16848 :more1
16849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16850 p
16851 g
16852 s/.\{148\}//
16853 t nl
16854 :delim
16855 h
16856 s/\(.\{148\}\)..*/\1/
16857 t more2
16858 s/["\\]/\\&/g; s/^/"/; s/$/"/
16859 p
16860 b
16861 :more2
16862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16863 p
16864 g
16865 s/.\{148\}//
16866 t delim
16867 ' <conf$$subs.awk | sed '
16868 /^[^""]/{
16869 N
16870 s/\n//
16871 }
16872 ' >>$CONFIG_STATUS || ac_write_fail=1
16873 rm -f conf$$subs.awk
16874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16875 _ACAWK
16876 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16877 for (key in S) S_is_set[key] = 1
16878 FS = "\a"
16879 \$ac_cs_awk_pipe_init
16880 }
16881 {
16882 line = $ 0
16883 nfields = split(line, field, "@")
16884 substed = 0
16885 len = length(field[1])
16886 for (i = 2; i < nfields; i++) {
16887 key = field[i]
16888 keylen = length(key)
16889 if (S_is_set[key]) {
16890 value = S[key]
16891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16892 len += length(value) + length(field[++i])
16893 substed = 1
16894 } else
16895 len += 1 + keylen
16896 }
16897 if (nfields == 3 && !substed) {
16898 key = field[2]
16899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16900 \$ac_cs_awk_read_file
16901 next
16902 }
16903 }
16904 print line
16905 }
16906 \$ac_cs_awk_pipe_fini
16907 _ACAWK
16908 _ACEOF
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16912 else
16913 cat
16914 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16915 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16916 _ACEOF
16917
16918 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16919 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16920 # trailing colons and then remove the whole line if VPATH becomes empty
16921 # (actually we leave an empty line to preserve line numbers).
16922 if test "x$srcdir" = x.; then
16923 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16924 h
16925 s///
16926 s/^/:/
16927 s/[ ]*$/:/
16928 s/:\$(srcdir):/:/g
16929 s/:\${srcdir}:/:/g
16930 s/:@srcdir@:/:/g
16931 s/^:*//
16932 s/:*$//
16933 x
16934 s/\(=[ ]*\).*/\1/
16935 G
16936 s/\n//
16937 s/^[^=]*=[ ]*$//
16938 }'
16939 fi
16940
16941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942 fi # test -n "$CONFIG_FILES"
16943
16944 # Set up the scripts for CONFIG_HEADERS section.
16945 # No need to generate them if there are no CONFIG_HEADERS.
16946 # This happens for instance with `./config.status Makefile'.
16947 if test -n "$CONFIG_HEADERS"; then
16948 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16949 BEGIN {
16950 _ACEOF
16951
16952 # Transform confdefs.h into an awk script `defines.awk', embedded as
16953 # here-document in config.status, that substitutes the proper values into
16954 # config.h.in to produce config.h.
16955
16956 # Create a delimiter string that does not exist in confdefs.h, to ease
16957 # handling of long lines.
16958 ac_delim='%!_!# '
16959 for ac_last_try in false false :; do
16960 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16961 if test -z "$ac_tt"; then
16962 break
16963 elif $ac_last_try; then
16964 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16965 else
16966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16967 fi
16968 done
16969
16970 # For the awk script, D is an array of macro values keyed by name,
16971 # likewise P contains macro parameters if any. Preserve backslash
16972 # newline sequences.
16973
16974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16975 sed -n '
16976 s/.\{148\}/&'"$ac_delim"'/g
16977 t rset
16978 :rset
16979 s/^[ ]*#[ ]*define[ ][ ]*/ /
16980 t def
16981 d
16982 :def
16983 s/\\$//
16984 t bsnl
16985 s/["\\]/\\&/g
16986 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16987 D["\1"]=" \3"/p
16988 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16989 d
16990 :bsnl
16991 s/["\\]/\\&/g
16992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16993 D["\1"]=" \3\\\\\\n"\\/p
16994 t cont
16995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16996 t cont
16997 d
16998 :cont
16999 n
17000 s/.\{148\}/&'"$ac_delim"'/g
17001 t clear
17002 :clear
17003 s/\\$//
17004 t bsnlc
17005 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17006 d
17007 :bsnlc
17008 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17009 b cont
17010 ' <confdefs.h | sed '
17011 s/'"$ac_delim"'/"\\\
17012 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17013
17014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17015 for (key in D) D_is_set[key] = 1
17016 FS = "\a"
17017 }
17018 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17019 line = \$ 0
17020 split(line, arg, " ")
17021 if (arg[1] == "#") {
17022 defundef = arg[2]
17023 mac1 = arg[3]
17024 } else {
17025 defundef = substr(arg[1], 2)
17026 mac1 = arg[2]
17027 }
17028 split(mac1, mac2, "(") #)
17029 macro = mac2[1]
17030 prefix = substr(line, 1, index(line, defundef) - 1)
17031 if (D_is_set[macro]) {
17032 # Preserve the white space surrounding the "#".
17033 print prefix "define", macro P[macro] D[macro]
17034 next
17035 } else {
17036 # Replace #undef with comments. This is necessary, for example,
17037 # in the case of _POSIX_SOURCE, which is predefined and required
17038 # on some systems where configure will not decide to define it.
17039 if (defundef == "undef") {
17040 print "/*", prefix defundef, macro, "*/"
17041 next
17042 }
17043 }
17044 }
17045 { print }
17046 _ACAWK
17047 _ACEOF
17048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17049 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17050 fi # test -n "$CONFIG_HEADERS"
17051
17052
17053 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17054 shift
17055 for ac_tag
17056 do
17057 case $ac_tag in
17058 :[FHLC]) ac_mode=$ac_tag; continue;;
17059 esac
17060 case $ac_mode$ac_tag in
17061 :[FHL]*:*);;
17062 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17063 :[FH]-) ac_tag=-:-;;
17064 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17065 esac
17066 ac_save_IFS=$IFS
17067 IFS=:
17068 set x $ac_tag
17069 IFS=$ac_save_IFS
17070 shift
17071 ac_file=$1
17072 shift
17073
17074 case $ac_mode in
17075 :L) ac_source=$1;;
17076 :[FH])
17077 ac_file_inputs=
17078 for ac_f
17079 do
17080 case $ac_f in
17081 -) ac_f="$ac_tmp/stdin";;
17082 *) # Look for the file first in the build tree, then in the source tree
17083 # (if the path is not absolute). The absolute path cannot be DOS-style,
17084 # because $ac_f cannot contain `:'.
17085 test -f "$ac_f" ||
17086 case $ac_f in
17087 [\\/$]*) false;;
17088 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17089 esac ||
17090 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17091 esac
17092 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17093 as_fn_append ac_file_inputs " '$ac_f'"
17094 done
17095
17096 # Let's still pretend it is `configure' which instantiates (i.e., don't
17097 # use $as_me), people would be surprised to read:
17098 # /* config.h. Generated by config.status. */
17099 configure_input='Generated from '`
17100 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17101 `' by configure.'
17102 if test x"$ac_file" != x-; then
17103 configure_input="$ac_file. $configure_input"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17105 $as_echo "$as_me: creating $ac_file" >&6;}
17106 fi
17107 # Neutralize special characters interpreted by sed in replacement strings.
17108 case $configure_input in #(
17109 *\&* | *\|* | *\\* )
17110 ac_sed_conf_input=`$as_echo "$configure_input" |
17111 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17112 *) ac_sed_conf_input=$configure_input;;
17113 esac
17114
17115 case $ac_tag in
17116 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17118 esac
17119 ;;
17120 esac
17121
17122 ac_dir=`$as_dirname -- "$ac_file" ||
17123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17124 X"$ac_file" : 'X\(//\)[^/]' \| \
17125 X"$ac_file" : 'X\(//\)$' \| \
17126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17127 $as_echo X"$ac_file" |
17128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129 s//\1/
17130 q
17131 }
17132 /^X\(\/\/\)[^/].*/{
17133 s//\1/
17134 q
17135 }
17136 /^X\(\/\/\)$/{
17137 s//\1/
17138 q
17139 }
17140 /^X\(\/\).*/{
17141 s//\1/
17142 q
17143 }
17144 s/.*/./; q'`
17145 as_dir="$ac_dir"; as_fn_mkdir_p
17146 ac_builddir=.
17147
17148 case "$ac_dir" in
17149 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17150 *)
17151 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17152 # A ".." for each directory in $ac_dir_suffix.
17153 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17154 case $ac_top_builddir_sub in
17155 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17156 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17157 esac ;;
17158 esac
17159 ac_abs_top_builddir=$ac_pwd
17160 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17161 # for backward compatibility:
17162 ac_top_builddir=$ac_top_build_prefix
17163
17164 case $srcdir in
17165 .) # We are building in place.
17166 ac_srcdir=.
17167 ac_top_srcdir=$ac_top_builddir_sub
17168 ac_abs_top_srcdir=$ac_pwd ;;
17169 [\\/]* | ?:[\\/]* ) # Absolute name.
17170 ac_srcdir=$srcdir$ac_dir_suffix;
17171 ac_top_srcdir=$srcdir
17172 ac_abs_top_srcdir=$srcdir ;;
17173 *) # Relative name.
17174 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17175 ac_top_srcdir=$ac_top_build_prefix$srcdir
17176 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17177 esac
17178 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17179
17180
17181 case $ac_mode in
17182 :F)
17183 #
17184 # CONFIG_FILE
17185 #
17186
17187 case $INSTALL in
17188 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17189 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17190 esac
17191 ac_MKDIR_P=$MKDIR_P
17192 case $MKDIR_P in
17193 [\\/$]* | ?:[\\/]* ) ;;
17194 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17195 esac
17196 _ACEOF
17197
17198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17199 # If the template does not know about datarootdir, expand it.
17200 # FIXME: This hack should be removed a few years after 2.60.
17201 ac_datarootdir_hack=; ac_datarootdir_seen=
17202 ac_sed_dataroot='
17203 /datarootdir/ {
17204 p
17205 q
17206 }
17207 /@datadir@/p
17208 /@docdir@/p
17209 /@infodir@/p
17210 /@localedir@/p
17211 /@mandir@/p'
17212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17213 *datarootdir*) ac_datarootdir_seen=yes;;
17214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17217 _ACEOF
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 ac_datarootdir_hack='
17220 s&@datadir@&$datadir&g
17221 s&@docdir@&$docdir&g
17222 s&@infodir@&$infodir&g
17223 s&@localedir@&$localedir&g
17224 s&@mandir@&$mandir&g
17225 s&\\\${datarootdir}&$datarootdir&g' ;;
17226 esac
17227 _ACEOF
17228
17229 # Neutralize VPATH when `$srcdir' = `.'.
17230 # Shell code in configure.ac might set extrasub.
17231 # FIXME: do we really want to maintain this feature?
17232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17233 ac_sed_extra="$ac_vpsub
17234 $extrasub
17235 _ACEOF
17236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17237 :t
17238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17239 s|@configure_input@|$ac_sed_conf_input|;t t
17240 s&@top_builddir@&$ac_top_builddir_sub&;t t
17241 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17242 s&@srcdir@&$ac_srcdir&;t t
17243 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17244 s&@top_srcdir@&$ac_top_srcdir&;t t
17245 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17246 s&@builddir@&$ac_builddir&;t t
17247 s&@abs_builddir@&$ac_abs_builddir&;t t
17248 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17249 s&@INSTALL@&$ac_INSTALL&;t t
17250 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17251 $ac_datarootdir_hack
17252 "
17253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17254 if $ac_cs_awk_getline; then
17255 $AWK -f "$ac_tmp/subs.awk"
17256 else
17257 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17258 fi \
17259 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17260
17261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17264 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17266 which seems to be undefined. Please make sure it is defined" >&5
17267 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17268 which seems to be undefined. Please make sure it is defined" >&2;}
17269
17270 rm -f "$ac_tmp/stdin"
17271 case $ac_file in
17272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17274 esac \
17275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17276 ;;
17277 :H)
17278 #
17279 # CONFIG_HEADER
17280 #
17281 if test x"$ac_file" != x-; then
17282 {
17283 $as_echo "/* $configure_input */" \
17284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17285 } >"$ac_tmp/config.h" \
17286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17290 else
17291 rm -f "$ac_file"
17292 mv "$ac_tmp/config.h" "$ac_file" \
17293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17294 fi
17295 else
17296 $as_echo "/* $configure_input */" \
17297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17298 || as_fn_error $? "could not create -" "$LINENO" 5
17299 fi
17300 # Compute "$ac_file"'s index in $config_headers.
17301 _am_arg="$ac_file"
17302 _am_stamp_count=1
17303 for _am_header in $config_headers :; do
17304 case $_am_header in
17305 $_am_arg | $_am_arg:* )
17306 break ;;
17307 * )
17308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17309 esac
17310 done
17311 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17312 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313 X"$_am_arg" : 'X\(//\)[^/]' \| \
17314 X"$_am_arg" : 'X\(//\)$' \| \
17315 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17316 $as_echo X"$_am_arg" |
17317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17318 s//\1/
17319 q
17320 }
17321 /^X\(\/\/\)[^/].*/{
17322 s//\1/
17323 q
17324 }
17325 /^X\(\/\/\)$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\).*/{
17330 s//\1/
17331 q
17332 }
17333 s/.*/./; q'`/stamp-h$_am_stamp_count
17334 ;;
17335
17336 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17337 $as_echo "$as_me: executing $ac_file commands" >&6;}
17338 ;;
17339 esac
17340
17341
17342 case $ac_file$ac_mode in
17343 "default-1":C)
17344 # Only add multilib support code if we just rebuilt the top-level
17345 # Makefile.
17346 case " $CONFIG_FILES " in
17347 *" Makefile "*)
17348 ac_file=Makefile . ${multi_basedir}/config-ml.in
17349 ;;
17350 esac ;;
17351 "libtool":C)
17352
17353 # See if we are running on zsh, and set the options which allow our
17354 # commands through without removal of \ escapes.
17355 if test -n "${ZSH_VERSION+set}" ; then
17356 setopt NO_GLOB_SUBST
17357 fi
17358
17359 cfgfile="${ofile}T"
17360 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17361 $RM "$cfgfile"
17362
17363 cat <<_LT_EOF >> "$cfgfile"
17364 #! $SHELL
17365
17366 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17367 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17370 #
17371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17372 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17373 # Written by Gordon Matzigkeit, 1996
17374 #
17375 # This file is part of GNU Libtool.
17376 #
17377 # GNU Libtool is free software; you can redistribute it and/or
17378 # modify it under the terms of the GNU General Public License as
17379 # published by the Free Software Foundation; either version 2 of
17380 # the License, or (at your option) any later version.
17381 #
17382 # As a special exception to the GNU General Public License,
17383 # if you distribute this file as part of a program or library that
17384 # is built using GNU Libtool, you may include this file under the
17385 # same distribution terms that you use for the rest of that program.
17386 #
17387 # GNU Libtool is distributed in the hope that it will be useful,
17388 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17390 # GNU General Public License for more details.
17391 #
17392 # You should have received a copy of the GNU General Public License
17393 # along with GNU Libtool; see the file COPYING. If not, a copy
17394 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17395 # obtained by writing to the Free Software Foundation, Inc.,
17396 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17397
17398
17399 # The names of the tagged configurations supported by this script.
17400 available_tags="D "
17401
17402 # ### BEGIN LIBTOOL CONFIG
17403
17404 # Which release of libtool.m4 was used?
17405 macro_version=$macro_version
17406 macro_revision=$macro_revision
17407
17408 # Whether or not to build shared libraries.
17409 build_libtool_libs=$enable_shared
17410
17411 # Whether or not to build static libraries.
17412 build_old_libs=$enable_static
17413
17414 # What type of objects to build.
17415 pic_mode=$pic_mode
17416
17417 # Whether or not to optimize for fast installation.
17418 fast_install=$enable_fast_install
17419
17420 # Shell to use when invoking shell scripts.
17421 SHELL=$lt_SHELL
17422
17423 # An echo program that protects backslashes.
17424 ECHO=$lt_ECHO
17425
17426 # The host system.
17427 host_alias=$host_alias
17428 host=$host
17429 host_os=$host_os
17430
17431 # The build system.
17432 build_alias=$build_alias
17433 build=$build
17434 build_os=$build_os
17435
17436 # A sed program that does not truncate output.
17437 SED=$lt_SED
17438
17439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17440 Xsed="\$SED -e 1s/^X//"
17441
17442 # A grep program that handles long lines.
17443 GREP=$lt_GREP
17444
17445 # An ERE matcher.
17446 EGREP=$lt_EGREP
17447
17448 # A literal string matcher.
17449 FGREP=$lt_FGREP
17450
17451 # A BSD- or MS-compatible name lister.
17452 NM=$lt_NM
17453
17454 # Whether we need soft or hard links.
17455 LN_S=$lt_LN_S
17456
17457 # What is the maximum length of a command?
17458 max_cmd_len=$max_cmd_len
17459
17460 # Object file suffix (normally "o").
17461 objext=$ac_objext
17462
17463 # Executable file suffix (normally "").
17464 exeext=$exeext
17465
17466 # whether the shell understands "unset".
17467 lt_unset=$lt_unset
17468
17469 # turn spaces into newlines.
17470 SP2NL=$lt_lt_SP2NL
17471
17472 # turn newlines into spaces.
17473 NL2SP=$lt_lt_NL2SP
17474
17475 # An object symbol dumper.
17476 OBJDUMP=$lt_OBJDUMP
17477
17478 # Method to check whether dependent libraries are shared objects.
17479 deplibs_check_method=$lt_deplibs_check_method
17480
17481 # Command to use when deplibs_check_method == "file_magic".
17482 file_magic_cmd=$lt_file_magic_cmd
17483
17484 # The archiver.
17485 AR=$lt_AR
17486 AR_FLAGS=$lt_AR_FLAGS
17487
17488 # A symbol stripping program.
17489 STRIP=$lt_STRIP
17490
17491 # Commands used to install an old-style archive.
17492 RANLIB=$lt_RANLIB
17493 old_postinstall_cmds=$lt_old_postinstall_cmds
17494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17495
17496 # Whether to use a lock for old archive extraction.
17497 lock_old_archive_extraction=$lock_old_archive_extraction
17498
17499 # A C compiler.
17500 LTCC=$lt_CC
17501
17502 # LTCC compiler flags.
17503 LTCFLAGS=$lt_CFLAGS
17504
17505 # Take the output of nm and produce a listing of raw symbols and C names.
17506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17507
17508 # Transform the output of nm in a proper C declaration.
17509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17510
17511 # Transform the output of nm in a C name address pair.
17512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17513
17514 # Transform the output of nm in a C name address pair when lib prefix is needed.
17515 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17516
17517 # The name of the directory that contains temporary libtool files.
17518 objdir=$objdir
17519
17520 # Used to examine libraries when file_magic_cmd begins with "file".
17521 MAGIC_CMD=$MAGIC_CMD
17522
17523 # Must we lock files when doing compilation?
17524 need_locks=$lt_need_locks
17525
17526 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17527 DSYMUTIL=$lt_DSYMUTIL
17528
17529 # Tool to change global to local symbols on Mac OS X.
17530 NMEDIT=$lt_NMEDIT
17531
17532 # Tool to manipulate fat objects and archives on Mac OS X.
17533 LIPO=$lt_LIPO
17534
17535 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17536 OTOOL=$lt_OTOOL
17537
17538 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17539 OTOOL64=$lt_OTOOL64
17540
17541 # Old archive suffix (normally "a").
17542 libext=$libext
17543
17544 # Shared library suffix (normally ".so").
17545 shrext_cmds=$lt_shrext_cmds
17546
17547 # The commands to extract the exported symbol list from a shared archive.
17548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17549
17550 # Variables whose values should be saved in libtool wrapper scripts and
17551 # restored at link time.
17552 variables_saved_for_relink=$lt_variables_saved_for_relink
17553
17554 # Do we need the "lib" prefix for modules?
17555 need_lib_prefix=$need_lib_prefix
17556
17557 # Do we need a version for libraries?
17558 need_version=$need_version
17559
17560 # Library versioning type.
17561 version_type=$version_type
17562
17563 # Shared library runtime path variable.
17564 runpath_var=$runpath_var
17565
17566 # Shared library path variable.
17567 shlibpath_var=$shlibpath_var
17568
17569 # Is shlibpath searched before the hard-coded library search path?
17570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17571
17572 # Format of library name prefix.
17573 libname_spec=$lt_libname_spec
17574
17575 # List of archive names. First name is the real one, the rest are links.
17576 # The last name is the one that the linker finds with -lNAME
17577 library_names_spec=$lt_library_names_spec
17578
17579 # The coded name of the library, if different from the real name.
17580 soname_spec=$lt_soname_spec
17581
17582 # Permission mode override for installation of shared libraries.
17583 install_override_mode=$lt_install_override_mode
17584
17585 # Command to use after installation of a shared archive.
17586 postinstall_cmds=$lt_postinstall_cmds
17587
17588 # Command to use after uninstallation of a shared archive.
17589 postuninstall_cmds=$lt_postuninstall_cmds
17590
17591 # Commands used to finish a libtool library installation in a directory.
17592 finish_cmds=$lt_finish_cmds
17593
17594 # As "finish_cmds", except a single script fragment to be evaled but
17595 # not shown.
17596 finish_eval=$lt_finish_eval
17597
17598 # Whether we should hardcode library paths into libraries.
17599 hardcode_into_libs=$hardcode_into_libs
17600
17601 # Compile-time system search path for libraries.
17602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17603
17604 # Run-time system search path for libraries.
17605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17606
17607 # Whether dlopen is supported.
17608 dlopen_support=$enable_dlopen
17609
17610 # Whether dlopen of programs is supported.
17611 dlopen_self=$enable_dlopen_self
17612
17613 # Whether dlopen of statically linked programs is supported.
17614 dlopen_self_static=$enable_dlopen_self_static
17615
17616 # Commands to strip libraries.
17617 old_striplib=$lt_old_striplib
17618 striplib=$lt_striplib
17619
17620
17621 # The linker used to build libraries.
17622 LD=$lt_LD
17623
17624 # How to create reloadable object files.
17625 reload_flag=$lt_reload_flag
17626 reload_cmds=$lt_reload_cmds
17627
17628 # Commands used to build an old-style archive.
17629 old_archive_cmds=$lt_old_archive_cmds
17630
17631 # A language specific compiler.
17632 CC=$lt_compiler
17633
17634 # Is the compiler the GNU compiler?
17635 with_gcc=$GCC
17636
17637 # Compiler flag to turn off builtin functions.
17638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17639
17640 # How to pass a linker flag through the compiler.
17641 wl=$lt_lt_prog_compiler_wl
17642
17643 # Additional compiler flags for building library objects.
17644 pic_flag=$lt_lt_prog_compiler_pic
17645
17646 # Compiler flag to prevent dynamic linking.
17647 link_static_flag=$lt_lt_prog_compiler_static
17648
17649 # Does compiler simultaneously support -c and -o options?
17650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17651
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc
17654
17655 # Whether or not to disallow shared libs when runtime libs are static.
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17657
17658 # Compiler flag to allow reflexive dlopens.
17659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17660
17661 # Compiler flag to generate shared objects directly from archives.
17662 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17663
17664 # Whether the compiler copes with passing no objects directly.
17665 compiler_needs_object=$lt_compiler_needs_object
17666
17667 # Create an old-style archive from a shared archive.
17668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17669
17670 # Create a temporary old-style archive to link instead of a shared archive.
17671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17672
17673 # Commands used to build a shared archive.
17674 archive_cmds=$lt_archive_cmds
17675 archive_expsym_cmds=$lt_archive_expsym_cmds
17676
17677 # Commands used to build a loadable module if different from building
17678 # a shared archive.
17679 module_cmds=$lt_module_cmds
17680 module_expsym_cmds=$lt_module_expsym_cmds
17681
17682 # Whether we are building with GNU ld or not.
17683 with_gnu_ld=$lt_with_gnu_ld
17684
17685 # Flag that allows shared libraries with undefined symbols to be built.
17686 allow_undefined_flag=$lt_allow_undefined_flag
17687
17688 # Flag that enforces no undefined symbols.
17689 no_undefined_flag=$lt_no_undefined_flag
17690
17691 # Flag to hardcode \$libdir into a binary during linking.
17692 # This must work even if \$libdir does not exist
17693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17694
17695 # If ld is used when linking, flag to hardcode \$libdir into a binary
17696 # during linking. This must work even if \$libdir does not exist.
17697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17698
17699 # Whether we need a single "-rpath" flag with a separated argument.
17700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17701
17702 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17703 # DIR into the resulting binary.
17704 hardcode_direct=$hardcode_direct
17705
17706 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17707 # DIR into the resulting binary and the resulting library dependency is
17708 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17709 # library is relocated.
17710 hardcode_direct_absolute=$hardcode_direct_absolute
17711
17712 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17713 # into the resulting binary.
17714 hardcode_minus_L=$hardcode_minus_L
17715
17716 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17717 # into the resulting binary.
17718 hardcode_shlibpath_var=$hardcode_shlibpath_var
17719
17720 # Set to "yes" if building a shared library automatically hardcodes DIR
17721 # into the library and all subsequent libraries and executables linked
17722 # against it.
17723 hardcode_automatic=$hardcode_automatic
17724
17725 # Set to yes if linker adds runtime paths of dependent libraries
17726 # to runtime path list.
17727 inherit_rpath=$inherit_rpath
17728
17729 # Whether libtool must link a program against all its dependency libraries.
17730 link_all_deplibs=$link_all_deplibs
17731
17732 # Fix the shell variable \$srcfile for the compiler.
17733 fix_srcfile_path=$lt_fix_srcfile_path
17734
17735 # Set to "yes" if exported symbols are required.
17736 always_export_symbols=$always_export_symbols
17737
17738 # The commands to list exported symbols.
17739 export_symbols_cmds=$lt_export_symbols_cmds
17740
17741 # Symbols that should not be listed in the preloaded symbols.
17742 exclude_expsyms=$lt_exclude_expsyms
17743
17744 # Symbols that must always be exported.
17745 include_expsyms=$lt_include_expsyms
17746
17747 # Commands necessary for linking programs (against libraries) with templates.
17748 prelink_cmds=$lt_prelink_cmds
17749
17750 # Specify filename containing input files.
17751 file_list_spec=$lt_file_list_spec
17752
17753 # How to hardcode a shared library path into an executable.
17754 hardcode_action=$hardcode_action
17755
17756 # ### END LIBTOOL CONFIG
17757
17758 _LT_EOF
17759
17760 case $host_os in
17761 aix3*)
17762 cat <<\_LT_EOF >> "$cfgfile"
17763 # AIX sometimes has problems with the GCC collect2 program. For some
17764 # reason, if we set the COLLECT_NAMES environment variable, the problems
17765 # vanish in a puff of smoke.
17766 if test "X${COLLECT_NAMES+set}" != Xset; then
17767 COLLECT_NAMES=
17768 export COLLECT_NAMES
17769 fi
17770 _LT_EOF
17771 ;;
17772 esac
17773
17774
17775 ltmain="$ac_aux_dir/ltmain.sh"
17776
17777
17778 # We use sed instead of cat because bash on DJGPP gets confused if
17779 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17780 # text mode, it properly converts lines to CR/LF. This bash problem
17781 # is reportedly fixed, but why not run on old versions too?
17782 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17783 || (rm -f "$cfgfile"; exit 1)
17784
17785 case $xsi_shell in
17786 yes)
17787 cat << \_LT_EOF >> "$cfgfile"
17788
17789 # func_dirname file append nondir_replacement
17790 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17791 # otherwise set result to NONDIR_REPLACEMENT.
17792 func_dirname ()
17793 {
17794 case ${1} in
17795 */*) func_dirname_result="${1%/*}${2}" ;;
17796 * ) func_dirname_result="${3}" ;;
17797 esac
17798 }
17799
17800 # func_basename file
17801 func_basename ()
17802 {
17803 func_basename_result="${1##*/}"
17804 }
17805
17806 # func_dirname_and_basename file append nondir_replacement
17807 # perform func_basename and func_dirname in a single function
17808 # call:
17809 # dirname: Compute the dirname of FILE. If nonempty,
17810 # add APPEND to the result, otherwise set result
17811 # to NONDIR_REPLACEMENT.
17812 # value returned in "$func_dirname_result"
17813 # basename: Compute filename of FILE.
17814 # value retuned in "$func_basename_result"
17815 # Implementation must be kept synchronized with func_dirname
17816 # and func_basename. For efficiency, we do not delegate to
17817 # those functions but instead duplicate the functionality here.
17818 func_dirname_and_basename ()
17819 {
17820 case ${1} in
17821 */*) func_dirname_result="${1%/*}${2}" ;;
17822 * ) func_dirname_result="${3}" ;;
17823 esac
17824 func_basename_result="${1##*/}"
17825 }
17826
17827 # func_stripname prefix suffix name
17828 # strip PREFIX and SUFFIX off of NAME.
17829 # PREFIX and SUFFIX must not contain globbing or regex special
17830 # characters, hashes, percent signs, but SUFFIX may contain a leading
17831 # dot (in which case that matches only a dot).
17832 func_stripname ()
17833 {
17834 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17835 # positional parameters, so assign one to ordinary parameter first.
17836 func_stripname_result=${3}
17837 func_stripname_result=${func_stripname_result#"${1}"}
17838 func_stripname_result=${func_stripname_result%"${2}"}
17839 }
17840
17841 # func_opt_split
17842 func_opt_split ()
17843 {
17844 func_opt_split_opt=${1%%=*}
17845 func_opt_split_arg=${1#*=}
17846 }
17847
17848 # func_lo2o object
17849 func_lo2o ()
17850 {
17851 case ${1} in
17852 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17853 *) func_lo2o_result=${1} ;;
17854 esac
17855 }
17856
17857 # func_xform libobj-or-source
17858 func_xform ()
17859 {
17860 func_xform_result=${1%.*}.lo
17861 }
17862
17863 # func_arith arithmetic-term...
17864 func_arith ()
17865 {
17866 func_arith_result=$(( $* ))
17867 }
17868
17869 # func_len string
17870 # STRING may not start with a hyphen.
17871 func_len ()
17872 {
17873 func_len_result=${#1}
17874 }
17875
17876 _LT_EOF
17877 ;;
17878 *) # Bourne compatible functions.
17879 cat << \_LT_EOF >> "$cfgfile"
17880
17881 # func_dirname file append nondir_replacement
17882 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17883 # otherwise set result to NONDIR_REPLACEMENT.
17884 func_dirname ()
17885 {
17886 # Extract subdirectory from the argument.
17887 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17888 if test "X$func_dirname_result" = "X${1}"; then
17889 func_dirname_result="${3}"
17890 else
17891 func_dirname_result="$func_dirname_result${2}"
17892 fi
17893 }
17894
17895 # func_basename file
17896 func_basename ()
17897 {
17898 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17899 }
17900
17901
17902 # func_stripname prefix suffix name
17903 # strip PREFIX and SUFFIX off of NAME.
17904 # PREFIX and SUFFIX must not contain globbing or regex special
17905 # characters, hashes, percent signs, but SUFFIX may contain a leading
17906 # dot (in which case that matches only a dot).
17907 # func_strip_suffix prefix name
17908 func_stripname ()
17909 {
17910 case ${2} in
17911 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17912 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17913 esac
17914 }
17915
17916 # sed scripts:
17917 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17918 my_sed_long_arg='1s/^-[^=]*=//'
17919
17920 # func_opt_split
17921 func_opt_split ()
17922 {
17923 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17924 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17925 }
17926
17927 # func_lo2o object
17928 func_lo2o ()
17929 {
17930 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17931 }
17932
17933 # func_xform libobj-or-source
17934 func_xform ()
17935 {
17936 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17937 }
17938
17939 # func_arith arithmetic-term...
17940 func_arith ()
17941 {
17942 func_arith_result=`expr "$@"`
17943 }
17944
17945 # func_len string
17946 # STRING may not start with a hyphen.
17947 func_len ()
17948 {
17949 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17950 }
17951
17952 _LT_EOF
17953 esac
17954
17955 case $lt_shell_append in
17956 yes)
17957 cat << \_LT_EOF >> "$cfgfile"
17958
17959 # func_append var value
17960 # Append VALUE to the end of shell variable VAR.
17961 func_append ()
17962 {
17963 eval "$1+=\$2"
17964 }
17965 _LT_EOF
17966 ;;
17967 *)
17968 cat << \_LT_EOF >> "$cfgfile"
17969
17970 # func_append var value
17971 # Append VALUE to the end of shell variable VAR.
17972 func_append ()
17973 {
17974 eval "$1=\$$1\$2"
17975 }
17976
17977 _LT_EOF
17978 ;;
17979 esac
17980
17981
17982 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17983 || (rm -f "$cfgfile"; exit 1)
17984
17985 mv -f "$cfgfile" "$ofile" ||
17986 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17987 chmod +x "$ofile"
17988
17989
17990 cat <<_LT_EOF >> "$ofile"
17991
17992 # ### BEGIN LIBTOOL TAG CONFIG: D
17993
17994 # The linker used to build libraries.
17995 LD=$lt_LD_D
17996
17997 # How to create reloadable object files.
17998 reload_flag=$lt_reload_flag_D
17999 reload_cmds=$lt_reload_cmds_D
18000
18001 # Commands used to build an old-style archive.
18002 old_archive_cmds=$lt_old_archive_cmds_D
18003
18004 # A language specific compiler.
18005 CC=$lt_compiler_D
18006
18007 # Is the compiler the GNU compiler?
18008 with_gcc=$GCC_D
18009
18010 # Compiler flag to turn off builtin functions.
18011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18012
18013 # How to pass a linker flag through the compiler.
18014 wl=$lt_lt_prog_compiler_wl_D
18015
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic_D
18018
18019 # Compiler flag to prevent dynamic linking.
18020 link_static_flag=$lt_lt_prog_compiler_static_D
18021
18022 # Does compiler simultaneously support -c and -o options?
18023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18024
18025 # Whether or not to add -lc for building shared libraries.
18026 build_libtool_need_lc=$archive_cmds_need_lc_D
18027
18028 # Whether or not to disallow shared libs when runtime libs are static.
18029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18030
18031 # Compiler flag to allow reflexive dlopens.
18032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18033
18034 # Compiler flag to generate shared objects directly from archives.
18035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18036
18037 # Whether the compiler copes with passing no objects directly.
18038 compiler_needs_object=$lt_compiler_needs_object_D
18039
18040 # Create an old-style archive from a shared archive.
18041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18042
18043 # Create a temporary old-style archive to link instead of a shared archive.
18044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18045
18046 # Commands used to build a shared archive.
18047 archive_cmds=$lt_archive_cmds_D
18048 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18049
18050 # Commands used to build a loadable module if different from building
18051 # a shared archive.
18052 module_cmds=$lt_module_cmds_D
18053 module_expsym_cmds=$lt_module_expsym_cmds_D
18054
18055 # Whether we are building with GNU ld or not.
18056 with_gnu_ld=$lt_with_gnu_ld_D
18057
18058 # Flag that allows shared libraries with undefined symbols to be built.
18059 allow_undefined_flag=$lt_allow_undefined_flag_D
18060
18061 # Flag that enforces no undefined symbols.
18062 no_undefined_flag=$lt_no_undefined_flag_D
18063
18064 # Flag to hardcode \$libdir into a binary during linking.
18065 # This must work even if \$libdir does not exist
18066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18067
18068 # If ld is used when linking, flag to hardcode \$libdir into a binary
18069 # during linking. This must work even if \$libdir does not exist.
18070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18071
18072 # Whether we need a single "-rpath" flag with a separated argument.
18073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18074
18075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18076 # DIR into the resulting binary.
18077 hardcode_direct=$hardcode_direct_D
18078
18079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18080 # DIR into the resulting binary and the resulting library dependency is
18081 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18082 # library is relocated.
18083 hardcode_direct_absolute=$hardcode_direct_absolute_D
18084
18085 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18086 # into the resulting binary.
18087 hardcode_minus_L=$hardcode_minus_L_D
18088
18089 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18090 # into the resulting binary.
18091 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18092
18093 # Set to "yes" if building a shared library automatically hardcodes DIR
18094 # into the library and all subsequent libraries and executables linked
18095 # against it.
18096 hardcode_automatic=$hardcode_automatic_D
18097
18098 # Set to yes if linker adds runtime paths of dependent libraries
18099 # to runtime path list.
18100 inherit_rpath=$inherit_rpath_D
18101
18102 # Whether libtool must link a program against all its dependency libraries.
18103 link_all_deplibs=$link_all_deplibs_D
18104
18105 # Fix the shell variable \$srcfile for the compiler.
18106 fix_srcfile_path=$lt_fix_srcfile_path_D
18107
18108 # Set to "yes" if exported symbols are required.
18109 always_export_symbols=$always_export_symbols_D
18110
18111 # The commands to list exported symbols.
18112 export_symbols_cmds=$lt_export_symbols_cmds_D
18113
18114 # Symbols that should not be listed in the preloaded symbols.
18115 exclude_expsyms=$lt_exclude_expsyms_D
18116
18117 # Symbols that must always be exported.
18118 include_expsyms=$lt_include_expsyms_D
18119
18120 # Commands necessary for linking programs (against libraries) with templates.
18121 prelink_cmds=$lt_prelink_cmds_D
18122
18123 # Specify filename containing input files.
18124 file_list_spec=$lt_file_list_spec_D
18125
18126 # How to hardcode a shared library path into an executable.
18127 hardcode_action=$hardcode_action_D
18128
18129 # ### END LIBTOOL TAG CONFIG: D
18130 _LT_EOF
18131
18132 ;;
18133 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18134 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18135 s!`test -f '$<' || echo '$(srcdir)/'`!!
18136 _EOF
18137 sed -f vpsed$$ $ac_file > tmp$$
18138 mv tmp$$ $ac_file
18139 rm vpsed$$
18140 echo 'MULTISUBDIR =' >> $ac_file
18141 ml_norecursion=yes
18142 . ${multi_basedir}/config-ml.in
18143 { ml_norecursion=; unset ml_norecursion;}
18144 ;;
18145 "src/Makefile":F) cat > vpsed$$ << \_EOF
18146 s!`test -f '$<' || echo '$(srcdir)/'`!!
18147 _EOF
18148 sed -f vpsed$$ $ac_file > tmp$$
18149 mv tmp$$ $ac_file
18150 rm vpsed$$
18151 echo 'MULTISUBDIR =' >> $ac_file
18152 ml_norecursion=yes
18153 . ${multi_basedir}/config-ml.in
18154 { ml_norecursion=; unset ml_norecursion;}
18155 ;;
18156 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18157 s!`test -f '$<' || echo '$(srcdir)/'`!!
18158 _EOF
18159 sed -f vpsed$$ $ac_file > tmp$$
18160 mv tmp$$ $ac_file
18161 rm vpsed$$
18162 echo 'MULTISUBDIR =' >> $ac_file
18163 ml_norecursion=yes
18164 . ${multi_basedir}/config-ml.in
18165 { ml_norecursion=; unset ml_norecursion;}
18166 ;;
18167
18168 esac
18169 done # for ac_tag
18170
18171
18172 as_fn_exit 0
18173 _ACEOF
18174 ac_clean_files=$ac_clean_files_save
18175
18176 test $ac_write_fail = 0 ||
18177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18178
18179
18180 # configure is writing to config.log, and then calls config.status.
18181 # config.status does its own redirection, appending to config.log.
18182 # Unfortunately, on DOS this fails, as config.log is still kept open
18183 # by configure, so config.status won't be able to write to it; its
18184 # output is simply discarded. So we exec the FD to /dev/null,
18185 # effectively closing config.log, so it can be properly (re)opened and
18186 # appended to by config.status. When coming back to configure, we
18187 # need to make the FD available again.
18188 if test "$no_create" != yes; then
18189 ac_cs_success=:
18190 ac_config_status_args=
18191 test "$silent" = yes &&
18192 ac_config_status_args="$ac_config_status_args --quiet"
18193 exec 5>/dev/null
18194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18195 exec 5>>config.log
18196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18197 # would make configure fail if this is the last instruction.
18198 $ac_cs_success || as_fn_exit 1
18199 fi
18200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18203 fi
18204