Daily bump.
[gcc.git] / libcc1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcc1 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='libcc1'
589 PACKAGE_TARNAME='libcc1'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libcc1 version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libcc1.cc"
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 ENABLE_PLUGIN_FALSE
637 ENABLE_PLUGIN_TRUE
638 libsuffix
639 GMPINC
640 WERROR
641 WARN_FLAGS
642 CONFIG_STATUS_DEPENDENCIES
643 gcc_version
644 get_gcc_base_ver
645 CET_HOST_FLAGS
646 visibility
647 CXXCPP
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
653 CXX
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 RANLIB
660 AR
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 LIBTOOL
670 MAINT
671 MAINTAINER_MODE_FALSE
672 MAINTAINER_MODE_TRUE
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 target_noncanonical
715 EGREP
716 GREP
717 CPP
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 with_build_libsubdir
779 enable_dependency_tracking
780 enable_silent_rules
781 enable_maintainer_mode
782 enable_static
783 enable_shared
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_cet
789 with_gcc_major_version_only
790 enable_werror_always
791 enable_plugin
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 CXX
803 CXXFLAGS
804 CCC
805 CXXCPP
806 GMPINC'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-maintainer-mode
1433 enable make rules and dependencies not useful (and
1434 sometimes confusing) to the casual installer
1435 --enable-static[=PKGS] build static libraries [default=no]
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
1440 --enable-cet enable Intel CET in host libraries [default=auto]
1441 --enable-werror-always enable -Werror despite compiler version
1442 --enable-plugin enable plugin support
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-build-libsubdir=DIR Directory where to find libraries for build system
1448 --with-pic try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 --with-gcc-major-version-only
1452 use only GCC major number in filesystem paths
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465 CXXCPP C++ preprocessor
1466 GMPINC How to find GMP include files
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 libcc1 configure version-unused
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 fi
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1651 else
1652 ac_header_compiler=no
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1657
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1667 else
1668 ac_header_preproc=no
1669 fi
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1673
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 yes:no: )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ;;
1682 no:yes:* )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ;;
1694 esac
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 eval "$3=\$ac_header_compiler"
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_mongrel
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_link
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_cxx_try_compile LINENO
1897 # ----------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_cxx_try_compile ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext
1903 if { { ac_try="$ac_compile"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1916 fi
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1931
1932 } # ac_fn_cxx_try_compile
1933
1934 # ac_fn_cxx_try_cpp LINENO
1935 # ------------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_cxx_try_cpp ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1953 fi
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } > conftest.i && {
1956 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1957 test ! -s conftest.err
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965 fi
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1968
1969 } # ac_fn_cxx_try_cpp
1970
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1991 fi
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
1999 }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006 fi
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2014
2015 } # ac_fn_cxx_try_link
2016
2017 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2018 # ---------------------------------------------
2019 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_decl ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 as_decl_name=`echo $2|sed 's/ *(.*//'`
2025 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 #ifndef $as_decl_name
2038 #ifdef __cplusplus
2039 (void) $as_decl_use;
2040 #else
2041 (void) $as_decl_name;
2042 #endif
2043 #endif
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_decl
2062 cat >config.log <<_ACEOF
2063 This file contains any messages produced by compilers while
2064 running configure, to aid debugging if configure makes a mistake.
2065
2066 It was created by libcc1 $as_me version-unused, which was
2067 generated by GNU Autoconf 2.69. Invocation command line was
2068
2069 $ $0 $@
2070
2071 _ACEOF
2072 exec 5>>config.log
2073 {
2074 cat <<_ASUNAME
2075 ## --------- ##
2076 ## Platform. ##
2077 ## --------- ##
2078
2079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2084
2085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2087
2088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095
2096 _ASUNAME
2097
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 $as_echo "PATH: $as_dir"
2104 done
2105 IFS=$as_save_IFS
2106
2107 } >&5
2108
2109 cat >&5 <<_ACEOF
2110
2111
2112 ## ----------- ##
2113 ## Core tests. ##
2114 ## ----------- ##
2115
2116 _ACEOF
2117
2118
2119 # Keep a trace of the command line.
2120 # Strip out --no-create and --no-recursion so they do not pile up.
2121 # Strip out --silent because we don't want to record it for future runs.
2122 # Also quote any args containing shell meta-characters.
2123 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_configure_args=
2125 ac_configure_args0=
2126 ac_configure_args1=
2127 ac_must_keep_next=false
2128 for ac_pass in 1 2
2129 do
2130 for ac_arg
2131 do
2132 case $ac_arg in
2133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2135 | -silent | --silent | --silen | --sile | --sil)
2136 continue ;;
2137 *\'*)
2138 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 case $ac_pass in
2141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2142 2)
2143 as_fn_append ac_configure_args1 " '$ac_arg'"
2144 if test $ac_must_keep_next = true; then
2145 ac_must_keep_next=false # Got value, back to normal.
2146 else
2147 case $ac_arg in
2148 *=* | --config-cache | -C | -disable-* | --disable-* \
2149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2151 | -with-* | --with-* | -without-* | --without-* | --x)
2152 case "$ac_configure_args0 " in
2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 esac
2155 ;;
2156 -* ) ac_must_keep_next=true ;;
2157 esac
2158 fi
2159 as_fn_append ac_configure_args " '$ac_arg'"
2160 ;;
2161 esac
2162 done
2163 done
2164 { ac_configure_args0=; unset ac_configure_args0;}
2165 { ac_configure_args1=; unset ac_configure_args1;}
2166
2167 # When interrupted or exit'd, cleanup temporary files, and complete
2168 # config.log. We remove comments because anyway the quotes in there
2169 # would cause problems or look ugly.
2170 # WARNING: Use '\'' to represent an apostrophe within the trap.
2171 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2172 trap 'exit_status=$?
2173 # Save into config.log some information that might help in debugging.
2174 {
2175 echo
2176
2177 $as_echo "## ---------------- ##
2178 ## Cache variables. ##
2179 ## ---------------- ##"
2180 echo
2181 # The following way of writing the cache mishandles newlines in values,
2182 (
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in #(
2186 *${as_nl}*)
2187 case $ac_var in #(
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190 esac
2191 case $ac_var in #(
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2195 esac ;;
2196 esac
2197 done
2198 (set) 2>&1 |
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2201 sed -n \
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 ;; #(
2205 *)
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207 ;;
2208 esac |
2209 sort
2210 )
2211 echo
2212
2213 $as_echo "## ----------------- ##
2214 ## Output variables. ##
2215 ## ----------------- ##"
2216 echo
2217 for ac_var in $ac_subst_vars
2218 do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2226
2227 if test -n "$ac_subst_files"; then
2228 $as_echo "## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##"
2231 echo
2232 for ac_var in $ac_subst_files
2233 do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2241 fi
2242
2243 if test -s confdefs.h; then
2244 $as_echo "## ----------- ##
2245 ## confdefs.h. ##
2246 ## ----------- ##"
2247 echo
2248 cat confdefs.h
2249 echo
2250 fi
2251 test "$ac_signal" != 0 &&
2252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
2254 } >&5
2255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257 exit $exit_status
2258 ' 0
2259 for ac_signal in 1 2 13 15; do
2260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 done
2262 ac_signal=0
2263
2264 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2265 rm -f -r conftest* confdefs.h
2266
2267 $as_echo "/* confdefs.h */" > confdefs.h
2268
2269 # Predefined preprocessor variables.
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_NAME "$PACKAGE_NAME"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_STRING "$PACKAGE_STRING"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_URL "$PACKAGE_URL"
2293 _ACEOF
2294
2295
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2298 ac_site_file1=NONE
2299 ac_site_file2=NONE
2300 if test -n "$CONFIG_SITE"; then
2301 # We do not want a PATH search for config.site.
2302 case $CONFIG_SITE in #((
2303 -*) ac_site_file1=./$CONFIG_SITE;;
2304 */*) ac_site_file1=$CONFIG_SITE;;
2305 *) ac_site_file1=./$CONFIG_SITE;;
2306 esac
2307 elif test "x$prefix" != xNONE; then
2308 ac_site_file1=$prefix/share/config.site
2309 ac_site_file2=$prefix/etc/config.site
2310 else
2311 ac_site_file1=$ac_default_prefix/share/config.site
2312 ac_site_file2=$ac_default_prefix/etc/config.site
2313 fi
2314 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2315 do
2316 test "x$ac_site_file" = xNONE && continue
2317 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2319 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2320 sed 's/^/| /' "$ac_site_file" >&5
2321 . "$ac_site_file" \
2322 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error $? "failed to load site script $ac_site_file
2325 See \`config.log' for more details" "$LINENO" 5; }
2326 fi
2327 done
2328
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2335 case $cache_file in
2336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
2338 esac
2339 fi
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 >$cache_file
2344 fi
2345
2346 # Check that the precious variables saved in the cache have kept the same
2347 # value.
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2355 set,)
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2359 ,set)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2363 ,);;
2364 *)
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 fi;;
2383 esac
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 esac
2394 fi
2395 done
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2402 fi
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413
2414
2415
2416
2417
2418 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2419
2420
2421 ac_aux_dir=
2422 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2423 if test -f "$ac_dir/install-sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 break
2427 elif test -f "$ac_dir/install.sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 break
2431 elif test -f "$ac_dir/shtool"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 break
2435 fi
2436 done
2437 if test -z "$ac_aux_dir"; then
2438 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2439 fi
2440
2441 # These three variables are undocumented and unsupported,
2442 # and are intended to be withdrawn in a future Autoconf release.
2443 # They can cause serious problems if a builder's source tree is in a directory
2444 # whose full name contains unusual characters.
2445 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2448
2449
2450 # Make sure we can run config.sub.
2451 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455 $as_echo_n "checking build system type... " >&6; }
2456 if ${ac_cv_build+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 ac_build_alias=$build_alias
2460 test "x$ac_build_alias" = x &&
2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462 test "x$ac_build_alias" = x &&
2463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2464 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2466
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469 $as_echo "$ac_cv_build" >&6; }
2470 case $ac_cv_build in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2473 esac
2474 build=$ac_cv_build
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_build
2477 shift
2478 build_cpu=$1
2479 build_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 build_os=$*
2484 IFS=$ac_save_IFS
2485 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489 $as_echo_n "checking host system type... " >&6; }
2490 if ${ac_cv_host+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test "x$host_alias" = x; then
2494 ac_cv_host=$ac_cv_build
2495 else
2496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2498 fi
2499
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502 $as_echo "$ac_cv_host" >&6; }
2503 case $ac_cv_host in
2504 *-*-*) ;;
2505 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2506 esac
2507 host=$ac_cv_host
2508 ac_save_IFS=$IFS; IFS='-'
2509 set x $ac_cv_host
2510 shift
2511 host_cpu=$1
2512 host_vendor=$2
2513 shift; shift
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2516 host_os=$*
2517 IFS=$ac_save_IFS
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2519
2520
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522 $as_echo_n "checking target system type... " >&6; }
2523 if ${ac_cv_target+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test "x$target_alias" = x; then
2527 ac_cv_target=$ac_cv_host
2528 else
2529 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2531 fi
2532
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535 $as_echo "$ac_cv_target" >&6; }
2536 case $ac_cv_target in
2537 *-*-*) ;;
2538 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2539 esac
2540 target=$ac_cv_target
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_target
2543 shift
2544 target_cpu=$1
2545 target_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 target_os=$*
2550 IFS=$ac_save_IFS
2551 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552
2553
2554 # The aliases save the names the user supplied, while $host etc.
2555 # will get canonicalized.
2556 test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2558 NONENONEs,x,x, &&
2559 program_prefix=${target_alias}-
2560
2561 # Expand $ac_aux_dir to an absolute path.
2562 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_CC+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2640 $as_echo "$ac_ct_CC" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2656 fi
2657 else
2658 CC="$ac_cv_prog_CC"
2659 fi
2660
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 fi
2702 if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704 set dummy cc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_CC+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 ac_prog_rejected=no
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2724 fi
2725 ac_cv_prog_CC="cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2743 fi
2744 fi
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl.exe
2761 do
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 test -n "$CC" && break
2800 done
2801 fi
2802 if test -z "$CC"; then
2803 ac_ct_CC=$CC
2804 for ac_prog in cl.exe
2805 do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 test -n "$ac_ct_CC" && break
2844 done
2845
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CC=$ac_ct_CC
2856 fi
2857 fi
2858
2859 fi
2860
2861
2862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error $? "no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details" "$LINENO" 5; }
2866
2867 # Provide some information about the compiler.
2868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2869 set X $ac_compile
2870 ac_compiler=$2
2871 for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2880 ac_status=$?
2881 if test -s conftest.err; then
2882 sed '10a\
2883 ... rest of stderr output deleted ...
2884 10q' conftest.err >conftest.er1
2885 cat conftest.er1 >&5
2886 fi
2887 rm -f conftest.er1 conftest.err
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2890 done
2891
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894
2895 int
2896 main ()
2897 {
2898
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2907 # of exeext.
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2909 $as_echo_n "checking whether the C compiler works... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2911
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2914
2915 ac_rmfiles=
2916 for ac_file in $ac_files
2917 do
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922 done
2923 rm -f $ac_rmfiles
2924
2925 if { { ac_try="$ac_link_default"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2940 # Autoconf.
2941 for ac_file in $ac_files ''
2942 do
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2946 ;;
2947 [ab].out )
2948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
2951 *.* )
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 fi
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
2961 break;;
2962 * )
2963 break;;
2964 esac
2965 done
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2967
2968 else
2969 ac_file=''
2970 fi
2971 if test -z "$ac_file"; then :
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error 77 "C compiler cannot create executables
2980 See \`config.log' for more details" "$LINENO" 5; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2986 $as_echo_n "checking for C compiler default output file name... " >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2988 $as_echo "$ac_file" >&6; }
2989 ac_exeext=$ac_cv_exeext
2990
2991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2992 ac_clean_files=$ac_clean_files_save
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2994 $as_echo_n "checking for suffix of executables... " >&6; }
2995 if { { ac_try="$ac_link"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_link") 2>&5
3003 ac_status=$?
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
3006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3008 # work properly (i.e., refer to `conftest.exe'), while it won't with
3009 # `rm'.
3010 for ac_file in conftest.exe conftest conftest.*; do
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 break;;
3016 * ) break;;
3017 esac
3018 done
3019 else
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3023 See \`config.log' for more details" "$LINENO" 5; }
3024 fi
3025 rm -f conftest conftest$ac_cv_exeext
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3027 $as_echo "$ac_cv_exeext" >&6; }
3028
3029 rm -f conftest.$ac_ext
3030 EXEEXT=$ac_cv_exeext
3031 ac_exeext=$EXEEXT
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3034 #include <stdio.h>
3035 int
3036 main ()
3037 {
3038 FILE *f = fopen ("conftest.out", "w");
3039 return ferror (f) || fclose (f) != 0;
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 ac_clean_files="$ac_clean_files conftest.out"
3046 # Check that the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3049 $as_echo_n "checking whether we are cross compiling... " >&6; }
3050 if test "$cross_compiling" != yes; then
3051 { { ac_try="$ac_link"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 if { ac_try='./conftest$ac_cv_exeext'
3063 { { case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; }; then
3073 cross_compiling=no
3074 else
3075 if test "$cross_compiling" = maybe; then
3076 cross_compiling=yes
3077 else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "cannot run C compiled programs.
3081 If you meant to cross compile, use \`--host'.
3082 See \`config.log' for more details" "$LINENO" 5; }
3083 fi
3084 fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3087 $as_echo "$cross_compiling" >&6; }
3088
3089 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3090 ac_clean_files=$ac_clean_files_save
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if ${ac_cv_objext+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3098
3099 int
3100 main ()
3101 {
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.o conftest.obj
3108 if { { ac_try="$ac_compile"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compile") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124 break;;
3125 esac
3126 done
3127 else
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details" "$LINENO" 5; }
3135 fi
3136 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3139 $as_echo "$ac_cv_objext" >&6; }
3140 OBJEXT=$ac_cv_objext
3141 ac_objext=$OBJEXT
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3143 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3144 if ${ac_cv_c_compiler_gnu+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153 #ifndef __GNUC__
3154 choke me
3155 #endif
3156
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 if ac_fn_c_try_compile "$LINENO"; then :
3162 ac_compiler_gnu=yes
3163 else
3164 ac_compiler_gnu=no
3165 fi
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3168
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3171 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3172 if test $ac_compiler_gnu = yes; then
3173 GCC=yes
3174 else
3175 GCC=
3176 fi
3177 ac_test_CFLAGS=${CFLAGS+set}
3178 ac_save_CFLAGS=$CFLAGS
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3180 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3181 if ${ac_cv_prog_cc_g+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 ac_save_c_werror_flag=$ac_c_werror_flag
3185 ac_c_werror_flag=yes
3186 ac_cv_prog_cc_g=no
3187 CFLAGS="-g"
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_g=yes
3201 else
3202 CFLAGS=""
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3215
3216 else
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218 CFLAGS="-g"
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3221
3222 int
3223 main ()
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_g=yes
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 fi
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3241 $as_echo "$ac_cv_prog_cc_g" >&6; }
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3246 CFLAGS="-g -O2"
3247 else
3248 CFLAGS="-g"
3249 fi
3250 else
3251 if test "$GCC" = yes; then
3252 CFLAGS="-O2"
3253 else
3254 CFLAGS=
3255 fi
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3258 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3259 if ${ac_cv_prog_cc_c89+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 ac_cv_prog_cc_c89=no
3263 ac_save_CC=$CC
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 struct stat;
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3273 char **p;
3274 int i;
3275 {
3276 return p[i];
3277 }
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3279 {
3280 char *s;
3281 va_list v;
3282 va_start (v,p);
3283 s = g (p, va_arg (v,int));
3284 va_end (v);
3285 return s;
3286 }
3287
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
3291 as 'x'. The following induces an error, until -std is added to get
3292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
3294 that's true only with -std. */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3299 #define FOO(x) 'x'
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 int argc;
3307 char **argv;
3308 int
3309 main ()
3310 {
3311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318 do
3319 CC="$ac_save_CC $ac_arg"
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_cv_prog_cc_c89=$ac_arg
3322 fi
3323 rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
3325 done
3326 rm -f conftest.$ac_ext
3327 CC=$ac_save_CC
3328
3329 fi
3330 # AC_CACHE_VAL
3331 case "x$ac_cv_prog_cc_c89" in
3332 x)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3334 $as_echo "none needed" >&6; } ;;
3335 xno)
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3337 $as_echo "unsupported" >&6; } ;;
3338 *)
3339 CC="$CC $ac_cv_prog_cc_c89"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3341 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3342 esac
3343 if test "x$ac_cv_prog_cc_c89" != xno; then :
3344
3345 fi
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3359 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3360 if ${am_cv_prog_cc_c_o+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 # Make sure it works both with $CC and with simple cc.
3375 # Following AC_PROG_CC_C_O, we do the test twice because some
3376 # compilers refuse to overwrite an existing .o file with -o,
3377 # though they will create one.
3378 am_cv_prog_cc_c_o=yes
3379 for am_i in 1 2; do
3380 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3381 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } \
3385 && test -f conftest2.$ac_objext; then
3386 : OK
3387 else
3388 am_cv_prog_cc_c_o=no
3389 break
3390 fi
3391 done
3392 rm -f core conftest*
3393 unset am_i
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3396 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3397 if test "$am_cv_prog_cc_c_o" != yes; then
3398 # Losing compiler, so override with the script.
3399 # FIXME: It is wrong to rewrite CC.
3400 # But if we don't then we get into trouble of one sort or another.
3401 # A longer-term fix would be to have automake use am__CC in this case,
3402 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3403 CC="$am_aux_dir/compile $CC"
3404 fi
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3422 CPP=
3423 fi
3424 if test -z "$CPP"; then
3425 if ${ac_cv_prog_CPP+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 # Double quotes because CPP needs to be expanded
3429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430 do
3431 ac_preproc_ok=false
3432 for ac_c_preproc_warn_flag in '' yes
3433 do
3434 # Use a header file that comes with gcc, so configuring glibc
3435 # with a fresh cross-compiler works.
3436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437 # <limits.h> exists even on freestanding compilers.
3438 # On the NeXT, cc -E runs the code through the compiler's parser,
3439 # not just through cpp. "Syntax error" is here to catch this case.
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3450
3451 else
3452 # Broken: fails on valid input.
3453 continue
3454 fi
3455 rm -f conftest.err conftest.i conftest.$ac_ext
3456
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3464 # Broken: success on invalid input.
3465 continue
3466 else
3467 # Passes both tests.
3468 ac_preproc_ok=:
3469 break
3470 fi
3471 rm -f conftest.err conftest.i conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.i conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then :
3477 break
3478 fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483 fi
3484 CPP=$ac_cv_prog_CPP
3485 else
3486 ac_cv_prog_CPP=$CPP
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3489 $as_echo "$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509
3510 else
3511 # Broken: fails on valid input.
3512 continue
3513 fi
3514 rm -f conftest.err conftest.i conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3529 fi
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.i conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3536
3537 else
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details" "$LINENO" 5; }
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3553 if ${ac_cv_path_GREP+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -z "$GREP"; then
3557 ac_path_GREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in grep ggrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567 as_fn_executable_p "$ac_path_GREP" || continue
3568 # Check for GNU ac_path_GREP and select it if it is found.
3569 # Check for GNU $ac_path_GREP
3570 case `"$ac_path_GREP" --version 2>&1` in
3571 *GNU*)
3572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573 *)
3574 ac_count=0
3575 $as_echo_n 0123456789 >"conftest.in"
3576 while :
3577 do
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 $as_echo 'GREP' >> "conftest.nl"
3582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 as_fn_arith $ac_count + 1 && ac_count=$as_val
3585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_GREP="$ac_path_GREP"
3588 ac_path_GREP_max=$ac_count
3589 fi
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3592 done
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596 $ac_path_GREP_found && break 3
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3601 if test -z "$ac_cv_path_GREP"; then
3602 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603 fi
3604 else
3605 ac_cv_path_GREP=$GREP
3606 fi
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610 $as_echo "$ac_cv_path_GREP" >&6; }
3611 GREP="$ac_cv_path_GREP"
3612
3613
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615 $as_echo_n "checking for egrep... " >&6; }
3616 if ${ac_cv_path_EGREP+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620 then ac_cv_path_EGREP="$GREP -E"
3621 else
3622 if test -z "$EGREP"; then
3623 ac_path_EGREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in egrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3633 as_fn_executable_p "$ac_path_EGREP" || continue
3634 # Check for GNU ac_path_EGREP and select it if it is found.
3635 # Check for GNU $ac_path_EGREP
3636 case `"$ac_path_EGREP" --version 2>&1` in
3637 *GNU*)
3638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3639 *)
3640 ac_count=0
3641 $as_echo_n 0123456789 >"conftest.in"
3642 while :
3643 do
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'EGREP' >> "conftest.nl"
3648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_EGREP="$ac_path_EGREP"
3654 ac_path_EGREP_max=$ac_count
3655 fi
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 esac
3661
3662 $ac_path_EGREP_found && break 3
3663 done
3664 done
3665 done
3666 IFS=$as_save_IFS
3667 if test -z "$ac_cv_path_EGREP"; then
3668 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669 fi
3670 else
3671 ac_cv_path_EGREP=$EGREP
3672 fi
3673
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3677 $as_echo "$ac_cv_path_EGREP" >&6; }
3678 EGREP="$ac_cv_path_EGREP"
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3682 $as_echo_n "checking for ANSI C header files... " >&6; }
3683 if ${ac_cv_header_stdc+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdlib.h>
3689 #include <stdarg.h>
3690 #include <string.h>
3691 #include <float.h>
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_header_stdc=yes
3703 else
3704 ac_cv_header_stdc=no
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707
3708 if test $ac_cv_header_stdc = yes; then
3709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <string.h>
3713
3714 _ACEOF
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then :
3717
3718 else
3719 ac_cv_header_stdc=no
3720 fi
3721 rm -f conftest*
3722
3723 fi
3724
3725 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <stdlib.h>
3730
3731 _ACEOF
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 $EGREP "free" >/dev/null 2>&1; then :
3734
3735 else
3736 ac_cv_header_stdc=no
3737 fi
3738 rm -f conftest*
3739
3740 fi
3741
3742 if test $ac_cv_header_stdc = yes; then
3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 if test "$cross_compiling" = yes; then :
3745 :
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <ctype.h>
3750 #include <stdlib.h>
3751 #if ((' ' & 0x0FF) == 0x020)
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754 #else
3755 # define ISLOWER(c) \
3756 (('a' <= (c) && (c) <= 'i') \
3757 || ('j' <= (c) && (c) <= 'r') \
3758 || ('s' <= (c) && (c) <= 'z'))
3759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #endif
3761
3762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3763 int
3764 main ()
3765 {
3766 int i;
3767 for (i = 0; i < 256; i++)
3768 if (XOR (islower (i), ISLOWER (i))
3769 || toupper (i) != TOUPPER (i))
3770 return 2;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_run "$LINENO"; then :
3775
3776 else
3777 ac_cv_header_stdc=no
3778 fi
3779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3780 conftest.$ac_objext conftest.beam conftest.$ac_ext
3781 fi
3782
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3786 $as_echo "$ac_cv_header_stdc" >&6; }
3787 if test $ac_cv_header_stdc = yes; then
3788
3789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790
3791 fi
3792
3793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795 inttypes.h stdint.h unistd.h
3796 do :
3797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3799 "
3800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3801 cat >>confdefs.h <<_ACEOF
3802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 _ACEOF
3804
3805 fi
3806
3807 done
3808
3809
3810
3811 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3812 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3813 MINIX=yes
3814 else
3815 MINIX=
3816 fi
3817
3818
3819 if test "$MINIX" = yes; then
3820
3821 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3822
3823
3824 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3825
3826
3827 $as_echo "#define _MINIX 1" >>confdefs.h
3828
3829 fi
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 # define __EXTENSIONS__ 1
3841 $ac_includes_default
3842 int
3843 main ()
3844 {
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_safe_to_define___extensions__=yes
3852 else
3853 ac_cv_safe_to_define___extensions__=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3859 test $ac_cv_safe_to_define___extensions__ = yes &&
3860 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3861
3862 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3863
3864 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3865
3866 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3867
3868 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3869
3870
3871 # Determine the noncanonical target name, for directory use.
3872 case ${build_alias} in
3873 "") build_noncanonical=${build} ;;
3874 *) build_noncanonical=${build_alias} ;;
3875 esac
3876
3877 case ${host_alias} in
3878 "") host_noncanonical=${build_noncanonical} ;;
3879 *) host_noncanonical=${host_alias} ;;
3880 esac
3881
3882 case ${target_alias} in
3883 "") target_noncanonical=${host_noncanonical} ;;
3884 *) target_noncanonical=${target_alias} ;;
3885 esac
3886
3887
3888
3889
3890 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3891 # have matching libraries, they should use host libraries: Makefile.tpl
3892 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3893 # However, they still use the build modules, because the corresponding
3894 # host modules (e.g. bison) are only built for the host when bootstrap
3895 # finishes. So:
3896 # - build_subdir is where we find build modules, and never changes.
3897 # - build_libsubdir is where we find build libraries, and can be overridden.
3898
3899 # Prefix 'build-' so this never conflicts with target_subdir.
3900 build_subdir="build-${build_noncanonical}"
3901
3902 # Check whether --with-build-libsubdir was given.
3903 if test "${with_build_libsubdir+set}" = set; then :
3904 withval=$with_build_libsubdir; build_libsubdir="$withval"
3905 else
3906 build_libsubdir="$build_subdir"
3907 fi
3908
3909 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3910 if ( test $srcdir = . && test -d gcc ) \
3911 || test -d $srcdir/../host-${host_noncanonical}; then
3912 host_subdir="host-${host_noncanonical}"
3913 else
3914 host_subdir=.
3915 fi
3916 # No prefix.
3917 target_subdir=${target_noncanonical}
3918
3919
3920 # 1.11.1: Require that version of automake.
3921 # foreign: Don't require README, INSTALL, NEWS, etc.
3922 # no-define: Don't define PACKAGE and VERSION.
3923 # -Wall: Issue all automake warnings.
3924 # -Wno-portability: Don't warn about constructs supported by GNU make.
3925 # (because GCC requires GNU make anyhow).
3926 am__api_version='1.15'
3927
3928 # Find a good install program. We prefer a C program (faster),
3929 # so one script is as good as another. But avoid the broken or
3930 # incompatible versions:
3931 # SysV /etc/install, /usr/sbin/install
3932 # SunOS /usr/etc/install
3933 # IRIX /sbin/install
3934 # AIX /bin/install
3935 # AmigaOS /C/install, which installs bootblocks on floppy discs
3936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3939 # OS/2's system install, which has a completely different semantic
3940 # ./install, which can be erroneously created by make from ./install.sh.
3941 # Reject install programs that cannot install multiple files.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3944 if test -z "$INSTALL"; then
3945 if ${ac_cv_path_install+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 # Account for people who put trailing slashes in PATH elements.
3954 case $as_dir/ in #((
3955 ./ | .// | /[cC]/* | \
3956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3958 /usr/ucb/* ) ;;
3959 *)
3960 # OSF1 and SCO ODT 3.0 have their own names for install.
3961 # Don't use installbsd from OSF since it installs stuff as root
3962 # by default.
3963 for ac_prog in ginstall scoinst install; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3966 if test $ac_prog = install &&
3967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # AIX install. It has an incompatible calling convention.
3969 :
3970 elif test $ac_prog = install &&
3971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3972 # program-specific install script used by HP pwplus--don't use.
3973 :
3974 else
3975 rm -rf conftest.one conftest.two conftest.dir
3976 echo one > conftest.one
3977 echo two > conftest.two
3978 mkdir conftest.dir
3979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3980 test -s conftest.one && test -s conftest.two &&
3981 test -s conftest.dir/conftest.one &&
3982 test -s conftest.dir/conftest.two
3983 then
3984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3985 break 3
3986 fi
3987 fi
3988 fi
3989 done
3990 done
3991 ;;
3992 esac
3993
3994 done
3995 IFS=$as_save_IFS
3996
3997 rm -rf conftest.one conftest.two conftest.dir
3998
3999 fi
4000 if test "${ac_cv_path_install+set}" = set; then
4001 INSTALL=$ac_cv_path_install
4002 else
4003 # As a last resort, use the slow shell script. Don't cache a
4004 # value for INSTALL within a source directory, because that will
4005 # break other packages using the cache if that directory is
4006 # removed, or if the value is a relative name.
4007 INSTALL=$ac_install_sh
4008 fi
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4011 $as_echo "$INSTALL" >&6; }
4012
4013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4014 # It thinks the first close brace ends the variable substitution.
4015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4016
4017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4018
4019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4020
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4022 $as_echo_n "checking whether build environment is sane... " >&6; }
4023 # Reject unsafe characters in $srcdir or the absolute working directory
4024 # name. Accept space and tab only in the latter.
4025 am_lf='
4026 '
4027 case `pwd` in
4028 *[\\\"\#\$\&\'\`$am_lf]*)
4029 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4030 esac
4031 case $srcdir in
4032 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4033 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4034 esac
4035
4036 # Do 'set' in a subshell so we don't clobber the current shell's
4037 # arguments. Must try -L first in case configure is actually a
4038 # symlink; some systems play weird games with the mod time of symlinks
4039 # (eg FreeBSD returns the mod time of the symlink's containing
4040 # directory).
4041 if (
4042 am_has_slept=no
4043 for am_try in 1 2; do
4044 echo "timestamp, slept: $am_has_slept" > conftest.file
4045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4046 if test "$*" = "X"; then
4047 # -L didn't work.
4048 set X `ls -t "$srcdir/configure" conftest.file`
4049 fi
4050 if test "$*" != "X $srcdir/configure conftest.file" \
4051 && test "$*" != "X conftest.file $srcdir/configure"; then
4052
4053 # If neither matched, then we have a broken ls. This can happen
4054 # if, for instance, CONFIG_SHELL is bash and it inherits a
4055 # broken ls alias from the environment. This has actually
4056 # happened. Such a system could not be considered "sane".
4057 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4058 alias in your environment" "$LINENO" 5
4059 fi
4060 if test "$2" = conftest.file || test $am_try -eq 2; then
4061 break
4062 fi
4063 # Just in case.
4064 sleep 1
4065 am_has_slept=yes
4066 done
4067 test "$2" = conftest.file
4068 )
4069 then
4070 # Ok.
4071 :
4072 else
4073 as_fn_error $? "newly created file is older than distributed files!
4074 Check your system clock" "$LINENO" 5
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 # If we didn't sleep, we still need to ensure time stamps of config.status and
4079 # generated files are strictly newer.
4080 am_sleep_pid=
4081 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4082 ( sleep 1 ) &
4083 am_sleep_pid=$!
4084 fi
4085
4086 rm -f conftest.file
4087
4088 test "$program_prefix" != NONE &&
4089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4090 # Use a double $ so make ignores it.
4091 test "$program_suffix" != NONE &&
4092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4093 # Double any \ or $.
4094 # By default was `s,x,x', remove it if useless.
4095 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4096 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4097
4098 if test x"${MISSING+set}" != xset; then
4099 case $am_aux_dir in
4100 *\ * | *\ *)
4101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4102 *)
4103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4104 esac
4105 fi
4106 # Use eval to expand $SHELL
4107 if eval "$MISSING --is-lightweight"; then
4108 am_missing_run="$MISSING "
4109 else
4110 am_missing_run=
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4112 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4113 fi
4114
4115 if test x"${install_sh+set}" != xset; then
4116 case $am_aux_dir in
4117 *\ * | *\ *)
4118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4119 *)
4120 install_sh="\${SHELL} $am_aux_dir/install-sh"
4121 esac
4122 fi
4123
4124 # Installed binaries are usually stripped using 'strip' when the user
4125 # run "make install-strip". However 'strip' might not be the right
4126 # tool to use in cross-compilation environments, therefore Automake
4127 # will honor the 'STRIP' environment variable to overrule this program.
4128 if test "$cross_compiling" != no; then
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}strip; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_STRIP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$STRIP"; then
4138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 STRIP=$ac_cv_prog_STRIP
4158 if test -n "$STRIP"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4160 $as_echo "$STRIP" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167 fi
4168 if test -z "$ac_cv_prog_STRIP"; then
4169 ac_ct_STRIP=$STRIP
4170 # Extract the first word of "strip", so it can be a program name with args.
4171 set dummy strip; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$ac_ct_STRIP"; then
4178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_STRIP="strip"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4198 if test -n "$ac_ct_STRIP"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4200 $as_echo "$ac_ct_STRIP" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206 if test "x$ac_ct_STRIP" = x; then
4207 STRIP=":"
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 STRIP=$ac_ct_STRIP
4216 fi
4217 else
4218 STRIP="$ac_cv_prog_STRIP"
4219 fi
4220
4221 fi
4222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4226 if test -z "$MKDIR_P"; then
4227 if ${ac_cv_path_mkdir+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in mkdir gmkdir; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4239 'mkdir (GNU coreutils) '* | \
4240 'mkdir (coreutils) '* | \
4241 'mkdir (fileutils) '4.1*)
4242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4243 break 3;;
4244 esac
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251
4252 test -d ./--version && rmdir ./--version
4253 if test "${ac_cv_path_mkdir+set}" = set; then
4254 MKDIR_P="$ac_cv_path_mkdir -p"
4255 else
4256 # As a last resort, use the slow shell script. Don't cache a
4257 # value for MKDIR_P within a source directory, because that will
4258 # break other packages using the cache if that directory is
4259 # removed, or if the value is a relative name.
4260 MKDIR_P="$ac_install_sh -d"
4261 fi
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4264 $as_echo "$MKDIR_P" >&6; }
4265
4266 for ac_prog in gawk mawk nawk awk
4267 do
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_AWK+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$AWK"; then
4276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_AWK="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289 done
4290 done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 AWK=$ac_cv_prog_AWK
4296 if test -n "$AWK"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4298 $as_echo "$AWK" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304
4305 test -n "$AWK" && break
4306 done
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4310 set x ${MAKE-make}
4311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4312 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 cat >conftest.make <<\_ACEOF
4316 SHELL = /bin/sh
4317 all:
4318 @echo '@@@%%%=$(MAKE)=@@@%%%'
4319 _ACEOF
4320 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4322 *@@@%%%=?*=@@@%%%*)
4323 eval ac_cv_prog_make_${ac_make}_set=yes;;
4324 *)
4325 eval ac_cv_prog_make_${ac_make}_set=no;;
4326 esac
4327 rm -f conftest.make
4328 fi
4329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331 $as_echo "yes" >&6; }
4332 SET_MAKE=
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 SET_MAKE="MAKE=${MAKE-make}"
4337 fi
4338
4339 rm -rf .tst 2>/dev/null
4340 mkdir .tst 2>/dev/null
4341 if test -d .tst; then
4342 am__leading_dot=.
4343 else
4344 am__leading_dot=_
4345 fi
4346 rmdir .tst 2>/dev/null
4347
4348 DEPDIR="${am__leading_dot}deps"
4349
4350 ac_config_commands="$ac_config_commands depfiles"
4351
4352
4353 am_make=${MAKE-make}
4354 cat > confinc << 'END'
4355 am__doit:
4356 @echo this is the am__doit target
4357 .PHONY: am__doit
4358 END
4359 # If we don't find an include directive, just comment out the code.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4361 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4362 am__include="#"
4363 am__quote=
4364 _am_result=none
4365 # First try GNU make style include.
4366 echo "include confinc" > confmf
4367 # Ignore all kinds of additional output from 'make'.
4368 case `$am_make -s -f confmf 2> /dev/null` in #(
4369 *the\ am__doit\ target*)
4370 am__include=include
4371 am__quote=
4372 _am_result=GNU
4373 ;;
4374 esac
4375 # Now try BSD make style include.
4376 if test "$am__include" = "#"; then
4377 echo '.include "confinc"' > confmf
4378 case `$am_make -s -f confmf 2> /dev/null` in #(
4379 *the\ am__doit\ target*)
4380 am__include=.include
4381 am__quote="\""
4382 _am_result=BSD
4383 ;;
4384 esac
4385 fi
4386
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4389 $as_echo "$_am_result" >&6; }
4390 rm -f confinc confmf
4391
4392 # Check whether --enable-dependency-tracking was given.
4393 if test "${enable_dependency_tracking+set}" = set; then :
4394 enableval=$enable_dependency_tracking;
4395 fi
4396
4397 if test "x$enable_dependency_tracking" != xno; then
4398 am_depcomp="$ac_aux_dir/depcomp"
4399 AMDEPBACKSLASH='\'
4400 am__nodep='_no'
4401 fi
4402 if test "x$enable_dependency_tracking" != xno; then
4403 AMDEP_TRUE=
4404 AMDEP_FALSE='#'
4405 else
4406 AMDEP_TRUE='#'
4407 AMDEP_FALSE=
4408 fi
4409
4410
4411 # Check whether --enable-silent-rules was given.
4412 if test "${enable_silent_rules+set}" = set; then :
4413 enableval=$enable_silent_rules;
4414 fi
4415
4416 case $enable_silent_rules in # (((
4417 yes) AM_DEFAULT_VERBOSITY=0;;
4418 no) AM_DEFAULT_VERBOSITY=1;;
4419 *) AM_DEFAULT_VERBOSITY=1;;
4420 esac
4421 am_make=${MAKE-make}
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4423 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4424 if ${am_cv_make_support_nested_variables+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if $as_echo 'TRUE=$(BAR$(V))
4428 BAR0=false
4429 BAR1=true
4430 V=1
4431 am__doit:
4432 @$(TRUE)
4433 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4434 am_cv_make_support_nested_variables=yes
4435 else
4436 am_cv_make_support_nested_variables=no
4437 fi
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4440 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4441 if test $am_cv_make_support_nested_variables = yes; then
4442 AM_V='$(V)'
4443 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4444 else
4445 AM_V=$AM_DEFAULT_VERBOSITY
4446 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4447 fi
4448 AM_BACKSLASH='\'
4449
4450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4452 # is not polluted with repeated "-I."
4453 am__isrc=' -I$(srcdir)'
4454 # test to see if srcdir already configured
4455 if test -f $srcdir/config.status; then
4456 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4457 fi
4458 fi
4459
4460 # test whether we have cygpath
4461 if test -z "$CYGPATH_W"; then
4462 if (cygpath --version) >/dev/null 2>/dev/null; then
4463 CYGPATH_W='cygpath -w'
4464 else
4465 CYGPATH_W=echo
4466 fi
4467 fi
4468
4469
4470 # Define the identity of the package.
4471 PACKAGE='libcc1'
4472 VERSION='version-unused'
4473
4474
4475 # Some tools Automake needs.
4476
4477 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4478
4479
4480 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4481
4482
4483 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4484
4485
4486 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4487
4488
4489 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4490
4491 # For better backward compatibility. To be removed once Automake 1.9.x
4492 # dies out for good. For more background, see:
4493 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4494 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4495 mkdir_p='$(MKDIR_P)'
4496
4497 # We need awk for the "check" target (and possibly the TAP driver). The
4498 # system "awk" is bad on some platforms.
4499 # Always define AMTAR for backward compatibility. Yes, it's still used
4500 # in the wild :-( We should find a proper way to deprecate it ...
4501 AMTAR='$${TAR-tar}'
4502
4503
4504 # We'll loop over all known methods to create a tar archive until one works.
4505 _am_tools='gnutar pax cpio none'
4506
4507 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4508
4509
4510
4511
4512
4513 depcc="$CC" am_compiler_list=
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4516 $as_echo_n "checking dependency style of $depcc... " >&6; }
4517 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
4524 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # in D".
4526 rm -rf conftest.dir
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4539
4540 am_cv_CC_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4543 fi
4544 am__universal=false
4545 case " $depcc " in #(
4546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 esac
4548
4549 for depmode in $am_compiler_list; do
4550 # Setup a source with many dependencies, because some compilers
4551 # like to wrap large dependency lists on column 80 (with \), and
4552 # we should not choose a depcomp mode which is confused by this.
4553 #
4554 # We need to recreate these files for each test, as the compiler may
4555 # overwrite some of them when testing with obscure command lines.
4556 # This happens at least with the AIX C compiler.
4557 : > sub/conftest.c
4558 for i in 1 2 3 4 5 6; do
4559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4561 # Solaris 10 /bin/sh.
4562 echo '/* dummy */' > sub/conftst$i.h
4563 done
4564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4565
4566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4567 # mode. It turns out that the SunPro C++ compiler does not properly
4568 # handle '-M -o', and we need to detect this. Also, some Intel
4569 # versions had trouble with output in subdirs.
4570 am__obj=sub/conftest.${OBJEXT-o}
4571 am__minus_obj="-o $am__obj"
4572 case $depmode in
4573 gcc)
4574 # This depmode causes a compiler race in universal mode.
4575 test "$am__universal" = false || continue
4576 ;;
4577 nosideeffect)
4578 # After this tag, mechanisms are not by side-effect, so they'll
4579 # only be used when explicitly requested.
4580 if test "x$enable_dependency_tracking" = xyes; then
4581 continue
4582 else
4583 break
4584 fi
4585 ;;
4586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4587 # This compiler won't grok '-c -o', but also, the minuso test has
4588 # not run yet. These depmodes are late enough in the game, and
4589 # so weak that their functioning should not be impacted.
4590 am__obj=conftest.${OBJEXT-o}
4591 am__minus_obj=
4592 ;;
4593 none) break ;;
4594 esac
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=$am__obj \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4615 fi
4616 fi
4617 done
4618
4619 cd ..
4620 rm -rf conftest.dir
4621 else
4622 am_cv_CC_dependencies_compiler_type=none
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4629
4630 if
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635 else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4638 fi
4639
4640
4641
4642 # POSIX will say in a future version that running "rm -f" with no argument
4643 # is OK; and we want to be able to make that assumption in our Makefile
4644 # recipes. So use an aggressive probe to check that the usage we want is
4645 # actually supported "in the wild" to an acceptable degree.
4646 # See automake bug#10828.
4647 # To make any issue more visible, cause the running configure to be aborted
4648 # by default if the 'rm' program in use doesn't match our expectations; the
4649 # user can still override this though.
4650 if rm -f && rm -fr && rm -rf; then : OK; else
4651 cat >&2 <<'END'
4652 Oops!
4653
4654 Your 'rm' program seems unable to run without file operands specified
4655 on the command line, even when the '-f' option is present. This is contrary
4656 to the behaviour of most rm programs out there, and not conforming with
4657 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4658
4659 Please tell bug-automake@gnu.org about your system, including the value
4660 of your $PATH and any error possibly output before this message. This
4661 can help us improve future automake versions.
4662
4663 END
4664 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4665 echo 'Configuration will proceed anyway, since you have set the' >&2
4666 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4667 echo >&2
4668 else
4669 cat >&2 <<'END'
4670 Aborting the configuration process, to ensure you take notice of the issue.
4671
4672 You can download and install GNU coreutils to get an 'rm' implementation
4673 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4674
4675 If you want to complete the configuration process using your problematic
4676 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4677 to "yes", and re-run configure.
4678
4679 END
4680 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4681 fi
4682 fi
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4687 # Check whether --enable-maintainer-mode was given.
4688 if test "${enable_maintainer_mode+set}" = set; then :
4689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4690 else
4691 USE_MAINTAINER_MODE=no
4692 fi
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4696 if test $USE_MAINTAINER_MODE = yes; then
4697 MAINTAINER_MODE_TRUE=
4698 MAINTAINER_MODE_FALSE='#'
4699 else
4700 MAINTAINER_MODE_TRUE='#'
4701 MAINTAINER_MODE_FALSE=
4702 fi
4703
4704 MAINT=$MAINTAINER_MODE_TRUE
4705
4706
4707
4708 case `pwd` in
4709 *\ * | *\ *)
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4712 esac
4713
4714
4715
4716 macro_version='2.2.7a'
4717 macro_revision='1.3134'
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 ltmain="$ac_aux_dir/ltmain.sh"
4732
4733 # Backslashify metacharacters that are still active within
4734 # double-quoted strings.
4735 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4736
4737 # Same as above, but do not quote variable references.
4738 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4739
4740 # Sed substitution to delay expansion of an escaped shell variable in a
4741 # double_quote_subst'ed string.
4742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4743
4744 # Sed substitution to delay expansion of an escaped single quote.
4745 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4746
4747 # Sed substitution to avoid accidental globbing in evaled expressions
4748 no_glob_subst='s/\*/\\\*/g'
4749
4750 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4755 $as_echo_n "checking how to print strings... " >&6; }
4756 # Test print first, because it will be a builtin if present.
4757 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4759 ECHO='print -r --'
4760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4761 ECHO='printf %s\n'
4762 else
4763 # Use this function as a fallback that always works.
4764 func_fallback_echo ()
4765 {
4766 eval 'cat <<_LTECHO_EOF
4767 $1
4768 _LTECHO_EOF'
4769 }
4770 ECHO='func_fallback_echo'
4771 fi
4772
4773 # func_echo_all arg...
4774 # Invoke $ECHO with all args, space-separated.
4775 func_echo_all ()
4776 {
4777 $ECHO ""
4778 }
4779
4780 case "$ECHO" in
4781 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4782 $as_echo "printf" >&6; } ;;
4783 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4784 $as_echo "print -r" >&6; } ;;
4785 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4786 $as_echo "cat" >&6; } ;;
4787 esac
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4803 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4804 if ${ac_cv_path_SED+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4808 for ac_i in 1 2 3 4 5 6 7; do
4809 ac_script="$ac_script$as_nl$ac_script"
4810 done
4811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4812 { ac_script=; unset ac_script;}
4813 if test -z "$SED"; then
4814 ac_path_SED_found=false
4815 # Loop through the user's path and test for each of PROGNAME-LIST
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_prog in sed gsed; do
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4824 as_fn_executable_p "$ac_path_SED" || continue
4825 # Check for GNU ac_path_SED and select it if it is found.
4826 # Check for GNU $ac_path_SED
4827 case `"$ac_path_SED" --version 2>&1` in
4828 *GNU*)
4829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4830 *)
4831 ac_count=0
4832 $as_echo_n 0123456789 >"conftest.in"
4833 while :
4834 do
4835 cat "conftest.in" "conftest.in" >"conftest.tmp"
4836 mv "conftest.tmp" "conftest.in"
4837 cp "conftest.in" "conftest.nl"
4838 $as_echo '' >> "conftest.nl"
4839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4841 as_fn_arith $ac_count + 1 && ac_count=$as_val
4842 if test $ac_count -gt ${ac_path_SED_max-0}; then
4843 # Best one so far, save it but keep looking for a better one
4844 ac_cv_path_SED="$ac_path_SED"
4845 ac_path_SED_max=$ac_count
4846 fi
4847 # 10*(2^10) chars as input seems more than enough
4848 test $ac_count -gt 10 && break
4849 done
4850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851 esac
4852
4853 $ac_path_SED_found && break 3
4854 done
4855 done
4856 done
4857 IFS=$as_save_IFS
4858 if test -z "$ac_cv_path_SED"; then
4859 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4860 fi
4861 else
4862 ac_cv_path_SED=$SED
4863 fi
4864
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867 $as_echo "$ac_cv_path_SED" >&6; }
4868 SED="$ac_cv_path_SED"
4869 rm -f conftest.sed
4870
4871 test -z "$SED" && SED=sed
4872 Xsed="$SED -e 1s/^X//"
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4885 $as_echo_n "checking for fgrep... " >&6; }
4886 if ${ac_cv_path_FGREP+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4890 then ac_cv_path_FGREP="$GREP -F"
4891 else
4892 if test -z "$FGREP"; then
4893 ac_path_FGREP_found=false
4894 # Loop through the user's path and test for each of PROGNAME-LIST
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_prog in fgrep; do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4903 as_fn_executable_p "$ac_path_FGREP" || continue
4904 # Check for GNU ac_path_FGREP and select it if it is found.
4905 # Check for GNU $ac_path_FGREP
4906 case `"$ac_path_FGREP" --version 2>&1` in
4907 *GNU*)
4908 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4909 *)
4910 ac_count=0
4911 $as_echo_n 0123456789 >"conftest.in"
4912 while :
4913 do
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 $as_echo 'FGREP' >> "conftest.nl"
4918 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_FGREP="$ac_path_FGREP"
4924 ac_path_FGREP_max=$ac_count
4925 fi
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4931
4932 $ac_path_FGREP_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_FGREP"; then
4938 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4939 fi
4940 else
4941 ac_cv_path_FGREP=$FGREP
4942 fi
4943
4944 fi
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4947 $as_echo "$ac_cv_path_FGREP" >&6; }
4948 FGREP="$ac_cv_path_FGREP"
4949
4950
4951 test -z "$GREP" && GREP=grep
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 # Check whether --with-gnu-ld was given.
4972 if test "${with_gnu_ld+set}" = set; then :
4973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4974 else
4975 with_gnu_ld=no
4976 fi
4977
4978 ac_prog=ld
4979 if test "$GCC" = yes; then
4980 # Check if gcc -print-prog-name=ld gives a path.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4982 $as_echo_n "checking for ld used by $CC... " >&6; }
4983 case $host in
4984 *-*-mingw*)
4985 # gcc leaves a trailing carriage return which upsets mingw
4986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4987 *)
4988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4989 esac
4990 case $ac_prog in
4991 # Accept absolute paths.
4992 [\\/]* | ?:[\\/]*)
4993 re_direlt='/[^/][^/]*/\.\./'
4994 # Canonicalize the pathname of ld
4995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4998 done
4999 test -z "$LD" && LD="$ac_prog"
5000 ;;
5001 "")
5002 # If it fails, then pretend we aren't using GCC.
5003 ac_prog=ld
5004 ;;
5005 *)
5006 # If it is relative, then search for the first ld in PATH.
5007 with_gnu_ld=unknown
5008 ;;
5009 esac
5010 elif test "$with_gnu_ld" = yes; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5012 $as_echo_n "checking for GNU ld... " >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5015 $as_echo_n "checking for non-GNU ld... " >&6; }
5016 fi
5017 if ${lt_cv_path_LD+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -z "$LD"; then
5021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5022 for ac_dir in $PATH; do
5023 IFS="$lt_save_ifs"
5024 test -z "$ac_dir" && ac_dir=.
5025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5026 lt_cv_path_LD="$ac_dir/$ac_prog"
5027 # Check to see if the program is GNU ld. I'd rather use --version,
5028 # but apparently some variants of GNU ld only accept -v.
5029 # Break only if it was the GNU/non-GNU ld that we prefer.
5030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5031 *GNU* | *'with BFD'*)
5032 test "$with_gnu_ld" != no && break
5033 ;;
5034 *)
5035 test "$with_gnu_ld" != yes && break
5036 ;;
5037 esac
5038 fi
5039 done
5040 IFS="$lt_save_ifs"
5041 else
5042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5043 fi
5044 fi
5045
5046 LD="$lt_cv_path_LD"
5047 if test -n "$LD"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5049 $as_echo "$LD" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5057 if ${lt_cv_prog_gnu_ld+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5061 case `$LD -v 2>&1 </dev/null` in
5062 *GNU* | *'with BFD'*)
5063 lt_cv_prog_gnu_ld=yes
5064 ;;
5065 *)
5066 lt_cv_prog_gnu_ld=no
5067 ;;
5068 esac
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5072 with_gnu_ld=$lt_cv_prog_gnu_ld
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5083 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5084 if ${lt_cv_path_NM+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$NM"; then
5088 # Let the user override the test.
5089 lt_cv_path_NM="$NM"
5090 else
5091 lt_nm_to_check="${ac_tool_prefix}nm"
5092 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5093 lt_nm_to_check="$lt_nm_to_check nm"
5094 fi
5095 for lt_tmp_nm in $lt_nm_to_check; do
5096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5097 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5098 IFS="$lt_save_ifs"
5099 test -z "$ac_dir" && ac_dir=.
5100 tmp_nm="$ac_dir/$lt_tmp_nm"
5101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5102 # Check to see if the nm accepts a BSD-compat flag.
5103 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5104 # nm: unknown option "B" ignored
5105 # Tru64's nm complains that /dev/null is an invalid object file
5106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5107 */dev/null* | *'Invalid file or object type'*)
5108 lt_cv_path_NM="$tmp_nm -B"
5109 break
5110 ;;
5111 *)
5112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5113 */dev/null*)
5114 lt_cv_path_NM="$tmp_nm -p"
5115 break
5116 ;;
5117 *)
5118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5119 continue # so that we can try to find one that supports BSD flags
5120 ;;
5121 esac
5122 ;;
5123 esac
5124 fi
5125 done
5126 IFS="$lt_save_ifs"
5127 done
5128 : ${lt_cv_path_NM=no}
5129 fi
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5132 $as_echo "$lt_cv_path_NM" >&6; }
5133 if test "$lt_cv_path_NM" != "no"; then
5134 NM="$lt_cv_path_NM"
5135 else
5136 # Didn't find any BSD compatible name lister, look for dumpbin.
5137 if test -n "$DUMPBIN"; then :
5138 # Let the user override the test.
5139 else
5140 if test -n "$ac_tool_prefix"; then
5141 for ac_prog in dumpbin "link -dump"
5142 do
5143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_DUMPBIN+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$DUMPBIN"; then
5151 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 fi
5169 fi
5170 DUMPBIN=$ac_cv_prog_DUMPBIN
5171 if test -n "$DUMPBIN"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5173 $as_echo "$DUMPBIN" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 test -n "$DUMPBIN" && break
5181 done
5182 fi
5183 if test -z "$DUMPBIN"; then
5184 ac_ct_DUMPBIN=$DUMPBIN
5185 for ac_prog in dumpbin "link -dump"
5186 do
5187 # Extract the first word of "$ac_prog", so it can be a program name with args.
5188 set dummy $ac_prog; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_DUMPBIN"; then
5195 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5215 if test -n "$ac_ct_DUMPBIN"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5217 $as_echo "$ac_ct_DUMPBIN" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 test -n "$ac_ct_DUMPBIN" && break
5225 done
5226
5227 if test "x$ac_ct_DUMPBIN" = x; then
5228 DUMPBIN=":"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 DUMPBIN=$ac_ct_DUMPBIN
5237 fi
5238 fi
5239
5240 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5241 *COFF*)
5242 DUMPBIN="$DUMPBIN -symbols"
5243 ;;
5244 *)
5245 DUMPBIN=:
5246 ;;
5247 esac
5248 fi
5249
5250 if test "$DUMPBIN" != ":"; then
5251 NM="$DUMPBIN"
5252 fi
5253 fi
5254 test -z "$NM" && NM=nm
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5262 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5263 if ${lt_cv_nm_interface+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 lt_cv_nm_interface="BSD nm"
5267 echo "int some_variable = 0;" > conftest.$ac_ext
5268 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5269 (eval "$ac_compile" 2>conftest.err)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5272 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5273 cat conftest.err >&5
5274 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5275 cat conftest.out >&5
5276 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5277 lt_cv_nm_interface="MS dumpbin"
5278 fi
5279 rm -f conftest*
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5282 $as_echo "$lt_cv_nm_interface" >&6; }
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5285 $as_echo_n "checking whether ln -s works... " >&6; }
5286 LN_S=$as_ln_s
5287 if test "$LN_S" = "ln -s"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5289 $as_echo "yes" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5292 $as_echo "no, using $LN_S" >&6; }
5293 fi
5294
5295 # find the maximum length of command line arguments
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5297 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5298 if ${lt_cv_sys_max_cmd_len+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 i=0
5302 teststring="ABCD"
5303
5304 case $build_os in
5305 msdosdjgpp*)
5306 # On DJGPP, this test can blow up pretty badly due to problems in libc
5307 # (any single argument exceeding 2000 bytes causes a buffer overrun
5308 # during glob expansion). Even if it were fixed, the result of this
5309 # check would be larger than it should be.
5310 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5311 ;;
5312
5313 gnu*)
5314 # Under GNU Hurd, this test is not required because there is
5315 # no limit to the length of command line arguments.
5316 # Libtool will interpret -1 as no limit whatsoever
5317 lt_cv_sys_max_cmd_len=-1;
5318 ;;
5319
5320 cygwin* | mingw* | cegcc*)
5321 # On Win9x/ME, this test blows up -- it succeeds, but takes
5322 # about 5 minutes as the teststring grows exponentially.
5323 # Worse, since 9x/ME are not pre-emptively multitasking,
5324 # you end up with a "frozen" computer, even though with patience
5325 # the test eventually succeeds (with a max line length of 256k).
5326 # Instead, let's just punt: use the minimum linelength reported by
5327 # all of the supported platforms: 8192 (on NT/2K/XP).
5328 lt_cv_sys_max_cmd_len=8192;
5329 ;;
5330
5331 mint*)
5332 # On MiNT this can take a long time and run out of memory.
5333 lt_cv_sys_max_cmd_len=8192;
5334 ;;
5335
5336 amigaos*)
5337 # On AmigaOS with pdksh, this test takes hours, literally.
5338 # So we just punt and use a minimum line length of 8192.
5339 lt_cv_sys_max_cmd_len=8192;
5340 ;;
5341
5342 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5343 # This has been around since 386BSD, at least. Likely further.
5344 if test -x /sbin/sysctl; then
5345 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5346 elif test -x /usr/sbin/sysctl; then
5347 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5348 else
5349 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5350 fi
5351 # And add a safety zone
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 ;;
5355
5356 interix*)
5357 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5358 lt_cv_sys_max_cmd_len=196608
5359 ;;
5360
5361 osf*)
5362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5364 # nice to cause kernel panics so lets avoid the loop below.
5365 # First set a reasonable default.
5366 lt_cv_sys_max_cmd_len=16384
5367 #
5368 if test -x /sbin/sysconfig; then
5369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5370 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5371 esac
5372 fi
5373 ;;
5374 sco3.2v5*)
5375 lt_cv_sys_max_cmd_len=102400
5376 ;;
5377 sysv5* | sco5v6* | sysv4.2uw2*)
5378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5379 if test -n "$kargmax"; then
5380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5381 else
5382 lt_cv_sys_max_cmd_len=32768
5383 fi
5384 ;;
5385 *)
5386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5387 if test -n "$lt_cv_sys_max_cmd_len"; then
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5390 else
5391 # Make teststring a little bigger before we do anything with it.
5392 # a 1K string should be a reasonable start.
5393 for i in 1 2 3 4 5 6 7 8 ; do
5394 teststring=$teststring$teststring
5395 done
5396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5397 # If test is not a shell built-in, we'll probably end up computing a
5398 # maximum length that is only half of the actual maximum length, but
5399 # we can't tell.
5400 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5401 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5402 test $i != 17 # 1/2 MB should be enough
5403 do
5404 i=`expr $i + 1`
5405 teststring=$teststring$teststring
5406 done
5407 # Only check the string length outside the loop.
5408 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5409 teststring=
5410 # Add a significant safety factor because C++ compilers can tack on
5411 # massive amounts of additional arguments before passing them to the
5412 # linker. It appears as though 1/2 is a usable value.
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5414 fi
5415 ;;
5416 esac
5417
5418 fi
5419
5420 if test -n $lt_cv_sys_max_cmd_len ; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5422 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5425 $as_echo "none" >&6; }
5426 fi
5427 max_cmd_len=$lt_cv_sys_max_cmd_len
5428
5429
5430
5431
5432
5433
5434 : ${CP="cp -f"}
5435 : ${MV="mv -f"}
5436 : ${RM="rm -f"}
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5439 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5440 # Try some XSI features
5441 xsi_shell=no
5442 ( _lt_dummy="a/b/c"
5443 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5444 = c,a/b,, \
5445 && eval 'test $(( 1 + 1 )) -eq 2 \
5446 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5447 && xsi_shell=yes
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5449 $as_echo "$xsi_shell" >&6; }
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5453 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5454 lt_shell_append=no
5455 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5456 >/dev/null 2>&1 \
5457 && lt_shell_append=yes
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5459 $as_echo "$lt_shell_append" >&6; }
5460
5461
5462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5463 lt_unset=unset
5464 else
5465 lt_unset=false
5466 fi
5467
5468
5469
5470
5471
5472 # test EBCDIC or ASCII
5473 case `echo X|tr X '\101'` in
5474 A) # ASCII based system
5475 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5476 lt_SP2NL='tr \040 \012'
5477 lt_NL2SP='tr \015\012 \040\040'
5478 ;;
5479 *) # EBCDIC based system
5480 lt_SP2NL='tr \100 \n'
5481 lt_NL2SP='tr \r\n \100\100'
5482 ;;
5483 esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5494 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5495 if ${lt_cv_ld_reload_flag+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 lt_cv_ld_reload_flag='-r'
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5501 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5502 reload_flag=$lt_cv_ld_reload_flag
5503 case $reload_flag in
5504 "" | " "*) ;;
5505 *) reload_flag=" $reload_flag" ;;
5506 esac
5507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5508 case $host_os in
5509 darwin*)
5510 if test "$GCC" = yes; then
5511 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5512 else
5513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514 fi
5515 ;;
5516 esac
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$OBJDUMP"; then
5535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566 ac_ct_OBJDUMP=$OBJDUMP
5567 # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603 if test "x$ac_ct_OBJDUMP" = x; then
5604 OBJDUMP="false"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 OBJDUMP=$ac_ct_OBJDUMP
5613 fi
5614 else
5615 OBJDUMP="$ac_cv_prog_OBJDUMP"
5616 fi
5617
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # `unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # which responds to the $file_magic_cmd with a given extended regex.
5644 # If you have `file' or equivalent on your system and you're not sure
5645 # whether `pass_all' will *always* work, you probably want this one.
5646
5647 case $host_os in
5648 aix[4-9]*)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651
5652 beos*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 bsdi[45]*)
5657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658 lt_cv_file_magic_cmd='/usr/bin/file -L'
5659 lt_cv_file_magic_test_file=/shlib/libc.so
5660 ;;
5661
5662 cygwin*)
5663 # func_win32_libid is a shell function defined in ltmain.sh
5664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665 lt_cv_file_magic_cmd='func_win32_libid'
5666 ;;
5667
5668 mingw* | pw32*)
5669 # Base MSYS/MinGW do not provide the 'file' command needed by
5670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671 # unless we find 'file', for example because we are cross-compiling.
5672 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5673 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5676 else
5677 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5678 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 fi
5680 ;;
5681
5682 cegcc*)
5683 # use the weaker test based on 'objdump'. See mingw*.
5684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5685 lt_cv_file_magic_cmd='$OBJDUMP -f'
5686 ;;
5687
5688 darwin* | rhapsody*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 freebsd* | dragonfly*)
5693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5694 case $host_cpu in
5695 i*86 )
5696 # Not sure whether the presence of OpenBSD here was a mistake.
5697 # Let's accept both of them until this is cleared up.
5698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5701 ;;
5702 esac
5703 else
5704 lt_cv_deplibs_check_method=pass_all
5705 fi
5706 ;;
5707
5708 gnu*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712 haiku*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 hpux10.20* | hpux11*)
5717 lt_cv_file_magic_cmd=/usr/bin/file
5718 case $host_cpu in
5719 ia64*)
5720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5722 ;;
5723 hppa*64*)
5724 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]'
5725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5726 ;;
5727 *)
5728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5730 ;;
5731 esac
5732 ;;
5733
5734 interix[3-9]*)
5735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5737 ;;
5738
5739 irix5* | irix6* | nonstopux*)
5740 case $LD in
5741 *-32|*"-32 ") libmagic=32-bit;;
5742 *-n32|*"-n32 ") libmagic=N32;;
5743 *-64|*"-64 ") libmagic=64-bit;;
5744 *) libmagic=never-match;;
5745 esac
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749 # This must be Linux ELF.
5750 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 netbsd*)
5755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5757 else
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 fi
5760 ;;
5761
5762 newos6*)
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5766 ;;
5767
5768 *nto* | *qnx*)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771
5772 openbsd*)
5773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5775 else
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 fi
5778 ;;
5779
5780 osf3* | osf4* | osf5*)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783
5784 rdos*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 solaris*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 sysv4 | sysv4.3*)
5797 case $host_vendor in
5798 motorola)
5799 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]'
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5801 ;;
5802 ncr)
5803 lt_cv_deplibs_check_method=pass_all
5804 ;;
5805 sequent)
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5808 ;;
5809 sni)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812 lt_cv_file_magic_test_file=/lib/libc.so
5813 ;;
5814 siemens)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 pc)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820 esac
5821 ;;
5822
5823 tpf*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826 esac
5827
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5831 file_magic_cmd=$lt_cv_file_magic_cmd
5832 deplibs_check_method=$lt_cv_deplibs_check_method
5833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}ar; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_AR+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$AR"; then
5855 ac_cv_prog_AR="$AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_AR="${ac_tool_prefix}ar"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 AR=$ac_cv_prog_AR
5875 if test -n "$AR"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5877 $as_echo "$AR" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884 fi
5885 if test -z "$ac_cv_prog_AR"; then
5886 ac_ct_AR=$AR
5887 # Extract the first word of "ar", so it can be a program name with args.
5888 set dummy ar; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_AR"; then
5895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_AR="ar"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917 $as_echo "$ac_ct_AR" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923 if test "x$ac_ct_AR" = x; then
5924 AR="false"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 AR=$ac_ct_AR
5933 fi
5934 else
5935 AR="$ac_cv_prog_AR"
5936 fi
5937
5938 test -z "$AR" && AR=ar
5939 test -z "$AR_FLAGS" && AR_FLAGS=cru
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}strip; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_STRIP+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$STRIP"; then
5960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 STRIP=$ac_cv_prog_STRIP
5980 if test -n "$STRIP"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5982 $as_echo "$STRIP" >&6; }
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988
5989 fi
5990 if test -z "$ac_cv_prog_STRIP"; then
5991 ac_ct_STRIP=$STRIP
5992 # Extract the first word of "strip", so it can be a program name with args.
5993 set dummy strip; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$ac_ct_STRIP"; then
6000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_ac_ct_STRIP="strip"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6020 if test -n "$ac_ct_STRIP"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6022 $as_echo "$ac_ct_STRIP" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028 if test "x$ac_ct_STRIP" = x; then
6029 STRIP=":"
6030 else
6031 case $cross_compiling:$ac_tool_warned in
6032 yes:)
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6035 ac_tool_warned=yes ;;
6036 esac
6037 STRIP=$ac_ct_STRIP
6038 fi
6039 else
6040 STRIP="$ac_cv_prog_STRIP"
6041 fi
6042
6043 test -z "$STRIP" && STRIP=:
6044
6045
6046
6047
6048
6049
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_RANLIB+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$RANLIB"; then
6059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 RANLIB=$ac_cv_prog_RANLIB
6079 if test -n "$RANLIB"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6081 $as_echo "$RANLIB" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_RANLIB"; then
6090 ac_ct_RANLIB=$RANLIB
6091 # Extract the first word of "ranlib", so it can be a program name with args.
6092 set dummy ranlib; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$ac_ct_RANLIB"; then
6099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_ac_ct_RANLIB="ranlib"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119 if test -n "$ac_ct_RANLIB"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6121 $as_echo "$ac_ct_RANLIB" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127 if test "x$ac_ct_RANLIB" = x; then
6128 RANLIB=":"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136 RANLIB=$ac_ct_RANLIB
6137 fi
6138 else
6139 RANLIB="$ac_cv_prog_RANLIB"
6140 fi
6141
6142 test -z "$RANLIB" && RANLIB=:
6143
6144
6145
6146
6147
6148
6149 # Determine commands to create old-style static archives.
6150 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6151 old_postinstall_cmds='chmod 644 $oldlib'
6152 old_postuninstall_cmds=
6153
6154 if test -n "$RANLIB"; then
6155 case $host_os in
6156 openbsd*)
6157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6158 ;;
6159 *)
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6161 ;;
6162 esac
6163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6164 fi
6165
6166 case $host_os in
6167 darwin*)
6168 lock_old_archive_extraction=yes ;;
6169 *)
6170 lock_old_archive_extraction=no ;;
6171 esac
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 # If no C compiler was specified, use CC.
6212 LTCC=${LTCC-"$CC"}
6213
6214 # If no C compiler flags were specified, use CFLAGS.
6215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6216
6217 # Allow CC to be a program name with arguments.
6218 compiler=$CC
6219
6220
6221 # Check for command to grab the raw symbol name followed by C symbol from nm.
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6223 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6224 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227
6228 # These are sane defaults that work on at least a few old systems.
6229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6230
6231 # Character class describing NM global symbol codes.
6232 symcode='[BCDEGRST]'
6233
6234 # Regexp to match symbols that can be accessed directly from C.
6235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6236
6237 # Define system-specific variables.
6238 case $host_os in
6239 aix*)
6240 symcode='[BCDT]'
6241 ;;
6242 cygwin* | mingw* | pw32* | cegcc*)
6243 symcode='[ABCDGISTW]'
6244 ;;
6245 hpux*)
6246 if test "$host_cpu" = ia64; then
6247 symcode='[ABCDEGRST]'
6248 fi
6249 ;;
6250 irix* | nonstopux*)
6251 symcode='[BCDEGRST]'
6252 ;;
6253 osf*)
6254 symcode='[BCDEGQRST]'
6255 ;;
6256 solaris*)
6257 symcode='[BDRT]'
6258 ;;
6259 sco3.2v5*)
6260 symcode='[DT]'
6261 ;;
6262 sysv4.2uw2*)
6263 symcode='[DT]'
6264 ;;
6265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266 symcode='[ABDT]'
6267 ;;
6268 sysv4)
6269 symcode='[DFNSTU]'
6270 ;;
6271 esac
6272
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276 symcode='[ABCDGIRSTW]' ;;
6277 esac
6278
6279 # Transform an extracted symbol line into a proper C declaration.
6280 # Some systems (esp. on ia64) link data and code symbols differently,
6281 # so use this general approach.
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6286 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'"
6287
6288 # Handle CRLF in mingw tool chain
6289 opt_cr=
6290 case $build_os in
6291 mingw*)
6292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293 ;;
6294 esac
6295
6296 # Try without a prefix underscore, then with it.
6297 for ac_symprfx in "" "_"; do
6298
6299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6300 symxfrm="\\1 $ac_symprfx\\2 \\2"
6301
6302 # Write the raw and C identifiers.
6303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304 # Fake it for dumpbin and say T for any non-static function
6305 # and D for any global variable.
6306 # Also find C++ and __fastcall symbols from MSVC++,
6307 # which start with @ or ?.
6308 lt_cv_sys_global_symbol_pipe="$AWK '"\
6309 " {last_section=section; section=\$ 3};"\
6310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6311 " \$ 0!~/External *\|/{next};"\
6312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6313 " {if(hide[section]) next};"\
6314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6318 " ' prfx=^$ac_symprfx"
6319 else
6320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6321 fi
6322
6323 # Check to see that the pipe works correctly.
6324 pipe_works=no
6325
6326 rm -f conftest*
6327 cat > conftest.$ac_ext <<_LT_EOF
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331 char nm_test_var;
6332 void nm_test_func(void);
6333 void nm_test_func(void){}
6334 #ifdef __cplusplus
6335 }
6336 #endif
6337 int main(){nm_test_var='a';nm_test_func();return(0);}
6338 _LT_EOF
6339
6340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6341 (eval $ac_compile) 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }; then
6345 # Now try to grab the symbols.
6346 nlist=conftest.nm
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6348 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; } && test -s "$nlist"; then
6352 # Try sorting and uniquifying the output.
6353 if sort "$nlist" | uniq > "$nlist"T; then
6354 mv -f "$nlist"T "$nlist"
6355 else
6356 rm -f "$nlist"T
6357 fi
6358
6359 # Make sure that we snagged all the symbols we need.
6360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362 cat <<_LT_EOF > conftest.$ac_ext
6363 #ifdef __cplusplus
6364 extern "C" {
6365 #endif
6366
6367 _LT_EOF
6368 # Now generate the symbol file.
6369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6370
6371 cat <<_LT_EOF >> conftest.$ac_ext
6372
6373 /* The mapping between symbol names and symbols. */
6374 const struct {
6375 const char *name;
6376 void *address;
6377 }
6378 lt__PROGRAM__LTX_preloaded_symbols[] =
6379 {
6380 { "@PROGRAM@", (void *) 0 },
6381 _LT_EOF
6382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6383 cat <<\_LT_EOF >> conftest.$ac_ext
6384 {0, (void *) 0}
6385 };
6386
6387 /* This works around a problem in FreeBSD linker */
6388 #ifdef FREEBSD_WORKAROUND
6389 static const void *lt_preloaded_setup() {
6390 return lt__PROGRAM__LTX_preloaded_symbols;
6391 }
6392 #endif
6393
6394 #ifdef __cplusplus
6395 }
6396 #endif
6397 _LT_EOF
6398 # Now try linking the two files.
6399 mv conftest.$ac_objext conftstm.$ac_objext
6400 lt_save_LIBS="$LIBS"
6401 lt_save_CFLAGS="$CFLAGS"
6402 LIBS="conftstm.$ac_objext"
6403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6405 (eval $ac_link) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6409 pipe_works=yes
6410 fi
6411 LIBS="$lt_save_LIBS"
6412 CFLAGS="$lt_save_CFLAGS"
6413 else
6414 echo "cannot find nm_test_func in $nlist" >&5
6415 fi
6416 else
6417 echo "cannot find nm_test_var in $nlist" >&5
6418 fi
6419 else
6420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6421 fi
6422 else
6423 echo "$progname: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 fi
6426 rm -rf conftest* conftst*
6427
6428 # Do not use the global_symbol_pipe unless it works.
6429 if test "$pipe_works" = yes; then
6430 break
6431 else
6432 lt_cv_sys_global_symbol_pipe=
6433 fi
6434 done
6435
6436 fi
6437
6438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439 lt_cv_sys_global_symbol_to_cdecl=
6440 fi
6441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6443 $as_echo "failed" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6446 $as_echo "ok" >&6; }
6447 fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 # Check whether --enable-libtool-lock was given.
6471 if test "${enable_libtool_lock+set}" = set; then :
6472 enableval=$enable_libtool_lock;
6473 fi
6474
6475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6476
6477 # Some flags need to be propagated to the compiler or linker for good
6478 # libtool support.
6479 case $host in
6480 ia64-*-hpux*)
6481 # Find out which ABI we are using.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *ELF-32*)
6490 HPUX_IA64_MODE="32"
6491 ;;
6492 *ELF-64*)
6493 HPUX_IA64_MODE="64"
6494 ;;
6495 esac
6496 fi
6497 rm -rf conftest*
6498 ;;
6499 *-*-irix6*)
6500 # Find out which ABI we are using.
6501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 if test "$lt_cv_prog_gnu_ld" = yes; then
6508 case `/usr/bin/file conftest.$ac_objext` in
6509 *32-bit*)
6510 LD="${LD-ld} -melf32bsmip"
6511 ;;
6512 *N32*)
6513 LD="${LD-ld} -melf32bmipn32"
6514 ;;
6515 *64-bit*)
6516 LD="${LD-ld} -melf64bmip"
6517 ;;
6518 esac
6519 else
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *32-bit*)
6522 LD="${LD-ld} -32"
6523 ;;
6524 *N32*)
6525 LD="${LD-ld} -n32"
6526 ;;
6527 *64-bit*)
6528 LD="${LD-ld} -64"
6529 ;;
6530 esac
6531 fi
6532 fi
6533 rm -rf conftest*
6534 ;;
6535
6536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6538 # Find out which ABI we are using.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 case `/usr/bin/file conftest.o` in
6546 *32-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6550 ;;
6551 x86_64-*linux*)
6552 case `/usr/bin/file conftest.o` in
6553 *x86-64*)
6554 LD="${LD-ld} -m elf32_x86_64"
6555 ;;
6556 *)
6557 LD="${LD-ld} -m elf_i386"
6558 ;;
6559 esac
6560 ;;
6561 powerpc64le-*linux*)
6562 LD="${LD-ld} -m elf32lppclinux"
6563 ;;
6564 powerpc64-*linux*)
6565 LD="${LD-ld} -m elf32ppclinux"
6566 ;;
6567 s390x-*linux*)
6568 LD="${LD-ld} -m elf_s390"
6569 ;;
6570 sparc64-*linux*)
6571 LD="${LD-ld} -m elf32_sparc"
6572 ;;
6573 esac
6574 ;;
6575 *64-bit*)
6576 case $host in
6577 x86_64-*kfreebsd*-gnu)
6578 LD="${LD-ld} -m elf_x86_64_fbsd"
6579 ;;
6580 x86_64-*linux*)
6581 LD="${LD-ld} -m elf_x86_64"
6582 ;;
6583 powerpcle-*linux*)
6584 LD="${LD-ld} -m elf64lppc"
6585 ;;
6586 powerpc-*linux*)
6587 LD="${LD-ld} -m elf64ppc"
6588 ;;
6589 s390*-*linux*|s390*-*tpf*)
6590 LD="${LD-ld} -m elf64_s390"
6591 ;;
6592 sparc*-*linux*)
6593 LD="${LD-ld} -m elf64_sparc"
6594 ;;
6595 esac
6596 ;;
6597 esac
6598 fi
6599 rm -rf conftest*
6600 ;;
6601
6602 *-*-sco3.2v5*)
6603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604 SAVE_CFLAGS="$CFLAGS"
6605 CFLAGS="$CFLAGS -belf"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608 if ${lt_cv_cc_needs_belf+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619
6620 int
6621 main ()
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 lt_cv_cc_needs_belf=yes
6630 else
6631 lt_cv_cc_needs_belf=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641 fi
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6647 fi
6648 ;;
6649 sparc*-*solaris*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661 *)
6662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6663 LD="${LD-ld} -64"
6664 fi
6665 ;;
6666 esac
6667 ;;
6668 esac
6669 fi
6670 rm -rf conftest*
6671 ;;
6672 esac
6673
6674 need_locks="$enable_libtool_lock"
6675
6676
6677 case $host_os in
6678 rhapsody* | darwin*)
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$DSYMUTIL"; then
6688 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6708 if test -n "$DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6710 $as_echo "$DSYMUTIL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_DSYMUTIL"; then
6719 ac_ct_DSYMUTIL=$DSYMUTIL
6720 # Extract the first word of "dsymutil", so it can be a program name with args.
6721 set dummy dsymutil; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$ac_ct_DSYMUTIL"; then
6728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6748 if test -n "$ac_ct_DSYMUTIL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6750 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756 if test "x$ac_ct_DSYMUTIL" = x; then
6757 DSYMUTIL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 DSYMUTIL=$ac_ct_DSYMUTIL
6766 fi
6767 else
6768 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6769 fi
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_NMEDIT+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$NMEDIT"; then
6780 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 NMEDIT=$ac_cv_prog_NMEDIT
6800 if test -n "$NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6802 $as_echo "$NMEDIT" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_NMEDIT"; then
6811 ac_ct_NMEDIT=$NMEDIT
6812 # Extract the first word of "nmedit", so it can be a program name with args.
6813 set dummy nmedit; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_NMEDIT"; then
6820 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6840 if test -n "$ac_ct_NMEDIT"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6842 $as_echo "$ac_ct_NMEDIT" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_NMEDIT" = x; then
6849 NMEDIT=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 NMEDIT=$ac_ct_NMEDIT
6858 fi
6859 else
6860 NMEDIT="$ac_cv_prog_NMEDIT"
6861 fi
6862
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_LIPO+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$LIPO"; then
6872 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 LIPO=$ac_cv_prog_LIPO
6892 if test -n "$LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6894 $as_echo "$LIPO" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_LIPO"; then
6903 ac_ct_LIPO=$LIPO
6904 # Extract the first word of "lipo", so it can be a program name with args.
6905 set dummy lipo; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_LIPO"; then
6912 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_LIPO="lipo"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6932 if test -n "$ac_ct_LIPO"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6934 $as_echo "$ac_ct_LIPO" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940 if test "x$ac_ct_LIPO" = x; then
6941 LIPO=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 LIPO=$ac_ct_LIPO
6950 fi
6951 else
6952 LIPO="$ac_cv_prog_LIPO"
6953 fi
6954
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}otool; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_OTOOL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$OTOOL"; then
6964 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 OTOOL=$ac_cv_prog_OTOOL
6984 if test -n "$OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6986 $as_echo "$OTOOL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_OTOOL"; then
6995 ac_ct_OTOOL=$OTOOL
6996 # Extract the first word of "otool", so it can be a program name with args.
6997 set dummy otool; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_OTOOL"; then
7004 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_OTOOL="otool"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7024 if test -n "$ac_ct_OTOOL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7026 $as_echo "$ac_ct_OTOOL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032 if test "x$ac_ct_OTOOL" = x; then
7033 OTOOL=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 OTOOL=$ac_ct_OTOOL
7042 fi
7043 else
7044 OTOOL="$ac_cv_prog_OTOOL"
7045 fi
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_OTOOL64+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$OTOOL64"; then
7056 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 OTOOL64=$ac_cv_prog_OTOOL64
7076 if test -n "$OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7078 $as_echo "$OTOOL64" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_OTOOL64"; then
7087 ac_ct_OTOOL64=$OTOOL64
7088 # Extract the first word of "otool64", so it can be a program name with args.
7089 set dummy otool64; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_OTOOL64"; then
7096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL64="otool64"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7116 if test -n "$ac_ct_OTOOL64"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7118 $as_echo "$ac_ct_OTOOL64" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_OTOOL64" = x; then
7125 OTOOL64=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 OTOOL64=$ac_ct_OTOOL64
7134 fi
7135 else
7136 OTOOL64="$ac_cv_prog_OTOOL64"
7137 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7166 $as_echo_n "checking for -single_module linker flag... " >&6; }
7167 if ${lt_cv_apple_cc_single_mod+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 lt_cv_apple_cc_single_mod=no
7171 if test -z "${LT_MULTI_MODULE}"; then
7172 # By default we will add the -single_module flag. You can override
7173 # by either setting the environment variable LT_MULTI_MODULE
7174 # non-empty at configure time, or by adding -multi_module to the
7175 # link flags.
7176 rm -rf libconftest.dylib*
7177 echo "int foo(void){return 1;}" > conftest.c
7178 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib -Wl,-single_module conftest.c" >&5
7180 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7181 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7182 _lt_result=$?
7183 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7184 lt_cv_apple_cc_single_mod=yes
7185 else
7186 cat conftest.err >&5
7187 fi
7188 rm -rf libconftest.dylib*
7189 rm -f conftest.*
7190 fi
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7193 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7195 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7196 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_ld_exported_symbols_list=no
7200 save_LDFLAGS=$LDFLAGS
7201 echo "_main" > conftest.sym
7202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205
7206 int
7207 main ()
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"; then :
7215 lt_cv_ld_exported_symbols_list=yes
7216 else
7217 lt_cv_ld_exported_symbols_list=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 LDFLAGS="$save_LDFLAGS"
7222
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7225 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7227 $as_echo_n "checking for -force_load linker flag... " >&6; }
7228 if ${lt_cv_ld_force_load+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 lt_cv_ld_force_load=no
7232 cat > conftest.c << _LT_EOF
7233 int forced_loaded() { return 2;}
7234 _LT_EOF
7235 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7236 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7237 echo "$AR cru libconftest.a conftest.o" >&5
7238 $AR cru libconftest.a conftest.o 2>&5
7239 cat > conftest.c << _LT_EOF
7240 int main() { return 0;}
7241 _LT_EOF
7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7243 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7244 _lt_result=$?
7245 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7246 lt_cv_ld_force_load=yes
7247 else
7248 cat conftest.err >&5
7249 fi
7250 rm -f conftest.err libconftest.a conftest conftest.c
7251 rm -rf conftest.dSYM
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7255 $as_echo "$lt_cv_ld_force_load" >&6; }
7256 case $host_os in
7257 rhapsody* | darwin1.[012])
7258 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7259 darwin1.*)
7260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7261 darwin*) # darwin 5.x on
7262 # if running on 10.5 or later, the deployment target defaults
7263 # to the OS version, if on x86, and 10.4, the deployment
7264 # target defaults to 10.4. Don't you love it?
7265 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7266 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7268 10.[012][,.]*)
7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7270 10.*)
7271 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7272 esac
7273 ;;
7274 esac
7275 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7276 _lt_dar_single_mod='$single_module'
7277 fi
7278 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7279 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7280 else
7281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7282 fi
7283 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7284 _lt_dsymutil='~$DSYMUTIL $lib || :'
7285 else
7286 _lt_dsymutil=
7287 fi
7288 ;;
7289 esac
7290
7291 for ac_header in dlfcn.h
7292 do :
7293 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7294 "
7295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DLFCN_H 1
7298 _ACEOF
7299
7300 fi
7301
7302 done
7303
7304
7305
7306
7307
7308 # Set options
7309 # Check whether --enable-static was given.
7310 if test "${enable_static+set}" = set; then :
7311 enableval=$enable_static; p=${PACKAGE-default}
7312 case $enableval in
7313 yes) enable_static=yes ;;
7314 no) enable_static=no ;;
7315 *)
7316 enable_static=no
7317 # Look at the argument we got. We use all the common list separators.
7318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319 for pkg in $enableval; do
7320 IFS="$lt_save_ifs"
7321 if test "X$pkg" = "X$p"; then
7322 enable_static=yes
7323 fi
7324 done
7325 IFS="$lt_save_ifs"
7326 ;;
7327 esac
7328 else
7329 enable_static=no
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 enable_dlopen=no
7342
7343
7344 enable_win32_dll=no
7345
7346
7347 # Check whether --enable-shared was given.
7348 if test "${enable_shared+set}" = set; then :
7349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7353 *)
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
7361 fi
7362 done
7363 IFS="$lt_save_ifs"
7364 ;;
7365 esac
7366 else
7367 enable_shared=yes
7368 fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 # Check whether --with-pic was given.
7381 if test "${with_pic+set}" = set; then :
7382 withval=$with_pic; pic_mode="$withval"
7383 else
7384 pic_mode=default
7385 fi
7386
7387
7388 test -z "$pic_mode" && pic_mode=default
7389
7390
7391
7392
7393
7394
7395
7396 # Check whether --enable-fast-install was given.
7397 if test "${enable_fast_install+set}" = set; then :
7398 enableval=$enable_fast_install; p=${PACKAGE-default}
7399 case $enableval in
7400 yes) enable_fast_install=yes ;;
7401 no) enable_fast_install=no ;;
7402 *)
7403 enable_fast_install=no
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7407 IFS="$lt_save_ifs"
7408 if test "X$pkg" = "X$p"; then
7409 enable_fast_install=yes
7410 fi
7411 done
7412 IFS="$lt_save_ifs"
7413 ;;
7414 esac
7415 else
7416 enable_fast_install=yes
7417 fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 # This can be used to rebuild libtool when needed
7430 LIBTOOL_DEPS="$ltmain"
7431
7432 # Always use our own libtool.
7433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 test -z "$LN_S" && LN_S="ln -s"
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475 if test -n "${ZSH_VERSION+set}" ; then
7476 setopt NO_GLOB_SUBST
7477 fi
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7480 $as_echo_n "checking for objdir... " >&6; }
7481 if ${lt_cv_objdir+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 rm -f .libs 2>/dev/null
7485 mkdir .libs 2>/dev/null
7486 if test -d .libs; then
7487 lt_cv_objdir=.libs
7488 else
7489 # MS-DOS does not allow filenames that begin with a dot.
7490 lt_cv_objdir=_libs
7491 fi
7492 rmdir .libs 2>/dev/null
7493 fi
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7495 $as_echo "$lt_cv_objdir" >&6; }
7496 objdir=$lt_cv_objdir
7497
7498
7499
7500
7501
7502 cat >>confdefs.h <<_ACEOF
7503 #define LT_OBJDIR "$lt_cv_objdir/"
7504 _ACEOF
7505
7506
7507
7508
7509 case $host_os in
7510 aix3*)
7511 # AIX sometimes has problems with the GCC collect2 program. For some
7512 # reason, if we set the COLLECT_NAMES environment variable, the problems
7513 # vanish in a puff of smoke.
7514 if test "X${COLLECT_NAMES+set}" != Xset; then
7515 COLLECT_NAMES=
7516 export COLLECT_NAMES
7517 fi
7518 ;;
7519 esac
7520
7521 # Global variables:
7522 ofile=libtool
7523 can_build_shared=yes
7524
7525 # All known linkers require a `.a' archive for static linking (except MSVC,
7526 # which needs '.lib').
7527 libext=a
7528
7529 with_gnu_ld="$lt_cv_prog_gnu_ld"
7530
7531 old_CC="$CC"
7532 old_CFLAGS="$CFLAGS"
7533
7534 # Set sane defaults for various variables
7535 test -z "$CC" && CC=cc
7536 test -z "$LTCC" && LTCC=$CC
7537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7538 test -z "$LD" && LD=ld
7539 test -z "$ac_objext" && ac_objext=o
7540
7541 for cc_temp in $compiler""; do
7542 case $cc_temp in
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545 \-*) ;;
7546 *) break;;
7547 esac
7548 done
7549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7550
7551
7552 # Only perform the check for file, if the check method requires it
7553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7554 case $deplibs_check_method in
7555 file_magic*)
7556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 case $MAGIC_CMD in
7563 [\\/*] | ?:[\\/]*)
7564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565 ;;
7566 *)
7567 lt_save_MAGIC_CMD="$MAGIC_CMD"
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570 for ac_dir in $ac_dummy; do
7571 IFS="$lt_save_ifs"
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/${ac_tool_prefix}file; then
7574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575 if test -n "$file_magic_test_file"; then
7576 case $deplibs_check_method in
7577 "file_magic "*)
7578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581 $EGREP "$file_magic_regex" > /dev/null; then
7582 :
7583 else
7584 cat <<_LT_EOF 1>&2
7585
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such. This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem. Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7594
7595 _LT_EOF
7596 fi ;;
7597 esac
7598 fi
7599 break
7600 fi
7601 done
7602 IFS="$lt_save_ifs"
7603 MAGIC_CMD="$lt_save_MAGIC_CMD"
7604 ;;
7605 esac
7606 fi
7607
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7611 $as_echo "$MAGIC_CMD" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618
7619
7620
7621 if test -z "$lt_cv_path_MAGIC_CMD"; then
7622 if test -n "$ac_tool_prefix"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7624 $as_echo_n "checking for file... " >&6; }
7625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 case $MAGIC_CMD in
7629 [\\/*] | ?:[\\/]*)
7630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7631 ;;
7632 *)
7633 lt_save_MAGIC_CMD="$MAGIC_CMD"
7634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636 for ac_dir in $ac_dummy; do
7637 IFS="$lt_save_ifs"
7638 test -z "$ac_dir" && ac_dir=.
7639 if test -f $ac_dir/file; then
7640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7641 if test -n "$file_magic_test_file"; then
7642 case $deplibs_check_method in
7643 "file_magic "*)
7644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647 $EGREP "$file_magic_regex" > /dev/null; then
7648 :
7649 else
7650 cat <<_LT_EOF 1>&2
7651
7652 *** Warning: the command libtool uses to detect shared libraries,
7653 *** $file_magic_cmd, produces output that libtool cannot recognize.
7654 *** The result is that libtool may fail to recognize shared libraries
7655 *** as such. This will affect the creation of libtool libraries that
7656 *** depend on shared libraries, but programs linked with such libtool
7657 *** libraries will work regardless of this problem. Nevertheless, you
7658 *** may want to report the problem to your system manager and/or to
7659 *** bug-libtool@gnu.org
7660
7661 _LT_EOF
7662 fi ;;
7663 esac
7664 fi
7665 break
7666 fi
7667 done
7668 IFS="$lt_save_ifs"
7669 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 ;;
7671 esac
7672 fi
7673
7674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675 if test -n "$MAGIC_CMD"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7677 $as_echo "$MAGIC_CMD" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682
7683
7684 else
7685 MAGIC_CMD=:
7686 fi
7687 fi
7688
7689 fi
7690 ;;
7691 esac
7692
7693 # Use C for the default configuration in the libtool script
7694
7695 lt_save_CC="$CC"
7696 ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702
7703 # Source file extension for C test sources.
7704 ac_ext=c
7705
7706 # Object file extension for compiled C test sources.
7707 objext=o
7708 objext=$objext
7709
7710 # Code to be used in simple compile tests
7711 lt_simple_compile_test_code="int some_variable = 0;"
7712
7713 # Code to be used in simple link tests
7714 lt_simple_link_test_code='int main(){return(0);}'
7715
7716
7717
7718
7719
7720
7721
7722 # If no C compiler was specified, use CC.
7723 LTCC=${LTCC-"$CC"}
7724
7725 # If no C compiler flags were specified, use CFLAGS.
7726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7727
7728 # Allow CC to be a program name with arguments.
7729 compiler=$CC
7730
7731 # Save the default compiler, since it gets overwritten when the other
7732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7733 compiler_DEFAULT=$CC
7734
7735 # save warnings/boilerplate of simple test code
7736 ac_outfile=conftest.$ac_objext
7737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7739 _lt_compiler_boilerplate=`cat conftest.err`
7740 $RM conftest*
7741
7742 ac_outfile=conftest.$ac_objext
7743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745 _lt_linker_boilerplate=`cat conftest.err`
7746 $RM -r conftest*
7747
7748
7749 ## CAVEAT EMPTOR:
7750 ## There is no encapsulation within the following macros, do not change
7751 ## the running order or otherwise move them around unless you know exactly
7752 ## what you are doing...
7753 if test -n "$compiler"; then
7754
7755 lt_prog_compiler_no_builtin_flag=
7756
7757 if test "$GCC" = yes; then
7758 case $cc_basename in
7759 nvcc*)
7760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7761 *)
7762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7763 esac
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7767 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 lt_cv_prog_compiler_rtti_exceptions=no
7771 ac_outfile=conftest.$ac_objext
7772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7773 lt_compiler_flag="-fno-rtti -fno-exceptions"
7774 # Insert the option either (1) after the last *FLAGS variable, or
7775 # (2) before a word containing "conftest.", or (3) at the end.
7776 # Note that $ac_compile itself does not contain backslashes and begins
7777 # with a dollar sign (not a hyphen), so the echo should work correctly.
7778 # The option is referenced via a variable to avoid confusing sed.
7779 lt_compile=`echo "$ac_compile" | $SED \
7780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7782 -e 's:$: $lt_compiler_flag:'`
7783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7784 (eval "$lt_compile" 2>conftest.err)
7785 ac_status=$?
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 if (exit $ac_status) && test -s "$ac_outfile"; then
7789 # The compiler can only warn and ignore the option if not recognized
7790 # So say no if there are warnings other than the usual output.
7791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7794 lt_cv_prog_compiler_rtti_exceptions=yes
7795 fi
7796 fi
7797 $RM conftest*
7798
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7802
7803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7805 else
7806 :
7807 fi
7808
7809 fi
7810
7811
7812
7813
7814
7815
7816 lt_prog_compiler_wl=
7817 lt_prog_compiler_pic=
7818 lt_prog_compiler_static=
7819
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7822
7823 if test "$GCC" = yes; then
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_static='-static'
7826
7827 case $host_os in
7828 aix*)
7829 # All AIX code is PIC.
7830 if test "$host_cpu" = ia64; then
7831 # AIX 5 now supports IA64 processor
7832 lt_prog_compiler_static='-Bstatic'
7833 fi
7834 lt_prog_compiler_pic='-fPIC'
7835 ;;
7836
7837 amigaos*)
7838 case $host_cpu in
7839 powerpc)
7840 # see comment about AmigaOS4 .so support
7841 lt_prog_compiler_pic='-fPIC'
7842 ;;
7843 m68k)
7844 # FIXME: we need at least 68020 code to build shared libraries, but
7845 # adding the `-m68020' flag to GCC prevents building anything better,
7846 # like `-m68040'.
7847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7848 ;;
7849 esac
7850 ;;
7851
7852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7853 # PIC is the default for these OSes.
7854 ;;
7855
7856 mingw* | cygwin* | pw32* | os2* | cegcc*)
7857 # This hack is so that the source file can tell whether it is being
7858 # built for inclusion in a dll (and should export symbols for example).
7859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7860 # (--disable-auto-import) libraries
7861 lt_prog_compiler_pic='-DDLL_EXPORT'
7862 ;;
7863
7864 darwin* | rhapsody*)
7865 # PIC is the default on this platform
7866 # Common symbols not allowed in MH_DYLIB files
7867 lt_prog_compiler_pic='-fno-common'
7868 ;;
7869
7870 haiku*)
7871 # PIC is the default for Haiku.
7872 # The "-static" flag exists, but is broken.
7873 lt_prog_compiler_static=
7874 ;;
7875
7876 hpux*)
7877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7879 # sets the default TLS model and affects inlining.
7880 case $host_cpu in
7881 hppa*64*)
7882 # +Z the default
7883 ;;
7884 *)
7885 lt_prog_compiler_pic='-fPIC'
7886 ;;
7887 esac
7888 ;;
7889
7890 interix[3-9]*)
7891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7892 # Instead, we relocate shared libraries at runtime.
7893 ;;
7894
7895 msdosdjgpp*)
7896 # Just because we use GCC doesn't mean we suddenly get shared libraries
7897 # on systems that don't support them.
7898 lt_prog_compiler_can_build_shared=no
7899 enable_shared=no
7900 ;;
7901
7902 *nto* | *qnx*)
7903 # QNX uses GNU C++, but need to define -shared option too, otherwise
7904 # it will coredump.
7905 lt_prog_compiler_pic='-fPIC -shared'
7906 ;;
7907
7908 sysv4*MP*)
7909 if test -d /usr/nec; then
7910 lt_prog_compiler_pic=-Kconform_pic
7911 fi
7912 ;;
7913
7914 *)
7915 lt_prog_compiler_pic='-fPIC'
7916 ;;
7917 esac
7918
7919 case $cc_basename in
7920 nvcc*) # Cuda Compiler Driver 2.2
7921 lt_prog_compiler_wl='-Xlinker '
7922 lt_prog_compiler_pic='-Xcompiler -fPIC'
7923 ;;
7924 esac
7925 else
7926 # PORTME Check for flag to pass linker flags through the system compiler.
7927 case $host_os in
7928 aix*)
7929 lt_prog_compiler_wl='-Wl,'
7930 if test "$host_cpu" = ia64; then
7931 # AIX 5 now supports IA64 processor
7932 lt_prog_compiler_static='-Bstatic'
7933 else
7934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7935 fi
7936 ;;
7937
7938 mingw* | cygwin* | pw32* | os2* | cegcc*)
7939 # This hack is so that the source file can tell whether it is being
7940 # built for inclusion in a dll (and should export symbols for example).
7941 lt_prog_compiler_pic='-DDLL_EXPORT'
7942 ;;
7943
7944 hpux9* | hpux10* | hpux11*)
7945 lt_prog_compiler_wl='-Wl,'
7946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7947 # not for PA HP-UX.
7948 case $host_cpu in
7949 hppa*64*|ia64*)
7950 # +Z the default
7951 ;;
7952 *)
7953 lt_prog_compiler_pic='+Z'
7954 ;;
7955 esac
7956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7957 lt_prog_compiler_static='${wl}-a ${wl}archive'
7958 ;;
7959
7960 irix5* | irix6* | nonstopux*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # PIC (with -KPIC) is the default.
7963 lt_prog_compiler_static='-non_shared'
7964 ;;
7965
7966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7967 case $cc_basename in
7968 # old Intel for x86_64 which still supported -KPIC.
7969 ecc*)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-static'
7973 ;;
7974 # icc used to be incompatible with GCC.
7975 # ICC 10 doesn't accept -KPIC any more.
7976 icc* | ifort*)
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-fPIC'
7979 lt_prog_compiler_static='-static'
7980 ;;
7981 # Lahey Fortran 8.1.
7982 lf95*)
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='--shared'
7985 lt_prog_compiler_static='--static'
7986 ;;
7987 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7988 # Portland Group compilers (*not* the Pentium gcc compiler,
7989 # which looks to be a dead project)
7990 lt_prog_compiler_wl='-Wl,'
7991 lt_prog_compiler_pic='-fpic'
7992 lt_prog_compiler_static='-Bstatic'
7993 ;;
7994 ccc*)
7995 lt_prog_compiler_wl='-Wl,'
7996 # All Alpha code is PIC.
7997 lt_prog_compiler_static='-non_shared'
7998 ;;
7999 xl* | bgxl* | bgf* | mpixl*)
8000 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-qpic'
8003 lt_prog_compiler_static='-qstaticlink'
8004 ;;
8005 *)
8006 case `$CC -V 2>&1 | sed 5q` in
8007 *Sun\ F* | *Sun*Fortran*)
8008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-Bstatic'
8011 lt_prog_compiler_wl=''
8012 ;;
8013 *Sun\ C*)
8014 # Sun C 5.9
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-Bstatic'
8017 lt_prog_compiler_wl='-Wl,'
8018 ;;
8019 esac
8020 ;;
8021 esac
8022 ;;
8023
8024 newsos6)
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8027 ;;
8028
8029 *nto* | *qnx*)
8030 # QNX uses GNU C++, but need to define -shared option too, otherwise
8031 # it will coredump.
8032 lt_prog_compiler_pic='-fPIC -shared'
8033 ;;
8034
8035 osf3* | osf4* | osf5*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # All OSF/1 code is PIC.
8038 lt_prog_compiler_static='-non_shared'
8039 ;;
8040
8041 rdos*)
8042 lt_prog_compiler_static='-non_shared'
8043 ;;
8044
8045 solaris*)
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 case $cc_basename in
8049 f77* | f90* | f95*)
8050 lt_prog_compiler_wl='-Qoption ld ';;
8051 *)
8052 lt_prog_compiler_wl='-Wl,';;
8053 esac
8054 ;;
8055
8056 sunos4*)
8057 lt_prog_compiler_wl='-Qoption ld '
8058 lt_prog_compiler_pic='-PIC'
8059 lt_prog_compiler_static='-Bstatic'
8060 ;;
8061
8062 sysv4 | sysv4.2uw2* | sysv4.3*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 ;;
8067
8068 sysv4*MP*)
8069 if test -d /usr/nec ;then
8070 lt_prog_compiler_pic='-Kconform_pic'
8071 lt_prog_compiler_static='-Bstatic'
8072 fi
8073 ;;
8074
8075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8079 ;;
8080
8081 unicos*)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_can_build_shared=no
8084 ;;
8085
8086 uts4*)
8087 lt_prog_compiler_pic='-pic'
8088 lt_prog_compiler_static='-Bstatic'
8089 ;;
8090
8091 *)
8092 lt_prog_compiler_can_build_shared=no
8093 ;;
8094 esac
8095 fi
8096
8097 case $host_os in
8098 # For platforms which do not support PIC, -DPIC is meaningless:
8099 *djgpp*)
8100 lt_prog_compiler_pic=
8101 ;;
8102 *)
8103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8104 ;;
8105 esac
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8107 $as_echo "$lt_prog_compiler_pic" >&6; }
8108
8109
8110
8111
8112
8113
8114 #
8115 # Check to make sure the PIC flag actually works.
8116 #
8117 if test -n "$lt_prog_compiler_pic"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8120 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 lt_cv_prog_compiler_pic_works=no
8124 ac_outfile=conftest.$ac_objext
8125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8127 # Insert the option either (1) after the last *FLAGS variable, or
8128 # (2) before a word containing "conftest.", or (3) at the end.
8129 # Note that $ac_compile itself does not contain backslashes and begins
8130 # with a dollar sign (not a hyphen), so the echo should work correctly.
8131 # The option is referenced via a variable to avoid confusing sed.
8132 lt_compile=`echo "$ac_compile" | $SED \
8133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8135 -e 's:$: $lt_compiler_flag:'`
8136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8137 (eval "$lt_compile" 2>conftest.err)
8138 ac_status=$?
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 if (exit $ac_status) && test -s "$ac_outfile"; then
8142 # The compiler can only warn and ignore the option if not recognized
8143 # So say no if there are warnings other than the usual output.
8144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8147 lt_cv_prog_compiler_pic_works=yes
8148 fi
8149 fi
8150 $RM conftest*
8151
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8154 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8155
8156 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8157 case $lt_prog_compiler_pic in
8158 "" | " "*) ;;
8159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8160 esac
8161 else
8162 lt_prog_compiler_pic=
8163 lt_prog_compiler_can_build_shared=no
8164 fi
8165
8166 fi
8167
8168
8169
8170
8171
8172
8173 #
8174 # Check to make sure the static flag actually works.
8175 #
8176 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8178 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8179 if ${lt_cv_prog_compiler_static_works+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 lt_cv_prog_compiler_static_works=no
8183 save_LDFLAGS="$LDFLAGS"
8184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8187 # The linker can only warn and ignore the option if not recognized
8188 # So say no if there are warnings
8189 if test -s conftest.err; then
8190 # Append any errors to the config.log.
8191 cat conftest.err 1>&5
8192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_static_works=yes
8196 fi
8197 else
8198 lt_cv_prog_compiler_static_works=yes
8199 fi
8200 fi
8201 $RM -r conftest*
8202 LDFLAGS="$save_LDFLAGS"
8203
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8206 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8207
8208 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8209 :
8210 else
8211 lt_prog_compiler_static=
8212 fi
8213
8214
8215
8216
8217
8218
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8222 if ${lt_cv_prog_compiler_c_o+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 lt_cv_prog_compiler_c_o=no
8226 $RM -r conftest 2>/dev/null
8227 mkdir conftest
8228 cd conftest
8229 mkdir out
8230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231
8232 lt_compiler_flag="-o out/conftest2.$ac_objext"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 lt_compile=`echo "$ac_compile" | $SED \
8238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240 -e 's:$: $lt_compiler_flag:'`
8241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8242 (eval "$lt_compile" 2>out/conftest.err)
8243 ac_status=$?
8244 cat out/conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8247 then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8253 lt_cv_prog_compiler_c_o=yes
8254 fi
8255 fi
8256 chmod u+w . 2>&5
8257 $RM conftest*
8258 # SGI C++ compiler will create directory out/ii_files/ for
8259 # template instantiation
8260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8261 $RM out/* && rmdir out
8262 cd ..
8263 $RM -r conftest
8264 $RM conftest*
8265
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8269
8270
8271
8272
8273
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8276 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8277 if ${lt_cv_prog_compiler_c_o+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 lt_cv_prog_compiler_c_o=no
8281 $RM -r conftest 2>/dev/null
8282 mkdir conftest
8283 cd conftest
8284 mkdir out
8285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8286
8287 lt_compiler_flag="-o out/conftest2.$ac_objext"
8288 # Insert the option either (1) after the last *FLAGS variable, or
8289 # (2) before a word containing "conftest.", or (3) at the end.
8290 # Note that $ac_compile itself does not contain backslashes and begins
8291 # with a dollar sign (not a hyphen), so the echo should work correctly.
8292 lt_compile=`echo "$ac_compile" | $SED \
8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295 -e 's:$: $lt_compiler_flag:'`
8296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8297 (eval "$lt_compile" 2>out/conftest.err)
8298 ac_status=$?
8299 cat out/conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8302 then
8303 # The compiler can only warn and ignore the option if not recognized
8304 # So say no if there are warnings
8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8308 lt_cv_prog_compiler_c_o=yes
8309 fi
8310 fi
8311 chmod u+w . 2>&5
8312 $RM conftest*
8313 # SGI C++ compiler will create directory out/ii_files/ for
8314 # template instantiation
8315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8316 $RM out/* && rmdir out
8317 cd ..
8318 $RM -r conftest
8319 $RM conftest*
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8323 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8324
8325
8326
8327
8328 hard_links="nottested"
8329 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8330 # do not overwrite the value of need_locks provided by the user
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8332 $as_echo_n "checking if we can lock with hard links... " >&6; }
8333 hard_links=yes
8334 $RM conftest*
8335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8336 touch conftest.a
8337 ln conftest.a conftest.b 2>&5 || hard_links=no
8338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8340 $as_echo "$hard_links" >&6; }
8341 if test "$hard_links" = no; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8343 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8344 need_locks=warn
8345 fi
8346 else
8347 need_locks=no
8348 fi
8349
8350
8351
8352
8353
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8356 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8357
8358 runpath_var=
8359 allow_undefined_flag=
8360 always_export_symbols=no
8361 archive_cmds=
8362 archive_expsym_cmds=
8363 compiler_needs_object=no
8364 enable_shared_with_static_runtimes=no
8365 export_dynamic_flag_spec=
8366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8367 hardcode_automatic=no
8368 hardcode_direct=no
8369 hardcode_direct_absolute=no
8370 hardcode_libdir_flag_spec=
8371 hardcode_libdir_flag_spec_ld=
8372 hardcode_libdir_separator=
8373 hardcode_minus_L=no
8374 hardcode_shlibpath_var=unsupported
8375 inherit_rpath=no
8376 link_all_deplibs=unknown
8377 module_cmds=
8378 module_expsym_cmds=
8379 old_archive_from_new_cmds=
8380 old_archive_from_expsyms_cmds=
8381 thread_safe_flag_spec=
8382 whole_archive_flag_spec=
8383 # include_expsyms should be a list of space-separated symbols to be *always*
8384 # included in the symbol list
8385 include_expsyms=
8386 # exclude_expsyms can be an extended regexp of symbols to exclude
8387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8389 # as well as any symbol that contains `d'.
8390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8392 # platforms (ab)use it in PIC code, but their linkers get confused if
8393 # the symbol is explicitly referenced. Since portable code cannot
8394 # rely on this symbol name, it's probably fine to never include it in
8395 # preloaded symbol tables.
8396 # Exclude shared library initialization/finalization symbols.
8397 extract_expsyms_cmds=
8398
8399 case $host_os in
8400 cygwin* | mingw* | pw32* | cegcc*)
8401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8402 # When not using gcc, we currently assume that we are using
8403 # Microsoft Visual C++.
8404 if test "$GCC" != yes; then
8405 with_gnu_ld=no
8406 fi
8407 ;;
8408 interix*)
8409 # we just hope/assume this is gcc and not c89 (= MSVC++)
8410 with_gnu_ld=yes
8411 ;;
8412 openbsd*)
8413 with_gnu_ld=no
8414 ;;
8415 esac
8416
8417 ld_shlibs=yes
8418
8419 # On some targets, GNU ld is compatible enough with the native linker
8420 # that we're better off using the native interface for both.
8421 lt_use_gnu_ld_interface=no
8422 if test "$with_gnu_ld" = yes; then
8423 case $host_os in
8424 aix*)
8425 # The AIX port of GNU ld has always aspired to compatibility
8426 # with the native linker. However, as the warning in the GNU ld
8427 # block says, versions before 2.19.5* couldn't really create working
8428 # shared libraries, regardless of the interface used.
8429 case `$LD -v 2>&1` in
8430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8432 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8433 *)
8434 lt_use_gnu_ld_interface=yes
8435 ;;
8436 esac
8437 ;;
8438 *)
8439 lt_use_gnu_ld_interface=yes
8440 ;;
8441 esac
8442 fi
8443
8444 if test "$lt_use_gnu_ld_interface" = yes; then
8445 # If archive_cmds runs LD, not CC, wlarc should be empty
8446 wlarc='${wl}'
8447
8448 # Set some defaults for GNU ld with shared library support. These
8449 # are reset later if shared libraries are not supported. Putting them
8450 # here allows them to be overridden if necessary.
8451 runpath_var=LD_RUN_PATH
8452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8453 export_dynamic_flag_spec='${wl}--export-dynamic'
8454 # ancient GNU ld didn't support --whole-archive et. al.
8455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8457 else
8458 whole_archive_flag_spec=
8459 fi
8460 supports_anon_versioning=no
8461 case `$LD -v 2>&1` in
8462 *GNU\ gold*) supports_anon_versioning=yes ;;
8463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8466 *\ 2.11.*) ;; # other 2.11 versions
8467 *) supports_anon_versioning=yes ;;
8468 esac
8469
8470 # See if GNU ld supports shared libraries.
8471 case $host_os in
8472 aix[3-9]*)
8473 # On AIX/PPC, the GNU linker is very broken
8474 if test "$host_cpu" != ia64; then
8475 ld_shlibs=no
8476 cat <<_LT_EOF 1>&2
8477
8478 *** Warning: the GNU linker, at least up to release 2.19, is reported
8479 *** to be unable to reliably create shared libraries on AIX.
8480 *** Therefore, libtool is disabling shared libraries support. If you
8481 *** really care for shared libraries, you may want to install binutils
8482 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8483 *** You will then need to restart the configuration process.
8484
8485 _LT_EOF
8486 fi
8487 ;;
8488
8489 amigaos*)
8490 case $host_cpu in
8491 powerpc)
8492 # see comment about AmigaOS4 .so support
8493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494 archive_expsym_cmds=''
8495 ;;
8496 m68k)
8497 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)'
8498 hardcode_libdir_flag_spec='-L$libdir'
8499 hardcode_minus_L=yes
8500 ;;
8501 esac
8502 ;;
8503
8504 beos*)
8505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8506 allow_undefined_flag=unsupported
8507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8508 # support --undefined. This deserves some investigation. FIXME
8509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510 else
8511 ld_shlibs=no
8512 fi
8513 ;;
8514
8515 cygwin* | mingw* | pw32* | cegcc*)
8516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8517 # as there is no search path for DLLs.
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 export_dynamic_flag_spec='${wl}--export-all-symbols'
8520 allow_undefined_flag=unsupported
8521 always_export_symbols=no
8522 enable_shared_with_static_runtimes=yes
8523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8524
8525 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527 # If the export-symbols file already is a .def file (1st line
8528 # is EXPORTS), use it as is; otherwise, prepend...
8529 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8530 cp $export_symbols $output_objdir/$soname.def;
8531 else
8532 echo EXPORTS > $output_objdir/$soname.def;
8533 cat $export_symbols >> $output_objdir/$soname.def;
8534 fi~
8535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536 else
8537 ld_shlibs=no
8538 fi
8539 ;;
8540
8541 haiku*)
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 link_all_deplibs=yes
8544 ;;
8545
8546 interix[3-9]*)
8547 hardcode_direct=no
8548 hardcode_shlibpath_var=no
8549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550 export_dynamic_flag_spec='${wl}-E'
8551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8552 # Instead, shared libraries are loaded at an image base (0x10000000 by
8553 # default) and relocated if they conflict, which is a slow very memory
8554 # consuming and fragmenting process. To avoid this, we pick a random,
8555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8558 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'
8559 ;;
8560
8561 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8562 tmp_diet=no
8563 if test "$host_os" = linux-dietlibc; then
8564 case $cc_basename in
8565 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8566 esac
8567 fi
8568 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8569 && test "$tmp_diet" = no
8570 then
8571 tmp_addflag=' $pic_flag'
8572 tmp_sharedflag='-shared'
8573 case $cc_basename,$host_cpu in
8574 pgcc*) # Portland Group C compiler
8575 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'
8576 tmp_addflag=' $pic_flag'
8577 ;;
8578 pgf77* | pgf90* | pgf95* | pgfortran*)
8579 # Portland Group f77 and f90 compilers
8580 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'
8581 tmp_addflag=' $pic_flag -Mnomain' ;;
8582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8583 tmp_addflag=' -i_dynamic' ;;
8584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8585 tmp_addflag=' -i_dynamic -nofor_main' ;;
8586 ifc* | ifort*) # Intel Fortran compiler
8587 tmp_addflag=' -nofor_main' ;;
8588 lf95*) # Lahey Fortran 8.1
8589 whole_archive_flag_spec=
8590 tmp_sharedflag='--shared' ;;
8591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8592 tmp_sharedflag='-qmkshrobj'
8593 tmp_addflag= ;;
8594 nvcc*) # Cuda Compiler Driver 2.2
8595 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'
8596 compiler_needs_object=yes
8597 ;;
8598 esac
8599 case `$CC -V 2>&1 | sed 5q` in
8600 *Sun\ C*) # Sun C 5.9
8601 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'
8602 compiler_needs_object=yes
8603 tmp_sharedflag='-G' ;;
8604 *Sun\ F*) # Sun Fortran 8.3
8605 tmp_sharedflag='-G' ;;
8606 esac
8607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608
8609 if test "x$supports_anon_versioning" = xyes; then
8610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8612 echo "local: *; };" >> $output_objdir/$libname.ver~
8613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8614 fi
8615
8616 case $cc_basename in
8617 xlf* | bgf* | bgxlf* | mpixlf*)
8618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8620 hardcode_libdir_flag_spec=
8621 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8622 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8623 if test "x$supports_anon_versioning" = xyes; then
8624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8626 echo "local: *; };" >> $output_objdir/$libname.ver~
8627 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8628 fi
8629 ;;
8630 esac
8631 else
8632 ld_shlibs=no
8633 fi
8634 ;;
8635
8636 netbsd*)
8637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8639 wlarc=
8640 else
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643 fi
8644 ;;
8645
8646 solaris*)
8647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8648 ld_shlibs=no
8649 cat <<_LT_EOF 1>&2
8650
8651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8652 *** create shared libraries on Solaris systems. Therefore, libtool
8653 *** is disabling shared libraries support. We urge you to upgrade GNU
8654 *** binutils to release 2.9.1 or newer. Another option is to modify
8655 *** your PATH or compiler configuration so that the native linker is
8656 *** used, and then restart.
8657
8658 _LT_EOF
8659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662 else
8663 ld_shlibs=no
8664 fi
8665 ;;
8666
8667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8668 case `$LD -v 2>&1` in
8669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8670 ld_shlibs=no
8671 cat <<_LT_EOF 1>&2
8672
8673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8674 *** reliably create shared libraries on SCO systems. Therefore, libtool
8675 *** is disabling shared libraries support. We urge you to upgrade GNU
8676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8677 *** your PATH or compiler configuration so that the native linker is
8678 *** used, and then restart.
8679
8680 _LT_EOF
8681 ;;
8682 *)
8683 # For security reasons, it is highly recommended that you always
8684 # use absolute paths for naming shared libraries, and exclude the
8685 # DT_RUNPATH tag from executables and libraries. But doing so
8686 # requires that you compile everything twice, which is a pain.
8687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8693 fi
8694 ;;
8695 esac
8696 ;;
8697
8698 sunos4*)
8699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700 wlarc=
8701 hardcode_direct=yes
8702 hardcode_shlibpath_var=no
8703 ;;
8704
8705 *)
8706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709 else
8710 ld_shlibs=no
8711 fi
8712 ;;
8713 esac
8714
8715 if test "$ld_shlibs" = no; then
8716 runpath_var=
8717 hardcode_libdir_flag_spec=
8718 export_dynamic_flag_spec=
8719 whole_archive_flag_spec=
8720 fi
8721 else
8722 # PORTME fill in a description of your system's linker (not GNU ld)
8723 case $host_os in
8724 aix3*)
8725 allow_undefined_flag=unsupported
8726 always_export_symbols=yes
8727 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'
8728 # Note: this linker hardcodes the directories in LIBPATH if there
8729 # are no directories specified by -L.
8730 hardcode_minus_L=yes
8731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8732 # Neither direct hardcoding nor static linking is supported with a
8733 # broken collect2.
8734 hardcode_direct=unsupported
8735 fi
8736 ;;
8737
8738 aix[4-9]*)
8739 if test "$host_cpu" = ia64; then
8740 # On IA64, the linker does run time linking by default, so we don't
8741 # have to do anything special.
8742 aix_use_runtimelinking=no
8743 exp_sym_flag='-Bexport'
8744 no_entry_flag=""
8745 else
8746 # If we're using GNU nm, then we don't want the "-C" option.
8747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8748 # Also, AIX nm treats weak defined symbols like other global
8749 # defined symbols, whereas GNU nm marks them as "W".
8750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8751 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'
8752 else
8753 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'
8754 fi
8755 aix_use_runtimelinking=no
8756
8757 # Test if we are trying to use run time linking or normal
8758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8759 # need to do runtime linking.
8760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8761 for ld_flag in $LDFLAGS; do
8762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8763 aix_use_runtimelinking=yes
8764 break
8765 fi
8766 done
8767 ;;
8768 esac
8769
8770 exp_sym_flag='-bexport'
8771 no_entry_flag='-bnoentry'
8772 fi
8773
8774 # When large executables or shared objects are built, AIX ld can
8775 # have problems creating the table of contents. If linking a library
8776 # or program results in "error TOC overflow" add -mminimal-toc to
8777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8779
8780 archive_cmds=''
8781 hardcode_direct=yes
8782 hardcode_direct_absolute=yes
8783 hardcode_libdir_separator=':'
8784 link_all_deplibs=yes
8785 file_list_spec='${wl}-f,'
8786
8787 if test "$GCC" = yes; then
8788 case $host_os in aix4.[012]|aix4.[012].*)
8789 # We only want to do this on AIX 4.2 and lower, the check
8790 # below for broken collect2 doesn't work under 4.3+
8791 collect2name=`${CC} -print-prog-name=collect2`
8792 if test -f "$collect2name" &&
8793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8794 then
8795 # We have reworked collect2
8796 :
8797 else
8798 # We have old collect2
8799 hardcode_direct=unsupported
8800 # It fails to find uninstalled libraries when the uninstalled
8801 # path is not listed in the libpath. Setting hardcode_minus_L
8802 # to unsupported forces relinking
8803 hardcode_minus_L=yes
8804 hardcode_libdir_flag_spec='-L$libdir'
8805 hardcode_libdir_separator=
8806 fi
8807 ;;
8808 esac
8809 shared_flag='-shared'
8810 if test "$aix_use_runtimelinking" = yes; then
8811 shared_flag="$shared_flag "'${wl}-G'
8812 fi
8813 else
8814 # not using gcc
8815 if test "$host_cpu" = ia64; then
8816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8817 # chokes on -Wl,-G. The following line is correct:
8818 shared_flag='-G'
8819 else
8820 if test "$aix_use_runtimelinking" = yes; then
8821 shared_flag='${wl}-G'
8822 else
8823 shared_flag='${wl}-bM:SRE'
8824 fi
8825 fi
8826 fi
8827
8828 export_dynamic_flag_spec='${wl}-bexpall'
8829 # It seems that -bexpall does not export symbols beginning with
8830 # underscore (_), so it is better to generate a list of symbols to export.
8831 always_export_symbols=yes
8832 if test "$aix_use_runtimelinking" = yes; then
8833 # Warning - without using the other runtime loading flags (-brtl),
8834 # -berok will link without error, but may produce a broken library.
8835 allow_undefined_flag='-berok'
8836 # Determine the default libpath from the value encoded in an
8837 # empty executable.
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840
8841 int
8842 main ()
8843 {
8844
8845 ;
8846 return 0;
8847 }
8848 _ACEOF
8849 if ac_fn_c_try_link "$LINENO"; then :
8850
8851 lt_aix_libpath_sed='
8852 /Import File Strings/,/^$/ {
8853 /^0/ {
8854 s/^0 *\(.*\)$/\1/
8855 p
8856 }
8857 }'
8858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859 # Check for a 64-bit object if we didn't find anything.
8860 if test -z "$aix_libpath"; then
8861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8862 fi
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8867
8868 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8869 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"
8870 else
8871 if test "$host_cpu" = ia64; then
8872 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8873 allow_undefined_flag="-z nodefs"
8874 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"
8875 else
8876 # Determine the default libpath from the value encoded in an
8877 # empty executable.
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880
8881 int
8882 main ()
8883 {
8884
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8890
8891 lt_aix_libpath_sed='
8892 /Import File Strings/,/^$/ {
8893 /^0/ {
8894 s/^0 *\(.*\)$/\1/
8895 p
8896 }
8897 }'
8898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 # Check for a 64-bit object if we didn't find anything.
8900 if test -z "$aix_libpath"; then
8901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902 fi
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8907
8908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8909 # Warning - without using the other run time loading flags,
8910 # -berok will link without error, but may produce a broken library.
8911 no_undefined_flag=' ${wl}-bernotok'
8912 allow_undefined_flag=' ${wl}-berok'
8913 if test "$with_gnu_ld" = yes; then
8914 # We only use this code for GNU lds that support --whole-archive.
8915 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8916 else
8917 # Exported symbols can be pulled into shared objects from archives
8918 whole_archive_flag_spec='$convenience'
8919 fi
8920 archive_cmds_need_lc=yes
8921 # This is similar to how AIX traditionally builds its shared libraries.
8922 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'
8923 fi
8924 fi
8925 ;;
8926
8927 amigaos*)
8928 case $host_cpu in
8929 powerpc)
8930 # see comment about AmigaOS4 .so support
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds=''
8933 ;;
8934 m68k)
8935 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)'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_minus_L=yes
8938 ;;
8939 esac
8940 ;;
8941
8942 bsdi[45]*)
8943 export_dynamic_flag_spec=-rdynamic
8944 ;;
8945
8946 cygwin* | mingw* | pw32* | cegcc*)
8947 # When not using gcc, we currently assume that we are using
8948 # Microsoft Visual C++.
8949 # hardcode_libdir_flag_spec is actually meaningless, as there is
8950 # no search path for DLLs.
8951 hardcode_libdir_flag_spec=' '
8952 allow_undefined_flag=unsupported
8953 # Tell ltmain to make .lib files, not .a files.
8954 libext=lib
8955 # Tell ltmain to make .dll files, not .so files.
8956 shrext_cmds=".dll"
8957 # FIXME: Setting linknames here is a bad hack.
8958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8959 # The linker will automatically build a .lib file if we build a DLL.
8960 old_archive_from_new_cmds='true'
8961 # FIXME: Should let the user specify the lib program.
8962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8963 fix_srcfile_path='`cygpath -w "$srcfile"`'
8964 enable_shared_with_static_runtimes=yes
8965 ;;
8966
8967 darwin* | rhapsody*)
8968
8969
8970 archive_cmds_need_lc=no
8971 hardcode_direct=no
8972 hardcode_automatic=yes
8973 hardcode_shlibpath_var=unsupported
8974 if test "$lt_cv_ld_force_load" = "yes"; then
8975 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\"`'
8976 else
8977 whole_archive_flag_spec=''
8978 fi
8979 link_all_deplibs=yes
8980 allow_undefined_flag="$_lt_dar_allow_undefined"
8981 case $cc_basename in
8982 ifort*) _lt_dar_can_shared=yes ;;
8983 *) _lt_dar_can_shared=$GCC ;;
8984 esac
8985 if test "$_lt_dar_can_shared" = "yes"; then
8986 output_verbose_link_cmd=func_echo_all
8987 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8988 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8989 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}"
8990 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}"
8991
8992 else
8993 ld_shlibs=no
8994 fi
8995
8996 ;;
8997
8998 dgux*)
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_shlibpath_var=no
9002 ;;
9003
9004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9005 # support. Future versions do this automatically, but an explicit c++rt0.o
9006 # does not break anything, and helps significantly (at the cost of a little
9007 # extra space).
9008 freebsd2.2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9010 hardcode_libdir_flag_spec='-R$libdir'
9011 hardcode_direct=yes
9012 hardcode_shlibpath_var=no
9013 ;;
9014
9015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9016 freebsd2.*)
9017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_direct=yes
9019 hardcode_minus_L=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9024 freebsd* | dragonfly*)
9025 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9026 hardcode_libdir_flag_spec='-R$libdir'
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 hpux9*)
9032 if test "$GCC" = yes; then
9033 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'
9034 else
9035 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'
9036 fi
9037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9038 hardcode_libdir_separator=:
9039 hardcode_direct=yes
9040
9041 # hardcode_minus_L: Not really in the search PATH,
9042 # but as the default location of the library.
9043 hardcode_minus_L=yes
9044 export_dynamic_flag_spec='${wl}-E'
9045 ;;
9046
9047 hpux10*)
9048 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9050 else
9051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9052 fi
9053 if test "$with_gnu_ld" = no; then
9054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9055 hardcode_libdir_flag_spec_ld='+b $libdir'
9056 hardcode_libdir_separator=:
9057 hardcode_direct=yes
9058 hardcode_direct_absolute=yes
9059 export_dynamic_flag_spec='${wl}-E'
9060 # hardcode_minus_L: Not really in the search PATH,
9061 # but as the default location of the library.
9062 hardcode_minus_L=yes
9063 fi
9064 ;;
9065
9066 hpux11*)
9067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9068 case $host_cpu in
9069 hppa*64*)
9070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 ;;
9072 ia64*)
9073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9074 ;;
9075 *)
9076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9077 ;;
9078 esac
9079 else
9080 case $host_cpu in
9081 hppa*64*)
9082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 ;;
9084 ia64*)
9085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086 ;;
9087 *)
9088
9089 # Older versions of the 11.00 compiler do not understand -b yet
9090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9092 $as_echo_n "checking if $CC understands -b... " >&6; }
9093 if ${lt_cv_prog_compiler__b+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 lt_cv_prog_compiler__b=no
9097 save_LDFLAGS="$LDFLAGS"
9098 LDFLAGS="$LDFLAGS -b"
9099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9101 # The linker can only warn and ignore the option if not recognized
9102 # So say no if there are warnings
9103 if test -s conftest.err; then
9104 # Append any errors to the config.log.
9105 cat conftest.err 1>&5
9106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9108 if diff conftest.exp conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler__b=yes
9110 fi
9111 else
9112 lt_cv_prog_compiler__b=yes
9113 fi
9114 fi
9115 $RM -r conftest*
9116 LDFLAGS="$save_LDFLAGS"
9117
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9121
9122 if test x"$lt_cv_prog_compiler__b" = xyes; then
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 else
9125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9126 fi
9127
9128 ;;
9129 esac
9130 fi
9131 if test "$with_gnu_ld" = no; then
9132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9133 hardcode_libdir_separator=:
9134
9135 case $host_cpu in
9136 hppa*64*|ia64*)
9137 hardcode_direct=no
9138 hardcode_shlibpath_var=no
9139 ;;
9140 *)
9141 hardcode_direct=yes
9142 hardcode_direct_absolute=yes
9143 export_dynamic_flag_spec='${wl}-E'
9144
9145 # hardcode_minus_L: Not really in the search PATH,
9146 # but as the default location of the library.
9147 hardcode_minus_L=yes
9148 ;;
9149 esac
9150 fi
9151 ;;
9152
9153 irix5* | irix6* | nonstopux*)
9154 if test "$GCC" = yes; then
9155 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'
9156 # Try to use the -exported_symbol ld option, if it does not
9157 # work, assume that -exports_file does not work either and
9158 # implicitly export all symbols.
9159 save_LDFLAGS="$LDFLAGS"
9160 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int foo(void) {}
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"; then :
9166 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'
9167
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LDFLAGS="$save_LDFLAGS"
9172 else
9173 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'
9174 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'
9175 fi
9176 archive_cmds_need_lc='no'
9177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179 inherit_rpath=yes
9180 link_all_deplibs=yes
9181 ;;
9182
9183 netbsd*)
9184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9186 else
9187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9188 fi
9189 hardcode_libdir_flag_spec='-R$libdir'
9190 hardcode_direct=yes
9191 hardcode_shlibpath_var=no
9192 ;;
9193
9194 newsos6)
9195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_direct=yes
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199 hardcode_shlibpath_var=no
9200 ;;
9201
9202 *nto* | *qnx*)
9203 ;;
9204
9205 openbsd*)
9206 if test -f /usr/libexec/ld.so; then
9207 hardcode_direct=yes
9208 hardcode_shlibpath_var=no
9209 hardcode_direct_absolute=yes
9210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214 export_dynamic_flag_spec='${wl}-E'
9215 else
9216 case $host_os in
9217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_libdir_flag_spec='-R$libdir'
9220 ;;
9221 *)
9222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9224 ;;
9225 esac
9226 fi
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 os2*)
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_minus_L=yes
9235 allow_undefined_flag=unsupported
9236 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'
9237 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9238 ;;
9239
9240 osf3*)
9241 if test "$GCC" = yes; then
9242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9243 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'
9244 else
9245 allow_undefined_flag=' -expect_unresolved \*'
9246 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'
9247 fi
9248 archive_cmds_need_lc='no'
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 hardcode_libdir_separator=:
9251 ;;
9252
9253 osf4* | osf5*) # as osf3* with the addition of -msym flag
9254 if test "$GCC" = yes; then
9255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9256 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'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 else
9259 allow_undefined_flag=' -expect_unresolved \*'
9260 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'
9261 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~
9262 $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'
9263
9264 # Both c and cxx compiler support -rpath directly
9265 hardcode_libdir_flag_spec='-rpath $libdir'
9266 fi
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_separator=:
9269 ;;
9270
9271 solaris*)
9272 no_undefined_flag=' -z defs'
9273 if test "$GCC" = yes; then
9274 wlarc='${wl}'
9275 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9278 else
9279 case `$CC -V 2>&1` in
9280 *"Compilers 5.0"*)
9281 wlarc=''
9282 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9285 ;;
9286 *)
9287 wlarc='${wl}'
9288 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9291 ;;
9292 esac
9293 fi
9294 hardcode_libdir_flag_spec='-R$libdir'
9295 hardcode_shlibpath_var=no
9296 case $host_os in
9297 solaris2.[0-5] | solaris2.[0-5].*) ;;
9298 *)
9299 # The compiler driver will combine and reorder linker options,
9300 # but understands `-z linker_flag'. GCC discards it without `$wl',
9301 # but is careful enough not to reorder.
9302 # Supported since Solaris 2.6 (maybe 2.5.1?)
9303 if test "$GCC" = yes; then
9304 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9305 else
9306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9307 fi
9308 ;;
9309 esac
9310 link_all_deplibs=yes
9311 ;;
9312
9313 sunos4*)
9314 if test "x$host_vendor" = xsequent; then
9315 # Use $CC to link under sequent, because it throws in some extra .o
9316 # files that make .init and .fini sections work.
9317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318 else
9319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9320 fi
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_direct=yes
9323 hardcode_minus_L=yes
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 sysv4)
9328 case $host_vendor in
9329 sni)
9330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_direct=yes # is this really true???
9332 ;;
9333 siemens)
9334 ## LD is ld it makes a PLAMLIB
9335 ## CC just makes a GrossModule.
9336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9337 reload_cmds='$CC -r -o $output$reload_objs'
9338 hardcode_direct=no
9339 ;;
9340 motorola)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9343 ;;
9344 esac
9345 runpath_var='LD_RUN_PATH'
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 sysv4.3*)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_shlibpath_var=no
9352 export_dynamic_flag_spec='-Bexport'
9353 ;;
9354
9355 sysv4*MP*)
9356 if test -d /usr/nec; then
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_shlibpath_var=no
9359 runpath_var=LD_RUN_PATH
9360 hardcode_runpath_var=yes
9361 ld_shlibs=yes
9362 fi
9363 ;;
9364
9365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9366 no_undefined_flag='${wl}-z,text'
9367 archive_cmds_need_lc=no
9368 hardcode_shlibpath_var=no
9369 runpath_var='LD_RUN_PATH'
9370
9371 if test "$GCC" = yes; then
9372 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 else
9375 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 fi
9378 ;;
9379
9380 sysv5* | sco3.2v5* | sco5v6*)
9381 # Note: We can NOT use -z defs as we might desire, because we do not
9382 # link with -lc, and that would cause any symbols used from libc to
9383 # always be unresolved, which means just about no library would
9384 # ever link correctly. If we're not using GNU ld we use -z text
9385 # though, which does catch some bad symbols but isn't as heavy-handed
9386 # as -z defs.
9387 no_undefined_flag='${wl}-z,text'
9388 allow_undefined_flag='${wl}-z,nodefs'
9389 archive_cmds_need_lc=no
9390 hardcode_shlibpath_var=no
9391 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9392 hardcode_libdir_separator=':'
9393 link_all_deplibs=yes
9394 export_dynamic_flag_spec='${wl}-Bexport'
9395 runpath_var='LD_RUN_PATH'
9396
9397 if test "$GCC" = yes; then
9398 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 else
9401 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 fi
9404 ;;
9405
9406 uts4*)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_shlibpath_var=no
9410 ;;
9411
9412 *)
9413 ld_shlibs=no
9414 ;;
9415 esac
9416
9417 if test x$host_vendor = xsni; then
9418 case $host in
9419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9420 export_dynamic_flag_spec='${wl}-Blargedynsym'
9421 ;;
9422 esac
9423 fi
9424 fi
9425
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9427 $as_echo "$ld_shlibs" >&6; }
9428 test "$ld_shlibs" = no && can_build_shared=no
9429
9430 with_gnu_ld=$with_gnu_ld
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446 #
9447 # Do we need to explicitly link libc?
9448 #
9449 case "x$archive_cmds_need_lc" in
9450 x|xyes)
9451 # Assume -lc should be added
9452 archive_cmds_need_lc=yes
9453
9454 if test "$enable_shared" = yes && test "$GCC" = yes; then
9455 case $archive_cmds in
9456 *'~'*)
9457 # FIXME: we may have to deal with multi-command sequences.
9458 ;;
9459 '$CC '*)
9460 # Test whether the compiler implicitly links with -lc since on some
9461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9462 # to ld, don't add -lc before -lgcc.
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9465 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 $RM conftest*
9469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9470
9471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9472 (eval $ac_compile) 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9475 test $ac_status = 0; } 2>conftest.err; then
9476 soname=conftest
9477 lib=conftest
9478 libobjs=conftest.$ac_objext
9479 deplibs=
9480 wl=$lt_prog_compiler_wl
9481 pic_flag=$lt_prog_compiler_pic
9482 compiler_flags=-v
9483 linker_flags=-v
9484 verstring=
9485 output_objdir=.
9486 libname=conftest
9487 lt_save_allow_undefined_flag=$allow_undefined_flag
9488 allow_undefined_flag=
9489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9490 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9491 ac_status=$?
9492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9493 test $ac_status = 0; }
9494 then
9495 lt_cv_archive_cmds_need_lc=no
9496 else
9497 lt_cv_archive_cmds_need_lc=yes
9498 fi
9499 allow_undefined_flag=$lt_save_allow_undefined_flag
9500 else
9501 cat conftest.err 1>&5
9502 fi
9503 $RM conftest*
9504
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9508 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9509 ;;
9510 esac
9511 fi
9512 ;;
9513 esac
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9673
9674 if test "$GCC" = yes; then
9675 case $host_os in
9676 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9677 *) lt_awk_arg="/^libraries:/" ;;
9678 esac
9679 case $host_os in
9680 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9681 *) lt_sed_strip_eq="s,=/,/,g" ;;
9682 esac
9683 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9684 case $lt_search_path_spec in
9685 *\;*)
9686 # if the path contains ";" then we assume it to be the separator
9687 # otherwise default to the standard path separator (i.e. ":") - it is
9688 # assumed that no part of a normal pathname contains ";" but that should
9689 # okay in the real world where ";" in dirpaths is itself problematic.
9690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9691 ;;
9692 *)
9693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9694 ;;
9695 esac
9696 # Ok, now we have the path, separated by spaces, we can step through it
9697 # and add multilib dir if necessary.
9698 lt_tmp_lt_search_path_spec=
9699 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9700 for lt_sys_path in $lt_search_path_spec; do
9701 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9703 else
9704 test -d "$lt_sys_path" && \
9705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9706 fi
9707 done
9708 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9709 BEGIN {RS=" "; FS="/|\n";} {
9710 lt_foo="";
9711 lt_count=0;
9712 for (lt_i = NF; lt_i > 0; lt_i--) {
9713 if ($lt_i != "" && $lt_i != ".") {
9714 if ($lt_i == "..") {
9715 lt_count++;
9716 } else {
9717 if (lt_count == 0) {
9718 lt_foo="/" $lt_i lt_foo;
9719 } else {
9720 lt_count--;
9721 }
9722 }
9723 }
9724 }
9725 if (lt_foo != "") { lt_freq[lt_foo]++; }
9726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9727 }'`
9728 # AWK program above erroneously prepends '/' to C:/dos/paths
9729 # for these hosts.
9730 case $host_os in
9731 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9732 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9733 esac
9734 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9735 else
9736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9737 fi
9738 library_names_spec=
9739 libname_spec='lib$name'
9740 soname_spec=
9741 shrext_cmds=".so"
9742 postinstall_cmds=
9743 postuninstall_cmds=
9744 finish_cmds=
9745 finish_eval=
9746 shlibpath_var=
9747 shlibpath_overrides_runpath=unknown
9748 version_type=none
9749 dynamic_linker="$host_os ld.so"
9750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9751 need_lib_prefix=unknown
9752 hardcode_into_libs=no
9753
9754 # when you set need_version to no, make sure it does not cause -set_version
9755 # flags to be left without arguments
9756 need_version=unknown
9757
9758 case $host_os in
9759 aix3*)
9760 version_type=linux
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9762 shlibpath_var=LIBPATH
9763
9764 # AIX 3 has no versioning support, so we append a major version to the name.
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 ;;
9767
9768 aix[4-9]*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 hardcode_into_libs=yes
9773 if test "$host_cpu" = ia64; then
9774 # AIX 5 supports IA64
9775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 else
9778 # With GCC up to 2.95.x, collect2 would create an import file
9779 # for dependence libraries. The import file would start with
9780 # the line `#! .'. This would cause the generated library to
9781 # depend on `.', always an invalid library. This was fixed in
9782 # development snapshots of GCC prior to 3.0.
9783 case $host_os in
9784 aix4 | aix4.[01] | aix4.[01].*)
9785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9786 echo ' yes '
9787 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9788 :
9789 else
9790 can_build_shared=no
9791 fi
9792 ;;
9793 esac
9794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9795 # soname into executable. Probably we can add versioning support to
9796 # collect2, so additional links can be useful in future.
9797 if test "$aix_use_runtimelinking" = yes; then
9798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9799 # instead of lib<name>.a to let people know that these are not
9800 # typical AIX shared libraries.
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 else
9803 # We preserve .a as extension for shared libraries through AIX4.2
9804 # and later when we are not doing run time linking.
9805 library_names_spec='${libname}${release}.a $libname.a'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 fi
9808 shlibpath_var=LIBPATH
9809 fi
9810 ;;
9811
9812 amigaos*)
9813 case $host_cpu in
9814 powerpc)
9815 # Since July 2007 AmigaOS4 officially supports .so libraries.
9816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 ;;
9819 m68k)
9820 library_names_spec='$libname.ixlibrary $libname.a'
9821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9822 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'
9823 ;;
9824 esac
9825 ;;
9826
9827 beos*)
9828 library_names_spec='${libname}${shared_ext}'
9829 dynamic_linker="$host_os ld.so"
9830 shlibpath_var=LIBRARY_PATH
9831 ;;
9832
9833 bsdi[45]*)
9834 version_type=linux
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9842 # the default ld.so.conf also contains /usr/contrib/lib and
9843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9844 # libtool to hard-code these into programs
9845 ;;
9846
9847 cygwin* | mingw* | pw32* | cegcc*)
9848 version_type=windows
9849 shrext_cmds=".dll"
9850 need_version=no
9851 need_lib_prefix=no
9852
9853 case $GCC,$host_os in
9854 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9855 library_names_spec='$libname.dll.a'
9856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9857 postinstall_cmds='base_file=`basename \${file}`~
9858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9859 dldir=$destdir/`dirname \$dlpath`~
9860 test -d \$dldir || mkdir -p \$dldir~
9861 $install_prog $dir/$dlname \$dldir/$dlname~
9862 chmod a+x \$dldir/$dlname~
9863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9865 fi'
9866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9867 dlpath=$dir/\$dldll~
9868 $RM \$dlpath'
9869 shlibpath_overrides_runpath=yes
9870
9871 case $host_os in
9872 cygwin*)
9873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875
9876 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9877 ;;
9878 mingw* | cegcc*)
9879 # MinGW DLLs use traditional 'lib' prefix
9880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881 ;;
9882 pw32*)
9883 # pw32 DLLs use 'pw' prefix rather than 'lib'
9884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9885 ;;
9886 esac
9887 ;;
9888
9889 *)
9890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9891 ;;
9892 esac
9893 dynamic_linker='Win32 ld.exe'
9894 # FIXME: first we should search . and the directory the executable is in
9895 shlibpath_var=PATH
9896 ;;
9897
9898 darwin* | rhapsody*)
9899 dynamic_linker="$host_os dyld"
9900 version_type=darwin
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9904 soname_spec='${libname}${release}${major}$shared_ext'
9905 shlibpath_overrides_runpath=yes
9906 shlibpath_var=DYLD_LIBRARY_PATH
9907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9908
9909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9911 ;;
9912
9913 dgux*)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 ;;
9921
9922 freebsd* | dragonfly*)
9923 # DragonFly does not have aout. When/if they implement a new
9924 # versioning mechanism, adjust this.
9925 if test -x /usr/bin/objformat; then
9926 objformat=`/usr/bin/objformat`
9927 else
9928 case $host_os in
9929 freebsd[23].*) objformat=aout ;;
9930 *) objformat=elf ;;
9931 esac
9932 fi
9933 version_type=freebsd-$objformat
9934 case $version_type in
9935 freebsd-elf*)
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937 need_version=no
9938 need_lib_prefix=no
9939 ;;
9940 freebsd-*)
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9942 need_version=yes
9943 ;;
9944 esac
9945 shlibpath_var=LD_LIBRARY_PATH
9946 case $host_os in
9947 freebsd2.*)
9948 shlibpath_overrides_runpath=yes
9949 ;;
9950 freebsd3.[01]* | freebsdelf3.[01]*)
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9953 ;;
9954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9956 shlibpath_overrides_runpath=no
9957 hardcode_into_libs=yes
9958 ;;
9959 *) # from 4.6 on, and DragonFly
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
9963 esac
9964 ;;
9965
9966 gnu*)
9967 version_type=linux
9968 need_lib_prefix=no
9969 need_version=no
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 hardcode_into_libs=yes
9974 ;;
9975
9976 haiku*)
9977 version_type=linux
9978 need_lib_prefix=no
9979 need_version=no
9980 dynamic_linker="$host_os runtime_loader"
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 shlibpath_var=LIBRARY_PATH
9984 shlibpath_overrides_runpath=yes
9985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9986 hardcode_into_libs=yes
9987 ;;
9988
9989 hpux9* | hpux10* | hpux11*)
9990 # Give a soname corresponding to the major version so that dld.sl refuses to
9991 # link against other versions.
9992 version_type=sunos
9993 need_lib_prefix=no
9994 need_version=no
9995 case $host_cpu in
9996 ia64*)
9997 shrext_cmds='.so'
9998 hardcode_into_libs=yes
9999 dynamic_linker="$host_os dld.so"
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 if test "X$HPUX_IA64_MODE" = X32; then
10005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10006 else
10007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10008 fi
10009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10010 ;;
10011 hppa*64*)
10012 shrext_cmds='.sl'
10013 hardcode_into_libs=yes
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10021 ;;
10022 *)
10023 shrext_cmds='.sl'
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=SHLIB_PATH
10026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 ;;
10030 esac
10031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10032 postinstall_cmds='chmod 555 $lib'
10033 # or fails outright, so override atomically:
10034 install_override_mode=555
10035 ;;
10036
10037 interix[3-9]*)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=no
10046 hardcode_into_libs=yes
10047 ;;
10048
10049 irix5* | irix6* | nonstopux*)
10050 case $host_os in
10051 nonstopux*) version_type=nonstopux ;;
10052 *)
10053 if test "$lt_cv_prog_gnu_ld" = yes; then
10054 version_type=linux
10055 else
10056 version_type=irix
10057 fi ;;
10058 esac
10059 need_lib_prefix=no
10060 need_version=no
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 case $host_os in
10064 irix5* | nonstopux*)
10065 libsuff= shlibsuff=
10066 ;;
10067 *)
10068 case $LD in # libtool.m4 will add one of these switches to LD
10069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10070 libsuff= shlibsuff= libmagic=32-bit;;
10071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10072 libsuff=32 shlibsuff=N32 libmagic=N32;;
10073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10075 *) libsuff= shlibsuff= libmagic=never-match;;
10076 esac
10077 ;;
10078 esac
10079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10080 shlibpath_overrides_runpath=no
10081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10083 hardcode_into_libs=yes
10084 ;;
10085
10086 # No shared lib support for Linux oldld, aout, or coff.
10087 linux*oldld* | linux*aout* | linux*coff*)
10088 dynamic_linker=no
10089 ;;
10090
10091 # This must be Linux ELF.
10092
10093 # uclinux* changes (here and below) have been submitted to the libtool
10094 # project, but have not yet been accepted: they are GCC-local changes
10095 # for the time being. (See
10096 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10097 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10098 version_type=linux
10099 need_lib_prefix=no
10100 need_version=no
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106
10107 # Some binutils ld are patched to set DT_RUNPATH
10108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 lt_cv_shlibpath_overrides_runpath=no
10112 save_LDFLAGS=$LDFLAGS
10113 save_libdir=$libdir
10114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118
10119 int
10120 main ()
10121 {
10122
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10129 lt_cv_shlibpath_overrides_runpath=yes
10130 fi
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LDFLAGS=$save_LDFLAGS
10135 libdir=$save_libdir
10136
10137 fi
10138
10139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10140
10141 # This implies no fast_install, which is unacceptable.
10142 # Some rework will be needed to allow for fast_install
10143 # before this can be enabled.
10144 hardcode_into_libs=yes
10145
10146 # Append ld.so.conf contents to the search path
10147 if test -f /etc/ld.so.conf; then
10148 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' ' '`
10149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10150 fi
10151
10152 # We used to test for /lib/ld.so.1 and disable shared libraries on
10153 # powerpc, because MkLinux only supported shared libraries with the
10154 # GNU dynamic linker. Since this was broken with cross compilers,
10155 # most powerpc-linux boxes support dynamic linking these days and
10156 # people can always --disable-shared, the test was removed, and we
10157 # assume the GNU/Linux dynamic linker is in use.
10158 dynamic_linker='GNU/Linux ld.so'
10159 ;;
10160
10161 netbsd*)
10162 version_type=sunos
10163 need_lib_prefix=no
10164 need_version=no
10165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168 dynamic_linker='NetBSD (a.out) ld.so'
10169 else
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='NetBSD ld.elf_so'
10173 fi
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10177 ;;
10178
10179 newsos6)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10184 ;;
10185
10186 *nto* | *qnx*)
10187 version_type=qnx
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10194 hardcode_into_libs=yes
10195 dynamic_linker='ldqnx.so'
10196 ;;
10197
10198 openbsd*)
10199 version_type=sunos
10200 sys_lib_dlsearch_path_spec="/usr/lib"
10201 need_lib_prefix=no
10202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10203 case $host_os in
10204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10205 *) need_version=no ;;
10206 esac
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10211 case $host_os in
10212 openbsd2.[89] | openbsd2.[89].*)
10213 shlibpath_overrides_runpath=no
10214 ;;
10215 *)
10216 shlibpath_overrides_runpath=yes
10217 ;;
10218 esac
10219 else
10220 shlibpath_overrides_runpath=yes
10221 fi
10222 ;;
10223
10224 os2*)
10225 libname_spec='$name'
10226 shrext_cmds=".dll"
10227 need_lib_prefix=no
10228 library_names_spec='$libname${shared_ext} $libname.a'
10229 dynamic_linker='OS/2 ld.exe'
10230 shlibpath_var=LIBPATH
10231 ;;
10232
10233 osf3* | osf4* | osf5*)
10234 version_type=osf
10235 need_lib_prefix=no
10236 need_version=no
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10242 ;;
10243
10244 rdos*)
10245 dynamic_linker=no
10246 ;;
10247
10248 solaris*)
10249 version_type=linux
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 # ldd complains unless libraries are executable
10258 postinstall_cmds='chmod +x $lib'
10259 ;;
10260
10261 sunos4*)
10262 version_type=sunos
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 if test "$with_gnu_ld" = yes; then
10268 need_lib_prefix=no
10269 fi
10270 need_version=yes
10271 ;;
10272
10273 sysv4 | sysv4.3*)
10274 version_type=linux
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 case $host_vendor in
10279 sni)
10280 shlibpath_overrides_runpath=no
10281 need_lib_prefix=no
10282 runpath_var=LD_RUN_PATH
10283 ;;
10284 siemens)
10285 need_lib_prefix=no
10286 ;;
10287 motorola)
10288 need_lib_prefix=no
10289 need_version=no
10290 shlibpath_overrides_runpath=no
10291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10292 ;;
10293 esac
10294 ;;
10295
10296 sysv4*MP*)
10297 if test -d /usr/nec ;then
10298 version_type=linux
10299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10300 soname_spec='$libname${shared_ext}.$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 fi
10303 ;;
10304
10305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10306 version_type=freebsd-elf
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 if test "$with_gnu_ld" = yes; then
10315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10316 else
10317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10318 case $host_os in
10319 sco3.2v5*)
10320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10321 ;;
10322 esac
10323 fi
10324 sys_lib_dlsearch_path_spec='/usr/lib'
10325 ;;
10326
10327 tpf*)
10328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10329 version_type=linux
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10336 ;;
10337
10338 uts4*)
10339 version_type=linux
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 ;;
10344
10345 *)
10346 dynamic_linker=no
10347 ;;
10348 esac
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10350 $as_echo "$dynamic_linker" >&6; }
10351 test "$dynamic_linker" = no && can_build_shared=no
10352
10353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10354 if test "$GCC" = yes; then
10355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10356 fi
10357
10358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10360 fi
10361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10363 fi
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10457 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10458 hardcode_action=
10459 if test -n "$hardcode_libdir_flag_spec" ||
10460 test -n "$runpath_var" ||
10461 test "X$hardcode_automatic" = "Xyes" ; then
10462
10463 # We can hardcode non-existent directories.
10464 if test "$hardcode_direct" != no &&
10465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10466 # have to relink, otherwise we might link with an installed library
10467 # when we should be linking with a yet-to-be-installed one
10468 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10469 test "$hardcode_minus_L" != no; then
10470 # Linking always hardcodes the temporary library directory.
10471 hardcode_action=relink
10472 else
10473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10474 hardcode_action=immediate
10475 fi
10476 else
10477 # We cannot hardcode anything, or else we can only hardcode existing
10478 # directories.
10479 hardcode_action=unsupported
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10482 $as_echo "$hardcode_action" >&6; }
10483
10484 if test "$hardcode_action" = relink ||
10485 test "$inherit_rpath" = yes; then
10486 # Fast installation is not supported
10487 enable_fast_install=no
10488 elif test "$shlibpath_overrides_runpath" = yes ||
10489 test "$enable_shared" = no; then
10490 # Fast installation is not necessary
10491 enable_fast_install=needless
10492 fi
10493
10494
10495
10496
10497
10498
10499 if test "x$enable_dlopen" != xyes; then
10500 enable_dlopen=unknown
10501 enable_dlopen_self=unknown
10502 enable_dlopen_self_static=unknown
10503 else
10504 lt_cv_dlopen=no
10505 lt_cv_dlopen_libs=
10506
10507 case $host_os in
10508 beos*)
10509 lt_cv_dlopen="load_add_on"
10510 lt_cv_dlopen_libs=
10511 lt_cv_dlopen_self=yes
10512 ;;
10513
10514 mingw* | pw32* | cegcc*)
10515 lt_cv_dlopen="LoadLibrary"
10516 lt_cv_dlopen_libs=
10517 ;;
10518
10519 cygwin*)
10520 lt_cv_dlopen="dlopen"
10521 lt_cv_dlopen_libs=
10522 ;;
10523
10524 darwin*)
10525 # if libdl is installed we need to link against it
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10528 if ${ac_cv_lib_dl_dlopen+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl $LIBS"
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char dlopen ();
10543 int
10544 main ()
10545 {
10546 return dlopen ();
10547 ;
10548 return 0;
10549 }
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"; then :
10552 ac_cv_lib_dl_dlopen=yes
10553 else
10554 ac_cv_lib_dl_dlopen=no
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10564 else
10565
10566 lt_cv_dlopen="dyld"
10567 lt_cv_dlopen_libs=
10568 lt_cv_dlopen_self=yes
10569
10570 fi
10571
10572 ;;
10573
10574 *)
10575 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10576 if test "x$ac_cv_func_shl_load" = xyes; then :
10577 lt_cv_dlopen="shl_load"
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10581 if ${ac_cv_lib_dld_shl_load+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldld $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char shl_load ();
10596 int
10597 main ()
10598 {
10599 return shl_load ();
10600 ;
10601 return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_lib_dld_shl_load=yes
10606 else
10607 ac_cv_lib_dld_shl_load=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10616 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10617 else
10618 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10619 if test "x$ac_cv_func_dlopen" = xyes; then :
10620 lt_cv_dlopen="dlopen"
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10624 if ${ac_cv_lib_dl_dlopen+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 ac_check_lib_save_LIBS=$LIBS
10628 LIBS="-ldl $LIBS"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char dlopen ();
10639 int
10640 main ()
10641 {
10642 return dlopen ();
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 ac_cv_lib_dl_dlopen=yes
10649 else
10650 ac_cv_lib_dl_dlopen=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10663 if ${ac_cv_lib_svld_dlopen+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-lsvld $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dlopen ();
10678 int
10679 main ()
10680 {
10681 return dlopen ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_svld_dlopen=yes
10688 else
10689 ac_cv_lib_svld_dlopen=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10702 if ${ac_cv_lib_dld_dld_link+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-ldld $LIBS"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char dld_link ();
10717 int
10718 main ()
10719 {
10720 return dld_link ();
10721 ;
10722 return 0;
10723 }
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"; then :
10726 ac_cv_lib_dld_dld_link=yes
10727 else
10728 ac_cv_lib_dld_dld_link=no
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749
10750 fi
10751
10752
10753 fi
10754
10755 ;;
10756 esac
10757
10758 if test "x$lt_cv_dlopen" != xno; then
10759 enable_dlopen=yes
10760 else
10761 enable_dlopen=no
10762 fi
10763
10764 case $lt_cv_dlopen in
10765 dlopen)
10766 save_CPPFLAGS="$CPPFLAGS"
10767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10768
10769 save_LDFLAGS="$LDFLAGS"
10770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10771
10772 save_LIBS="$LIBS"
10773 LIBS="$lt_cv_dlopen_libs $LIBS"
10774
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10777 if ${lt_cv_dlopen_self+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 if test "$cross_compiling" = yes; then :
10781 lt_cv_dlopen_self=cross
10782 else
10783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784 lt_status=$lt_dlunknown
10785 cat > conftest.$ac_ext <<_LT_EOF
10786 #line 10786 "configure"
10787 #include "confdefs.h"
10788
10789 #if HAVE_DLFCN_H
10790 #include <dlfcn.h>
10791 #endif
10792
10793 #include <stdio.h>
10794
10795 #ifdef RTLD_GLOBAL
10796 # define LT_DLGLOBAL RTLD_GLOBAL
10797 #else
10798 # ifdef DL_GLOBAL
10799 # define LT_DLGLOBAL DL_GLOBAL
10800 # else
10801 # define LT_DLGLOBAL 0
10802 # endif
10803 #endif
10804
10805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10806 find out it does not work in some platform. */
10807 #ifndef LT_DLLAZY_OR_NOW
10808 # ifdef RTLD_LAZY
10809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10810 # else
10811 # ifdef DL_LAZY
10812 # define LT_DLLAZY_OR_NOW DL_LAZY
10813 # else
10814 # ifdef RTLD_NOW
10815 # define LT_DLLAZY_OR_NOW RTLD_NOW
10816 # else
10817 # ifdef DL_NOW
10818 # define LT_DLLAZY_OR_NOW DL_NOW
10819 # else
10820 # define LT_DLLAZY_OR_NOW 0
10821 # endif
10822 # endif
10823 # endif
10824 # endif
10825 #endif
10826
10827 /* When -fvisbility=hidden is used, assume the code has been annotated
10828 correspondingly for the symbols needed. */
10829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10830 void fnord () __attribute__((visibility("default")));
10831 #endif
10832
10833 void fnord () { int i=42; }
10834 int main ()
10835 {
10836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10837 int status = $lt_dlunknown;
10838
10839 if (self)
10840 {
10841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10842 else
10843 {
10844 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845 else puts (dlerror ());
10846 }
10847 /* dlclose (self); */
10848 }
10849 else
10850 puts (dlerror ());
10851
10852 return status;
10853 }
10854 _LT_EOF
10855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10856 (eval $ac_link) 2>&5
10857 ac_status=$?
10858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10859 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10860 (./conftest; exit; ) >&5 2>/dev/null
10861 lt_status=$?
10862 case x$lt_status in
10863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10865 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10866 esac
10867 else :
10868 # compilation failed
10869 lt_cv_dlopen_self=no
10870 fi
10871 fi
10872 rm -fr conftest*
10873
10874
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10877 $as_echo "$lt_cv_dlopen_self" >&6; }
10878
10879 if test "x$lt_cv_dlopen_self" = xyes; then
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10882 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10883 if ${lt_cv_dlopen_self_static+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test "$cross_compiling" = yes; then :
10887 lt_cv_dlopen_self_static=cross
10888 else
10889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890 lt_status=$lt_dlunknown
10891 cat > conftest.$ac_ext <<_LT_EOF
10892 #line 10892 "configure"
10893 #include "confdefs.h"
10894
10895 #if HAVE_DLFCN_H
10896 #include <dlfcn.h>
10897 #endif
10898
10899 #include <stdio.h>
10900
10901 #ifdef RTLD_GLOBAL
10902 # define LT_DLGLOBAL RTLD_GLOBAL
10903 #else
10904 # ifdef DL_GLOBAL
10905 # define LT_DLGLOBAL DL_GLOBAL
10906 # else
10907 # define LT_DLGLOBAL 0
10908 # endif
10909 #endif
10910
10911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912 find out it does not work in some platform. */
10913 #ifndef LT_DLLAZY_OR_NOW
10914 # ifdef RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10916 # else
10917 # ifdef DL_LAZY
10918 # define LT_DLLAZY_OR_NOW DL_LAZY
10919 # else
10920 # ifdef RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW RTLD_NOW
10922 # else
10923 # ifdef DL_NOW
10924 # define LT_DLLAZY_OR_NOW DL_NOW
10925 # else
10926 # define LT_DLLAZY_OR_NOW 0
10927 # endif
10928 # endif
10929 # endif
10930 # endif
10931 #endif
10932
10933 /* When -fvisbility=hidden is used, assume the code has been annotated
10934 correspondingly for the symbols needed. */
10935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10936 void fnord () __attribute__((visibility("default")));
10937 #endif
10938
10939 void fnord () { int i=42; }
10940 int main ()
10941 {
10942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10943 int status = $lt_dlunknown;
10944
10945 if (self)
10946 {
10947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10948 else
10949 {
10950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10951 else puts (dlerror ());
10952 }
10953 /* dlclose (self); */
10954 }
10955 else
10956 puts (dlerror ());
10957
10958 return status;
10959 }
10960 _LT_EOF
10961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10962 (eval $ac_link) 2>&5
10963 ac_status=$?
10964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10966 (./conftest; exit; ) >&5 2>/dev/null
10967 lt_status=$?
10968 case x$lt_status in
10969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10971 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10972 esac
10973 else :
10974 # compilation failed
10975 lt_cv_dlopen_self_static=no
10976 fi
10977 fi
10978 rm -fr conftest*
10979
10980
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10984 fi
10985
10986 CPPFLAGS="$save_CPPFLAGS"
10987 LDFLAGS="$save_LDFLAGS"
10988 LIBS="$save_LIBS"
10989 ;;
10990 esac
10991
10992 case $lt_cv_dlopen_self in
10993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10994 *) enable_dlopen_self=unknown ;;
10995 esac
10996
10997 case $lt_cv_dlopen_self_static in
10998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10999 *) enable_dlopen_self_static=unknown ;;
11000 esac
11001 fi
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 striplib=
11020 old_striplib=
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11022 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11023 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028 else
11029 # FIXME - insert some real tests, host_os isn't really good enough
11030 case $host_os in
11031 darwin*)
11032 if test -n "$STRIP" ; then
11033 striplib="$STRIP -x"
11034 old_striplib="$STRIP -S"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 fi
11041 ;;
11042 *)
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 ;;
11046 esac
11047 fi
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 # Report which library types will actually be built
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11062 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11064 $as_echo "$can_build_shared" >&6; }
11065
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11067 $as_echo_n "checking whether to build shared libraries... " >&6; }
11068 test "$can_build_shared" = "no" && enable_shared=no
11069
11070 # On AIX, shared libraries and static libraries use the same namespace, and
11071 # are all built from PIC.
11072 case $host_os in
11073 aix3*)
11074 test "$enable_shared" = yes && enable_static=no
11075 if test -n "$RANLIB"; then
11076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11077 postinstall_cmds='$RANLIB $lib'
11078 fi
11079 ;;
11080
11081 aix[4-9]*)
11082 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11083 test "$enable_shared" = yes && enable_static=no
11084 fi
11085 ;;
11086 esac
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11088 $as_echo "$enable_shared" >&6; }
11089
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11091 $as_echo_n "checking whether to build static libraries... " >&6; }
11092 # Make sure either enable_shared or enable_static is yes.
11093 test "$enable_shared" = yes || enable_static=yes
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11095 $as_echo "$enable_static" >&6; }
11096
11097
11098
11099
11100 fi
11101 ac_ext=c
11102 ac_cpp='$CPP $CPPFLAGS'
11103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11106
11107 CC="$lt_save_CC"
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121 ac_config_commands="$ac_config_commands libtool"
11122
11123
11124
11125
11126 # Only expand once:
11127
11128
11129
11130 ac_ext=cpp
11131 ac_cpp='$CXXCPP $CPPFLAGS'
11132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11135 if test -z "$CXX"; then
11136 if test -n "$CCC"; then
11137 CXX=$CCC
11138 else
11139 if test -n "$ac_tool_prefix"; then
11140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11141 do
11142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_prog_CXX+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 if test -n "$CXX"; then
11150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11151 else
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11154 do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11162 fi
11163 done
11164 done
11165 IFS=$as_save_IFS
11166
11167 fi
11168 fi
11169 CXX=$ac_cv_prog_CXX
11170 if test -n "$CXX"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11172 $as_echo "$CXX" >&6; }
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176 fi
11177
11178
11179 test -n "$CXX" && break
11180 done
11181 fi
11182 if test -z "$CXX"; then
11183 ac_ct_CXX=$CXX
11184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11185 do
11186 # Extract the first word of "$ac_prog", so it can be a program name with args.
11187 set dummy $ac_prog; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test -n "$ac_ct_CXX"; then
11194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11198 do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203 ac_cv_prog_ac_ct_CXX="$ac_prog"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11206 fi
11207 done
11208 done
11209 IFS=$as_save_IFS
11210
11211 fi
11212 fi
11213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11214 if test -n "$ac_ct_CXX"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11216 $as_echo "$ac_ct_CXX" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 fi
11221
11222
11223 test -n "$ac_ct_CXX" && break
11224 done
11225
11226 if test "x$ac_ct_CXX" = x; then
11227 CXX="g++"
11228 else
11229 case $cross_compiling:$ac_tool_warned in
11230 yes:)
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11233 ac_tool_warned=yes ;;
11234 esac
11235 CXX=$ac_ct_CXX
11236 fi
11237 fi
11238
11239 fi
11240 fi
11241 # Provide some information about the compiler.
11242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11243 set X $ac_compile
11244 ac_compiler=$2
11245 for ac_option in --version -v -V -qversion; do
11246 { { ac_try="$ac_compiler $ac_option >&5"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11252 $as_echo "$ac_try_echo"; } >&5
11253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11254 ac_status=$?
11255 if test -s conftest.err; then
11256 sed '10a\
11257 ... rest of stderr output deleted ...
11258 10q' conftest.err >conftest.er1
11259 cat conftest.er1 >&5
11260 fi
11261 rm -f conftest.er1 conftest.err
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; }
11264 done
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273
11274 int
11275 main ()
11276 {
11277 #ifndef __GNUC__
11278 choke me
11279 #endif
11280
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_cxx_try_compile "$LINENO"; then :
11286 ac_compiler_gnu=yes
11287 else
11288 ac_compiler_gnu=no
11289 fi
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11292
11293 fi
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11296 if test $ac_compiler_gnu = yes; then
11297 GXX=yes
11298 else
11299 GXX=
11300 fi
11301 ac_test_CXXFLAGS=${CXXFLAGS+set}
11302 ac_save_CXXFLAGS=$CXXFLAGS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11305 if ${ac_cv_prog_cxx_g+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11309 ac_cxx_werror_flag=yes
11310 ac_cv_prog_cxx_g=no
11311 CXXFLAGS="-g"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314
11315 int
11316 main ()
11317 {
11318
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_cxx_try_compile "$LINENO"; then :
11324 ac_cv_prog_cxx_g=yes
11325 else
11326 CXXFLAGS=""
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329
11330 int
11331 main ()
11332 {
11333
11334 ;
11335 return 0;
11336 }
11337 _ACEOF
11338 if ac_fn_cxx_try_compile "$LINENO"; then :
11339
11340 else
11341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11342 CXXFLAGS="-g"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 int
11347 main ()
11348 {
11349
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_cxx_try_compile "$LINENO"; then :
11355 ac_cv_prog_cxx_g=yes
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11366 if test "$ac_test_CXXFLAGS" = set; then
11367 CXXFLAGS=$ac_save_CXXFLAGS
11368 elif test $ac_cv_prog_cxx_g = yes; then
11369 if test "$GXX" = yes; then
11370 CXXFLAGS="-g -O2"
11371 else
11372 CXXFLAGS="-g"
11373 fi
11374 else
11375 if test "$GXX" = yes; then
11376 CXXFLAGS="-O2"
11377 else
11378 CXXFLAGS=
11379 fi
11380 fi
11381 ac_ext=c
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11386
11387 depcc="$CXX" am_compiler_list=
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11390 $as_echo_n "checking dependency style of $depcc... " >&6; }
11391 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11395 # We make a subdir and do the tests there. Otherwise we can end up
11396 # making bogus files that we don't know about and never remove. For
11397 # instance it was reported that on HP-UX the gcc test will end up
11398 # making a dummy file named 'D' -- because '-MD' means "put the output
11399 # in D".
11400 rm -rf conftest.dir
11401 mkdir conftest.dir
11402 # Copy depcomp to subdir because otherwise we won't find it if we're
11403 # using a relative directory.
11404 cp "$am_depcomp" conftest.dir
11405 cd conftest.dir
11406 # We will build objects and dependencies in a subdirectory because
11407 # it helps to detect inapplicable dependency modes. For instance
11408 # both Tru64's cc and ICC support -MD to output dependencies as a
11409 # side effect of compilation, but ICC will put the dependencies in
11410 # the current directory while Tru64 will put them in the object
11411 # directory.
11412 mkdir sub
11413
11414 am_cv_CXX_dependencies_compiler_type=none
11415 if test "$am_compiler_list" = ""; then
11416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11417 fi
11418 am__universal=false
11419 case " $depcc " in #(
11420 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11421 esac
11422
11423 for depmode in $am_compiler_list; do
11424 # Setup a source with many dependencies, because some compilers
11425 # like to wrap large dependency lists on column 80 (with \), and
11426 # we should not choose a depcomp mode which is confused by this.
11427 #
11428 # We need to recreate these files for each test, as the compiler may
11429 # overwrite some of them when testing with obscure command lines.
11430 # This happens at least with the AIX C compiler.
11431 : > sub/conftest.c
11432 for i in 1 2 3 4 5 6; do
11433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11435 # Solaris 10 /bin/sh.
11436 echo '/* dummy */' > sub/conftst$i.h
11437 done
11438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11439
11440 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11441 # mode. It turns out that the SunPro C++ compiler does not properly
11442 # handle '-M -o', and we need to detect this. Also, some Intel
11443 # versions had trouble with output in subdirs.
11444 am__obj=sub/conftest.${OBJEXT-o}
11445 am__minus_obj="-o $am__obj"
11446 case $depmode in
11447 gcc)
11448 # This depmode causes a compiler race in universal mode.
11449 test "$am__universal" = false || continue
11450 ;;
11451 nosideeffect)
11452 # After this tag, mechanisms are not by side-effect, so they'll
11453 # only be used when explicitly requested.
11454 if test "x$enable_dependency_tracking" = xyes; then
11455 continue
11456 else
11457 break
11458 fi
11459 ;;
11460 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11461 # This compiler won't grok '-c -o', but also, the minuso test has
11462 # not run yet. These depmodes are late enough in the game, and
11463 # so weak that their functioning should not be impacted.
11464 am__obj=conftest.${OBJEXT-o}
11465 am__minus_obj=
11466 ;;
11467 none) break ;;
11468 esac
11469 if depmode=$depmode \
11470 source=sub/conftest.c object=$am__obj \
11471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11473 >/dev/null 2>conftest.err &&
11474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11478 # icc doesn't choke on unknown options, it will just issue warnings
11479 # or remarks (even with -Werror). So we grep stderr for any message
11480 # that says an option was ignored or not supported.
11481 # When given -MP, icc 7.0 and 7.1 complain thusly:
11482 # icc: Command line warning: ignoring option '-M'; no argument required
11483 # The diagnosis changed in icc 8.0:
11484 # icc: Command line remark: option '-MP' not supported
11485 if (grep 'ignoring option' conftest.err ||
11486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11487 am_cv_CXX_dependencies_compiler_type=$depmode
11488 break
11489 fi
11490 fi
11491 done
11492
11493 cd ..
11494 rm -rf conftest.dir
11495 else
11496 am_cv_CXX_dependencies_compiler_type=none
11497 fi
11498
11499 fi
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11501 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11502 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11503
11504 if
11505 test "x$enable_dependency_tracking" != xno \
11506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11507 am__fastdepCXX_TRUE=
11508 am__fastdepCXX_FALSE='#'
11509 else
11510 am__fastdepCXX_TRUE='#'
11511 am__fastdepCXX_FALSE=
11512 fi
11513
11514
11515 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11516 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11517 (test "X$CXX" != "Xg++"))) ; then
11518 ac_ext=cpp
11519 ac_cpp='$CXXCPP $CPPFLAGS'
11520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11524 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11525 if test -z "$CXXCPP"; then
11526 if ${ac_cv_prog_CXXCPP+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 # Double quotes because CXXCPP needs to be expanded
11530 for CXXCPP in "$CXX -E" "/lib/cpp"
11531 do
11532 ac_preproc_ok=false
11533 for ac_cxx_preproc_warn_flag in '' yes
11534 do
11535 # Use a header file that comes with gcc, so configuring glibc
11536 # with a fresh cross-compiler works.
11537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 # <limits.h> exists even on freestanding compilers.
11539 # On the NeXT, cc -E runs the code through the compiler's parser,
11540 # not just through cpp. "Syntax error" is here to catch this case.
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11548 Syntax error
11549 _ACEOF
11550 if ac_fn_cxx_try_cpp "$LINENO"; then :
11551
11552 else
11553 # Broken: fails on valid input.
11554 continue
11555 fi
11556 rm -f conftest.err conftest.i conftest.$ac_ext
11557
11558 # OK, works on sane cases. Now check whether nonexistent headers
11559 # can be detected and how.
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #include <ac_nonexistent.h>
11563 _ACEOF
11564 if ac_fn_cxx_try_cpp "$LINENO"; then :
11565 # Broken: success on invalid input.
11566 continue
11567 else
11568 # Passes both tests.
11569 ac_preproc_ok=:
11570 break
11571 fi
11572 rm -f conftest.err conftest.i conftest.$ac_ext
11573
11574 done
11575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11576 rm -f conftest.i conftest.err conftest.$ac_ext
11577 if $ac_preproc_ok; then :
11578 break
11579 fi
11580
11581 done
11582 ac_cv_prog_CXXCPP=$CXXCPP
11583
11584 fi
11585 CXXCPP=$ac_cv_prog_CXXCPP
11586 else
11587 ac_cv_prog_CXXCPP=$CXXCPP
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11590 $as_echo "$CXXCPP" >&6; }
11591 ac_preproc_ok=false
11592 for ac_cxx_preproc_warn_flag in '' yes
11593 do
11594 # Use a header file that comes with gcc, so configuring glibc
11595 # with a fresh cross-compiler works.
11596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597 # <limits.h> exists even on freestanding compilers.
11598 # On the NeXT, cc -E runs the code through the compiler's parser,
11599 # not just through cpp. "Syntax error" is here to catch this case.
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11602 #ifdef __STDC__
11603 # include <limits.h>
11604 #else
11605 # include <assert.h>
11606 #endif
11607 Syntax error
11608 _ACEOF
11609 if ac_fn_cxx_try_cpp "$LINENO"; then :
11610
11611 else
11612 # Broken: fails on valid input.
11613 continue
11614 fi
11615 rm -f conftest.err conftest.i conftest.$ac_ext
11616
11617 # OK, works on sane cases. Now check whether nonexistent headers
11618 # can be detected and how.
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 #include <ac_nonexistent.h>
11622 _ACEOF
11623 if ac_fn_cxx_try_cpp "$LINENO"; then :
11624 # Broken: success on invalid input.
11625 continue
11626 else
11627 # Passes both tests.
11628 ac_preproc_ok=:
11629 break
11630 fi
11631 rm -f conftest.err conftest.i conftest.$ac_ext
11632
11633 done
11634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11635 rm -f conftest.i conftest.err conftest.$ac_ext
11636 if $ac_preproc_ok; then :
11637
11638 else
11639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11641 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11642 See \`config.log' for more details" "$LINENO" 5; }
11643 fi
11644
11645 ac_ext=c
11646 ac_cpp='$CPP $CPPFLAGS'
11647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11650
11651 else
11652 _lt_caught_CXX_error=yes
11653 fi
11654
11655 ac_ext=cpp
11656 ac_cpp='$CXXCPP $CPPFLAGS'
11657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11660
11661 archive_cmds_need_lc_CXX=no
11662 allow_undefined_flag_CXX=
11663 always_export_symbols_CXX=no
11664 archive_expsym_cmds_CXX=
11665 compiler_needs_object_CXX=no
11666 export_dynamic_flag_spec_CXX=
11667 hardcode_direct_CXX=no
11668 hardcode_direct_absolute_CXX=no
11669 hardcode_libdir_flag_spec_CXX=
11670 hardcode_libdir_flag_spec_ld_CXX=
11671 hardcode_libdir_separator_CXX=
11672 hardcode_minus_L_CXX=no
11673 hardcode_shlibpath_var_CXX=unsupported
11674 hardcode_automatic_CXX=no
11675 inherit_rpath_CXX=no
11676 module_cmds_CXX=
11677 module_expsym_cmds_CXX=
11678 link_all_deplibs_CXX=unknown
11679 old_archive_cmds_CXX=$old_archive_cmds
11680 reload_flag_CXX=$reload_flag
11681 reload_cmds_CXX=$reload_cmds
11682 no_undefined_flag_CXX=
11683 whole_archive_flag_spec_CXX=
11684 enable_shared_with_static_runtimes_CXX=no
11685
11686 # Source file extension for C++ test sources.
11687 ac_ext=cpp
11688
11689 # Object file extension for compiled C++ test sources.
11690 objext=o
11691 objext_CXX=$objext
11692
11693 # No sense in running all these tests if we already determined that
11694 # the CXX compiler isn't working. Some variables (like enable_shared)
11695 # are currently assumed to apply to all compilers on this platform,
11696 # and will be corrupted by setting them based on a non-working compiler.
11697 if test "$_lt_caught_CXX_error" != yes; then
11698 # Code to be used in simple compile tests
11699 lt_simple_compile_test_code="int some_variable = 0;"
11700
11701 # Code to be used in simple link tests
11702 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11703
11704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11705
11706
11707
11708
11709
11710
11711 # If no C compiler was specified, use CC.
11712 LTCC=${LTCC-"$CC"}
11713
11714 # If no C compiler flags were specified, use CFLAGS.
11715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11716
11717 # Allow CC to be a program name with arguments.
11718 compiler=$CC
11719
11720
11721 # save warnings/boilerplate of simple test code
11722 ac_outfile=conftest.$ac_objext
11723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11725 _lt_compiler_boilerplate=`cat conftest.err`
11726 $RM conftest*
11727
11728 ac_outfile=conftest.$ac_objext
11729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11731 _lt_linker_boilerplate=`cat conftest.err`
11732 $RM -r conftest*
11733
11734
11735 # Allow CC to be a program name with arguments.
11736 lt_save_CC=$CC
11737 lt_save_LD=$LD
11738 lt_save_GCC=$GCC
11739 GCC=$GXX
11740 lt_save_with_gnu_ld=$with_gnu_ld
11741 lt_save_path_LD=$lt_cv_path_LD
11742 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11743 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11744 else
11745 $as_unset lt_cv_prog_gnu_ld
11746 fi
11747 if test -n "${lt_cv_path_LDCXX+set}"; then
11748 lt_cv_path_LD=$lt_cv_path_LDCXX
11749 else
11750 $as_unset lt_cv_path_LD
11751 fi
11752 test -z "${LDCXX+set}" || LD=$LDCXX
11753 CC=${CXX-"c++"}
11754 compiler=$CC
11755 compiler_CXX=$CC
11756 for cc_temp in $compiler""; do
11757 case $cc_temp in
11758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11760 \-*) ;;
11761 *) break;;
11762 esac
11763 done
11764 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11765
11766
11767 if test -n "$compiler"; then
11768 # We don't want -fno-exception when compiling C++ code, so set the
11769 # no_builtin_flag separately
11770 if test "$GXX" = yes; then
11771 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11772 else
11773 lt_prog_compiler_no_builtin_flag_CXX=
11774 fi
11775
11776 if test "$GXX" = yes; then
11777 # Set up default GNU C++ configuration
11778
11779
11780
11781 # Check whether --with-gnu-ld was given.
11782 if test "${with_gnu_ld+set}" = set; then :
11783 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11784 else
11785 with_gnu_ld=no
11786 fi
11787
11788 ac_prog=ld
11789 if test "$GCC" = yes; then
11790 # Check if gcc -print-prog-name=ld gives a path.
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11792 $as_echo_n "checking for ld used by $CC... " >&6; }
11793 case $host in
11794 *-*-mingw*)
11795 # gcc leaves a trailing carriage return which upsets mingw
11796 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11797 *)
11798 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11799 esac
11800 case $ac_prog in
11801 # Accept absolute paths.
11802 [\\/]* | ?:[\\/]*)
11803 re_direlt='/[^/][^/]*/\.\./'
11804 # Canonicalize the pathname of ld
11805 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11806 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11807 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11808 done
11809 test -z "$LD" && LD="$ac_prog"
11810 ;;
11811 "")
11812 # If it fails, then pretend we aren't using GCC.
11813 ac_prog=ld
11814 ;;
11815 *)
11816 # If it is relative, then search for the first ld in PATH.
11817 with_gnu_ld=unknown
11818 ;;
11819 esac
11820 elif test "$with_gnu_ld" = yes; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11822 $as_echo_n "checking for GNU ld... " >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11825 $as_echo_n "checking for non-GNU ld... " >&6; }
11826 fi
11827 if ${lt_cv_path_LD+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test -z "$LD"; then
11831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11832 for ac_dir in $PATH; do
11833 IFS="$lt_save_ifs"
11834 test -z "$ac_dir" && ac_dir=.
11835 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11836 lt_cv_path_LD="$ac_dir/$ac_prog"
11837 # Check to see if the program is GNU ld. I'd rather use --version,
11838 # but apparently some variants of GNU ld only accept -v.
11839 # Break only if it was the GNU/non-GNU ld that we prefer.
11840 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11841 *GNU* | *'with BFD'*)
11842 test "$with_gnu_ld" != no && break
11843 ;;
11844 *)
11845 test "$with_gnu_ld" != yes && break
11846 ;;
11847 esac
11848 fi
11849 done
11850 IFS="$lt_save_ifs"
11851 else
11852 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11853 fi
11854 fi
11855
11856 LD="$lt_cv_path_LD"
11857 if test -n "$LD"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11859 $as_echo "$LD" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11863 fi
11864 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11866 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11867 if ${lt_cv_prog_gnu_ld+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11871 case `$LD -v 2>&1 </dev/null` in
11872 *GNU* | *'with BFD'*)
11873 lt_cv_prog_gnu_ld=yes
11874 ;;
11875 *)
11876 lt_cv_prog_gnu_ld=no
11877 ;;
11878 esac
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11881 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11882 with_gnu_ld=$lt_cv_prog_gnu_ld
11883
11884
11885
11886
11887
11888
11889
11890 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11891 # archiving commands below assume that GNU ld is being used.
11892 if test "$with_gnu_ld" = yes; then
11893 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11895
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11898
11899 # If archive_cmds runs LD, not CC, wlarc should be empty
11900 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11901 # investigate it a little bit more. (MM)
11902 wlarc='${wl}'
11903
11904 # ancient GNU ld didn't support --whole-archive et. al.
11905 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11906 $GREP 'no-whole-archive' > /dev/null; then
11907 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11908 else
11909 whole_archive_flag_spec_CXX=
11910 fi
11911 else
11912 with_gnu_ld=no
11913 wlarc=
11914
11915 # A generic and very simple default shared library creation
11916 # command for GNU C++ for the case where it uses the native
11917 # linker, instead of GNU ld. If possible, this setting should
11918 # overridden to take advantage of the native linker features on
11919 # the platform it is being used on.
11920 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11921 fi
11922
11923 # Commands to make compiler produce verbose output that lists
11924 # what "hidden" libraries, object files and flags are used when
11925 # linking a shared library.
11926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11927
11928 else
11929 GXX=no
11930 with_gnu_ld=no
11931 wlarc=
11932 fi
11933
11934 # PORTME: fill in a description of your system's C++ link characteristics
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11936 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11937 ld_shlibs_CXX=yes
11938 case $host_os in
11939 aix3*)
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 aix[4-9]*)
11944 if test "$host_cpu" = ia64; then
11945 # On IA64, the linker does run time linking by default, so we don't
11946 # have to do anything special.
11947 aix_use_runtimelinking=no
11948 exp_sym_flag='-Bexport'
11949 no_entry_flag=""
11950 else
11951 aix_use_runtimelinking=no
11952
11953 # Test if we are trying to use run time linking or normal
11954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11955 # need to do runtime linking.
11956 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11957 for ld_flag in $LDFLAGS; do
11958 case $ld_flag in
11959 *-brtl*)
11960 aix_use_runtimelinking=yes
11961 break
11962 ;;
11963 esac
11964 done
11965 ;;
11966 esac
11967
11968 exp_sym_flag='-bexport'
11969 no_entry_flag='-bnoentry'
11970 fi
11971
11972 # When large executables or shared objects are built, AIX ld can
11973 # have problems creating the table of contents. If linking a library
11974 # or program results in "error TOC overflow" add -mminimal-toc to
11975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11977
11978 archive_cmds_CXX=''
11979 hardcode_direct_CXX=yes
11980 hardcode_direct_absolute_CXX=yes
11981 hardcode_libdir_separator_CXX=':'
11982 link_all_deplibs_CXX=yes
11983 file_list_spec_CXX='${wl}-f,'
11984
11985 if test "$GXX" = yes; then
11986 case $host_os in aix4.[012]|aix4.[012].*)
11987 # We only want to do this on AIX 4.2 and lower, the check
11988 # below for broken collect2 doesn't work under 4.3+
11989 collect2name=`${CC} -print-prog-name=collect2`
11990 if test -f "$collect2name" &&
11991 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11992 then
11993 # We have reworked collect2
11994 :
11995 else
11996 # We have old collect2
11997 hardcode_direct_CXX=unsupported
11998 # It fails to find uninstalled libraries when the uninstalled
11999 # path is not listed in the libpath. Setting hardcode_minus_L
12000 # to unsupported forces relinking
12001 hardcode_minus_L_CXX=yes
12002 hardcode_libdir_flag_spec_CXX='-L$libdir'
12003 hardcode_libdir_separator_CXX=
12004 fi
12005 esac
12006 shared_flag='-shared'
12007 if test "$aix_use_runtimelinking" = yes; then
12008 shared_flag="$shared_flag "'${wl}-G'
12009 fi
12010 else
12011 # not using gcc
12012 if test "$host_cpu" = ia64; then
12013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12014 # chokes on -Wl,-G. The following line is correct:
12015 shared_flag='-G'
12016 else
12017 if test "$aix_use_runtimelinking" = yes; then
12018 shared_flag='${wl}-G'
12019 else
12020 shared_flag='${wl}-bM:SRE'
12021 fi
12022 fi
12023 fi
12024
12025 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12026 # It seems that -bexpall does not export symbols beginning with
12027 # underscore (_), so it is better to generate a list of symbols to
12028 # export.
12029 always_export_symbols_CXX=yes
12030 if test "$aix_use_runtimelinking" = yes; then
12031 # Warning - without using the other runtime loading flags (-brtl),
12032 # -berok will link without error, but may produce a broken library.
12033 allow_undefined_flag_CXX='-berok'
12034 # Determine the default libpath from the value encoded in an empty
12035 # executable.
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038
12039 int
12040 main ()
12041 {
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_cxx_try_link "$LINENO"; then :
12048
12049 lt_aix_libpath_sed='
12050 /Import File Strings/,/^$/ {
12051 /^0/ {
12052 s/^0 *\(.*\)$/\1/
12053 p
12054 }
12055 }'
12056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12057 # Check for a 64-bit object if we didn't find anything.
12058 if test -z "$aix_libpath"; then
12059 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12060 fi
12061 fi
12062 rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12065
12066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12067
12068 archive_expsym_cmds_CXX='$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"
12069 else
12070 if test "$host_cpu" = ia64; then
12071 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12072 allow_undefined_flag_CXX="-z nodefs"
12073 archive_expsym_cmds_CXX="\$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"
12074 else
12075 # Determine the default libpath from the value encoded in an
12076 # empty executable.
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079
12080 int
12081 main ()
12082 {
12083
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_cxx_try_link "$LINENO"; then :
12089
12090 lt_aix_libpath_sed='
12091 /Import File Strings/,/^$/ {
12092 /^0/ {
12093 s/^0 *\(.*\)$/\1/
12094 p
12095 }
12096 }'
12097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12098 # Check for a 64-bit object if we didn't find anything.
12099 if test -z "$aix_libpath"; then
12100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12101 fi
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12106
12107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12108 # Warning - without using the other run time loading flags,
12109 # -berok will link without error, but may produce a broken library.
12110 no_undefined_flag_CXX=' ${wl}-bernotok'
12111 allow_undefined_flag_CXX=' ${wl}-berok'
12112 if test "$with_gnu_ld" = yes; then
12113 # We only use this code for GNU lds that support --whole-archive.
12114 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12115 else
12116 # Exported symbols can be pulled into shared objects from archives
12117 whole_archive_flag_spec_CXX='$convenience'
12118 fi
12119 archive_cmds_need_lc_CXX=yes
12120 # This is similar to how AIX traditionally builds its shared
12121 # libraries.
12122 archive_expsym_cmds_CXX="\$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'
12123 fi
12124 fi
12125 ;;
12126
12127 beos*)
12128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12129 allow_undefined_flag_CXX=unsupported
12130 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12131 # support --undefined. This deserves some investigation. FIXME
12132 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12133 else
12134 ld_shlibs_CXX=no
12135 fi
12136 ;;
12137
12138 chorus*)
12139 case $cc_basename in
12140 *)
12141 # FIXME: insert proper C++ library support
12142 ld_shlibs_CXX=no
12143 ;;
12144 esac
12145 ;;
12146
12147 cygwin* | mingw* | pw32* | cegcc*)
12148 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12149 # as there is no search path for DLLs.
12150 hardcode_libdir_flag_spec_CXX='-L$libdir'
12151 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12152 allow_undefined_flag_CXX=unsupported
12153 always_export_symbols_CXX=no
12154 enable_shared_with_static_runtimes_CXX=yes
12155
12156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12157 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12158 # If the export-symbols file already is a .def file (1st line
12159 # is EXPORTS), use it as is; otherwise, prepend...
12160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12161 cp $export_symbols $output_objdir/$soname.def;
12162 else
12163 echo EXPORTS > $output_objdir/$soname.def;
12164 cat $export_symbols >> $output_objdir/$soname.def;
12165 fi~
12166 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12167 else
12168 ld_shlibs_CXX=no
12169 fi
12170 ;;
12171 darwin* | rhapsody*)
12172
12173
12174 archive_cmds_need_lc_CXX=no
12175 hardcode_direct_CXX=no
12176 hardcode_automatic_CXX=yes
12177 hardcode_shlibpath_var_CXX=unsupported
12178 if test "$lt_cv_ld_force_load" = "yes"; then
12179 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12180 else
12181 whole_archive_flag_spec_CXX=''
12182 fi
12183 link_all_deplibs_CXX=yes
12184 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12185 case $cc_basename in
12186 ifort*) _lt_dar_can_shared=yes ;;
12187 *) _lt_dar_can_shared=$GCC ;;
12188 esac
12189 if test "$_lt_dar_can_shared" = "yes"; then
12190 output_verbose_link_cmd=func_echo_all
12191 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12192 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12193 archive_expsym_cmds_CXX="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}"
12194 module_expsym_cmds_CXX="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}"
12195 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12196 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12197 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12198 fi
12199
12200 else
12201 ld_shlibs_CXX=no
12202 fi
12203
12204 ;;
12205
12206 dgux*)
12207 case $cc_basename in
12208 ec++*)
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12211 ;;
12212 ghcx*)
12213 # Green Hills C++ Compiler
12214 # FIXME: insert proper C++ library support
12215 ld_shlibs_CXX=no
12216 ;;
12217 *)
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12220 ;;
12221 esac
12222 ;;
12223
12224 freebsd2.*)
12225 # C++ shared libraries reported to be fairly broken before
12226 # switch to ELF
12227 ld_shlibs_CXX=no
12228 ;;
12229
12230 freebsd-elf*)
12231 archive_cmds_need_lc_CXX=no
12232 ;;
12233
12234 freebsd* | dragonfly*)
12235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12236 # conventions
12237 ld_shlibs_CXX=yes
12238 ;;
12239
12240 gnu*)
12241 ;;
12242
12243 haiku*)
12244 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 link_all_deplibs_CXX=yes
12246 ;;
12247
12248 hpux9*)
12249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12250 hardcode_libdir_separator_CXX=:
12251 export_dynamic_flag_spec_CXX='${wl}-E'
12252 hardcode_direct_CXX=yes
12253 hardcode_minus_L_CXX=yes # Not in the search PATH,
12254 # but as the default
12255 # location of the library.
12256
12257 case $cc_basename in
12258 CC*)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12261 ;;
12262 aCC*)
12263 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12264 # Commands to make compiler produce verbose output that lists
12265 # what "hidden" libraries, object files and flags are used when
12266 # linking a shared library.
12267 #
12268 # There doesn't appear to be a way to prevent this compiler from
12269 # explicitly linking system object files so we need to strip them
12270 # from the output so that they don't get included in the library
12271 # dependencies.
12272 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12273 ;;
12274 *)
12275 if test "$GXX" = yes; then
12276 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12277 else
12278 # FIXME: insert proper C++ library support
12279 ld_shlibs_CXX=no
12280 fi
12281 ;;
12282 esac
12283 ;;
12284
12285 hpux10*|hpux11*)
12286 if test $with_gnu_ld = no; then
12287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12288 hardcode_libdir_separator_CXX=:
12289
12290 case $host_cpu in
12291 hppa*64*|ia64*)
12292 ;;
12293 *)
12294 export_dynamic_flag_spec_CXX='${wl}-E'
12295 ;;
12296 esac
12297 fi
12298 case $host_cpu in
12299 hppa*64*|ia64*)
12300 hardcode_direct_CXX=no
12301 hardcode_shlibpath_var_CXX=no
12302 ;;
12303 *)
12304 hardcode_direct_CXX=yes
12305 hardcode_direct_absolute_CXX=yes
12306 hardcode_minus_L_CXX=yes # Not in the search PATH,
12307 # but as the default
12308 # location of the library.
12309 ;;
12310 esac
12311
12312 case $cc_basename in
12313 CC*)
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12316 ;;
12317 aCC*)
12318 case $host_cpu in
12319 hppa*64*)
12320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 ;;
12322 ia64*)
12323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12324 ;;
12325 *)
12326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12327 ;;
12328 esac
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12332 #
12333 # There doesn't appear to be a way to prevent this compiler from
12334 # explicitly linking system object files so we need to strip them
12335 # from the output so that they don't get included in the library
12336 # dependencies.
12337 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12338 ;;
12339 *)
12340 if test "$GXX" = yes; then
12341 if test $with_gnu_ld = no; then
12342 case $host_cpu in
12343 hppa*64*)
12344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 ;;
12346 ia64*)
12347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12348 ;;
12349 *)
12350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12351 ;;
12352 esac
12353 fi
12354 else
12355 # FIXME: insert proper C++ library support
12356 ld_shlibs_CXX=no
12357 fi
12358 ;;
12359 esac
12360 ;;
12361
12362 interix[3-9]*)
12363 hardcode_direct_CXX=no
12364 hardcode_shlibpath_var_CXX=no
12365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12366 export_dynamic_flag_spec_CXX='${wl}-E'
12367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12368 # Instead, shared libraries are loaded at an image base (0x10000000 by
12369 # default) and relocated if they conflict, which is a slow very memory
12370 # consuming and fragmenting process. To avoid this, we pick a random,
12371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12373 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12374 archive_expsym_cmds_CXX='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'
12375 ;;
12376 irix5* | irix6*)
12377 case $cc_basename in
12378 CC*)
12379 # SGI C++
12380 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12381
12382 # Archives containing C++ object files must be created using
12383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12384 # necessary to make sure instantiated templates are included
12385 # in the archive.
12386 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12387 ;;
12388 *)
12389 if test "$GXX" = yes; then
12390 if test "$with_gnu_ld" = no; then
12391 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12392 else
12393 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12394 fi
12395 fi
12396 link_all_deplibs_CXX=yes
12397 ;;
12398 esac
12399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12400 hardcode_libdir_separator_CXX=:
12401 inherit_rpath_CXX=yes
12402 ;;
12403
12404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12405 case $cc_basename in
12406 KCC*)
12407 # Kuck and Associates, Inc. (KAI) C++ Compiler
12408
12409 # KCC will only create a shared library if the output file
12410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12411 # to its proper name (with version) after linking.
12412 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12413 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12414 # Commands to make compiler produce verbose output that lists
12415 # what "hidden" libraries, object files and flags are used when
12416 # linking a shared library.
12417 #
12418 # There doesn't appear to be a way to prevent this compiler from
12419 # explicitly linking system object files so we need to strip them
12420 # from the output so that they don't get included in the library
12421 # dependencies.
12422 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12423
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426
12427 # Archives containing C++ object files must be created using
12428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12429 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12430 ;;
12431 icpc* | ecpc* )
12432 # Intel C++
12433 with_gnu_ld=yes
12434 # version 8.0 and above of icpc choke on multiply defined symbols
12435 # if we add $predep_objects and $postdep_objects, however 7.1 and
12436 # earlier do not add the objects themselves.
12437 case `$CC -V 2>&1` in
12438 *"Version 7."*)
12439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12441 ;;
12442 *) # Version 8.0 or newer
12443 tmp_idyn=
12444 case $host_cpu in
12445 ia64*) tmp_idyn=' -i_dynamic';;
12446 esac
12447 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12449 ;;
12450 esac
12451 archive_cmds_need_lc_CXX=no
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12454 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12455 ;;
12456 pgCC* | pgcpp*)
12457 # Portland Group C++ compiler
12458 case `$CC -V` in
12459 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12460 prelink_cmds_CXX='tpldir=Template.dir~
12461 rm -rf $tpldir~
12462 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12463 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12464 old_archive_cmds_CXX='tpldir=Template.dir~
12465 rm -rf $tpldir~
12466 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12467 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12468 $RANLIB $oldlib'
12469 archive_cmds_CXX='tpldir=Template.dir~
12470 rm -rf $tpldir~
12471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12473 archive_expsym_cmds_CXX='tpldir=Template.dir~
12474 rm -rf $tpldir~
12475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12476 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12477 ;;
12478 *) # Version 6 and above use weak symbols
12479 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12480 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12481 ;;
12482 esac
12483
12484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12486 whole_archive_flag_spec_CXX='${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'
12487 ;;
12488 cxx*)
12489 # Compaq C++
12490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12491 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12492
12493 runpath_var=LD_RUN_PATH
12494 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12495 hardcode_libdir_separator_CXX=:
12496
12497 # Commands to make compiler produce verbose output that lists
12498 # what "hidden" libraries, object files and flags are used when
12499 # linking a shared library.
12500 #
12501 # There doesn't appear to be a way to prevent this compiler from
12502 # explicitly linking system object files so we need to strip them
12503 # from the output so that they don't get included in the library
12504 # dependencies.
12505 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12506 ;;
12507 xl* | mpixl* | bgxl*)
12508 # IBM XL 8.0 on PPC, with GNU ld
12509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12511 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 if test "x$supports_anon_versioning" = xyes; then
12513 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12515 echo "local: *; };" >> $output_objdir/$libname.ver~
12516 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12517 fi
12518 ;;
12519 *)
12520 case `$CC -V 2>&1 | sed 5q` in
12521 *Sun\ C*)
12522 # Sun C++ 5.9
12523 no_undefined_flag_CXX=' -zdefs'
12524 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12525 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12526 hardcode_libdir_flag_spec_CXX='-R$libdir'
12527 whole_archive_flag_spec_CXX='${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'
12528 compiler_needs_object_CXX=yes
12529
12530 # Not sure whether something based on
12531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12532 # would be better.
12533 output_verbose_link_cmd='func_echo_all'
12534
12535 # Archives containing C++ object files must be created using
12536 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12537 # necessary to make sure instantiated templates are included
12538 # in the archive.
12539 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12540 ;;
12541 esac
12542 ;;
12543 esac
12544 ;;
12545
12546 lynxos*)
12547 # FIXME: insert proper C++ library support
12548 ld_shlibs_CXX=no
12549 ;;
12550
12551 m88k*)
12552 # FIXME: insert proper C++ library support
12553 ld_shlibs_CXX=no
12554 ;;
12555
12556 mvs*)
12557 case $cc_basename in
12558 cxx*)
12559 # FIXME: insert proper C++ library support
12560 ld_shlibs_CXX=no
12561 ;;
12562 *)
12563 # FIXME: insert proper C++ library support
12564 ld_shlibs_CXX=no
12565 ;;
12566 esac
12567 ;;
12568
12569 netbsd*)
12570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12571 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12572 wlarc=
12573 hardcode_libdir_flag_spec_CXX='-R$libdir'
12574 hardcode_direct_CXX=yes
12575 hardcode_shlibpath_var_CXX=no
12576 fi
12577 # Workaround some broken pre-1.5 toolchains
12578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12579 ;;
12580
12581 *nto* | *qnx*)
12582 ld_shlibs_CXX=yes
12583 ;;
12584
12585 openbsd2*)
12586 # C++ shared libraries are fairly broken
12587 ld_shlibs_CXX=no
12588 ;;
12589
12590 openbsd*)
12591 if test -f /usr/libexec/ld.so; then
12592 hardcode_direct_CXX=yes
12593 hardcode_shlibpath_var_CXX=no
12594 hardcode_direct_absolute_CXX=yes
12595 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12598 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12601 fi
12602 output_verbose_link_cmd=func_echo_all
12603 else
12604 ld_shlibs_CXX=no
12605 fi
12606 ;;
12607
12608 osf3* | osf4* | osf5*)
12609 case $cc_basename in
12610 KCC*)
12611 # Kuck and Associates, Inc. (KAI) C++ Compiler
12612
12613 # KCC will only create a shared library if the output file
12614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12615 # to its proper name (with version) after linking.
12616 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12617
12618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12619 hardcode_libdir_separator_CXX=:
12620
12621 # Archives containing C++ object files must be created using
12622 # the KAI C++ compiler.
12623 case $host in
12624 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12625 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12626 esac
12627 ;;
12628 RCC*)
12629 # Rational C++ 2.4.1
12630 # FIXME: insert proper C++ library support
12631 ld_shlibs_CXX=no
12632 ;;
12633 cxx*)
12634 case $host in
12635 osf3*)
12636 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12637 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12639 ;;
12640 *)
12641 allow_undefined_flag_CXX=' -expect_unresolved \*'
12642 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12643 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12644 echo "-hidden">> $lib.exp~
12645 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12646 $RM $lib.exp'
12647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12648 ;;
12649 esac
12650
12651 hardcode_libdir_separator_CXX=:
12652
12653 # Commands to make compiler produce verbose output that lists
12654 # what "hidden" libraries, object files and flags are used when
12655 # linking a shared library.
12656 #
12657 # There doesn't appear to be a way to prevent this compiler from
12658 # explicitly linking system object files so we need to strip them
12659 # from the output so that they don't get included in the library
12660 # dependencies.
12661 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12662 ;;
12663 *)
12664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12666 case $host in
12667 osf3*)
12668 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12669 ;;
12670 *)
12671 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12672 ;;
12673 esac
12674
12675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12676 hardcode_libdir_separator_CXX=:
12677
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12682
12683 else
12684 # FIXME: insert proper C++ library support
12685 ld_shlibs_CXX=no
12686 fi
12687 ;;
12688 esac
12689 ;;
12690
12691 psos*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12694 ;;
12695
12696 sunos4*)
12697 case $cc_basename in
12698 CC*)
12699 # Sun C++ 4.x
12700 # FIXME: insert proper C++ library support
12701 ld_shlibs_CXX=no
12702 ;;
12703 lcc*)
12704 # Lucid
12705 # FIXME: insert proper C++ library support
12706 ld_shlibs_CXX=no
12707 ;;
12708 *)
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 ;;
12712 esac
12713 ;;
12714
12715 solaris*)
12716 case $cc_basename in
12717 CC*)
12718 # Sun C++ 4.2, 5.x and Centerline C++
12719 archive_cmds_need_lc_CXX=yes
12720 no_undefined_flag_CXX=' -zdefs'
12721 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12723 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12724
12725 hardcode_libdir_flag_spec_CXX='-R$libdir'
12726 hardcode_shlibpath_var_CXX=no
12727 case $host_os in
12728 solaris2.[0-5] | solaris2.[0-5].*) ;;
12729 *)
12730 # The compiler driver will combine and reorder linker options,
12731 # but understands `-z linker_flag'.
12732 # Supported since Solaris 2.6 (maybe 2.5.1?)
12733 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12734 ;;
12735 esac
12736 link_all_deplibs_CXX=yes
12737
12738 output_verbose_link_cmd='func_echo_all'
12739
12740 # Archives containing C++ object files must be created using
12741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12742 # necessary to make sure instantiated templates are included
12743 # in the archive.
12744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12745 ;;
12746 gcx*)
12747 # Green Hills C++ Compiler
12748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12749
12750 # The C++ compiler must be used to create the archive.
12751 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12752 ;;
12753 *)
12754 # GNU C++ compiler with Solaris linker
12755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12756 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12757 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12758 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12760 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12761
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12766 else
12767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12768 # platform.
12769 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12770 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12771 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12772
12773 # Commands to make compiler produce verbose output that lists
12774 # what "hidden" libraries, object files and flags are used when
12775 # linking a shared library.
12776 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12777 fi
12778
12779 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12780 case $host_os in
12781 solaris2.[0-5] | solaris2.[0-5].*) ;;
12782 *)
12783 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12784 ;;
12785 esac
12786 fi
12787 ;;
12788 esac
12789 ;;
12790
12791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12792 no_undefined_flag_CXX='${wl}-z,text'
12793 archive_cmds_need_lc_CXX=no
12794 hardcode_shlibpath_var_CXX=no
12795 runpath_var='LD_RUN_PATH'
12796
12797 case $cc_basename in
12798 CC*)
12799 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12800 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12801 ;;
12802 *)
12803 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12804 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12805 ;;
12806 esac
12807 ;;
12808
12809 sysv5* | sco3.2v5* | sco5v6*)
12810 # Note: We can NOT use -z defs as we might desire, because we do not
12811 # link with -lc, and that would cause any symbols used from libc to
12812 # always be unresolved, which means just about no library would
12813 # ever link correctly. If we're not using GNU ld we use -z text
12814 # though, which does catch some bad symbols but isn't as heavy-handed
12815 # as -z defs.
12816 no_undefined_flag_CXX='${wl}-z,text'
12817 allow_undefined_flag_CXX='${wl}-z,nodefs'
12818 archive_cmds_need_lc_CXX=no
12819 hardcode_shlibpath_var_CXX=no
12820 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12821 hardcode_libdir_separator_CXX=':'
12822 link_all_deplibs_CXX=yes
12823 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12824 runpath_var='LD_RUN_PATH'
12825
12826 case $cc_basename in
12827 CC*)
12828 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12830 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12831 '"$old_archive_cmds_CXX"
12832 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12833 '"$reload_cmds_CXX"
12834 ;;
12835 *)
12836 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12837 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12838 ;;
12839 esac
12840 ;;
12841
12842 tandem*)
12843 case $cc_basename in
12844 NCC*)
12845 # NonStop-UX NCC 3.20
12846 # FIXME: insert proper C++ library support
12847 ld_shlibs_CXX=no
12848 ;;
12849 *)
12850 # FIXME: insert proper C++ library support
12851 ld_shlibs_CXX=no
12852 ;;
12853 esac
12854 ;;
12855
12856 vxworks*)
12857 # FIXME: insert proper C++ library support
12858 ld_shlibs_CXX=no
12859 ;;
12860
12861 *)
12862 # FIXME: insert proper C++ library support
12863 ld_shlibs_CXX=no
12864 ;;
12865 esac
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12868 $as_echo "$ld_shlibs_CXX" >&6; }
12869 test "$ld_shlibs_CXX" = no && can_build_shared=no
12870
12871 GCC_CXX="$GXX"
12872 LD_CXX="$LD"
12873
12874 ## CAVEAT EMPTOR:
12875 ## There is no encapsulation within the following macros, do not change
12876 ## the running order or otherwise move them around unless you know exactly
12877 ## what you are doing...
12878 # Dependencies to place before and after the object being linked:
12879 predep_objects_CXX=
12880 postdep_objects_CXX=
12881 predeps_CXX=
12882 postdeps_CXX=
12883 compiler_lib_search_path_CXX=
12884
12885 cat > conftest.$ac_ext <<_LT_EOF
12886 class Foo
12887 {
12888 public:
12889 Foo (void) { a = 0; }
12890 private:
12891 int a;
12892 };
12893 _LT_EOF
12894
12895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12896 (eval $ac_compile) 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899 test $ac_status = 0; }; then
12900 # Parse the compiler output and extract the necessary
12901 # objects, libraries and library flags.
12902
12903 # Sentinel used to keep track of whether or not we are before
12904 # the conftest object file.
12905 pre_test_object_deps_done=no
12906
12907 for p in `eval "$output_verbose_link_cmd"`; do
12908 case $p in
12909
12910 -L* | -R* | -l*)
12911 # Some compilers place space between "-{L,R}" and the path.
12912 # Remove the space.
12913 if test $p = "-L" ||
12914 test $p = "-R"; then
12915 prev=$p
12916 continue
12917 else
12918 prev=
12919 fi
12920
12921 if test "$pre_test_object_deps_done" = no; then
12922 case $p in
12923 -L* | -R*)
12924 # Internal compiler library paths should come after those
12925 # provided the user. The postdeps already come after the
12926 # user supplied libs so there is no need to process them.
12927 if test -z "$compiler_lib_search_path_CXX"; then
12928 compiler_lib_search_path_CXX="${prev}${p}"
12929 else
12930 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12931 fi
12932 ;;
12933 # The "-l" case would never come before the object being
12934 # linked, so don't bother handling this case.
12935 esac
12936 else
12937 if test -z "$postdeps_CXX"; then
12938 postdeps_CXX="${prev}${p}"
12939 else
12940 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12941 fi
12942 fi
12943 ;;
12944
12945 *.$objext)
12946 # This assumes that the test object file only shows up
12947 # once in the compiler output.
12948 if test "$p" = "conftest.$objext"; then
12949 pre_test_object_deps_done=yes
12950 continue
12951 fi
12952
12953 if test "$pre_test_object_deps_done" = no; then
12954 if test -z "$predep_objects_CXX"; then
12955 predep_objects_CXX="$p"
12956 else
12957 predep_objects_CXX="$predep_objects_CXX $p"
12958 fi
12959 else
12960 if test -z "$postdep_objects_CXX"; then
12961 postdep_objects_CXX="$p"
12962 else
12963 postdep_objects_CXX="$postdep_objects_CXX $p"
12964 fi
12965 fi
12966 ;;
12967
12968 *) ;; # Ignore the rest.
12969
12970 esac
12971 done
12972
12973 # Clean up.
12974 rm -f a.out a.exe
12975 else
12976 echo "libtool.m4: error: problem compiling CXX test program"
12977 fi
12978
12979 $RM -f confest.$objext
12980
12981 # PORTME: override above test on systems where it is broken
12982 case $host_os in
12983 interix[3-9]*)
12984 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12985 # hack all around it, let's just trust "g++" to DTRT.
12986 predep_objects_CXX=
12987 postdep_objects_CXX=
12988 postdeps_CXX=
12989 ;;
12990
12991 linux*)
12992 case `$CC -V 2>&1 | sed 5q` in
12993 *Sun\ C*)
12994 # Sun C++ 5.9
12995
12996 # The more standards-conforming stlport4 library is
12997 # incompatible with the Cstd library. Avoid specifying
12998 # it if it's in CXXFLAGS. Ignore libCrun as
12999 # -library=stlport4 depends on it.
13000 case " $CXX $CXXFLAGS " in
13001 *" -library=stlport4 "*)
13002 solaris_use_stlport4=yes
13003 ;;
13004 esac
13005
13006 if test "$solaris_use_stlport4" != yes; then
13007 postdeps_CXX='-library=Cstd -library=Crun'
13008 fi
13009 ;;
13010 esac
13011 ;;
13012
13013 solaris*)
13014 case $cc_basename in
13015 CC*)
13016 # The more standards-conforming stlport4 library is
13017 # incompatible with the Cstd library. Avoid specifying
13018 # it if it's in CXXFLAGS. Ignore libCrun as
13019 # -library=stlport4 depends on it.
13020 case " $CXX $CXXFLAGS " in
13021 *" -library=stlport4 "*)
13022 solaris_use_stlport4=yes
13023 ;;
13024 esac
13025
13026 # Adding this requires a known-good setup of shared libraries for
13027 # Sun compiler versions before 5.6, else PIC objects from an old
13028 # archive will be linked into the output, leading to subtle bugs.
13029 if test "$solaris_use_stlport4" != yes; then
13030 postdeps_CXX='-library=Cstd -library=Crun'
13031 fi
13032 ;;
13033 esac
13034 ;;
13035 esac
13036
13037
13038 case " $postdeps_CXX " in
13039 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13040 esac
13041 compiler_lib_search_dirs_CXX=
13042 if test -n "${compiler_lib_search_path_CXX}"; then
13043 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13044 fi
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076 lt_prog_compiler_wl_CXX=
13077 lt_prog_compiler_pic_CXX=
13078 lt_prog_compiler_static_CXX=
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13082
13083 # C++ specific cases for pic, static, wl, etc.
13084 if test "$GXX" = yes; then
13085 lt_prog_compiler_wl_CXX='-Wl,'
13086 lt_prog_compiler_static_CXX='-static'
13087
13088 case $host_os in
13089 aix*)
13090 # All AIX code is PIC.
13091 if test "$host_cpu" = ia64; then
13092 # AIX 5 now supports IA64 processor
13093 lt_prog_compiler_static_CXX='-Bstatic'
13094 fi
13095 lt_prog_compiler_pic_CXX='-fPIC'
13096 ;;
13097
13098 amigaos*)
13099 case $host_cpu in
13100 powerpc)
13101 # see comment about AmigaOS4 .so support
13102 lt_prog_compiler_pic_CXX='-fPIC'
13103 ;;
13104 m68k)
13105 # FIXME: we need at least 68020 code to build shared libraries, but
13106 # adding the `-m68020' flag to GCC prevents building anything better,
13107 # like `-m68040'.
13108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13109 ;;
13110 esac
13111 ;;
13112
13113 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13115 ;;
13116 mingw* | cygwin* | os2* | pw32* | cegcc*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13120 # (--disable-auto-import) libraries
13121 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13122 ;;
13123 darwin* | rhapsody*)
13124 # PIC is the default on this platform
13125 # Common symbols not allowed in MH_DYLIB files
13126 lt_prog_compiler_pic_CXX='-fno-common'
13127 ;;
13128 *djgpp*)
13129 # DJGPP does not support shared libraries at all
13130 lt_prog_compiler_pic_CXX=
13131 ;;
13132 haiku*)
13133 # PIC is the default for Haiku.
13134 # The "-static" flag exists, but is broken.
13135 lt_prog_compiler_static_CXX=
13136 ;;
13137 interix[3-9]*)
13138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13139 # Instead, we relocate shared libraries at runtime.
13140 ;;
13141 sysv4*MP*)
13142 if test -d /usr/nec; then
13143 lt_prog_compiler_pic_CXX=-Kconform_pic
13144 fi
13145 ;;
13146 hpux*)
13147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13149 # sets the default TLS model and affects inlining.
13150 case $host_cpu in
13151 hppa*64*)
13152 ;;
13153 *)
13154 lt_prog_compiler_pic_CXX='-fPIC'
13155 ;;
13156 esac
13157 ;;
13158 *qnx* | *nto*)
13159 # QNX uses GNU C++, but need to define -shared option too, otherwise
13160 # it will coredump.
13161 lt_prog_compiler_pic_CXX='-fPIC -shared'
13162 ;;
13163 *)
13164 lt_prog_compiler_pic_CXX='-fPIC'
13165 ;;
13166 esac
13167 else
13168 case $host_os in
13169 aix[4-9]*)
13170 # All AIX code is PIC.
13171 if test "$host_cpu" = ia64; then
13172 # AIX 5 now supports IA64 processor
13173 lt_prog_compiler_static_CXX='-Bstatic'
13174 else
13175 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13176 fi
13177 ;;
13178 chorus*)
13179 case $cc_basename in
13180 cxch68*)
13181 # Green Hills C++ Compiler
13182 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13183 ;;
13184 esac
13185 ;;
13186 dgux*)
13187 case $cc_basename in
13188 ec++*)
13189 lt_prog_compiler_pic_CXX='-KPIC'
13190 ;;
13191 ghcx*)
13192 # Green Hills C++ Compiler
13193 lt_prog_compiler_pic_CXX='-pic'
13194 ;;
13195 *)
13196 ;;
13197 esac
13198 ;;
13199 freebsd* | dragonfly*)
13200 # FreeBSD uses GNU C++
13201 ;;
13202 hpux9* | hpux10* | hpux11*)
13203 case $cc_basename in
13204 CC*)
13205 lt_prog_compiler_wl_CXX='-Wl,'
13206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13207 if test "$host_cpu" != ia64; then
13208 lt_prog_compiler_pic_CXX='+Z'
13209 fi
13210 ;;
13211 aCC*)
13212 lt_prog_compiler_wl_CXX='-Wl,'
13213 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13214 case $host_cpu in
13215 hppa*64*|ia64*)
13216 # +Z the default
13217 ;;
13218 *)
13219 lt_prog_compiler_pic_CXX='+Z'
13220 ;;
13221 esac
13222 ;;
13223 *)
13224 ;;
13225 esac
13226 ;;
13227 interix*)
13228 # This is c89, which is MS Visual C++ (no shared libs)
13229 # Anyone wants to do a port?
13230 ;;
13231 irix5* | irix6* | nonstopux*)
13232 case $cc_basename in
13233 CC*)
13234 lt_prog_compiler_wl_CXX='-Wl,'
13235 lt_prog_compiler_static_CXX='-non_shared'
13236 # CC pic flag -KPIC is the default.
13237 ;;
13238 *)
13239 ;;
13240 esac
13241 ;;
13242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13243 case $cc_basename in
13244 KCC*)
13245 # KAI C++ Compiler
13246 lt_prog_compiler_wl_CXX='--backend -Wl,'
13247 lt_prog_compiler_pic_CXX='-fPIC'
13248 ;;
13249 ecpc* )
13250 # old Intel C++ for x86_64 which still supported -KPIC.
13251 lt_prog_compiler_wl_CXX='-Wl,'
13252 lt_prog_compiler_pic_CXX='-KPIC'
13253 lt_prog_compiler_static_CXX='-static'
13254 ;;
13255 icpc* )
13256 # Intel C++, used to be incompatible with GCC.
13257 # ICC 10 doesn't accept -KPIC any more.
13258 lt_prog_compiler_wl_CXX='-Wl,'
13259 lt_prog_compiler_pic_CXX='-fPIC'
13260 lt_prog_compiler_static_CXX='-static'
13261 ;;
13262 pgCC* | pgcpp*)
13263 # Portland Group C++ compiler
13264 lt_prog_compiler_wl_CXX='-Wl,'
13265 lt_prog_compiler_pic_CXX='-fpic'
13266 lt_prog_compiler_static_CXX='-Bstatic'
13267 ;;
13268 cxx*)
13269 # Compaq C++
13270 # Make sure the PIC flag is empty. It appears that all Alpha
13271 # Linux and Compaq Tru64 Unix objects are PIC.
13272 lt_prog_compiler_pic_CXX=
13273 lt_prog_compiler_static_CXX='-non_shared'
13274 ;;
13275 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13276 # IBM XL 8.0, 9.0 on PPC and BlueGene
13277 lt_prog_compiler_wl_CXX='-Wl,'
13278 lt_prog_compiler_pic_CXX='-qpic'
13279 lt_prog_compiler_static_CXX='-qstaticlink'
13280 ;;
13281 *)
13282 case `$CC -V 2>&1 | sed 5q` in
13283 *Sun\ C*)
13284 # Sun C++ 5.9
13285 lt_prog_compiler_pic_CXX='-KPIC'
13286 lt_prog_compiler_static_CXX='-Bstatic'
13287 lt_prog_compiler_wl_CXX='-Qoption ld '
13288 ;;
13289 esac
13290 ;;
13291 esac
13292 ;;
13293 lynxos*)
13294 ;;
13295 m88k*)
13296 ;;
13297 mvs*)
13298 case $cc_basename in
13299 cxx*)
13300 lt_prog_compiler_pic_CXX='-W c,exportall'
13301 ;;
13302 *)
13303 ;;
13304 esac
13305 ;;
13306 netbsd*)
13307 ;;
13308 *qnx* | *nto*)
13309 # QNX uses GNU C++, but need to define -shared option too, otherwise
13310 # it will coredump.
13311 lt_prog_compiler_pic_CXX='-fPIC -shared'
13312 ;;
13313 osf3* | osf4* | osf5*)
13314 case $cc_basename in
13315 KCC*)
13316 lt_prog_compiler_wl_CXX='--backend -Wl,'
13317 ;;
13318 RCC*)
13319 # Rational C++ 2.4.1
13320 lt_prog_compiler_pic_CXX='-pic'
13321 ;;
13322 cxx*)
13323 # Digital/Compaq C++
13324 lt_prog_compiler_wl_CXX='-Wl,'
13325 # Make sure the PIC flag is empty. It appears that all Alpha
13326 # Linux and Compaq Tru64 Unix objects are PIC.
13327 lt_prog_compiler_pic_CXX=
13328 lt_prog_compiler_static_CXX='-non_shared'
13329 ;;
13330 *)
13331 ;;
13332 esac
13333 ;;
13334 psos*)
13335 ;;
13336 solaris*)
13337 case $cc_basename in
13338 CC*)
13339 # Sun C++ 4.2, 5.x and Centerline C++
13340 lt_prog_compiler_pic_CXX='-KPIC'
13341 lt_prog_compiler_static_CXX='-Bstatic'
13342 lt_prog_compiler_wl_CXX='-Qoption ld '
13343 ;;
13344 gcx*)
13345 # Green Hills C++ Compiler
13346 lt_prog_compiler_pic_CXX='-PIC'
13347 ;;
13348 *)
13349 ;;
13350 esac
13351 ;;
13352 sunos4*)
13353 case $cc_basename in
13354 CC*)
13355 # Sun C++ 4.x
13356 lt_prog_compiler_pic_CXX='-pic'
13357 lt_prog_compiler_static_CXX='-Bstatic'
13358 ;;
13359 lcc*)
13360 # Lucid
13361 lt_prog_compiler_pic_CXX='-pic'
13362 ;;
13363 *)
13364 ;;
13365 esac
13366 ;;
13367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13368 case $cc_basename in
13369 CC*)
13370 lt_prog_compiler_wl_CXX='-Wl,'
13371 lt_prog_compiler_pic_CXX='-KPIC'
13372 lt_prog_compiler_static_CXX='-Bstatic'
13373 ;;
13374 esac
13375 ;;
13376 tandem*)
13377 case $cc_basename in
13378 NCC*)
13379 # NonStop-UX NCC 3.20
13380 lt_prog_compiler_pic_CXX='-KPIC'
13381 ;;
13382 *)
13383 ;;
13384 esac
13385 ;;
13386 vxworks*)
13387 ;;
13388 *)
13389 lt_prog_compiler_can_build_shared_CXX=no
13390 ;;
13391 esac
13392 fi
13393
13394 case $host_os in
13395 # For platforms which do not support PIC, -DPIC is meaningless:
13396 *djgpp*)
13397 lt_prog_compiler_pic_CXX=
13398 ;;
13399 *)
13400 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13401 ;;
13402 esac
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13404 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13405
13406
13407
13408 #
13409 # Check to make sure the PIC flag actually works.
13410 #
13411 if test -n "$lt_prog_compiler_pic_CXX"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13414 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 lt_cv_prog_compiler_pic_works_CXX=no
13418 ac_outfile=conftest.$ac_objext
13419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13421 # Insert the option either (1) after the last *FLAGS variable, or
13422 # (2) before a word containing "conftest.", or (3) at the end.
13423 # Note that $ac_compile itself does not contain backslashes and begins
13424 # with a dollar sign (not a hyphen), so the echo should work correctly.
13425 # The option is referenced via a variable to avoid confusing sed.
13426 lt_compile=`echo "$ac_compile" | $SED \
13427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13429 -e 's:$: $lt_compiler_flag:'`
13430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13431 (eval "$lt_compile" 2>conftest.err)
13432 ac_status=$?
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 if (exit $ac_status) && test -s "$ac_outfile"; then
13436 # The compiler can only warn and ignore the option if not recognized
13437 # So say no if there are warnings other than the usual output.
13438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13441 lt_cv_prog_compiler_pic_works_CXX=yes
13442 fi
13443 fi
13444 $RM conftest*
13445
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13448 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13449
13450 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13451 case $lt_prog_compiler_pic_CXX in
13452 "" | " "*) ;;
13453 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13454 esac
13455 else
13456 lt_prog_compiler_pic_CXX=
13457 lt_prog_compiler_can_build_shared_CXX=no
13458 fi
13459
13460 fi
13461
13462
13463
13464 #
13465 # Check to make sure the static flag actually works.
13466 #
13467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13470 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 lt_cv_prog_compiler_static_works_CXX=no
13474 save_LDFLAGS="$LDFLAGS"
13475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13478 # The linker can only warn and ignore the option if not recognized
13479 # So say no if there are warnings
13480 if test -s conftest.err; then
13481 # Append any errors to the config.log.
13482 cat conftest.err 1>&5
13483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13485 if diff conftest.exp conftest.er2 >/dev/null; then
13486 lt_cv_prog_compiler_static_works_CXX=yes
13487 fi
13488 else
13489 lt_cv_prog_compiler_static_works_CXX=yes
13490 fi
13491 fi
13492 $RM -r conftest*
13493 LDFLAGS="$save_LDFLAGS"
13494
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13498
13499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13500 :
13501 else
13502 lt_prog_compiler_static_CXX=
13503 fi
13504
13505
13506
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13510 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_prog_compiler_c_o_CXX=no
13514 $RM -r conftest 2>/dev/null
13515 mkdir conftest
13516 cd conftest
13517 mkdir out
13518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13519
13520 lt_compiler_flag="-o out/conftest2.$ac_objext"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 lt_compile=`echo "$ac_compile" | $SED \
13526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13528 -e 's:$: $lt_compiler_flag:'`
13529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13530 (eval "$lt_compile" 2>out/conftest.err)
13531 ac_status=$?
13532 cat out/conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13535 then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings
13538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13541 lt_cv_prog_compiler_c_o_CXX=yes
13542 fi
13543 fi
13544 chmod u+w . 2>&5
13545 $RM conftest*
13546 # SGI C++ compiler will create directory out/ii_files/ for
13547 # template instantiation
13548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13549 $RM out/* && rmdir out
13550 cd ..
13551 $RM -r conftest
13552 $RM conftest*
13553
13554 fi
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13557
13558
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 lt_cv_prog_compiler_c_o_CXX=no
13566 $RM -r conftest 2>/dev/null
13567 mkdir conftest
13568 cd conftest
13569 mkdir out
13570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13571
13572 lt_compiler_flag="-o out/conftest2.$ac_objext"
13573 # Insert the option either (1) after the last *FLAGS variable, or
13574 # (2) before a word containing "conftest.", or (3) at the end.
13575 # Note that $ac_compile itself does not contain backslashes and begins
13576 # with a dollar sign (not a hyphen), so the echo should work correctly.
13577 lt_compile=`echo "$ac_compile" | $SED \
13578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13580 -e 's:$: $lt_compiler_flag:'`
13581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13582 (eval "$lt_compile" 2>out/conftest.err)
13583 ac_status=$?
13584 cat out/conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13587 then
13588 # The compiler can only warn and ignore the option if not recognized
13589 # So say no if there are warnings
13590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13593 lt_cv_prog_compiler_c_o_CXX=yes
13594 fi
13595 fi
13596 chmod u+w . 2>&5
13597 $RM conftest*
13598 # SGI C++ compiler will create directory out/ii_files/ for
13599 # template instantiation
13600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13601 $RM out/* && rmdir out
13602 cd ..
13603 $RM -r conftest
13604 $RM conftest*
13605
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13609
13610
13611
13612
13613 hard_links="nottested"
13614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13615 # do not overwrite the value of need_locks provided by the user
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13617 $as_echo_n "checking if we can lock with hard links... " >&6; }
13618 hard_links=yes
13619 $RM conftest*
13620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13621 touch conftest.a
13622 ln conftest.a conftest.b 2>&5 || hard_links=no
13623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13625 $as_echo "$hard_links" >&6; }
13626 if test "$hard_links" = no; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13629 need_locks=warn
13630 fi
13631 else
13632 need_locks=no
13633 fi
13634
13635
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13639
13640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13641 case $host_os in
13642 aix[4-9]*)
13643 # If we're using GNU nm, then we don't want the "-C" option.
13644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13645 # Also, AIX nm treats weak defined symbols like other global defined
13646 # symbols, whereas GNU nm marks them as "W".
13647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13648 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13649 else
13650 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13651 fi
13652 ;;
13653 pw32*)
13654 export_symbols_cmds_CXX="$ltdll_cmds"
13655 ;;
13656 cygwin* | mingw* | cegcc*)
13657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13658 ;;
13659 *)
13660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13661 ;;
13662 esac
13663 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13666 $as_echo "$ld_shlibs_CXX" >&6; }
13667 test "$ld_shlibs_CXX" = no && can_build_shared=no
13668
13669 with_gnu_ld_CXX=$with_gnu_ld
13670
13671
13672
13673
13674
13675
13676 #
13677 # Do we need to explicitly link libc?
13678 #
13679 case "x$archive_cmds_need_lc_CXX" in
13680 x|xyes)
13681 # Assume -lc should be added
13682 archive_cmds_need_lc_CXX=yes
13683
13684 if test "$enable_shared" = yes && test "$GCC" = yes; then
13685 case $archive_cmds_CXX in
13686 *'~'*)
13687 # FIXME: we may have to deal with multi-command sequences.
13688 ;;
13689 '$CC '*)
13690 # Test whether the compiler implicitly links with -lc since on some
13691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13692 # to ld, don't add -lc before -lgcc.
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13695 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 $RM conftest*
13699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13700
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13702 (eval $ac_compile) 2>&5
13703 ac_status=$?
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; } 2>conftest.err; then
13706 soname=conftest
13707 lib=conftest
13708 libobjs=conftest.$ac_objext
13709 deplibs=
13710 wl=$lt_prog_compiler_wl_CXX
13711 pic_flag=$lt_prog_compiler_pic_CXX
13712 compiler_flags=-v
13713 linker_flags=-v
13714 verstring=
13715 output_objdir=.
13716 libname=conftest
13717 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13718 allow_undefined_flag_CXX=
13719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13720 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723 test $ac_status = 0; }
13724 then
13725 lt_cv_archive_cmds_need_lc_CXX=no
13726 else
13727 lt_cv_archive_cmds_need_lc_CXX=yes
13728 fi
13729 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13730 else
13731 cat conftest.err 1>&5
13732 fi
13733 $RM conftest*
13734
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13737 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13738 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13739 ;;
13740 esac
13741 fi
13742 ;;
13743 esac
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13810
13811 library_names_spec=
13812 libname_spec='lib$name'
13813 soname_spec=
13814 shrext_cmds=".so"
13815 postinstall_cmds=
13816 postuninstall_cmds=
13817 finish_cmds=
13818 finish_eval=
13819 shlibpath_var=
13820 shlibpath_overrides_runpath=unknown
13821 version_type=none
13822 dynamic_linker="$host_os ld.so"
13823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13824 need_lib_prefix=unknown
13825 hardcode_into_libs=no
13826
13827 # when you set need_version to no, make sure it does not cause -set_version
13828 # flags to be left without arguments
13829 need_version=unknown
13830
13831 case $host_os in
13832 aix3*)
13833 version_type=linux
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13835 shlibpath_var=LIBPATH
13836
13837 # AIX 3 has no versioning support, so we append a major version to the name.
13838 soname_spec='${libname}${release}${shared_ext}$major'
13839 ;;
13840
13841 aix[4-9]*)
13842 version_type=linux
13843 need_lib_prefix=no
13844 need_version=no
13845 hardcode_into_libs=yes
13846 if test "$host_cpu" = ia64; then
13847 # AIX 5 supports IA64
13848 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 else
13851 # With GCC up to 2.95.x, collect2 would create an import file
13852 # for dependence libraries. The import file would start with
13853 # the line `#! .'. This would cause the generated library to
13854 # depend on `.', always an invalid library. This was fixed in
13855 # development snapshots of GCC prior to 3.0.
13856 case $host_os in
13857 aix4 | aix4.[01] | aix4.[01].*)
13858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13859 echo ' yes '
13860 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13861 :
13862 else
13863 can_build_shared=no
13864 fi
13865 ;;
13866 esac
13867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13868 # soname into executable. Probably we can add versioning support to
13869 # collect2, so additional links can be useful in future.
13870 if test "$aix_use_runtimelinking" = yes; then
13871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13872 # instead of lib<name>.a to let people know that these are not
13873 # typical AIX shared libraries.
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875 else
13876 # We preserve .a as extension for shared libraries through AIX4.2
13877 # and later when we are not doing run time linking.
13878 library_names_spec='${libname}${release}.a $libname.a'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 fi
13881 shlibpath_var=LIBPATH
13882 fi
13883 ;;
13884
13885 amigaos*)
13886 case $host_cpu in
13887 powerpc)
13888 # Since July 2007 AmigaOS4 officially supports .so libraries.
13889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 ;;
13892 m68k)
13893 library_names_spec='$libname.ixlibrary $libname.a'
13894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13895 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'
13896 ;;
13897 esac
13898 ;;
13899
13900 beos*)
13901 library_names_spec='${libname}${shared_ext}'
13902 dynamic_linker="$host_os ld.so"
13903 shlibpath_var=LIBRARY_PATH
13904 ;;
13905
13906 bsdi[45]*)
13907 version_type=linux
13908 need_version=no
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13915 # the default ld.so.conf also contains /usr/contrib/lib and
13916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13917 # libtool to hard-code these into programs
13918 ;;
13919
13920 cygwin* | mingw* | pw32* | cegcc*)
13921 version_type=windows
13922 shrext_cmds=".dll"
13923 need_version=no
13924 need_lib_prefix=no
13925
13926 case $GCC,$host_os in
13927 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13928 library_names_spec='$libname.dll.a'
13929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13930 postinstall_cmds='base_file=`basename \${file}`~
13931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13932 dldir=$destdir/`dirname \$dlpath`~
13933 test -d \$dldir || mkdir -p \$dldir~
13934 $install_prog $dir/$dlname \$dldir/$dlname~
13935 chmod a+x \$dldir/$dlname~
13936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13938 fi'
13939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13940 dlpath=$dir/\$dldll~
13941 $RM \$dlpath'
13942 shlibpath_overrides_runpath=yes
13943
13944 case $host_os in
13945 cygwin*)
13946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13948
13949 ;;
13950 mingw* | cegcc*)
13951 # MinGW DLLs use traditional 'lib' prefix
13952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13953 ;;
13954 pw32*)
13955 # pw32 DLLs use 'pw' prefix rather than 'lib'
13956 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13957 ;;
13958 esac
13959 ;;
13960
13961 *)
13962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13963 ;;
13964 esac
13965 dynamic_linker='Win32 ld.exe'
13966 # FIXME: first we should search . and the directory the executable is in
13967 shlibpath_var=PATH
13968 ;;
13969
13970 darwin* | rhapsody*)
13971 dynamic_linker="$host_os dyld"
13972 version_type=darwin
13973 need_lib_prefix=no
13974 need_version=no
13975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13976 soname_spec='${libname}${release}${major}$shared_ext'
13977 shlibpath_overrides_runpath=yes
13978 shlibpath_var=DYLD_LIBRARY_PATH
13979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13980
13981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13982 ;;
13983
13984 dgux*)
13985 version_type=linux
13986 need_lib_prefix=no
13987 need_version=no
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 ;;
13992
13993 freebsd* | dragonfly*)
13994 # DragonFly does not have aout. When/if they implement a new
13995 # versioning mechanism, adjust this.
13996 if test -x /usr/bin/objformat; then
13997 objformat=`/usr/bin/objformat`
13998 else
13999 case $host_os in
14000 freebsd[23].*) objformat=aout ;;
14001 *) objformat=elf ;;
14002 esac
14003 fi
14004 version_type=freebsd-$objformat
14005 case $version_type in
14006 freebsd-elf*)
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14008 need_version=no
14009 need_lib_prefix=no
14010 ;;
14011 freebsd-*)
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14013 need_version=yes
14014 ;;
14015 esac
14016 shlibpath_var=LD_LIBRARY_PATH
14017 case $host_os in
14018 freebsd2.*)
14019 shlibpath_overrides_runpath=yes
14020 ;;
14021 freebsd3.[01]* | freebsdelf3.[01]*)
14022 shlibpath_overrides_runpath=yes
14023 hardcode_into_libs=yes
14024 ;;
14025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14027 shlibpath_overrides_runpath=no
14028 hardcode_into_libs=yes
14029 ;;
14030 *) # from 4.6 on, and DragonFly
14031 shlibpath_overrides_runpath=yes
14032 hardcode_into_libs=yes
14033 ;;
14034 esac
14035 ;;
14036
14037 gnu*)
14038 version_type=linux
14039 need_lib_prefix=no
14040 need_version=no
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 shlibpath_var=LD_LIBRARY_PATH
14044 hardcode_into_libs=yes
14045 ;;
14046
14047 haiku*)
14048 version_type=linux
14049 need_lib_prefix=no
14050 need_version=no
14051 dynamic_linker="$host_os runtime_loader"
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 shlibpath_var=LIBRARY_PATH
14055 shlibpath_overrides_runpath=yes
14056 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14057 hardcode_into_libs=yes
14058 ;;
14059
14060 hpux9* | hpux10* | hpux11*)
14061 # Give a soname corresponding to the major version so that dld.sl refuses to
14062 # link against other versions.
14063 version_type=sunos
14064 need_lib_prefix=no
14065 need_version=no
14066 case $host_cpu in
14067 ia64*)
14068 shrext_cmds='.so'
14069 hardcode_into_libs=yes
14070 dynamic_linker="$host_os dld.so"
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 if test "X$HPUX_IA64_MODE" = X32; then
14076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14077 else
14078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14079 fi
14080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14081 ;;
14082 hppa*64*)
14083 shrext_cmds='.sl'
14084 hardcode_into_libs=yes
14085 dynamic_linker="$host_os dld.sl"
14086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 soname_spec='${libname}${release}${shared_ext}$major'
14090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14092 ;;
14093 *)
14094 shrext_cmds='.sl'
14095 dynamic_linker="$host_os dld.sl"
14096 shlibpath_var=SHLIB_PATH
14097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14100 ;;
14101 esac
14102 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14103 postinstall_cmds='chmod 555 $lib'
14104 # or fails outright, so override atomically:
14105 install_override_mode=555
14106 ;;
14107
14108 interix[3-9]*)
14109 version_type=linux
14110 need_lib_prefix=no
14111 need_version=no
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=no
14117 hardcode_into_libs=yes
14118 ;;
14119
14120 irix5* | irix6* | nonstopux*)
14121 case $host_os in
14122 nonstopux*) version_type=nonstopux ;;
14123 *)
14124 if test "$lt_cv_prog_gnu_ld" = yes; then
14125 version_type=linux
14126 else
14127 version_type=irix
14128 fi ;;
14129 esac
14130 need_lib_prefix=no
14131 need_version=no
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14134 case $host_os in
14135 irix5* | nonstopux*)
14136 libsuff= shlibsuff=
14137 ;;
14138 *)
14139 case $LD in # libtool.m4 will add one of these switches to LD
14140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14141 libsuff= shlibsuff= libmagic=32-bit;;
14142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14143 libsuff=32 shlibsuff=N32 libmagic=N32;;
14144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14146 *) libsuff= shlibsuff= libmagic=never-match;;
14147 esac
14148 ;;
14149 esac
14150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14151 shlibpath_overrides_runpath=no
14152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14154 hardcode_into_libs=yes
14155 ;;
14156
14157 # No shared lib support for Linux oldld, aout, or coff.
14158 linux*oldld* | linux*aout* | linux*coff*)
14159 dynamic_linker=no
14160 ;;
14161
14162 # This must be Linux ELF.
14163
14164 # uclinux* changes (here and below) have been submitted to the libtool
14165 # project, but have not yet been accepted: they are GCC-local changes
14166 # for the time being. (See
14167 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14168 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14169 version_type=linux
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=no
14177
14178 # Some binutils ld are patched to set DT_RUNPATH
14179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 lt_cv_shlibpath_overrides_runpath=no
14183 save_LDFLAGS=$LDFLAGS
14184 save_libdir=$libdir
14185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189
14190 int
14191 main ()
14192 {
14193
14194 ;
14195 return 0;
14196 }
14197 _ACEOF
14198 if ac_fn_cxx_try_link "$LINENO"; then :
14199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14200 lt_cv_shlibpath_overrides_runpath=yes
14201 fi
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LDFLAGS=$save_LDFLAGS
14206 libdir=$save_libdir
14207
14208 fi
14209
14210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14211
14212 # This implies no fast_install, which is unacceptable.
14213 # Some rework will be needed to allow for fast_install
14214 # before this can be enabled.
14215 hardcode_into_libs=yes
14216
14217 # Append ld.so.conf contents to the search path
14218 if test -f /etc/ld.so.conf; then
14219 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' ' '`
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14221 fi
14222
14223 # We used to test for /lib/ld.so.1 and disable shared libraries on
14224 # powerpc, because MkLinux only supported shared libraries with the
14225 # GNU dynamic linker. Since this was broken with cross compilers,
14226 # most powerpc-linux boxes support dynamic linking these days and
14227 # people can always --disable-shared, the test was removed, and we
14228 # assume the GNU/Linux dynamic linker is in use.
14229 dynamic_linker='GNU/Linux ld.so'
14230 ;;
14231
14232 netbsd*)
14233 version_type=sunos
14234 need_lib_prefix=no
14235 need_version=no
14236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14239 dynamic_linker='NetBSD (a.out) ld.so'
14240 else
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 dynamic_linker='NetBSD ld.elf_so'
14244 fi
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=yes
14247 hardcode_into_libs=yes
14248 ;;
14249
14250 newsos6)
14251 version_type=linux
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes
14255 ;;
14256
14257 *nto* | *qnx*)
14258 version_type=qnx
14259 need_lib_prefix=no
14260 need_version=no
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14264 shlibpath_overrides_runpath=no
14265 hardcode_into_libs=yes
14266 dynamic_linker='ldqnx.so'
14267 ;;
14268
14269 openbsd*)
14270 version_type=sunos
14271 sys_lib_dlsearch_path_spec="/usr/lib"
14272 need_lib_prefix=no
14273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14274 case $host_os in
14275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14276 *) need_version=no ;;
14277 esac
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14282 case $host_os in
14283 openbsd2.[89] | openbsd2.[89].*)
14284 shlibpath_overrides_runpath=no
14285 ;;
14286 *)
14287 shlibpath_overrides_runpath=yes
14288 ;;
14289 esac
14290 else
14291 shlibpath_overrides_runpath=yes
14292 fi
14293 ;;
14294
14295 os2*)
14296 libname_spec='$name'
14297 shrext_cmds=".dll"
14298 need_lib_prefix=no
14299 library_names_spec='$libname${shared_ext} $libname.a'
14300 dynamic_linker='OS/2 ld.exe'
14301 shlibpath_var=LIBPATH
14302 ;;
14303
14304 osf3* | osf4* | osf5*)
14305 version_type=osf
14306 need_lib_prefix=no
14307 need_version=no
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14313 ;;
14314
14315 rdos*)
14316 dynamic_linker=no
14317 ;;
14318
14319 solaris*)
14320 version_type=linux
14321 need_lib_prefix=no
14322 need_version=no
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14326 shlibpath_overrides_runpath=yes
14327 hardcode_into_libs=yes
14328 # ldd complains unless libraries are executable
14329 postinstall_cmds='chmod +x $lib'
14330 ;;
14331
14332 sunos4*)
14333 version_type=sunos
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 shlibpath_overrides_runpath=yes
14338 if test "$with_gnu_ld" = yes; then
14339 need_lib_prefix=no
14340 fi
14341 need_version=yes
14342 ;;
14343
14344 sysv4 | sysv4.3*)
14345 version_type=linux
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 case $host_vendor in
14350 sni)
14351 shlibpath_overrides_runpath=no
14352 need_lib_prefix=no
14353 runpath_var=LD_RUN_PATH
14354 ;;
14355 siemens)
14356 need_lib_prefix=no
14357 ;;
14358 motorola)
14359 need_lib_prefix=no
14360 need_version=no
14361 shlibpath_overrides_runpath=no
14362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14363 ;;
14364 esac
14365 ;;
14366
14367 sysv4*MP*)
14368 if test -d /usr/nec ;then
14369 version_type=linux
14370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14371 soname_spec='$libname${shared_ext}.$major'
14372 shlibpath_var=LD_LIBRARY_PATH
14373 fi
14374 ;;
14375
14376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14377 version_type=freebsd-elf
14378 need_lib_prefix=no
14379 need_version=no
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14385 if test "$with_gnu_ld" = yes; then
14386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14387 else
14388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14389 case $host_os in
14390 sco3.2v5*)
14391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14392 ;;
14393 esac
14394 fi
14395 sys_lib_dlsearch_path_spec='/usr/lib'
14396 ;;
14397
14398 tpf*)
14399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=no
14406 hardcode_into_libs=yes
14407 ;;
14408
14409 uts4*)
14410 version_type=linux
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 shlibpath_var=LD_LIBRARY_PATH
14414 ;;
14415
14416 *)
14417 dynamic_linker=no
14418 ;;
14419 esac
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14421 $as_echo "$dynamic_linker" >&6; }
14422 test "$dynamic_linker" = no && can_build_shared=no
14423
14424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14425 if test "$GCC" = yes; then
14426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14427 fi
14428
14429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14431 fi
14432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14434 fi
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14474 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14475 hardcode_action_CXX=
14476 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14477 test -n "$runpath_var_CXX" ||
14478 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14479
14480 # We can hardcode non-existent directories.
14481 if test "$hardcode_direct_CXX" != no &&
14482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14483 # have to relink, otherwise we might link with an installed library
14484 # when we should be linking with a yet-to-be-installed one
14485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14486 test "$hardcode_minus_L_CXX" != no; then
14487 # Linking always hardcodes the temporary library directory.
14488 hardcode_action_CXX=relink
14489 else
14490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14491 hardcode_action_CXX=immediate
14492 fi
14493 else
14494 # We cannot hardcode anything, or else we can only hardcode existing
14495 # directories.
14496 hardcode_action_CXX=unsupported
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14499 $as_echo "$hardcode_action_CXX" >&6; }
14500
14501 if test "$hardcode_action_CXX" = relink ||
14502 test "$inherit_rpath_CXX" = yes; then
14503 # Fast installation is not supported
14504 enable_fast_install=no
14505 elif test "$shlibpath_overrides_runpath" = yes ||
14506 test "$enable_shared" = no; then
14507 # Fast installation is not necessary
14508 enable_fast_install=needless
14509 fi
14510
14511
14512
14513
14514
14515
14516
14517 fi # test -n "$compiler"
14518
14519 CC=$lt_save_CC
14520 LDCXX=$LD
14521 LD=$lt_save_LD
14522 GCC=$lt_save_GCC
14523 with_gnu_ld=$lt_save_with_gnu_ld
14524 lt_cv_path_LDCXX=$lt_cv_path_LD
14525 lt_cv_path_LD=$lt_save_path_LD
14526 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14527 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14528 fi # test "$_lt_caught_CXX_error" != yes
14529
14530 ac_ext=c
14531 ac_cpp='$CPP $CPPFLAGS'
14532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14535
14536
14537
14538 visibility=
14539 if test "$GXX" = yes; then
14540 visibility=-fvisibility=hidden
14541 fi
14542
14543
14544 # Check whether --enable-cet was given.
14545 if test "${enable_cet+set}" = set; then :
14546 enableval=$enable_cet;
14547 case "$enableval" in
14548 yes|no|auto) ;;
14549 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
14550 esac
14551
14552 else
14553 enable_cet=auto
14554 fi
14555
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
14558 $as_echo_n "checking for CET support... " >&6; }
14559
14560 case "$host" in
14561 i[34567]86-*-linux* | x86_64-*-linux*)
14562 may_have_cet=yes
14563 cet_save_CFLAGS="$CFLAGS"
14564 CFLAGS="$CFLAGS -fcf-protection"
14565 case "$enable_cet" in
14566 auto)
14567 # Check if target supports multi-byte NOPs
14568 # and if compiler and assembler support CET.
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571
14572 int
14573 main ()
14574 {
14575
14576 #if !defined(__SSE2__)
14577 #error target does not support multi-byte NOPs
14578 #else
14579 asm ("setssbsy");
14580 #endif
14581
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587 enable_cet=yes
14588 else
14589 enable_cet=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 ;;
14593 yes)
14594 # Check if compiler and assembler support CET.
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597
14598 int
14599 main ()
14600 {
14601 asm ("setssbsy");
14602 ;
14603 return 0;
14604 }
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 support_cet=yes
14608 else
14609 support_cet=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 if test $support_cet = "no"; then
14613 if test x$enable_bootstrap != xno \
14614 && test -z "${with_build_subdir}" \
14615 && (test ! -f ../stage_current \
14616 || test `cat ../stage_current` != "stage1"); then
14617 # Require CET support only for the final GCC build.
14618 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
14619 else
14620 # Don't enable CET without CET support for non-bootstrap
14621 # build, in stage1 nor for build support.
14622 enable_cet=no
14623 fi
14624 fi
14625 ;;
14626 esac
14627 CFLAGS="$cet_save_CFLAGS"
14628 ;;
14629 *)
14630 may_have_cet=no
14631 enable_cet=no
14632 ;;
14633 esac
14634
14635 cet_save_CFLAGS="$CFLAGS"
14636 CFLAGS="$CFLAGS -fcf-protection=none"
14637 cet_save_LDFLAGS="$LDFLAGS"
14638 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
14639 if test x$may_have_cet = xyes; then
14640 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643
14644 int
14645 main ()
14646 {
14647 return 0;
14648 ;
14649 return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_link "$LINENO"; then :
14653 may_have_cet=yes
14654 else
14655 may_have_cet=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 fi
14660
14661 if test x$may_have_cet = xyes; then
14662 if test x$cross_compiling = xno; then
14663 if test "$cross_compiling" = yes; then :
14664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14666 as_fn_error $? "cannot run test program while cross compiling
14667 See \`config.log' for more details" "$LINENO" 5; }
14668 else
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671
14672 static void
14673 foo (void)
14674 {
14675 }
14676
14677 static void
14678 __attribute__ ((noinline, noclone))
14679 xxx (void (*f) (void))
14680 {
14681 f ();
14682 }
14683
14684 static void
14685 __attribute__ ((noinline, noclone))
14686 bar (void)
14687 {
14688 xxx (foo);
14689 }
14690
14691 int
14692 main ()
14693 {
14694 bar ();
14695 return 0;
14696 }
14697
14698 _ACEOF
14699 if ac_fn_c_try_run "$LINENO"; then :
14700 have_cet=no
14701 else
14702 have_cet=yes
14703 fi
14704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14705 conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 fi
14707
14708 if test x$enable_cet = xno -a x$have_cet = xyes; then
14709 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14710 fi
14711 fi
14712 else
14713 # Enable CET in cross compiler if possible so that it will run on both
14714 # CET and non-CET hosts.
14715 have_cet=yes
14716 fi
14717 if test x$enable_cet = xyes; then
14718 CET_HOST_FLAGS="-fcf-protection"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14720 $as_echo "yes" >&6; }
14721 else
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723 $as_echo "no" >&6; }
14724 fi
14725 CFLAGS="$cet_save_CFLAGS"
14726 LDFLAGS="$cet_save_LDFLAGS"
14727
14728
14729
14730 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14731 if test "x$ac_cv_have_decl_basename" = xyes; then :
14732 ac_have_decl=1
14733 else
14734 ac_have_decl=0
14735 fi
14736
14737 cat >>confdefs.h <<_ACEOF
14738 #define HAVE_DECL_BASENAME $ac_have_decl
14739 _ACEOF
14740
14741
14742
14743 get_gcc_base_ver="cat"
14744
14745 # Check whether --with-gcc-major-version-only was given.
14746 if test "${with_gcc_major_version_only+set}" = set; then :
14747 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14748 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14749 fi
14750
14751 fi
14752
14753
14754
14755
14756 if test x$with_gcc_major_version_only = xyes ; then
14757 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14758 else
14759 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14760 fi
14761
14762 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14763
14764
14765 ac_ext=c
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770
14771 WARN_FLAGS=
14772 save_CFLAGS="$CFLAGS"
14773 for real_option in -W -Wall; do
14774 # Do the check with the no- prefix removed since gcc silently
14775 # accepts any -Wno-* option on purpose
14776 case $real_option in
14777 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14778 *) option=$real_option ;;
14779 esac
14780 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14783 $as_echo_n "checking whether $CC supports $option... " >&6; }
14784 if eval \${$as_acx_Woption+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 CFLAGS="$option"
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790
14791 int
14792 main ()
14793 {
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800 eval "$as_acx_Woption=yes"
14801 else
14802 eval "$as_acx_Woption=no"
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805
14806 fi
14807 eval ac_res=\$$as_acx_Woption
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14809 $as_echo "$ac_res" >&6; }
14810 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14811 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14812 fi
14813 done
14814 CFLAGS="$save_CFLAGS"
14815 ac_ext=c
14816 ac_cpp='$CPP $CPPFLAGS'
14817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14820
14821
14822
14823 ac_ext=c
14824 ac_cpp='$CPP $CPPFLAGS'
14825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828
14829 WERROR=
14830 # Check whether --enable-werror-always was given.
14831 if test "${enable_werror_always+set}" = set; then :
14832 enableval=$enable_werror_always;
14833 else
14834 enable_werror_always=no
14835 fi
14836
14837 if test $enable_werror_always = yes; then :
14838 WERROR="$WERROR${WERROR:+ }-Werror"
14839 fi
14840
14841 ac_ext=c
14842 ac_cpp='$CPP $CPPFLAGS'
14843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14846
14847
14848
14849
14850
14851 libsuffix=
14852 if test "$GXX" = yes; then
14853 libsuffix=`$CXX -print-multi-os-directory`
14854 fi
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14858 $as_echo_n "checking for socket libraries... " >&6; }
14859 if ${libcc1_cv_lib_sockets+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 libcc1_cv_lib_sockets=
14863 libcc1_check_both=no
14864 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14865 if test "x$ac_cv_func_connect" = xyes; then :
14866 libcc1_check_socket=no
14867 else
14868 libcc1_check_socket=yes
14869 fi
14870
14871 if test "$libcc1_check_socket" = "yes"; then
14872 unset ac_cv_func_connect
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14874 $as_echo_n "checking for main in -lsocket... " >&6; }
14875 if ${ac_cv_lib_socket_main+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lsocket $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882
14883
14884 int
14885 main ()
14886 {
14887 return main ();
14888 ;
14889 return 0;
14890 }
14891 _ACEOF
14892 if ac_fn_c_try_link "$LINENO"; then :
14893 ac_cv_lib_socket_main=yes
14894 else
14895 ac_cv_lib_socket_main=no
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14900 fi
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14902 $as_echo "$ac_cv_lib_socket_main" >&6; }
14903 if test "x$ac_cv_lib_socket_main" = xyes; then :
14904 libcc1_cv_lib_sockets="-lsocket"
14905 else
14906 libcc1_check_both=yes
14907 fi
14908
14909 fi
14910 if test "$libcc1_check_both" = "yes"; then
14911 libcc1_old_libs=$LIBS
14912 LIBS="$LIBS -lsocket -lnsl"
14913 unset ac_cv_func_accept
14914 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14915 if test "x$ac_cv_func_accept" = xyes; then :
14916 libcc1_check_nsl=no
14917 libcc1_cv_lib_sockets="-lsocket -lnsl"
14918 fi
14919
14920 unset ac_cv_func_accept
14921 LIBS=$libcc1_old_libs
14922 fi
14923 unset ac_cv_func_gethostbyname
14924 libcc1_old_libs="$LIBS"
14925 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14926 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14927
14928 else
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14930 $as_echo_n "checking for main in -lnsl... " >&6; }
14931 if ${ac_cv_lib_nsl_main+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 ac_check_lib_save_LIBS=$LIBS
14935 LIBS="-lnsl $LIBS"
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938
14939
14940 int
14941 main ()
14942 {
14943 return main ();
14944 ;
14945 return 0;
14946 }
14947 _ACEOF
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 ac_cv_lib_nsl_main=yes
14950 else
14951 ac_cv_lib_nsl_main=no
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14955 LIBS=$ac_check_lib_save_LIBS
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14958 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14959 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14960 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14961 fi
14962
14963 fi
14964
14965 unset ac_cv_func_gethostbyname
14966 LIBS=$libcc1_old_libs
14967
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14970 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14971 LIBS="$LIBS $libcc1_cv_lib_sockets"
14972
14973 # If any of these functions are missing, simply don't bother building
14974 # this plugin.
14975 # Check for plugin support
14976 # Check whether --enable-plugin was given.
14977 if test "${enable_plugin+set}" = set; then :
14978 enableval=$enable_plugin; enable_plugin=$enableval
14979 else
14980 enable_plugin=yes; default_plugin=yes
14981 fi
14982
14983
14984 pluginlibs=
14985 plugin_check=yes
14986
14987 case "${host}" in
14988 *-*-mingw*)
14989 # Since plugin support under MinGW is not as straightforward as on
14990 # other platforms (e.g., we have to link import library, etc), we
14991 # only enable it if explicitly requested.
14992 if test x"$default_plugin" = x"yes"; then
14993 enable_plugin=no
14994 elif test x"$enable_plugin" = x"yes"; then
14995 # Use make's target variable to derive import library name.
14996 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
14997 plugin_check=no
14998 fi
14999 ;;
15000 *-*-darwin*)
15001 if test x$build = x$host; then
15002 export_sym_check="nm${exeext} -g"
15003 elif test x$host = x$target; then
15004 export_sym_check="$gcc_cv_nm -g"
15005 else
15006 export_sym_check=
15007 fi
15008 ;;
15009 *)
15010 if test x$build = x$host; then
15011 export_sym_check="objdump${exeext} -T"
15012 elif test x$host = x$target; then
15013 export_sym_check="$gcc_cv_objdump -T"
15014 else
15015 export_sym_check=
15016 fi
15017 ;;
15018 esac
15019
15020 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
15023 $as_echo_n "checking for exported symbols... " >&6; }
15024 if test "x$export_sym_check" != x; then
15025 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
15026 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15027 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15028 : # No need to use a flag
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15030 $as_echo "yes" >&6; }
15031 else
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15033 $as_echo "yes" >&6; }
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
15035 $as_echo_n "checking for -rdynamic... " >&6; }
15036 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15037 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15038 plugin_rdynamic=yes
15039 pluginlibs="-rdynamic"
15040 else
15041 plugin_rdynamic=no
15042 enable_plugin=no
15043 fi
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
15045 $as_echo "$plugin_rdynamic" >&6; }
15046 fi
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
15049 $as_echo "unable to check" >&6; }
15050 fi
15051
15052 # Check -ldl
15053 saved_LIBS="$LIBS"
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15055 $as_echo_n "checking for library containing dlopen... " >&6; }
15056 if ${ac_cv_search_dlopen+:} false; then :
15057 $as_echo_n "(cached) " >&6
15058 else
15059 ac_func_search_save_LIBS=$LIBS
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 char dlopen ();
15070 int
15071 main ()
15072 {
15073 return dlopen ();
15074 ;
15075 return 0;
15076 }
15077 _ACEOF
15078 for ac_lib in '' dl; do
15079 if test -z "$ac_lib"; then
15080 ac_res="none required"
15081 else
15082 ac_res=-l$ac_lib
15083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15084 fi
15085 if ac_fn_c_try_link "$LINENO"; then :
15086 ac_cv_search_dlopen=$ac_res
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext
15090 if ${ac_cv_search_dlopen+:} false; then :
15091 break
15092 fi
15093 done
15094 if ${ac_cv_search_dlopen+:} false; then :
15095
15096 else
15097 ac_cv_search_dlopen=no
15098 fi
15099 rm conftest.$ac_ext
15100 LIBS=$ac_func_search_save_LIBS
15101 fi
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15103 $as_echo "$ac_cv_search_dlopen" >&6; }
15104 ac_res=$ac_cv_search_dlopen
15105 if test "$ac_res" != no; then :
15106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15107
15108 fi
15109
15110 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
15111 pluginlibs="$pluginlibs -ldl"
15112 fi
15113 LIBS="$saved_LIBS"
15114
15115 # Check that we can build shared objects with -fPIC -shared
15116 saved_LDFLAGS="$LDFLAGS"
15117 saved_CFLAGS="$CFLAGS"
15118 case "${host}" in
15119 *-*-darwin*)
15120 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
15121 CFLAGS="$CFLAGS -fPIC"
15122 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
15123 ;;
15124 *)
15125 CFLAGS="$CFLAGS -fPIC"
15126 LDFLAGS="$LDFLAGS -fPIC -shared"
15127 ;;
15128 esac
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
15130 $as_echo_n "checking for -fPIC -shared... " >&6; }
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 extern int X;
15134 int
15135 main ()
15136 {
15137 return X == 0;
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15144 $as_echo "yes" >&6; }; have_pic_shared=yes
15145 else
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15147 $as_echo "no" >&6; }; have_pic_shared=no
15148 fi
15149 rm -f core conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15151 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
15152 pluginlibs=
15153 enable_plugin=no
15154 fi
15155 LDFLAGS="$saved_LDFLAGS"
15156 CFLAGS="$saved_CFLAGS"
15157
15158 # If plugin support had been requested but not available, fail.
15159 if test x"$enable_plugin" = x"no" ; then
15160 if test x"$default_plugin" != x"yes"; then
15161 as_fn_error $? "
15162 Building GCC with plugin support requires a host that supports
15163 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
15164 fi
15165 fi
15166 fi
15167
15168 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
15169 if test "x$ac_cv_func_socketpair" = xyes; then :
15170
15171 else
15172 enable_plugin=no
15173 fi
15174
15175 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15176 if test "x$ac_cv_func_select" = xyes; then :
15177
15178 else
15179 enable_plugin=no
15180 fi
15181
15182 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
15183 if test "x$ac_cv_func_fork" = xyes; then :
15184
15185 else
15186 enable_plugin=no
15187 fi
15188
15189 if test $enable_plugin = yes; then
15190 ENABLE_PLUGIN_TRUE=
15191 ENABLE_PLUGIN_FALSE='#'
15192 else
15193 ENABLE_PLUGIN_TRUE='#'
15194 ENABLE_PLUGIN_FALSE=
15195 fi
15196
15197
15198 ac_config_files="$ac_config_files Makefile"
15199
15200 cat >confcache <<\_ACEOF
15201 # This file is a shell script that caches the results of configure
15202 # tests run on this system so they can be shared between configure
15203 # scripts and configure runs, see configure's option --config-cache.
15204 # It is not useful on other systems. If it contains results you don't
15205 # want to keep, you may remove or edit it.
15206 #
15207 # config.status only pays attention to the cache file if you give it
15208 # the --recheck option to rerun configure.
15209 #
15210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15212 # following values.
15213
15214 _ACEOF
15215
15216 # The following way of writing the cache mishandles newlines in values,
15217 # but we know of no workaround that is simple, portable, and efficient.
15218 # So, we kill variables containing newlines.
15219 # Ultrix sh set writes to stderr and can't be redirected directly,
15220 # and sets the high bit in the cache file unless we assign to the vars.
15221 (
15222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15223 eval ac_val=\$$ac_var
15224 case $ac_val in #(
15225 *${as_nl}*)
15226 case $ac_var in #(
15227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15229 esac
15230 case $ac_var in #(
15231 _ | IFS | as_nl) ;; #(
15232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15233 *) { eval $ac_var=; unset $ac_var;} ;;
15234 esac ;;
15235 esac
15236 done
15237
15238 (set) 2>&1 |
15239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15240 *${as_nl}ac_space=\ *)
15241 # `set' does not quote correctly, so add quotes: double-quote
15242 # substitution turns \\\\ into \\, and sed turns \\ into \.
15243 sed -n \
15244 "s/'/'\\\\''/g;
15245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15246 ;; #(
15247 *)
15248 # `set' quotes correctly as required by POSIX, so do not add quotes.
15249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15250 ;;
15251 esac |
15252 sort
15253 ) |
15254 sed '
15255 /^ac_cv_env_/b end
15256 t clear
15257 :clear
15258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15259 t end
15260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15261 :end' >>confcache
15262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15263 if test -w "$cache_file"; then
15264 if test "x$cache_file" != "x/dev/null"; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15266 $as_echo "$as_me: updating cache $cache_file" >&6;}
15267 if test ! -f "$cache_file" || test -h "$cache_file"; then
15268 cat confcache >"$cache_file"
15269 else
15270 case $cache_file in #(
15271 */* | ?:*)
15272 mv -f confcache "$cache_file"$$ &&
15273 mv -f "$cache_file"$$ "$cache_file" ;; #(
15274 *)
15275 mv -f confcache "$cache_file" ;;
15276 esac
15277 fi
15278 fi
15279 else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15282 fi
15283 fi
15284 rm -f confcache
15285
15286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15287 # Let make expand exec_prefix.
15288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15289
15290 DEFS=-DHAVE_CONFIG_H
15291
15292 ac_libobjs=
15293 ac_ltlibobjs=
15294 U=
15295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15296 # 1. Remove the extension, and $U if already installed.
15297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15300 # will be set to the directory where LIBOBJS objects are built.
15301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15303 done
15304 LIBOBJS=$ac_libobjs
15305
15306 LTLIBOBJS=$ac_ltlibobjs
15307
15308
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15310 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15311 if test -n "$am_sleep_pid"; then
15312 # Hide warnings about reused PIDs.
15313 wait $am_sleep_pid 2>/dev/null
15314 fi
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15316 $as_echo "done" >&6; }
15317 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15318 as_fn_error $? "conditional \"AMDEP\" was never defined.
15319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15320 fi
15321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15324 fi
15325 if test -n "$EXEEXT"; then
15326 am__EXEEXT_TRUE=
15327 am__EXEEXT_FALSE='#'
15328 else
15329 am__EXEEXT_TRUE='#'
15330 am__EXEEXT_FALSE=
15331 fi
15332
15333 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15334 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15336 fi
15337 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15338 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15340 fi
15341 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15342 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15344 fi
15345
15346 : "${CONFIG_STATUS=./config.status}"
15347 ac_write_fail=0
15348 ac_clean_files_save=$ac_clean_files
15349 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15351 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15352 as_write_fail=0
15353 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15354 #! $SHELL
15355 # Generated by $as_me.
15356 # Run this file to recreate the current configuration.
15357 # Compiler output produced by configure, useful for debugging
15358 # configure, is in config.log if it exists.
15359
15360 debug=false
15361 ac_cs_recheck=false
15362 ac_cs_silent=false
15363
15364 SHELL=\${CONFIG_SHELL-$SHELL}
15365 export SHELL
15366 _ASEOF
15367 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15368 ## -------------------- ##
15369 ## M4sh Initialization. ##
15370 ## -------------------- ##
15371
15372 # Be more Bourne compatible
15373 DUALCASE=1; export DUALCASE # for MKS sh
15374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15375 emulate sh
15376 NULLCMD=:
15377 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15378 # is contrary to our usage. Disable this feature.
15379 alias -g '${1+"$@"}'='"$@"'
15380 setopt NO_GLOB_SUBST
15381 else
15382 case `(set -o) 2>/dev/null` in #(
15383 *posix*) :
15384 set -o posix ;; #(
15385 *) :
15386 ;;
15387 esac
15388 fi
15389
15390
15391 as_nl='
15392 '
15393 export as_nl
15394 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15395 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15397 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15398 # Prefer a ksh shell builtin over an external printf program on Solaris,
15399 # but without wasting forks for bash or zsh.
15400 if test -z "$BASH_VERSION$ZSH_VERSION" \
15401 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15402 as_echo='print -r --'
15403 as_echo_n='print -rn --'
15404 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15405 as_echo='printf %s\n'
15406 as_echo_n='printf %s'
15407 else
15408 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15409 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15410 as_echo_n='/usr/ucb/echo -n'
15411 else
15412 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15413 as_echo_n_body='eval
15414 arg=$1;
15415 case $arg in #(
15416 *"$as_nl"*)
15417 expr "X$arg" : "X\\(.*\\)$as_nl";
15418 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15419 esac;
15420 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15421 '
15422 export as_echo_n_body
15423 as_echo_n='sh -c $as_echo_n_body as_echo'
15424 fi
15425 export as_echo_body
15426 as_echo='sh -c $as_echo_body as_echo'
15427 fi
15428
15429 # The user is always right.
15430 if test "${PATH_SEPARATOR+set}" != set; then
15431 PATH_SEPARATOR=:
15432 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15433 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15434 PATH_SEPARATOR=';'
15435 }
15436 fi
15437
15438
15439 # IFS
15440 # We need space, tab and new line, in precisely that order. Quoting is
15441 # there to prevent editors from complaining about space-tab.
15442 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15443 # splitting by setting IFS to empty value.)
15444 IFS=" "" $as_nl"
15445
15446 # Find who we are. Look in the path if we contain no directory separator.
15447 as_myself=
15448 case $0 in #((
15449 *[\\/]* ) as_myself=$0 ;;
15450 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453 IFS=$as_save_IFS
15454 test -z "$as_dir" && as_dir=.
15455 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15456 done
15457 IFS=$as_save_IFS
15458
15459 ;;
15460 esac
15461 # We did not find ourselves, most probably we were run as `sh COMMAND'
15462 # in which case we are not to be found in the path.
15463 if test "x$as_myself" = x; then
15464 as_myself=$0
15465 fi
15466 if test ! -f "$as_myself"; then
15467 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15468 exit 1
15469 fi
15470
15471 # Unset variables that we do not need and which cause bugs (e.g. in
15472 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15473 # suppresses any "Segmentation fault" message there. '((' could
15474 # trigger a bug in pdksh 5.2.14.
15475 for as_var in BASH_ENV ENV MAIL MAILPATH
15476 do eval test x\${$as_var+set} = xset \
15477 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15478 done
15479 PS1='$ '
15480 PS2='> '
15481 PS4='+ '
15482
15483 # NLS nuisances.
15484 LC_ALL=C
15485 export LC_ALL
15486 LANGUAGE=C
15487 export LANGUAGE
15488
15489 # CDPATH.
15490 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15491
15492
15493 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15494 # ----------------------------------------
15495 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15496 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15497 # script with STATUS, using 1 if that was 0.
15498 as_fn_error ()
15499 {
15500 as_status=$1; test $as_status -eq 0 && as_status=1
15501 if test "$4"; then
15502 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15503 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15504 fi
15505 $as_echo "$as_me: error: $2" >&2
15506 as_fn_exit $as_status
15507 } # as_fn_error
15508
15509
15510 # as_fn_set_status STATUS
15511 # -----------------------
15512 # Set $? to STATUS, without forking.
15513 as_fn_set_status ()
15514 {
15515 return $1
15516 } # as_fn_set_status
15517
15518 # as_fn_exit STATUS
15519 # -----------------
15520 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15521 as_fn_exit ()
15522 {
15523 set +e
15524 as_fn_set_status $1
15525 exit $1
15526 } # as_fn_exit
15527
15528 # as_fn_unset VAR
15529 # ---------------
15530 # Portably unset VAR.
15531 as_fn_unset ()
15532 {
15533 { eval $1=; unset $1;}
15534 }
15535 as_unset=as_fn_unset
15536 # as_fn_append VAR VALUE
15537 # ----------------------
15538 # Append the text in VALUE to the end of the definition contained in VAR. Take
15539 # advantage of any shell optimizations that allow amortized linear growth over
15540 # repeated appends, instead of the typical quadratic growth present in naive
15541 # implementations.
15542 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15543 eval 'as_fn_append ()
15544 {
15545 eval $1+=\$2
15546 }'
15547 else
15548 as_fn_append ()
15549 {
15550 eval $1=\$$1\$2
15551 }
15552 fi # as_fn_append
15553
15554 # as_fn_arith ARG...
15555 # ------------------
15556 # Perform arithmetic evaluation on the ARGs, and store the result in the
15557 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15558 # must be portable across $(()) and expr.
15559 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15560 eval 'as_fn_arith ()
15561 {
15562 as_val=$(( $* ))
15563 }'
15564 else
15565 as_fn_arith ()
15566 {
15567 as_val=`expr "$@" || test $? -eq 1`
15568 }
15569 fi # as_fn_arith
15570
15571
15572 if expr a : '\(a\)' >/dev/null 2>&1 &&
15573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15574 as_expr=expr
15575 else
15576 as_expr=false
15577 fi
15578
15579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15580 as_basename=basename
15581 else
15582 as_basename=false
15583 fi
15584
15585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15586 as_dirname=dirname
15587 else
15588 as_dirname=false
15589 fi
15590
15591 as_me=`$as_basename -- "$0" ||
15592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15593 X"$0" : 'X\(//\)$' \| \
15594 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15595 $as_echo X/"$0" |
15596 sed '/^.*\/\([^/][^/]*\)\/*$/{
15597 s//\1/
15598 q
15599 }
15600 /^X\/\(\/\/\)$/{
15601 s//\1/
15602 q
15603 }
15604 /^X\/\(\/\).*/{
15605 s//\1/
15606 q
15607 }
15608 s/.*/./; q'`
15609
15610 # Avoid depending upon Character Ranges.
15611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15614 as_cr_digits='0123456789'
15615 as_cr_alnum=$as_cr_Letters$as_cr_digits
15616
15617 ECHO_C= ECHO_N= ECHO_T=
15618 case `echo -n x` in #(((((
15619 -n*)
15620 case `echo 'xy\c'` in
15621 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15622 xy) ECHO_C='\c';;
15623 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15624 ECHO_T=' ';;
15625 esac;;
15626 *)
15627 ECHO_N='-n';;
15628 esac
15629
15630 rm -f conf$$ conf$$.exe conf$$.file
15631 if test -d conf$$.dir; then
15632 rm -f conf$$.dir/conf$$.file
15633 else
15634 rm -f conf$$.dir
15635 mkdir conf$$.dir 2>/dev/null
15636 fi
15637 if (echo >conf$$.file) 2>/dev/null; then
15638 if ln -s conf$$.file conf$$ 2>/dev/null; then
15639 as_ln_s='ln -s'
15640 # ... but there are two gotchas:
15641 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15642 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15643 # In both cases, we have to default to `cp -pR'.
15644 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15645 as_ln_s='cp -pR'
15646 elif ln conf$$.file conf$$ 2>/dev/null; then
15647 as_ln_s=ln
15648 else
15649 as_ln_s='cp -pR'
15650 fi
15651 else
15652 as_ln_s='cp -pR'
15653 fi
15654 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15655 rmdir conf$$.dir 2>/dev/null
15656
15657
15658 # as_fn_mkdir_p
15659 # -------------
15660 # Create "$as_dir" as a directory, including parents if necessary.
15661 as_fn_mkdir_p ()
15662 {
15663
15664 case $as_dir in #(
15665 -*) as_dir=./$as_dir;;
15666 esac
15667 test -d "$as_dir" || eval $as_mkdir_p || {
15668 as_dirs=
15669 while :; do
15670 case $as_dir in #(
15671 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15672 *) as_qdir=$as_dir;;
15673 esac
15674 as_dirs="'$as_qdir' $as_dirs"
15675 as_dir=`$as_dirname -- "$as_dir" ||
15676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15677 X"$as_dir" : 'X\(//\)[^/]' \| \
15678 X"$as_dir" : 'X\(//\)$' \| \
15679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15680 $as_echo X"$as_dir" |
15681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15682 s//\1/
15683 q
15684 }
15685 /^X\(\/\/\)[^/].*/{
15686 s//\1/
15687 q
15688 }
15689 /^X\(\/\/\)$/{
15690 s//\1/
15691 q
15692 }
15693 /^X\(\/\).*/{
15694 s//\1/
15695 q
15696 }
15697 s/.*/./; q'`
15698 test -d "$as_dir" && break
15699 done
15700 test -z "$as_dirs" || eval "mkdir $as_dirs"
15701 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15702
15703
15704 } # as_fn_mkdir_p
15705 if mkdir -p . 2>/dev/null; then
15706 as_mkdir_p='mkdir -p "$as_dir"'
15707 else
15708 test -d ./-p && rmdir ./-p
15709 as_mkdir_p=false
15710 fi
15711
15712
15713 # as_fn_executable_p FILE
15714 # -----------------------
15715 # Test if FILE is an executable regular file.
15716 as_fn_executable_p ()
15717 {
15718 test -f "$1" && test -x "$1"
15719 } # as_fn_executable_p
15720 as_test_x='test -x'
15721 as_executable_p=as_fn_executable_p
15722
15723 # Sed expression to map a string onto a valid CPP name.
15724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15725
15726 # Sed expression to map a string onto a valid variable name.
15727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15728
15729
15730 exec 6>&1
15731 ## ----------------------------------- ##
15732 ## Main body of $CONFIG_STATUS script. ##
15733 ## ----------------------------------- ##
15734 _ASEOF
15735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15736
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 # Save the log message, to keep $0 and so on meaningful, and to
15739 # report actual input values of CONFIG_FILES etc. instead of their
15740 # values after options handling.
15741 ac_log="
15742 This file was extended by libcc1 $as_me version-unused, which was
15743 generated by GNU Autoconf 2.69. Invocation command line was
15744
15745 CONFIG_FILES = $CONFIG_FILES
15746 CONFIG_HEADERS = $CONFIG_HEADERS
15747 CONFIG_LINKS = $CONFIG_LINKS
15748 CONFIG_COMMANDS = $CONFIG_COMMANDS
15749 $ $0 $@
15750
15751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15752 "
15753
15754 _ACEOF
15755
15756 case $ac_config_files in *"
15757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15758 esac
15759
15760 case $ac_config_headers in *"
15761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15762 esac
15763
15764
15765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15766 # Files that config.status was made for.
15767 config_files="$ac_config_files"
15768 config_headers="$ac_config_headers"
15769 config_commands="$ac_config_commands"
15770
15771 _ACEOF
15772
15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15774 ac_cs_usage="\
15775 \`$as_me' instantiates files and other configuration actions
15776 from templates according to the current configuration. Unless the files
15777 and actions are specified as TAGs, all are instantiated by default.
15778
15779 Usage: $0 [OPTION]... [TAG]...
15780
15781 -h, --help print this help, then exit
15782 -V, --version print version number and configuration settings, then exit
15783 --config print configuration, then exit
15784 -q, --quiet, --silent
15785 do not print progress messages
15786 -d, --debug don't remove temporary files
15787 --recheck update $as_me by reconfiguring in the same conditions
15788 --file=FILE[:TEMPLATE]
15789 instantiate the configuration file FILE
15790 --header=FILE[:TEMPLATE]
15791 instantiate the configuration header FILE
15792
15793 Configuration files:
15794 $config_files
15795
15796 Configuration headers:
15797 $config_headers
15798
15799 Configuration commands:
15800 $config_commands
15801
15802 Report bugs to the package provider."
15803
15804 _ACEOF
15805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15807 ac_cs_version="\\
15808 libcc1 config.status version-unused
15809 configured by $0, generated by GNU Autoconf 2.69,
15810 with options \\"\$ac_cs_config\\"
15811
15812 Copyright (C) 2012 Free Software Foundation, Inc.
15813 This config.status script is free software; the Free Software Foundation
15814 gives unlimited permission to copy, distribute and modify it."
15815
15816 ac_pwd='$ac_pwd'
15817 srcdir='$srcdir'
15818 INSTALL='$INSTALL'
15819 MKDIR_P='$MKDIR_P'
15820 AWK='$AWK'
15821 test -n "\$AWK" || AWK=awk
15822 _ACEOF
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # The default lists apply if the user does not specify any file.
15826 ac_need_defaults=:
15827 while test $# != 0
15828 do
15829 case $1 in
15830 --*=?*)
15831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15833 ac_shift=:
15834 ;;
15835 --*=)
15836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15837 ac_optarg=
15838 ac_shift=:
15839 ;;
15840 *)
15841 ac_option=$1
15842 ac_optarg=$2
15843 ac_shift=shift
15844 ;;
15845 esac
15846
15847 case $ac_option in
15848 # Handling of the options.
15849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15850 ac_cs_recheck=: ;;
15851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15852 $as_echo "$ac_cs_version"; exit ;;
15853 --config | --confi | --conf | --con | --co | --c )
15854 $as_echo "$ac_cs_config"; exit ;;
15855 --debug | --debu | --deb | --de | --d | -d )
15856 debug=: ;;
15857 --file | --fil | --fi | --f )
15858 $ac_shift
15859 case $ac_optarg in
15860 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15861 '') as_fn_error $? "missing file argument" ;;
15862 esac
15863 as_fn_append CONFIG_FILES " '$ac_optarg'"
15864 ac_need_defaults=false;;
15865 --header | --heade | --head | --hea )
15866 $ac_shift
15867 case $ac_optarg in
15868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15869 esac
15870 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15871 ac_need_defaults=false;;
15872 --he | --h)
15873 # Conflict between --help and --header
15874 as_fn_error $? "ambiguous option: \`$1'
15875 Try \`$0 --help' for more information.";;
15876 --help | --hel | -h )
15877 $as_echo "$ac_cs_usage"; exit ;;
15878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15880 ac_cs_silent=: ;;
15881
15882 # This is an error.
15883 -*) as_fn_error $? "unrecognized option: \`$1'
15884 Try \`$0 --help' for more information." ;;
15885
15886 *) as_fn_append ac_config_targets " $1"
15887 ac_need_defaults=false ;;
15888
15889 esac
15890 shift
15891 done
15892
15893 ac_configure_extra_args=
15894
15895 if $ac_cs_silent; then
15896 exec 6>/dev/null
15897 ac_configure_extra_args="$ac_configure_extra_args --silent"
15898 fi
15899
15900 _ACEOF
15901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15902 if \$ac_cs_recheck; then
15903 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15904 shift
15905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15906 CONFIG_SHELL='$SHELL'
15907 export CONFIG_SHELL
15908 exec "\$@"
15909 fi
15910
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15913 exec 5>>config.log
15914 {
15915 echo
15916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15917 ## Running $as_me. ##
15918 _ASBOX
15919 $as_echo "$ac_log"
15920 } >&5
15921
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15924 #
15925 # INIT-COMMANDS
15926 #
15927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15928
15929
15930 # The HP-UX ksh and POSIX shell print the target directory to stdout
15931 # if CDPATH is set.
15932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15933
15934 sed_quote_subst='$sed_quote_subst'
15935 double_quote_subst='$double_quote_subst'
15936 delay_variable_subst='$delay_variable_subst'
15937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15939 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15941 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15942 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15943 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15944 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15945 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15946 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15947 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15948 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15949 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15950 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15951 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15952 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15953 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15954 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15955 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15956 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15957 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15958 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15959 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15960 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15961 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15962 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15963 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15964 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15965 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15966 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15967 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15968 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15969 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15970 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15971 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15984 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15985 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"`'
15986 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15987 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15988 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15989 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15990 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15991 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15992 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15993 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15994 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15995 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15996 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15997 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15998 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15999 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16000 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16001 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16002 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16003 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16004 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16005 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16006 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16007 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16008 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16009 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16010 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16011 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16012 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16013 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16014 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16015 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16016 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16017 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16018 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16019 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16020 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16021 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16022 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16023 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16024 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16025 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16026 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16027 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16028 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16029 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16030 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16031 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16032 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16033 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16034 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16035 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16036 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16037 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16038 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16039 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16040 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16041 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16042 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16043 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16044 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16045 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16046 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16047 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16048 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16049 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16050 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16051 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16052 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16053 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16054 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16055 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16056 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16057 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16058 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16059 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16060 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16061 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16062 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16063 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16064 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16065 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16066 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16067 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16068 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16069 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16072 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16073 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16074 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16075 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16076 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16077 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16078 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16079 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16080 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16081 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16082 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16083 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16084 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16085 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16086 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16087 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16088 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16089 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16090 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16091 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16092 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16093 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16094 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16095 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16096 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16097 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16098 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16099 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16100 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16101 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16102 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16103 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16104 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16105 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16106 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16107 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16108 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16109 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16110 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16111 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16112
16113 LTCC='$LTCC'
16114 LTCFLAGS='$LTCFLAGS'
16115 compiler='$compiler_DEFAULT'
16116
16117 # A function that is used when there is no print builtin or printf.
16118 func_fallback_echo ()
16119 {
16120 eval 'cat <<_LTECHO_EOF
16121 \$1
16122 _LTECHO_EOF'
16123 }
16124
16125 # Quote evaled strings.
16126 for var in SHELL \
16127 ECHO \
16128 SED \
16129 GREP \
16130 EGREP \
16131 FGREP \
16132 LD \
16133 NM \
16134 LN_S \
16135 lt_SP2NL \
16136 lt_NL2SP \
16137 reload_flag \
16138 OBJDUMP \
16139 deplibs_check_method \
16140 file_magic_cmd \
16141 AR \
16142 AR_FLAGS \
16143 STRIP \
16144 RANLIB \
16145 CC \
16146 CFLAGS \
16147 compiler \
16148 lt_cv_sys_global_symbol_pipe \
16149 lt_cv_sys_global_symbol_to_cdecl \
16150 lt_cv_sys_global_symbol_to_c_name_address \
16151 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16152 lt_prog_compiler_no_builtin_flag \
16153 lt_prog_compiler_wl \
16154 lt_prog_compiler_pic \
16155 lt_prog_compiler_static \
16156 lt_cv_prog_compiler_c_o \
16157 need_locks \
16158 DSYMUTIL \
16159 NMEDIT \
16160 LIPO \
16161 OTOOL \
16162 OTOOL64 \
16163 shrext_cmds \
16164 export_dynamic_flag_spec \
16165 whole_archive_flag_spec \
16166 compiler_needs_object \
16167 with_gnu_ld \
16168 allow_undefined_flag \
16169 no_undefined_flag \
16170 hardcode_libdir_flag_spec \
16171 hardcode_libdir_flag_spec_ld \
16172 hardcode_libdir_separator \
16173 fix_srcfile_path \
16174 exclude_expsyms \
16175 include_expsyms \
16176 file_list_spec \
16177 variables_saved_for_relink \
16178 libname_spec \
16179 library_names_spec \
16180 soname_spec \
16181 install_override_mode \
16182 finish_eval \
16183 old_striplib \
16184 striplib \
16185 compiler_lib_search_dirs \
16186 predep_objects \
16187 postdep_objects \
16188 predeps \
16189 postdeps \
16190 compiler_lib_search_path \
16191 LD_CXX \
16192 reload_flag_CXX \
16193 compiler_CXX \
16194 lt_prog_compiler_no_builtin_flag_CXX \
16195 lt_prog_compiler_wl_CXX \
16196 lt_prog_compiler_pic_CXX \
16197 lt_prog_compiler_static_CXX \
16198 lt_cv_prog_compiler_c_o_CXX \
16199 export_dynamic_flag_spec_CXX \
16200 whole_archive_flag_spec_CXX \
16201 compiler_needs_object_CXX \
16202 with_gnu_ld_CXX \
16203 allow_undefined_flag_CXX \
16204 no_undefined_flag_CXX \
16205 hardcode_libdir_flag_spec_CXX \
16206 hardcode_libdir_flag_spec_ld_CXX \
16207 hardcode_libdir_separator_CXX \
16208 fix_srcfile_path_CXX \
16209 exclude_expsyms_CXX \
16210 include_expsyms_CXX \
16211 file_list_spec_CXX \
16212 compiler_lib_search_dirs_CXX \
16213 predep_objects_CXX \
16214 postdep_objects_CXX \
16215 predeps_CXX \
16216 postdeps_CXX \
16217 compiler_lib_search_path_CXX; do
16218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16219 *[\\\\\\\`\\"\\\$]*)
16220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16221 ;;
16222 *)
16223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16224 ;;
16225 esac
16226 done
16227
16228 # Double-quote double-evaled strings.
16229 for var in reload_cmds \
16230 old_postinstall_cmds \
16231 old_postuninstall_cmds \
16232 old_archive_cmds \
16233 extract_expsyms_cmds \
16234 old_archive_from_new_cmds \
16235 old_archive_from_expsyms_cmds \
16236 archive_cmds \
16237 archive_expsym_cmds \
16238 module_cmds \
16239 module_expsym_cmds \
16240 export_symbols_cmds \
16241 prelink_cmds \
16242 postinstall_cmds \
16243 postuninstall_cmds \
16244 finish_cmds \
16245 sys_lib_search_path_spec \
16246 sys_lib_dlsearch_path_spec \
16247 reload_cmds_CXX \
16248 old_archive_cmds_CXX \
16249 old_archive_from_new_cmds_CXX \
16250 old_archive_from_expsyms_cmds_CXX \
16251 archive_cmds_CXX \
16252 archive_expsym_cmds_CXX \
16253 module_cmds_CXX \
16254 module_expsym_cmds_CXX \
16255 export_symbols_cmds_CXX \
16256 prelink_cmds_CXX; do
16257 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16258 *[\\\\\\\`\\"\\\$]*)
16259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16260 ;;
16261 *)
16262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16263 ;;
16264 esac
16265 done
16266
16267 ac_aux_dir='$ac_aux_dir'
16268 xsi_shell='$xsi_shell'
16269 lt_shell_append='$lt_shell_append'
16270
16271 # See if we are running on zsh, and set the options which allow our
16272 # commands through without removal of \ escapes INIT.
16273 if test -n "\${ZSH_VERSION+set}" ; then
16274 setopt NO_GLOB_SUBST
16275 fi
16276
16277
16278 PACKAGE='$PACKAGE'
16279 VERSION='$VERSION'
16280 TIMESTAMP='$TIMESTAMP'
16281 RM='$RM'
16282 ofile='$ofile'
16283
16284
16285
16286
16287
16288
16289 _ACEOF
16290
16291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16292
16293 # Handling of arguments.
16294 for ac_config_target in $ac_config_targets
16295 do
16296 case $ac_config_target in
16297 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16301
16302 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16303 esac
16304 done
16305
16306
16307 # If the user did not use the arguments to specify the items to instantiate,
16308 # then the envvar interface is used. Set only those that are not.
16309 # We use the long form for the default assignment because of an extremely
16310 # bizarre bug on SunOS 4.1.3.
16311 if $ac_need_defaults; then
16312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16315 fi
16316
16317 # Have a temporary directory for convenience. Make it in the build tree
16318 # simply because there is no reason against having it here, and in addition,
16319 # creating and moving files from /tmp can sometimes cause problems.
16320 # Hook for its removal unless debugging.
16321 # Note that there is a small window in which the directory will not be cleaned:
16322 # after its creation but before its name has been assigned to `$tmp'.
16323 $debug ||
16324 {
16325 tmp= ac_tmp=
16326 trap 'exit_status=$?
16327 : "${ac_tmp:=$tmp}"
16328 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16329 ' 0
16330 trap 'as_fn_exit 1' 1 2 13 15
16331 }
16332 # Create a (secure) tmp directory for tmp files.
16333
16334 {
16335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16336 test -d "$tmp"
16337 } ||
16338 {
16339 tmp=./conf$$-$RANDOM
16340 (umask 077 && mkdir "$tmp")
16341 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16342 ac_tmp=$tmp
16343
16344 # Set up the scripts for CONFIG_FILES section.
16345 # No need to generate them if there are no CONFIG_FILES.
16346 # This happens for instance with `./config.status config.h'.
16347 if test -n "$CONFIG_FILES"; then
16348
16349
16350 ac_cr=`echo X | tr X '\015'`
16351 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16352 # But we know of no other shell where ac_cr would be empty at this
16353 # point, so we can use a bashism as a fallback.
16354 if test "x$ac_cr" = x; then
16355 eval ac_cr=\$\'\\r\'
16356 fi
16357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16359 ac_cs_awk_cr='\\r'
16360 else
16361 ac_cs_awk_cr=$ac_cr
16362 fi
16363
16364 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16365 _ACEOF
16366
16367
16368 {
16369 echo "cat >conf$$subs.awk <<_ACEOF" &&
16370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16371 echo "_ACEOF"
16372 } >conf$$subs.sh ||
16373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16375 ac_delim='%!_!# '
16376 for ac_last_try in false false false false false :; do
16377 . ./conf$$subs.sh ||
16378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16379
16380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16381 if test $ac_delim_n = $ac_delim_num; then
16382 break
16383 elif $ac_last_try; then
16384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16385 else
16386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16387 fi
16388 done
16389 rm -f conf$$subs.sh
16390
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16392 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16393 _ACEOF
16394 sed -n '
16395 h
16396 s/^/S["/; s/!.*/"]=/
16397 p
16398 g
16399 s/^[^!]*!//
16400 :repl
16401 t repl
16402 s/'"$ac_delim"'$//
16403 t delim
16404 :nl
16405 h
16406 s/\(.\{148\}\)..*/\1/
16407 t more1
16408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16409 p
16410 n
16411 b repl
16412 :more1
16413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16414 p
16415 g
16416 s/.\{148\}//
16417 t nl
16418 :delim
16419 h
16420 s/\(.\{148\}\)..*/\1/
16421 t more2
16422 s/["\\]/\\&/g; s/^/"/; s/$/"/
16423 p
16424 b
16425 :more2
16426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16427 p
16428 g
16429 s/.\{148\}//
16430 t delim
16431 ' <conf$$subs.awk | sed '
16432 /^[^""]/{
16433 N
16434 s/\n//
16435 }
16436 ' >>$CONFIG_STATUS || ac_write_fail=1
16437 rm -f conf$$subs.awk
16438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16439 _ACAWK
16440 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16441 for (key in S) S_is_set[key] = 1
16442 FS = "\a"
16443
16444 }
16445 {
16446 line = $ 0
16447 nfields = split(line, field, "@")
16448 substed = 0
16449 len = length(field[1])
16450 for (i = 2; i < nfields; i++) {
16451 key = field[i]
16452 keylen = length(key)
16453 if (S_is_set[key]) {
16454 value = S[key]
16455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16456 len += length(value) + length(field[++i])
16457 substed = 1
16458 } else
16459 len += 1 + keylen
16460 }
16461
16462 print line
16463 }
16464
16465 _ACAWK
16466 _ACEOF
16467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16470 else
16471 cat
16472 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16473 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16474 _ACEOF
16475
16476 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16477 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16478 # trailing colons and then remove the whole line if VPATH becomes empty
16479 # (actually we leave an empty line to preserve line numbers).
16480 if test "x$srcdir" = x.; then
16481 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16482 h
16483 s///
16484 s/^/:/
16485 s/[ ]*$/:/
16486 s/:\$(srcdir):/:/g
16487 s/:\${srcdir}:/:/g
16488 s/:@srcdir@:/:/g
16489 s/^:*//
16490 s/:*$//
16491 x
16492 s/\(=[ ]*\).*/\1/
16493 G
16494 s/\n//
16495 s/^[^=]*=[ ]*$//
16496 }'
16497 fi
16498
16499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16500 fi # test -n "$CONFIG_FILES"
16501
16502 # Set up the scripts for CONFIG_HEADERS section.
16503 # No need to generate them if there are no CONFIG_HEADERS.
16504 # This happens for instance with `./config.status Makefile'.
16505 if test -n "$CONFIG_HEADERS"; then
16506 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16507 BEGIN {
16508 _ACEOF
16509
16510 # Transform confdefs.h into an awk script `defines.awk', embedded as
16511 # here-document in config.status, that substitutes the proper values into
16512 # config.h.in to produce config.h.
16513
16514 # Create a delimiter string that does not exist in confdefs.h, to ease
16515 # handling of long lines.
16516 ac_delim='%!_!# '
16517 for ac_last_try in false false :; do
16518 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16519 if test -z "$ac_tt"; then
16520 break
16521 elif $ac_last_try; then
16522 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16523 else
16524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16525 fi
16526 done
16527
16528 # For the awk script, D is an array of macro values keyed by name,
16529 # likewise P contains macro parameters if any. Preserve backslash
16530 # newline sequences.
16531
16532 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16533 sed -n '
16534 s/.\{148\}/&'"$ac_delim"'/g
16535 t rset
16536 :rset
16537 s/^[ ]*#[ ]*define[ ][ ]*/ /
16538 t def
16539 d
16540 :def
16541 s/\\$//
16542 t bsnl
16543 s/["\\]/\\&/g
16544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16545 D["\1"]=" \3"/p
16546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16547 d
16548 :bsnl
16549 s/["\\]/\\&/g
16550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16551 D["\1"]=" \3\\\\\\n"\\/p
16552 t cont
16553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16554 t cont
16555 d
16556 :cont
16557 n
16558 s/.\{148\}/&'"$ac_delim"'/g
16559 t clear
16560 :clear
16561 s/\\$//
16562 t bsnlc
16563 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16564 d
16565 :bsnlc
16566 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16567 b cont
16568 ' <confdefs.h | sed '
16569 s/'"$ac_delim"'/"\\\
16570 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16571
16572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16573 for (key in D) D_is_set[key] = 1
16574 FS = "\a"
16575 }
16576 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16577 line = \$ 0
16578 split(line, arg, " ")
16579 if (arg[1] == "#") {
16580 defundef = arg[2]
16581 mac1 = arg[3]
16582 } else {
16583 defundef = substr(arg[1], 2)
16584 mac1 = arg[2]
16585 }
16586 split(mac1, mac2, "(") #)
16587 macro = mac2[1]
16588 prefix = substr(line, 1, index(line, defundef) - 1)
16589 if (D_is_set[macro]) {
16590 # Preserve the white space surrounding the "#".
16591 print prefix "define", macro P[macro] D[macro]
16592 next
16593 } else {
16594 # Replace #undef with comments. This is necessary, for example,
16595 # in the case of _POSIX_SOURCE, which is predefined and required
16596 # on some systems where configure will not decide to define it.
16597 if (defundef == "undef") {
16598 print "/*", prefix defundef, macro, "*/"
16599 next
16600 }
16601 }
16602 }
16603 { print }
16604 _ACAWK
16605 _ACEOF
16606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16607 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16608 fi # test -n "$CONFIG_HEADERS"
16609
16610
16611 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16612 shift
16613 for ac_tag
16614 do
16615 case $ac_tag in
16616 :[FHLC]) ac_mode=$ac_tag; continue;;
16617 esac
16618 case $ac_mode$ac_tag in
16619 :[FHL]*:*);;
16620 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16621 :[FH]-) ac_tag=-:-;;
16622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16623 esac
16624 ac_save_IFS=$IFS
16625 IFS=:
16626 set x $ac_tag
16627 IFS=$ac_save_IFS
16628 shift
16629 ac_file=$1
16630 shift
16631
16632 case $ac_mode in
16633 :L) ac_source=$1;;
16634 :[FH])
16635 ac_file_inputs=
16636 for ac_f
16637 do
16638 case $ac_f in
16639 -) ac_f="$ac_tmp/stdin";;
16640 *) # Look for the file first in the build tree, then in the source tree
16641 # (if the path is not absolute). The absolute path cannot be DOS-style,
16642 # because $ac_f cannot contain `:'.
16643 test -f "$ac_f" ||
16644 case $ac_f in
16645 [\\/$]*) false;;
16646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16647 esac ||
16648 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16649 esac
16650 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16651 as_fn_append ac_file_inputs " '$ac_f'"
16652 done
16653
16654 # Let's still pretend it is `configure' which instantiates (i.e., don't
16655 # use $as_me), people would be surprised to read:
16656 # /* config.h. Generated by config.status. */
16657 configure_input='Generated from '`
16658 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16659 `' by configure.'
16660 if test x"$ac_file" != x-; then
16661 configure_input="$ac_file. $configure_input"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16663 $as_echo "$as_me: creating $ac_file" >&6;}
16664 fi
16665 # Neutralize special characters interpreted by sed in replacement strings.
16666 case $configure_input in #(
16667 *\&* | *\|* | *\\* )
16668 ac_sed_conf_input=`$as_echo "$configure_input" |
16669 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16670 *) ac_sed_conf_input=$configure_input;;
16671 esac
16672
16673 case $ac_tag in
16674 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16676 esac
16677 ;;
16678 esac
16679
16680 ac_dir=`$as_dirname -- "$ac_file" ||
16681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682 X"$ac_file" : 'X\(//\)[^/]' \| \
16683 X"$ac_file" : 'X\(//\)$' \| \
16684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16685 $as_echo X"$ac_file" |
16686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16687 s//\1/
16688 q
16689 }
16690 /^X\(\/\/\)[^/].*/{
16691 s//\1/
16692 q
16693 }
16694 /^X\(\/\/\)$/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\).*/{
16699 s//\1/
16700 q
16701 }
16702 s/.*/./; q'`
16703 as_dir="$ac_dir"; as_fn_mkdir_p
16704 ac_builddir=.
16705
16706 case "$ac_dir" in
16707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16708 *)
16709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16710 # A ".." for each directory in $ac_dir_suffix.
16711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16712 case $ac_top_builddir_sub in
16713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16715 esac ;;
16716 esac
16717 ac_abs_top_builddir=$ac_pwd
16718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16719 # for backward compatibility:
16720 ac_top_builddir=$ac_top_build_prefix
16721
16722 case $srcdir in
16723 .) # We are building in place.
16724 ac_srcdir=.
16725 ac_top_srcdir=$ac_top_builddir_sub
16726 ac_abs_top_srcdir=$ac_pwd ;;
16727 [\\/]* | ?:[\\/]* ) # Absolute name.
16728 ac_srcdir=$srcdir$ac_dir_suffix;
16729 ac_top_srcdir=$srcdir
16730 ac_abs_top_srcdir=$srcdir ;;
16731 *) # Relative name.
16732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16733 ac_top_srcdir=$ac_top_build_prefix$srcdir
16734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16735 esac
16736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16737
16738
16739 case $ac_mode in
16740 :F)
16741 #
16742 # CONFIG_FILE
16743 #
16744
16745 case $INSTALL in
16746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16748 esac
16749 ac_MKDIR_P=$MKDIR_P
16750 case $MKDIR_P in
16751 [\\/$]* | ?:[\\/]* ) ;;
16752 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16753 esac
16754 _ACEOF
16755
16756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757 # If the template does not know about datarootdir, expand it.
16758 # FIXME: This hack should be removed a few years after 2.60.
16759 ac_datarootdir_hack=; ac_datarootdir_seen=
16760 ac_sed_dataroot='
16761 /datarootdir/ {
16762 p
16763 q
16764 }
16765 /@datadir@/p
16766 /@docdir@/p
16767 /@infodir@/p
16768 /@localedir@/p
16769 /@mandir@/p'
16770 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16771 *datarootdir*) ac_datarootdir_seen=yes;;
16772 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16774 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16775 _ACEOF
16776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16777 ac_datarootdir_hack='
16778 s&@datadir@&$datadir&g
16779 s&@docdir@&$docdir&g
16780 s&@infodir@&$infodir&g
16781 s&@localedir@&$localedir&g
16782 s&@mandir@&$mandir&g
16783 s&\\\${datarootdir}&$datarootdir&g' ;;
16784 esac
16785 _ACEOF
16786
16787 # Neutralize VPATH when `$srcdir' = `.'.
16788 # Shell code in configure.ac might set extrasub.
16789 # FIXME: do we really want to maintain this feature?
16790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16791 ac_sed_extra="$ac_vpsub
16792 $extrasub
16793 _ACEOF
16794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795 :t
16796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16797 s|@configure_input@|$ac_sed_conf_input|;t t
16798 s&@top_builddir@&$ac_top_builddir_sub&;t t
16799 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16800 s&@srcdir@&$ac_srcdir&;t t
16801 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16802 s&@top_srcdir@&$ac_top_srcdir&;t t
16803 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16804 s&@builddir@&$ac_builddir&;t t
16805 s&@abs_builddir@&$ac_abs_builddir&;t t
16806 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16807 s&@INSTALL@&$ac_INSTALL&;t t
16808 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16809 $ac_datarootdir_hack
16810 "
16811 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16812 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16813
16814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16815 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16817 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16819 which seems to be undefined. Please make sure it is defined" >&5
16820 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16821 which seems to be undefined. Please make sure it is defined" >&2;}
16822
16823 rm -f "$ac_tmp/stdin"
16824 case $ac_file in
16825 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16826 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16827 esac \
16828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16829 ;;
16830 :H)
16831 #
16832 # CONFIG_HEADER
16833 #
16834 if test x"$ac_file" != x-; then
16835 {
16836 $as_echo "/* $configure_input */" \
16837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16838 } >"$ac_tmp/config.h" \
16839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16840 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16842 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16843 else
16844 rm -f "$ac_file"
16845 mv "$ac_tmp/config.h" "$ac_file" \
16846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16847 fi
16848 else
16849 $as_echo "/* $configure_input */" \
16850 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16851 || as_fn_error $? "could not create -" "$LINENO" 5
16852 fi
16853 # Compute "$ac_file"'s index in $config_headers.
16854 _am_arg="$ac_file"
16855 _am_stamp_count=1
16856 for _am_header in $config_headers :; do
16857 case $_am_header in
16858 $_am_arg | $_am_arg:* )
16859 break ;;
16860 * )
16861 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16862 esac
16863 done
16864 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16865 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16866 X"$_am_arg" : 'X\(//\)[^/]' \| \
16867 X"$_am_arg" : 'X\(//\)$' \| \
16868 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16869 $as_echo X"$_am_arg" |
16870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16871 s//\1/
16872 q
16873 }
16874 /^X\(\/\/\)[^/].*/{
16875 s//\1/
16876 q
16877 }
16878 /^X\(\/\/\)$/{
16879 s//\1/
16880 q
16881 }
16882 /^X\(\/\).*/{
16883 s//\1/
16884 q
16885 }
16886 s/.*/./; q'`/stamp-h$_am_stamp_count
16887 ;;
16888
16889 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16890 $as_echo "$as_me: executing $ac_file commands" >&6;}
16891 ;;
16892 esac
16893
16894
16895 case $ac_file$ac_mode in
16896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16897 # Older Autoconf quotes --file arguments for eval, but not when files
16898 # are listed without --file. Let's play safe and only enable the eval
16899 # if we detect the quoting.
16900 case $CONFIG_FILES in
16901 *\'*) eval set x "$CONFIG_FILES" ;;
16902 *) set x $CONFIG_FILES ;;
16903 esac
16904 shift
16905 for mf
16906 do
16907 # Strip MF so we end up with the name of the file.
16908 mf=`echo "$mf" | sed -e 's/:.*$//'`
16909 # Check whether this is an Automake generated Makefile or not.
16910 # We used to match only the files named 'Makefile.in', but
16911 # some people rename them; so instead we look at the file content.
16912 # Grep'ing the first line is not enough: some people post-process
16913 # each Makefile.in and add a new line on top of each file to say so.
16914 # Grep'ing the whole file is not good either: AIX grep has a line
16915 # limit of 2048, but all sed's we know have understand at least 4000.
16916 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16917 dirpart=`$as_dirname -- "$mf" ||
16918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16919 X"$mf" : 'X\(//\)[^/]' \| \
16920 X"$mf" : 'X\(//\)$' \| \
16921 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16922 $as_echo X"$mf" |
16923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16924 s//\1/
16925 q
16926 }
16927 /^X\(\/\/\)[^/].*/{
16928 s//\1/
16929 q
16930 }
16931 /^X\(\/\/\)$/{
16932 s//\1/
16933 q
16934 }
16935 /^X\(\/\).*/{
16936 s//\1/
16937 q
16938 }
16939 s/.*/./; q'`
16940 else
16941 continue
16942 fi
16943 # Extract the definition of DEPDIR, am__include, and am__quote
16944 # from the Makefile without running 'make'.
16945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16946 test -z "$DEPDIR" && continue
16947 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16948 test -z "$am__include" && continue
16949 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16950 # Find all dependency output files, they are included files with
16951 # $(DEPDIR) in their names. We invoke sed twice because it is the
16952 # simplest approach to changing $(DEPDIR) to its actual value in the
16953 # expansion.
16954 for file in `sed -n "
16955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16957 # Make sure the directory exists.
16958 test -f "$dirpart/$file" && continue
16959 fdir=`$as_dirname -- "$file" ||
16960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16961 X"$file" : 'X\(//\)[^/]' \| \
16962 X"$file" : 'X\(//\)$' \| \
16963 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16964 $as_echo X"$file" |
16965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16966 s//\1/
16967 q
16968 }
16969 /^X\(\/\/\)[^/].*/{
16970 s//\1/
16971 q
16972 }
16973 /^X\(\/\/\)$/{
16974 s//\1/
16975 q
16976 }
16977 /^X\(\/\).*/{
16978 s//\1/
16979 q
16980 }
16981 s/.*/./; q'`
16982 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16983 # echo "creating $dirpart/$file"
16984 echo '# dummy' > "$dirpart/$file"
16985 done
16986 done
16987 }
16988 ;;
16989 "libtool":C)
16990
16991 # See if we are running on zsh, and set the options which allow our
16992 # commands through without removal of \ escapes.
16993 if test -n "${ZSH_VERSION+set}" ; then
16994 setopt NO_GLOB_SUBST
16995 fi
16996
16997 cfgfile="${ofile}T"
16998 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16999 $RM "$cfgfile"
17000
17001 cat <<_LT_EOF >> "$cfgfile"
17002 #! $SHELL
17003
17004 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17005 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17006 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17007 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17008 #
17009 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17010 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17011 # Written by Gordon Matzigkeit, 1996
17012 #
17013 # This file is part of GNU Libtool.
17014 #
17015 # GNU Libtool is free software; you can redistribute it and/or
17016 # modify it under the terms of the GNU General Public License as
17017 # published by the Free Software Foundation; either version 2 of
17018 # the License, or (at your option) any later version.
17019 #
17020 # As a special exception to the GNU General Public License,
17021 # if you distribute this file as part of a program or library that
17022 # is built using GNU Libtool, you may include this file under the
17023 # same distribution terms that you use for the rest of that program.
17024 #
17025 # GNU Libtool is distributed in the hope that it will be useful,
17026 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17027 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17028 # GNU General Public License for more details.
17029 #
17030 # You should have received a copy of the GNU General Public License
17031 # along with GNU Libtool; see the file COPYING. If not, a copy
17032 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17033 # obtained by writing to the Free Software Foundation, Inc.,
17034 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17035
17036
17037 # The names of the tagged configurations supported by this script.
17038 available_tags="CXX "
17039
17040 # ### BEGIN LIBTOOL CONFIG
17041
17042 # Which release of libtool.m4 was used?
17043 macro_version=$macro_version
17044 macro_revision=$macro_revision
17045
17046 # Whether or not to build static libraries.
17047 build_old_libs=$enable_static
17048
17049 # Whether or not to build shared libraries.
17050 build_libtool_libs=$enable_shared
17051
17052 # What type of objects to build.
17053 pic_mode=$pic_mode
17054
17055 # Whether or not to optimize for fast installation.
17056 fast_install=$enable_fast_install
17057
17058 # Shell to use when invoking shell scripts.
17059 SHELL=$lt_SHELL
17060
17061 # An echo program that protects backslashes.
17062 ECHO=$lt_ECHO
17063
17064 # The host system.
17065 host_alias=$host_alias
17066 host=$host
17067 host_os=$host_os
17068
17069 # The build system.
17070 build_alias=$build_alias
17071 build=$build
17072 build_os=$build_os
17073
17074 # A sed program that does not truncate output.
17075 SED=$lt_SED
17076
17077 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17078 Xsed="\$SED -e 1s/^X//"
17079
17080 # A grep program that handles long lines.
17081 GREP=$lt_GREP
17082
17083 # An ERE matcher.
17084 EGREP=$lt_EGREP
17085
17086 # A literal string matcher.
17087 FGREP=$lt_FGREP
17088
17089 # A BSD- or MS-compatible name lister.
17090 NM=$lt_NM
17091
17092 # Whether we need soft or hard links.
17093 LN_S=$lt_LN_S
17094
17095 # What is the maximum length of a command?
17096 max_cmd_len=$max_cmd_len
17097
17098 # Object file suffix (normally "o").
17099 objext=$ac_objext
17100
17101 # Executable file suffix (normally "").
17102 exeext=$exeext
17103
17104 # whether the shell understands "unset".
17105 lt_unset=$lt_unset
17106
17107 # turn spaces into newlines.
17108 SP2NL=$lt_lt_SP2NL
17109
17110 # turn newlines into spaces.
17111 NL2SP=$lt_lt_NL2SP
17112
17113 # An object symbol dumper.
17114 OBJDUMP=$lt_OBJDUMP
17115
17116 # Method to check whether dependent libraries are shared objects.
17117 deplibs_check_method=$lt_deplibs_check_method
17118
17119 # Command to use when deplibs_check_method == "file_magic".
17120 file_magic_cmd=$lt_file_magic_cmd
17121
17122 # The archiver.
17123 AR=$lt_AR
17124 AR_FLAGS=$lt_AR_FLAGS
17125
17126 # A symbol stripping program.
17127 STRIP=$lt_STRIP
17128
17129 # Commands used to install an old-style archive.
17130 RANLIB=$lt_RANLIB
17131 old_postinstall_cmds=$lt_old_postinstall_cmds
17132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17133
17134 # Whether to use a lock for old archive extraction.
17135 lock_old_archive_extraction=$lock_old_archive_extraction
17136
17137 # A C compiler.
17138 LTCC=$lt_CC
17139
17140 # LTCC compiler flags.
17141 LTCFLAGS=$lt_CFLAGS
17142
17143 # Take the output of nm and produce a listing of raw symbols and C names.
17144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17145
17146 # Transform the output of nm in a proper C declaration.
17147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17148
17149 # Transform the output of nm in a C name address pair.
17150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17151
17152 # Transform the output of nm in a C name address pair when lib prefix is needed.
17153 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17154
17155 # The name of the directory that contains temporary libtool files.
17156 objdir=$objdir
17157
17158 # Used to examine libraries when file_magic_cmd begins with "file".
17159 MAGIC_CMD=$MAGIC_CMD
17160
17161 # Must we lock files when doing compilation?
17162 need_locks=$lt_need_locks
17163
17164 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17165 DSYMUTIL=$lt_DSYMUTIL
17166
17167 # Tool to change global to local symbols on Mac OS X.
17168 NMEDIT=$lt_NMEDIT
17169
17170 # Tool to manipulate fat objects and archives on Mac OS X.
17171 LIPO=$lt_LIPO
17172
17173 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17174 OTOOL=$lt_OTOOL
17175
17176 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17177 OTOOL64=$lt_OTOOL64
17178
17179 # Old archive suffix (normally "a").
17180 libext=$libext
17181
17182 # Shared library suffix (normally ".so").
17183 shrext_cmds=$lt_shrext_cmds
17184
17185 # The commands to extract the exported symbol list from a shared archive.
17186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17187
17188 # Variables whose values should be saved in libtool wrapper scripts and
17189 # restored at link time.
17190 variables_saved_for_relink=$lt_variables_saved_for_relink
17191
17192 # Do we need the "lib" prefix for modules?
17193 need_lib_prefix=$need_lib_prefix
17194
17195 # Do we need a version for libraries?
17196 need_version=$need_version
17197
17198 # Library versioning type.
17199 version_type=$version_type
17200
17201 # Shared library runtime path variable.
17202 runpath_var=$runpath_var
17203
17204 # Shared library path variable.
17205 shlibpath_var=$shlibpath_var
17206
17207 # Is shlibpath searched before the hard-coded library search path?
17208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17209
17210 # Format of library name prefix.
17211 libname_spec=$lt_libname_spec
17212
17213 # List of archive names. First name is the real one, the rest are links.
17214 # The last name is the one that the linker finds with -lNAME
17215 library_names_spec=$lt_library_names_spec
17216
17217 # The coded name of the library, if different from the real name.
17218 soname_spec=$lt_soname_spec
17219
17220 # Permission mode override for installation of shared libraries.
17221 install_override_mode=$lt_install_override_mode
17222
17223 # Command to use after installation of a shared archive.
17224 postinstall_cmds=$lt_postinstall_cmds
17225
17226 # Command to use after uninstallation of a shared archive.
17227 postuninstall_cmds=$lt_postuninstall_cmds
17228
17229 # Commands used to finish a libtool library installation in a directory.
17230 finish_cmds=$lt_finish_cmds
17231
17232 # As "finish_cmds", except a single script fragment to be evaled but
17233 # not shown.
17234 finish_eval=$lt_finish_eval
17235
17236 # Whether we should hardcode library paths into libraries.
17237 hardcode_into_libs=$hardcode_into_libs
17238
17239 # Compile-time system search path for libraries.
17240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17241
17242 # Run-time system search path for libraries.
17243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17244
17245 # Whether dlopen is supported.
17246 dlopen_support=$enable_dlopen
17247
17248 # Whether dlopen of programs is supported.
17249 dlopen_self=$enable_dlopen_self
17250
17251 # Whether dlopen of statically linked programs is supported.
17252 dlopen_self_static=$enable_dlopen_self_static
17253
17254 # Commands to strip libraries.
17255 old_striplib=$lt_old_striplib
17256 striplib=$lt_striplib
17257
17258
17259 # The linker used to build libraries.
17260 LD=$lt_LD
17261
17262 # How to create reloadable object files.
17263 reload_flag=$lt_reload_flag
17264 reload_cmds=$lt_reload_cmds
17265
17266 # Commands used to build an old-style archive.
17267 old_archive_cmds=$lt_old_archive_cmds
17268
17269 # A language specific compiler.
17270 CC=$lt_compiler
17271
17272 # Is the compiler the GNU compiler?
17273 with_gcc=$GCC
17274
17275 # Compiler flag to turn off builtin functions.
17276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17277
17278 # How to pass a linker flag through the compiler.
17279 wl=$lt_lt_prog_compiler_wl
17280
17281 # Additional compiler flags for building library objects.
17282 pic_flag=$lt_lt_prog_compiler_pic
17283
17284 # Compiler flag to prevent dynamic linking.
17285 link_static_flag=$lt_lt_prog_compiler_static
17286
17287 # Does compiler simultaneously support -c and -o options?
17288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17289
17290 # Whether or not to add -lc for building shared libraries.
17291 build_libtool_need_lc=$archive_cmds_need_lc
17292
17293 # Whether or not to disallow shared libs when runtime libs are static.
17294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17295
17296 # Compiler flag to allow reflexive dlopens.
17297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17298
17299 # Compiler flag to generate shared objects directly from archives.
17300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17301
17302 # Whether the compiler copes with passing no objects directly.
17303 compiler_needs_object=$lt_compiler_needs_object
17304
17305 # Create an old-style archive from a shared archive.
17306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17307
17308 # Create a temporary old-style archive to link instead of a shared archive.
17309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17310
17311 # Commands used to build a shared archive.
17312 archive_cmds=$lt_archive_cmds
17313 archive_expsym_cmds=$lt_archive_expsym_cmds
17314
17315 # Commands used to build a loadable module if different from building
17316 # a shared archive.
17317 module_cmds=$lt_module_cmds
17318 module_expsym_cmds=$lt_module_expsym_cmds
17319
17320 # Whether we are building with GNU ld or not.
17321 with_gnu_ld=$lt_with_gnu_ld
17322
17323 # Flag that allows shared libraries with undefined symbols to be built.
17324 allow_undefined_flag=$lt_allow_undefined_flag
17325
17326 # Flag that enforces no undefined symbols.
17327 no_undefined_flag=$lt_no_undefined_flag
17328
17329 # Flag to hardcode \$libdir into a binary during linking.
17330 # This must work even if \$libdir does not exist
17331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17332
17333 # If ld is used when linking, flag to hardcode \$libdir into a binary
17334 # during linking. This must work even if \$libdir does not exist.
17335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17336
17337 # Whether we need a single "-rpath" flag with a separated argument.
17338 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17339
17340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17341 # DIR into the resulting binary.
17342 hardcode_direct=$hardcode_direct
17343
17344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17345 # DIR into the resulting binary and the resulting library dependency is
17346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17347 # library is relocated.
17348 hardcode_direct_absolute=$hardcode_direct_absolute
17349
17350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17351 # into the resulting binary.
17352 hardcode_minus_L=$hardcode_minus_L
17353
17354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17355 # into the resulting binary.
17356 hardcode_shlibpath_var=$hardcode_shlibpath_var
17357
17358 # Set to "yes" if building a shared library automatically hardcodes DIR
17359 # into the library and all subsequent libraries and executables linked
17360 # against it.
17361 hardcode_automatic=$hardcode_automatic
17362
17363 # Set to yes if linker adds runtime paths of dependent libraries
17364 # to runtime path list.
17365 inherit_rpath=$inherit_rpath
17366
17367 # Whether libtool must link a program against all its dependency libraries.
17368 link_all_deplibs=$link_all_deplibs
17369
17370 # Fix the shell variable \$srcfile for the compiler.
17371 fix_srcfile_path=$lt_fix_srcfile_path
17372
17373 # Set to "yes" if exported symbols are required.
17374 always_export_symbols=$always_export_symbols
17375
17376 # The commands to list exported symbols.
17377 export_symbols_cmds=$lt_export_symbols_cmds
17378
17379 # Symbols that should not be listed in the preloaded symbols.
17380 exclude_expsyms=$lt_exclude_expsyms
17381
17382 # Symbols that must always be exported.
17383 include_expsyms=$lt_include_expsyms
17384
17385 # Commands necessary for linking programs (against libraries) with templates.
17386 prelink_cmds=$lt_prelink_cmds
17387
17388 # Specify filename containing input files.
17389 file_list_spec=$lt_file_list_spec
17390
17391 # How to hardcode a shared library path into an executable.
17392 hardcode_action=$hardcode_action
17393
17394 # The directories searched by this compiler when creating a shared library.
17395 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17396
17397 # Dependencies to place before and after the objects being linked to
17398 # create a shared library.
17399 predep_objects=$lt_predep_objects
17400 postdep_objects=$lt_postdep_objects
17401 predeps=$lt_predeps
17402 postdeps=$lt_postdeps
17403
17404 # The library search path used internally by the compiler when linking
17405 # a shared library.
17406 compiler_lib_search_path=$lt_compiler_lib_search_path
17407
17408 # ### END LIBTOOL CONFIG
17409
17410 _LT_EOF
17411
17412 case $host_os in
17413 aix3*)
17414 cat <<\_LT_EOF >> "$cfgfile"
17415 # AIX sometimes has problems with the GCC collect2 program. For some
17416 # reason, if we set the COLLECT_NAMES environment variable, the problems
17417 # vanish in a puff of smoke.
17418 if test "X${COLLECT_NAMES+set}" != Xset; then
17419 COLLECT_NAMES=
17420 export COLLECT_NAMES
17421 fi
17422 _LT_EOF
17423 ;;
17424 esac
17425
17426
17427 ltmain="$ac_aux_dir/ltmain.sh"
17428
17429
17430 # We use sed instead of cat because bash on DJGPP gets confused if
17431 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17432 # text mode, it properly converts lines to CR/LF. This bash problem
17433 # is reportedly fixed, but why not run on old versions too?
17434 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17435 || (rm -f "$cfgfile"; exit 1)
17436
17437 case $xsi_shell in
17438 yes)
17439 cat << \_LT_EOF >> "$cfgfile"
17440
17441 # func_dirname file append nondir_replacement
17442 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17443 # otherwise set result to NONDIR_REPLACEMENT.
17444 func_dirname ()
17445 {
17446 case ${1} in
17447 */*) func_dirname_result="${1%/*}${2}" ;;
17448 * ) func_dirname_result="${3}" ;;
17449 esac
17450 }
17451
17452 # func_basename file
17453 func_basename ()
17454 {
17455 func_basename_result="${1##*/}"
17456 }
17457
17458 # func_dirname_and_basename file append nondir_replacement
17459 # perform func_basename and func_dirname in a single function
17460 # call:
17461 # dirname: Compute the dirname of FILE. If nonempty,
17462 # add APPEND to the result, otherwise set result
17463 # to NONDIR_REPLACEMENT.
17464 # value returned in "$func_dirname_result"
17465 # basename: Compute filename of FILE.
17466 # value retuned in "$func_basename_result"
17467 # Implementation must be kept synchronized with func_dirname
17468 # and func_basename. For efficiency, we do not delegate to
17469 # those functions but instead duplicate the functionality here.
17470 func_dirname_and_basename ()
17471 {
17472 case ${1} in
17473 */*) func_dirname_result="${1%/*}${2}" ;;
17474 * ) func_dirname_result="${3}" ;;
17475 esac
17476 func_basename_result="${1##*/}"
17477 }
17478
17479 # func_stripname prefix suffix name
17480 # strip PREFIX and SUFFIX off of NAME.
17481 # PREFIX and SUFFIX must not contain globbing or regex special
17482 # characters, hashes, percent signs, but SUFFIX may contain a leading
17483 # dot (in which case that matches only a dot).
17484 func_stripname ()
17485 {
17486 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17487 # positional parameters, so assign one to ordinary parameter first.
17488 func_stripname_result=${3}
17489 func_stripname_result=${func_stripname_result#"${1}"}
17490 func_stripname_result=${func_stripname_result%"${2}"}
17491 }
17492
17493 # func_opt_split
17494 func_opt_split ()
17495 {
17496 func_opt_split_opt=${1%%=*}
17497 func_opt_split_arg=${1#*=}
17498 }
17499
17500 # func_lo2o object
17501 func_lo2o ()
17502 {
17503 case ${1} in
17504 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17505 *) func_lo2o_result=${1} ;;
17506 esac
17507 }
17508
17509 # func_xform libobj-or-source
17510 func_xform ()
17511 {
17512 func_xform_result=${1%.*}.lo
17513 }
17514
17515 # func_arith arithmetic-term...
17516 func_arith ()
17517 {
17518 func_arith_result=$(( $* ))
17519 }
17520
17521 # func_len string
17522 # STRING may not start with a hyphen.
17523 func_len ()
17524 {
17525 func_len_result=${#1}
17526 }
17527
17528 _LT_EOF
17529 ;;
17530 *) # Bourne compatible functions.
17531 cat << \_LT_EOF >> "$cfgfile"
17532
17533 # func_dirname file append nondir_replacement
17534 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17535 # otherwise set result to NONDIR_REPLACEMENT.
17536 func_dirname ()
17537 {
17538 # Extract subdirectory from the argument.
17539 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17540 if test "X$func_dirname_result" = "X${1}"; then
17541 func_dirname_result="${3}"
17542 else
17543 func_dirname_result="$func_dirname_result${2}"
17544 fi
17545 }
17546
17547 # func_basename file
17548 func_basename ()
17549 {
17550 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17551 }
17552
17553
17554 # func_stripname prefix suffix name
17555 # strip PREFIX and SUFFIX off of NAME.
17556 # PREFIX and SUFFIX must not contain globbing or regex special
17557 # characters, hashes, percent signs, but SUFFIX may contain a leading
17558 # dot (in which case that matches only a dot).
17559 # func_strip_suffix prefix name
17560 func_stripname ()
17561 {
17562 case ${2} in
17563 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17564 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17565 esac
17566 }
17567
17568 # sed scripts:
17569 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17570 my_sed_long_arg='1s/^-[^=]*=//'
17571
17572 # func_opt_split
17573 func_opt_split ()
17574 {
17575 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17576 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17577 }
17578
17579 # func_lo2o object
17580 func_lo2o ()
17581 {
17582 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17583 }
17584
17585 # func_xform libobj-or-source
17586 func_xform ()
17587 {
17588 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17589 }
17590
17591 # func_arith arithmetic-term...
17592 func_arith ()
17593 {
17594 func_arith_result=`expr "$@"`
17595 }
17596
17597 # func_len string
17598 # STRING may not start with a hyphen.
17599 func_len ()
17600 {
17601 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17602 }
17603
17604 _LT_EOF
17605 esac
17606
17607 case $lt_shell_append in
17608 yes)
17609 cat << \_LT_EOF >> "$cfgfile"
17610
17611 # func_append var value
17612 # Append VALUE to the end of shell variable VAR.
17613 func_append ()
17614 {
17615 eval "$1+=\$2"
17616 }
17617 _LT_EOF
17618 ;;
17619 *)
17620 cat << \_LT_EOF >> "$cfgfile"
17621
17622 # func_append var value
17623 # Append VALUE to the end of shell variable VAR.
17624 func_append ()
17625 {
17626 eval "$1=\$$1\$2"
17627 }
17628
17629 _LT_EOF
17630 ;;
17631 esac
17632
17633
17634 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17635 || (rm -f "$cfgfile"; exit 1)
17636
17637 mv -f "$cfgfile" "$ofile" ||
17638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17639 chmod +x "$ofile"
17640
17641
17642 cat <<_LT_EOF >> "$ofile"
17643
17644 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17645
17646 # The linker used to build libraries.
17647 LD=$lt_LD_CXX
17648
17649 # How to create reloadable object files.
17650 reload_flag=$lt_reload_flag_CXX
17651 reload_cmds=$lt_reload_cmds_CXX
17652
17653 # Commands used to build an old-style archive.
17654 old_archive_cmds=$lt_old_archive_cmds_CXX
17655
17656 # A language specific compiler.
17657 CC=$lt_compiler_CXX
17658
17659 # Is the compiler the GNU compiler?
17660 with_gcc=$GCC_CXX
17661
17662 # Compiler flag to turn off builtin functions.
17663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17664
17665 # How to pass a linker flag through the compiler.
17666 wl=$lt_lt_prog_compiler_wl_CXX
17667
17668 # Additional compiler flags for building library objects.
17669 pic_flag=$lt_lt_prog_compiler_pic_CXX
17670
17671 # Compiler flag to prevent dynamic linking.
17672 link_static_flag=$lt_lt_prog_compiler_static_CXX
17673
17674 # Does compiler simultaneously support -c and -o options?
17675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17676
17677 # Whether or not to add -lc for building shared libraries.
17678 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17679
17680 # Whether or not to disallow shared libs when runtime libs are static.
17681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17682
17683 # Compiler flag to allow reflexive dlopens.
17684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17685
17686 # Compiler flag to generate shared objects directly from archives.
17687 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17688
17689 # Whether the compiler copes with passing no objects directly.
17690 compiler_needs_object=$lt_compiler_needs_object_CXX
17691
17692 # Create an old-style archive from a shared archive.
17693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17694
17695 # Create a temporary old-style archive to link instead of a shared archive.
17696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17697
17698 # Commands used to build a shared archive.
17699 archive_cmds=$lt_archive_cmds_CXX
17700 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17701
17702 # Commands used to build a loadable module if different from building
17703 # a shared archive.
17704 module_cmds=$lt_module_cmds_CXX
17705 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17706
17707 # Whether we are building with GNU ld or not.
17708 with_gnu_ld=$lt_with_gnu_ld_CXX
17709
17710 # Flag that allows shared libraries with undefined symbols to be built.
17711 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17712
17713 # Flag that enforces no undefined symbols.
17714 no_undefined_flag=$lt_no_undefined_flag_CXX
17715
17716 # Flag to hardcode \$libdir into a binary during linking.
17717 # This must work even if \$libdir does not exist
17718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17719
17720 # If ld is used when linking, flag to hardcode \$libdir into a binary
17721 # during linking. This must work even if \$libdir does not exist.
17722 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17723
17724 # Whether we need a single "-rpath" flag with a separated argument.
17725 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17726
17727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17728 # DIR into the resulting binary.
17729 hardcode_direct=$hardcode_direct_CXX
17730
17731 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17732 # DIR into the resulting binary and the resulting library dependency is
17733 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17734 # library is relocated.
17735 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17736
17737 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17738 # into the resulting binary.
17739 hardcode_minus_L=$hardcode_minus_L_CXX
17740
17741 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17742 # into the resulting binary.
17743 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17744
17745 # Set to "yes" if building a shared library automatically hardcodes DIR
17746 # into the library and all subsequent libraries and executables linked
17747 # against it.
17748 hardcode_automatic=$hardcode_automatic_CXX
17749
17750 # Set to yes if linker adds runtime paths of dependent libraries
17751 # to runtime path list.
17752 inherit_rpath=$inherit_rpath_CXX
17753
17754 # Whether libtool must link a program against all its dependency libraries.
17755 link_all_deplibs=$link_all_deplibs_CXX
17756
17757 # Fix the shell variable \$srcfile for the compiler.
17758 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17759
17760 # Set to "yes" if exported symbols are required.
17761 always_export_symbols=$always_export_symbols_CXX
17762
17763 # The commands to list exported symbols.
17764 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17765
17766 # Symbols that should not be listed in the preloaded symbols.
17767 exclude_expsyms=$lt_exclude_expsyms_CXX
17768
17769 # Symbols that must always be exported.
17770 include_expsyms=$lt_include_expsyms_CXX
17771
17772 # Commands necessary for linking programs (against libraries) with templates.
17773 prelink_cmds=$lt_prelink_cmds_CXX
17774
17775 # Specify filename containing input files.
17776 file_list_spec=$lt_file_list_spec_CXX
17777
17778 # How to hardcode a shared library path into an executable.
17779 hardcode_action=$hardcode_action_CXX
17780
17781 # The directories searched by this compiler when creating a shared library.
17782 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17783
17784 # Dependencies to place before and after the objects being linked to
17785 # create a shared library.
17786 predep_objects=$lt_predep_objects_CXX
17787 postdep_objects=$lt_postdep_objects_CXX
17788 predeps=$lt_predeps_CXX
17789 postdeps=$lt_postdeps_CXX
17790
17791 # The library search path used internally by the compiler when linking
17792 # a shared library.
17793 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17794
17795 # ### END LIBTOOL TAG CONFIG: CXX
17796 _LT_EOF
17797
17798 ;;
17799
17800 esac
17801 done # for ac_tag
17802
17803
17804 as_fn_exit 0
17805 _ACEOF
17806 ac_clean_files=$ac_clean_files_save
17807
17808 test $ac_write_fail = 0 ||
17809 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17810
17811
17812 # configure is writing to config.log, and then calls config.status.
17813 # config.status does its own redirection, appending to config.log.
17814 # Unfortunately, on DOS this fails, as config.log is still kept open
17815 # by configure, so config.status won't be able to write to it; its
17816 # output is simply discarded. So we exec the FD to /dev/null,
17817 # effectively closing config.log, so it can be properly (re)opened and
17818 # appended to by config.status. When coming back to configure, we
17819 # need to make the FD available again.
17820 if test "$no_create" != yes; then
17821 ac_cs_success=:
17822 ac_config_status_args=
17823 test "$silent" = yes &&
17824 ac_config_status_args="$ac_config_status_args --quiet"
17825 exec 5>/dev/null
17826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17827 exec 5>>config.log
17828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17829 # would make configure fail if this is the last instruction.
17830 $ac_cs_success || as_fn_exit 1
17831 fi
17832 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17834 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17835 fi
17836