configure revision 1.6 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 (at] 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 DARWIN_DYNAMIC_LOOKUP_FALSE
639 DARWIN_DYNAMIC_LOOKUP_TRUE
640 libsuffix
641 GMPINC
642 WERROR
643 WARN_FLAGS
644 CONFIG_STATUS_DEPENDENCIES
645 gcc_version
646 get_gcc_base_ver
647 visibility
648 CXXCPP
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
654 CXX
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 RANLIB
661 AR
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 LIBTOOL
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 AM_DEFAULT_V
677 AM_V
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_subdir
712 host_subdir
713 build_subdir
714 build_libsubdir
715 target_noncanonical
716 EGREP
717 GREP
718 CPP
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 target_os
727 target_vendor
728 target_cpu
729 target
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 with_build_libsubdir
780 enable_dependency_tracking
781 enable_silent_rules
782 enable_maintainer_mode
783 enable_static
784 enable_shared
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 enable_libtool_lock
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-werror-always enable -Werror despite compiler version
1441 --enable-plugin enable plugin support
1442
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-build-libsubdir=DIR Directory where to find libraries for build system
1447 --with-pic try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-gcc-major-version-only
1451 use only GCC major number in filesystem paths
1452
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CPP C preprocessor
1462 CXX C++ compiler command
1463 CXXFLAGS C++ compiler flags
1464 CXXCPP C++ preprocessor
1465 GMPINC How to find GMP include files
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to the package provider.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 continue
1481 ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500 .) # We are building in place.
1501 ac_srcdir=.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532 cat <<\_ACEOF
1533 libcc1 configure version-unused
1534 generated by GNU Autoconf 2.69
1535
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540 exit
1541 fi
1542
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1573 ac_retval=0
1574 else
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579 fi
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_cpp ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_cpp conftest.$ac_ext"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } > conftest.i && {
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_cpp
1621
1622 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625 # the include files in INCLUDES and setting the cache variable VAR
1626 # accordingly.
1627 ac_fn_c_check_header_mongrel ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if eval \${$3+:} false; then :
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1635 fi
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 else
1640 # Is the header compilable?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642 $as_echo_n "checking $2 usability... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_compile "$LINENO"; then :
1649 ac_header_compiler=yes
1650 else
1651 ac_header_compiler=no
1652 fi
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655 $as_echo "$ac_header_compiler" >&6; }
1656
1657 # Is the header present?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659 $as_echo_n "checking $2 presence... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_cpp "$LINENO"; then :
1665 ac_header_preproc=yes
1666 else
1667 ac_header_preproc=no
1668 fi
1669 rm -f conftest.err conftest.i conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671 $as_echo "$ac_header_preproc" >&6; }
1672
1673 # So? What about this header?
1674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1675 yes:no: )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 ;;
1681 no:yes:* )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1685 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1689 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ;;
1693 esac
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 eval "$3=\$ac_header_compiler"
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_mongrel
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744 fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_link ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 test -x conftest$ac_exeext
1810 }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817 fi
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_link
1827
1828 # ac_fn_c_check_func LINENO FUNC VAR
1829 # ----------------------------------
1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831 ac_fn_c_check_func ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1844
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1849
1850 #ifdef __STDC__
1851 # include <limits.h>
1852 #else
1853 # include <assert.h>
1854 #endif
1855
1856 #undef $2
1857
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 ();
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1871
1872 int
1873 main ()
1874 {
1875 return $2 ();
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_func
1894
1895 # ac_fn_cxx_try_compile LINENO
1896 # ----------------------------
1897 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_compile ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext
1902 if { { ac_try="$ac_compile"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_compile") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest.$ac_objext; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927 fi
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_cxx_try_compile
1932
1933 # ac_fn_cxx_try_cpp LINENO
1934 # ------------------------
1935 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936 ac_fn_cxx_try_cpp ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_cpp conftest.$ac_ext"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } > conftest.i && {
1955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1956 test ! -s conftest.err
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964 fi
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968 } # ac_fn_cxx_try_cpp
1969
1970 # ac_fn_cxx_try_link LINENO
1971 # -------------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_link ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1990 fi
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 test -x conftest$ac_exeext
1998 }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_retval=1
2005 fi
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014 } # ac_fn_cxx_try_link
2015
2016 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2017 # ---------------------------------------------
2018 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2019 # accordingly.
2020 ac_fn_c_check_decl ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 as_decl_name=`echo $2|sed 's/ *(.*//'`
2024 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2026 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 int
2034 main ()
2035 {
2036 #ifndef $as_decl_name
2037 #ifdef __cplusplus
2038 (void) $as_decl_use;
2039 #else
2040 (void) $as_decl_name;
2041 #endif
2042 #endif
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_decl
2061 cat >config.log <<_ACEOF
2062 This file contains any messages produced by compilers while
2063 running configure, to aid debugging if configure makes a mistake.
2064
2065 It was created by libcc1 $as_me version-unused, which was
2066 generated by GNU Autoconf 2.69. Invocation command line was
2067
2068 $ $0 $@
2069
2070 _ACEOF
2071 exec 5>>config.log
2072 {
2073 cat <<_ASUNAME
2074 ## --------- ##
2075 ## Platform. ##
2076 ## --------- ##
2077
2078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086
2087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094
2095 _ASUNAME
2096
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 $as_echo "PATH: $as_dir"
2103 done
2104 IFS=$as_save_IFS
2105
2106 } >&5
2107
2108 cat >&5 <<_ACEOF
2109
2110
2111 ## ----------- ##
2112 ## Core tests. ##
2113 ## ----------- ##
2114
2115 _ACEOF
2116
2117
2118 # Keep a trace of the command line.
2119 # Strip out --no-create and --no-recursion so they do not pile up.
2120 # Strip out --silent because we don't want to record it for future runs.
2121 # Also quote any args containing shell meta-characters.
2122 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_configure_args=
2124 ac_configure_args0=
2125 ac_configure_args1=
2126 ac_must_keep_next=false
2127 for ac_pass in 1 2
2128 do
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 2)
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2157 fi
2158 as_fn_append ac_configure_args " '$ac_arg'"
2159 ;;
2160 esac
2161 done
2162 done
2163 { ac_configure_args0=; unset ac_configure_args0;}
2164 { ac_configure_args1=; unset ac_configure_args1;}
2165
2166 # When interrupted or exit'd, cleanup temporary files, and complete
2167 # config.log. We remove comments because anyway the quotes in there
2168 # would cause problems or look ugly.
2169 # WARNING: Use '\'' to represent an apostrophe within the trap.
2170 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171 trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
2173 {
2174 echo
2175
2176 $as_echo "## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##"
2179 echo
2180 # The following way of writing the cache mishandles newlines in values,
2181 (
2182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in #(
2185 *${as_nl}*)
2186 case $ac_var in #(
2187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 esac
2190 case $ac_var in #(
2191 _ | IFS | as_nl) ;; #(
2192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193 *) { eval $ac_var=; unset $ac_var;} ;;
2194 esac ;;
2195 esac
2196 done
2197 (set) 2>&1 |
2198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199 *${as_nl}ac_space=\ *)
2200 sed -n \
2201 "s/'\''/'\''\\\\'\'''\''/g;
2202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 ;; #(
2204 *)
2205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206 ;;
2207 esac |
2208 sort
2209 )
2210 echo
2211
2212 $as_echo "## ----------------- ##
2213 ## Output variables. ##
2214 ## ----------------- ##"
2215 echo
2216 for ac_var in $ac_subst_vars
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
2227 $as_echo "## ------------------- ##
2228 ## File substitutions. ##
2229 ## ------------------- ##"
2230 echo
2231 for ac_var in $ac_subst_files
2232 do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
2238 done | sort
2239 echo
2240 fi
2241
2242 if test -s confdefs.h; then
2243 $as_echo "## ----------- ##
2244 ## confdefs.h. ##
2245 ## ----------- ##"
2246 echo
2247 cat confdefs.h
2248 echo
2249 fi
2250 test "$ac_signal" != 0 &&
2251 $as_echo "$as_me: caught signal $ac_signal"
2252 $as_echo "$as_me: exit $exit_status"
2253 } >&5
2254 rm -f core *.core core.conftest.* &&
2255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 exit $exit_status
2257 ' 0
2258 for ac_signal in 1 2 13 15; do
2259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260 done
2261 ac_signal=0
2262
2263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2264 rm -f -r conftest* confdefs.h
2265
2266 $as_echo "/* confdefs.h */" > confdefs.h
2267
2268 # Predefined preprocessor variables.
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_URL "$PACKAGE_URL"
2292 _ACEOF
2293
2294
2295 # Let the site file select an alternate cache file if it wants to.
2296 # Prefer an explicitly selected file to automatically selected ones.
2297 ac_site_file1=NONE
2298 ac_site_file2=NONE
2299 if test -n "$CONFIG_SITE"; then
2300 # We do not want a PATH search for config.site.
2301 case $CONFIG_SITE in #((
2302 -*) ac_site_file1=./$CONFIG_SITE;;
2303 */*) ac_site_file1=$CONFIG_SITE;;
2304 *) ac_site_file1=./$CONFIG_SITE;;
2305 esac
2306 elif test "x$prefix" != xNONE; then
2307 ac_site_file1=$prefix/share/config.site
2308 ac_site_file2=$prefix/etc/config.site
2309 else
2310 ac_site_file1=$ac_default_prefix/share/config.site
2311 ac_site_file2=$ac_default_prefix/etc/config.site
2312 fi
2313 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314 do
2315 test "x$ac_site_file" = xNONE && continue
2316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2318 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2319 sed 's/^/| /' "$ac_site_file" >&5
2320 . "$ac_site_file" \
2321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 as_fn_error $? "failed to load site script $ac_site_file
2324 See \`config.log' for more details" "$LINENO" 5; }
2325 fi
2326 done
2327
2328 if test -r "$cache_file"; then
2329 # Some versions of bash will fail to source /dev/null (special files
2330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2333 $as_echo "$as_me: loading cache $cache_file" >&6;}
2334 case $cache_file in
2335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336 *) . "./$cache_file";;
2337 esac
2338 fi
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2341 $as_echo "$as_me: creating cache $cache_file" >&6;}
2342 >$cache_file
2343 fi
2344
2345 # Check that the precious variables saved in the cache have kept the same
2346 # value.
2347 ac_cache_corrupted=false
2348 for ac_var in $ac_precious_vars; do
2349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350 eval ac_new_set=\$ac_env_${ac_var}_set
2351 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352 eval ac_new_val=\$ac_env_${ac_var}_value
2353 case $ac_old_set,$ac_new_set in
2354 set,)
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2358 ,set)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,);;
2363 *)
2364 if test "x$ac_old_val" != "x$ac_new_val"; then
2365 # differences in whitespace do not lead to failure.
2366 ac_old_val_w=`echo x $ac_old_val`
2367 ac_new_val_w=`echo x $ac_new_val`
2368 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371 ac_cache_corrupted=:
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375 eval $ac_var=\$ac_old_val
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2378 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2380 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 fi;;
2382 esac
2383 # Pass precious variables to config.status.
2384 if test "$ac_new_set" = set; then
2385 case $ac_new_val in
2386 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 *) ac_arg=$ac_var=$ac_new_val ;;
2388 esac
2389 case " $ac_configure_args " in
2390 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2391 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 esac
2393 fi
2394 done
2395 if $ac_cache_corrupted; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2400 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401 fi
2402 ## -------------------- ##
2403 ## Main body of script. ##
2404 ## -------------------- ##
2405
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412
2413
2414
2415
2416
2417 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2418
2419
2420 ac_aux_dir=
2421 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2422 if test -f "$ac_dir/install-sh"; then
2423 ac_aux_dir=$ac_dir
2424 ac_install_sh="$ac_aux_dir/install-sh -c"
2425 break
2426 elif test -f "$ac_dir/install.sh"; then
2427 ac_aux_dir=$ac_dir
2428 ac_install_sh="$ac_aux_dir/install.sh -c"
2429 break
2430 elif test -f "$ac_dir/shtool"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/shtool install -c"
2433 break
2434 fi
2435 done
2436 if test -z "$ac_aux_dir"; then
2437 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438 fi
2439
2440 # These three variables are undocumented and unsupported,
2441 # and are intended to be withdrawn in a future Autoconf release.
2442 # They can cause serious problems if a builder's source tree is in a directory
2443 # whose full name contains unusual characters.
2444 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2445 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2446 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447
2448
2449 # Make sure we can run config.sub.
2450 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2451 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2454 $as_echo_n "checking build system type... " >&6; }
2455 if ${ac_cv_build+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 ac_build_alias=$build_alias
2459 test "x$ac_build_alias" = x &&
2460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2461 test "x$ac_build_alias" = x &&
2462 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2463 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2465
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2468 $as_echo "$ac_cv_build" >&6; }
2469 case $ac_cv_build in
2470 *-*-*) ;;
2471 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2472 esac
2473 build=$ac_cv_build
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_build
2476 shift
2477 build_cpu=$1
2478 build_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 build_os=$*
2483 IFS=$ac_save_IFS
2484 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2488 $as_echo_n "checking host system type... " >&6; }
2489 if ${ac_cv_host+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test "x$host_alias" = x; then
2493 ac_cv_host=$ac_cv_build
2494 else
2495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2497 fi
2498
2499 fi
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2501 $as_echo "$ac_cv_host" >&6; }
2502 case $ac_cv_host in
2503 *-*-*) ;;
2504 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2505 esac
2506 host=$ac_cv_host
2507 ac_save_IFS=$IFS; IFS='-'
2508 set x $ac_cv_host
2509 shift
2510 host_cpu=$1
2511 host_vendor=$2
2512 shift; shift
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2515 host_os=$*
2516 IFS=$ac_save_IFS
2517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2518
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2521 $as_echo_n "checking target system type... " >&6; }
2522 if ${ac_cv_target+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test "x$target_alias" = x; then
2526 ac_cv_target=$ac_cv_host
2527 else
2528 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2530 fi
2531
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2534 $as_echo "$ac_cv_target" >&6; }
2535 case $ac_cv_target in
2536 *-*-*) ;;
2537 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2538 esac
2539 target=$ac_cv_target
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_target
2542 shift
2543 target_cpu=$1
2544 target_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 target_os=$*
2549 IFS=$ac_save_IFS
2550 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2551
2552
2553 # The aliases save the names the user supplied, while $host etc.
2554 # will get canonicalized.
2555 test -n "$target_alias" &&
2556 test "$program_prefix$program_suffix$program_transform_name" = \
2557 NONENONEs,x,x, &&
2558 program_prefix=${target_alias}-
2559
2560 # Expand $ac_aux_dir to an absolute path.
2561 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_CC+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 CC=$ac_cv_prog_CC
2597 if test -n "$CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2599 $as_echo "$CC" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_CC"; then
2608 ac_ct_CC=$CC
2609 # Extract the first word of "gcc", so it can be a program name with args.
2610 set dummy gcc; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_CC="gcc"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 CC=$ac_ct_CC
2655 fi
2656 else
2657 CC="$ac_cv_prog_CC"
2658 fi
2659
2660 if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}cc; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_CC="${ac_tool_prefix}cc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 fi
2701 if test -z "$CC"; then
2702 # Extract the first word of "cc", so it can be a program name with args.
2703 set dummy cc; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_CC+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 ac_prog_rejected=no
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2721 ac_prog_rejected=yes
2722 continue
2723 fi
2724 ac_cv_prog_CC="cc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 if test $ac_prog_rejected = yes; then
2733 # We found a bogon in the path, so make sure we never use it.
2734 set dummy $ac_cv_prog_CC
2735 shift
2736 if test $# != 0; then
2737 # We chose a different compiler from the bogus one.
2738 # However, it has the same basename, so the bogon will be chosen
2739 # first if we set CC to just the basename; use the full file name.
2740 shift
2741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2742 fi
2743 fi
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if test -z "$CC"; then
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog in cl.exe
2760 do
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 test -n "$CC" && break
2799 done
2800 fi
2801 if test -z "$CC"; then
2802 ac_ct_CC=$CC
2803 for ac_prog in cl.exe
2804 do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_ac_ct_CC="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 test -n "$ac_ct_CC" && break
2843 done
2844
2845 if test "x$ac_ct_CC" = x; then
2846 CC=""
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 CC=$ac_ct_CC
2855 fi
2856 fi
2857
2858 fi
2859
2860
2861 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 as_fn_error $? "no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details" "$LINENO" 5; }
2865
2866 # Provide some information about the compiler.
2867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2868 set X $ac_compile
2869 ac_compiler=$2
2870 for ac_option in --version -v -V -qversion; do
2871 { { ac_try="$ac_compiler $ac_option >&5"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2879 ac_status=$?
2880 if test -s conftest.err; then
2881 sed '10a\
2882 ... rest of stderr output deleted ...
2883 10q' conftest.err >conftest.er1
2884 cat conftest.er1 >&5
2885 fi
2886 rm -f conftest.er1 conftest.err
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }
2889 done
2890
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 ac_clean_files_save=$ac_clean_files
2903 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2904 # Try to create an executable without -o first, disregard a.out.
2905 # It will help us diagnose broken compilers, and finding out an intuition
2906 # of exeext.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2908 $as_echo_n "checking whether the C compiler works... " >&6; }
2909 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910
2911 # The possible output files:
2912 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913
2914 ac_rmfiles=
2915 for ac_file in $ac_files
2916 do
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2919 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2920 esac
2921 done
2922 rm -f $ac_rmfiles
2923
2924 if { { ac_try="$ac_link_default"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_link_default") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2937 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2938 # so that the user can short-circuit this test for compilers unknown to
2939 # Autoconf.
2940 for ac_file in $ac_files ''
2941 do
2942 test -f "$ac_file" || continue
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 ;;
2946 [ab].out )
2947 # We found the default executable, but exeext='' is most
2948 # certainly right.
2949 break;;
2950 *.* )
2951 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2952 then :; else
2953 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 fi
2955 # We set ac_cv_exeext here because the later test for it is not
2956 # safe: cross compilers may not add the suffix if given an `-o'
2957 # argument, so we may need to know it at that point already.
2958 # Even if this section looks crufty: it has the advantage of
2959 # actually working.
2960 break;;
2961 * )
2962 break;;
2963 esac
2964 done
2965 test "$ac_cv_exeext" = no && ac_cv_exeext=
2966
2967 else
2968 ac_file=''
2969 fi
2970 if test -z "$ac_file"; then :
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 as_fn_error 77 "C compiler cannot create executables
2979 See \`config.log' for more details" "$LINENO" 5; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2982 $as_echo "yes" >&6; }
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2985 $as_echo_n "checking for C compiler default output file name... " >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2987 $as_echo "$ac_file" >&6; }
2988 ac_exeext=$ac_cv_exeext
2989
2990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2993 $as_echo_n "checking for suffix of executables... " >&6; }
2994 if { { ac_try="$ac_link"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_link") 2>&5
3002 ac_status=$?
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3007 # work properly (i.e., refer to `conftest.exe'), while it won't with
3008 # `rm'.
3009 for ac_file in conftest.exe conftest conftest.*; do
3010 test -f "$ac_file" || continue
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 break;;
3015 * ) break;;
3016 esac
3017 done
3018 else
3019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3022 See \`config.log' for more details" "$LINENO" 5; }
3023 fi
3024 rm -f conftest conftest$ac_cv_exeext
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3026 $as_echo "$ac_cv_exeext" >&6; }
3027
3028 rm -f conftest.$ac_ext
3029 EXEEXT=$ac_cv_exeext
3030 ac_exeext=$EXEEXT
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3033 #include <stdio.h>
3034 int
3035 main ()
3036 {
3037 FILE *f = fopen ("conftest.out", "w");
3038 return ferror (f) || fclose (f) != 0;
3039
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 ac_clean_files="$ac_clean_files conftest.out"
3045 # Check that the compiler produces executables we can run. If not, either
3046 # the compiler is broken, or we cross compile.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3048 $as_echo_n "checking whether we are cross compiling... " >&6; }
3049 if test "$cross_compiling" != yes; then
3050 { { ac_try="$ac_link"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_link") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }
3061 if { ac_try='./conftest$ac_cv_exeext'
3062 { { case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; }; then
3072 cross_compiling=no
3073 else
3074 if test "$cross_compiling" = maybe; then
3075 cross_compiling=yes
3076 else
3077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 as_fn_error $? "cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details" "$LINENO" 5; }
3082 fi
3083 fi
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3086 $as_echo "$cross_compiling" >&6; }
3087
3088 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3089 ac_clean_files=$ac_clean_files_save
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3091 $as_echo_n "checking for suffix of object files... " >&6; }
3092 if ${ac_cv_objext+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3097
3098 int
3099 main ()
3100 {
3101
3102 ;
3103 return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.o conftest.obj
3107 if { { ac_try="$ac_compile"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_compile") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 for ac_file in conftest.o conftest.obj conftest.*; do
3119 test -f "$ac_file" || continue;
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125 done
3126 else
3127 $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details" "$LINENO" 5; }
3134 fi
3135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3138 $as_echo "$ac_cv_objext" >&6; }
3139 OBJEXT=$ac_cv_objext
3140 ac_objext=$OBJEXT
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3142 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3143 if ${ac_cv_c_compiler_gnu+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148
3149 int
3150 main ()
3151 {
3152 #ifndef __GNUC__
3153 choke me
3154 #endif
3155
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 if ac_fn_c_try_compile "$LINENO"; then :
3161 ac_compiler_gnu=yes
3162 else
3163 ac_compiler_gnu=no
3164 fi
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3170 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3171 if test $ac_compiler_gnu = yes; then
3172 GCC=yes
3173 else
3174 GCC=
3175 fi
3176 ac_test_CFLAGS=${CFLAGS+set}
3177 ac_save_CFLAGS=$CFLAGS
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3179 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3180 if ${ac_cv_prog_cc_g+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 ac_save_c_werror_flag=$ac_c_werror_flag
3184 ac_c_werror_flag=yes
3185 ac_cv_prog_cc_g=no
3186 CFLAGS="-g"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_cv_prog_cc_g=yes
3200 else
3201 CFLAGS=""
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204
3205 int
3206 main ()
3207 {
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214
3215 else
3216 ac_c_werror_flag=$ac_save_c_werror_flag
3217 CFLAGS="-g"
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_g=yes
3231 fi
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_c_werror_flag=$ac_save_c_werror_flag
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3240 $as_echo "$ac_cv_prog_cc_g" >&6; }
3241 if test "$ac_test_CFLAGS" = set; then
3242 CFLAGS=$ac_save_CFLAGS
3243 elif test $ac_cv_prog_cc_g = yes; then
3244 if test "$GCC" = yes; then
3245 CFLAGS="-g -O2"
3246 else
3247 CFLAGS="-g"
3248 fi
3249 else
3250 if test "$GCC" = yes; then
3251 CFLAGS="-O2"
3252 else
3253 CFLAGS=
3254 fi
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3257 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3258 if ${ac_cv_prog_cc_c89+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 ac_cv_prog_cc_c89=no
3262 ac_save_CC=$CC
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265 #include <stdarg.h>
3266 #include <stdio.h>
3267 struct stat;
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3272 char **p;
3273 int i;
3274 {
3275 return p[i];
3276 }
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3278 {
3279 char *s;
3280 va_list v;
3281 va_start (v,p);
3282 s = g (p, va_arg (v,int));
3283 va_end (v);
3284 return s;
3285 }
3286
3287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3288 function prototypes and stuff, but not '\xHH' hex character constants.
3289 These don't provoke an error unfortunately, instead are silently treated
3290 as 'x'. The following induces an error, until -std is added to get
3291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3292 array size at least. It's necessary to write '\x00'==0 to get something
3293 that's true only with -std. */
3294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295
3296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297 inside strings and character constants. */
3298 #define FOO(x) 'x'
3299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300
3301 int test (int i, double x);
3302 struct s1 {int (*f) (int a);};
3303 struct s2 {int (*f) (double a);};
3304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305 int argc;
3306 char **argv;
3307 int
3308 main ()
3309 {
3310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 do
3318 CC="$ac_save_CC $ac_arg"
3319 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_cv_prog_cc_c89=$ac_arg
3321 fi
3322 rm -f core conftest.err conftest.$ac_objext
3323 test "x$ac_cv_prog_cc_c89" != "xno" && break
3324 done
3325 rm -f conftest.$ac_ext
3326 CC=$ac_save_CC
3327
3328 fi
3329 # AC_CACHE_VAL
3330 case "x$ac_cv_prog_cc_c89" in
3331 x)
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3333 $as_echo "none needed" >&6; } ;;
3334 xno)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3336 $as_echo "unsupported" >&6; } ;;
3337 *)
3338 CC="$CC $ac_cv_prog_cc_c89"
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3340 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3341 esac
3342 if test "x$ac_cv_prog_cc_c89" != xno; then :
3343
3344 fi
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3358 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3359 if ${am_cv_prog_cc_c_o+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 # Make sure it works both with $CC and with simple cc.
3374 # Following AC_PROG_CC_C_O, we do the test twice because some
3375 # compilers refuse to overwrite an existing .o file with -o,
3376 # though they will create one.
3377 am_cv_prog_cc_c_o=yes
3378 for am_i in 1 2; do
3379 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3380 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } \
3384 && test -f conftest2.$ac_objext; then
3385 : OK
3386 else
3387 am_cv_prog_cc_c_o=no
3388 break
3389 fi
3390 done
3391 rm -f core conftest*
3392 unset am_i
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3395 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3396 if test "$am_cv_prog_cc_c_o" != yes; then
3397 # Losing compiler, so override with the script.
3398 # FIXME: It is wrong to rewrite CC.
3399 # But if we don't then we get into trouble of one sort or another.
3400 # A longer-term fix would be to have automake use am__CC in this case,
3401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3402 CC="$am_aux_dir/compile $CC"
3403 fi
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3418 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3419 # On Suns, sometimes $CPP names a directory.
3420 if test -n "$CPP" && test -d "$CPP"; then
3421 CPP=
3422 fi
3423 if test -z "$CPP"; then
3424 if ${ac_cv_prog_CPP+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 # Double quotes because CPP needs to be expanded
3428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429 do
3430 ac_preproc_ok=false
3431 for ac_c_preproc_warn_flag in '' yes
3432 do
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441 #ifdef __STDC__
3442 # include <limits.h>
3443 #else
3444 # include <assert.h>
3445 #endif
3446 Syntax error
3447 _ACEOF
3448 if ac_fn_c_try_cpp "$LINENO"; then :
3449
3450 else
3451 # Broken: fails on valid input.
3452 continue
3453 fi
3454 rm -f conftest.err conftest.i conftest.$ac_ext
3455
3456 # OK, works on sane cases. Now check whether nonexistent headers
3457 # can be detected and how.
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460 #include <ac_nonexistent.h>
3461 _ACEOF
3462 if ac_fn_c_try_cpp "$LINENO"; then :
3463 # Broken: success on invalid input.
3464 continue
3465 else
3466 # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3469 fi
3470 rm -f conftest.err conftest.i conftest.$ac_ext
3471
3472 done
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.i conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then :
3476 break
3477 fi
3478
3479 done
3480 ac_cv_prog_CPP=$CPP
3481
3482 fi
3483 CPP=$ac_cv_prog_CPP
3484 else
3485 ac_cv_prog_CPP=$CPP
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3488 $as_echo "$CPP" >&6; }
3489 ac_preproc_ok=false
3490 for ac_c_preproc_warn_flag in '' yes
3491 do
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505 Syntax error
3506 _ACEOF
3507 if ac_fn_c_try_cpp "$LINENO"; then :
3508
3509 else
3510 # Broken: fails on valid input.
3511 continue
3512 fi
3513 rm -f conftest.err conftest.i conftest.$ac_ext
3514
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3522 # Broken: success on invalid input.
3523 continue
3524 else
3525 # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3528 fi
3529 rm -f conftest.err conftest.i conftest.$ac_ext
3530
3531 done
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.i conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then :
3535
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details" "$LINENO" 5; }
3541 fi
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3551 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3552 if ${ac_cv_path_GREP+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -z "$GREP"; then
3556 ac_path_GREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_prog in grep ggrep; do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3566 as_fn_executable_p "$ac_path_GREP" || continue
3567 # Check for GNU ac_path_GREP and select it if it is found.
3568 # Check for GNU $ac_path_GREP
3569 case `"$ac_path_GREP" --version 2>&1` in
3570 *GNU*)
3571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3572 *)
3573 ac_count=0
3574 $as_echo_n 0123456789 >"conftest.in"
3575 while :
3576 do
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 $as_echo 'GREP' >> "conftest.nl"
3581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583 as_fn_arith $ac_count + 1 && ac_count=$as_val
3584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_GREP="$ac_path_GREP"
3587 ac_path_GREP_max=$ac_count
3588 fi
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3591 done
3592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3593 esac
3594
3595 $ac_path_GREP_found && break 3
3596 done
3597 done
3598 done
3599 IFS=$as_save_IFS
3600 if test -z "$ac_cv_path_GREP"; then
3601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3602 fi
3603 else
3604 ac_cv_path_GREP=$GREP
3605 fi
3606
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3609 $as_echo "$ac_cv_path_GREP" >&6; }
3610 GREP="$ac_cv_path_GREP"
3611
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3614 $as_echo_n "checking for egrep... " >&6; }
3615 if ${ac_cv_path_EGREP+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3619 then ac_cv_path_EGREP="$GREP -E"
3620 else
3621 if test -z "$EGREP"; then
3622 ac_path_EGREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in egrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3632 as_fn_executable_p "$ac_path_EGREP" || continue
3633 # Check for GNU ac_path_EGREP and select it if it is found.
3634 # Check for GNU $ac_path_EGREP
3635 case `"$ac_path_EGREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3638 *)
3639 ac_count=0
3640 $as_echo_n 0123456789 >"conftest.in"
3641 while :
3642 do
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'EGREP' >> "conftest.nl"
3647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_EGREP="$ac_path_EGREP"
3653 ac_path_EGREP_max=$ac_count
3654 fi
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3660
3661 $ac_path_EGREP_found && break 3
3662 done
3663 done
3664 done
3665 IFS=$as_save_IFS
3666 if test -z "$ac_cv_path_EGREP"; then
3667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 fi
3669 else
3670 ac_cv_path_EGREP=$EGREP
3671 fi
3672
3673 fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3676 $as_echo "$ac_cv_path_EGREP" >&6; }
3677 EGREP="$ac_cv_path_EGREP"
3678
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3681 $as_echo_n "checking for ANSI C header files... " >&6; }
3682 if ${ac_cv_header_stdc+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <stdlib.h>
3688 #include <stdarg.h>
3689 #include <string.h>
3690 #include <float.h>
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_header_stdc=yes
3702 else
3703 ac_cv_header_stdc=no
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706
3707 if test $ac_cv_header_stdc = yes; then
3708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 #include <string.h>
3712
3713 _ACEOF
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 $EGREP "memchr" >/dev/null 2>&1; then :
3716
3717 else
3718 ac_cv_header_stdc=no
3719 fi
3720 rm -f conftest*
3721
3722 fi
3723
3724 if test $ac_cv_header_stdc = yes; then
3725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <stdlib.h>
3729
3730 _ACEOF
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "free" >/dev/null 2>&1; then :
3733
3734 else
3735 ac_cv_header_stdc=no
3736 fi
3737 rm -f conftest*
3738
3739 fi
3740
3741 if test $ac_cv_header_stdc = yes; then
3742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3743 if test "$cross_compiling" = yes; then :
3744 :
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <ctype.h>
3749 #include <stdlib.h>
3750 #if ((' ' & 0x0FF) == 0x020)
3751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3753 #else
3754 # define ISLOWER(c) \
3755 (('a' <= (c) && (c) <= 'i') \
3756 || ('j' <= (c) && (c) <= 'r') \
3757 || ('s' <= (c) && (c) <= 'z'))
3758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3759 #endif
3760
3761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3762 int
3763 main ()
3764 {
3765 int i;
3766 for (i = 0; i < 256; i++)
3767 if (XOR (islower (i), ISLOWER (i))
3768 || toupper (i) != TOUPPER (i))
3769 return 2;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_run "$LINENO"; then :
3774
3775 else
3776 ac_cv_header_stdc=no
3777 fi
3778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3779 conftest.$ac_objext conftest.beam conftest.$ac_ext
3780 fi
3781
3782 fi
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3785 $as_echo "$ac_cv_header_stdc" >&6; }
3786 if test $ac_cv_header_stdc = yes; then
3787
3788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3789
3790 fi
3791
3792 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3794 inttypes.h stdint.h unistd.h
3795 do :
3796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3798 "
3799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3800 cat >>confdefs.h <<_ACEOF
3801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802 _ACEOF
3803
3804 fi
3805
3806 done
3807
3808
3809
3810 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3811 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3812 MINIX=yes
3813 else
3814 MINIX=
3815 fi
3816
3817
3818 if test "$MINIX" = yes; then
3819
3820 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3821
3822
3823 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3824
3825
3826 $as_echo "#define _MINIX 1" >>confdefs.h
3827
3828 fi
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3832 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3833 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838
3839 # define __EXTENSIONS__ 1
3840 $ac_includes_default
3841 int
3842 main ()
3843 {
3844
3845 ;
3846 return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_safe_to_define___extensions__=yes
3851 else
3852 ac_cv_safe_to_define___extensions__=no
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3857 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3860
3861 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3862
3863 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3864
3865 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3866
3867 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3868
3869
3870 # Determine the noncanonical target name, for directory use.
3871 case ${build_alias} in
3872 "") build_noncanonical=${build} ;;
3873 *) build_noncanonical=${build_alias} ;;
3874 esac
3875
3876 case ${host_alias} in
3877 "") host_noncanonical=${build_noncanonical} ;;
3878 *) host_noncanonical=${host_alias} ;;
3879 esac
3880
3881 case ${target_alias} in
3882 "") target_noncanonical=${host_noncanonical} ;;
3883 *) target_noncanonical=${target_alias} ;;
3884 esac
3885
3886
3887
3888
3889 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3890 # have matching libraries, they should use host libraries: Makefile.tpl
3891 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3892 # However, they still use the build modules, because the corresponding
3893 # host modules (e.g. bison) are only built for the host when bootstrap
3894 # finishes. So:
3895 # - build_subdir is where we find build modules, and never changes.
3896 # - build_libsubdir is where we find build libraries, and can be overridden.
3897
3898 # Prefix 'build-' so this never conflicts with target_subdir.
3899 build_subdir="build-${build_noncanonical}"
3900
3901 # Check whether --with-build-libsubdir was given.
3902 if test "${with_build_libsubdir+set}" = set; then :
3903 withval=$with_build_libsubdir; build_libsubdir="$withval"
3904 else
3905 build_libsubdir="$build_subdir"
3906 fi
3907
3908 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3909 if ( test $srcdir = . && test -d gcc ) \
3910 || test -d $srcdir/../host-${host_noncanonical}; then
3911 host_subdir="host-${host_noncanonical}"
3912 else
3913 host_subdir=.
3914 fi
3915 # No prefix.
3916 target_subdir=${target_noncanonical}
3917
3918
3919 # 1.11.1: Require that version of automake.
3920 # foreign: Don't require README, INSTALL, NEWS, etc.
3921 # no-define: Don't define PACKAGE and VERSION.
3922 # -Wall: Issue all automake warnings.
3923 # -Wno-portability: Don't warn about constructs supported by GNU make.
3924 # (because GCC requires GNU make anyhow).
3925 am__api_version='1.15'
3926
3927 # Find a good install program. We prefer a C program (faster),
3928 # so one script is as good as another. But avoid the broken or
3929 # incompatible versions:
3930 # SysV /etc/install, /usr/sbin/install
3931 # SunOS /usr/etc/install
3932 # IRIX /sbin/install
3933 # AIX /bin/install
3934 # AmigaOS /C/install, which installs bootblocks on floppy discs
3935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3938 # OS/2's system install, which has a completely different semantic
3939 # ./install, which can be erroneously created by make from ./install.sh.
3940 # Reject install programs that cannot install multiple files.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3942 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3943 if test -z "$INSTALL"; then
3944 if ${ac_cv_path_install+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 # Account for people who put trailing slashes in PATH elements.
3953 case $as_dir/ in #((
3954 ./ | .// | /[cC]/* | \
3955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3957 /usr/ucb/* ) ;;
3958 *)
3959 # OSF1 and SCO ODT 3.0 have their own names for install.
3960 # Don't use installbsd from OSF since it installs stuff as root
3961 # by default.
3962 for ac_prog in ginstall scoinst install; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3965 if test $ac_prog = install &&
3966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3967 # AIX install. It has an incompatible calling convention.
3968 :
3969 elif test $ac_prog = install &&
3970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3971 # program-specific install script used by HP pwplus--don't use.
3972 :
3973 else
3974 rm -rf conftest.one conftest.two conftest.dir
3975 echo one > conftest.one
3976 echo two > conftest.two
3977 mkdir conftest.dir
3978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3979 test -s conftest.one && test -s conftest.two &&
3980 test -s conftest.dir/conftest.one &&
3981 test -s conftest.dir/conftest.two
3982 then
3983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3984 break 3
3985 fi
3986 fi
3987 fi
3988 done
3989 done
3990 ;;
3991 esac
3992
3993 done
3994 IFS=$as_save_IFS
3995
3996 rm -rf conftest.one conftest.two conftest.dir
3997
3998 fi
3999 if test "${ac_cv_path_install+set}" = set; then
4000 INSTALL=$ac_cv_path_install
4001 else
4002 # As a last resort, use the slow shell script. Don't cache a
4003 # value for INSTALL within a source directory, because that will
4004 # break other packages using the cache if that directory is
4005 # removed, or if the value is a relative name.
4006 INSTALL=$ac_install_sh
4007 fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4010 $as_echo "$INSTALL" >&6; }
4011
4012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4013 # It thinks the first close brace ends the variable substitution.
4014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4015
4016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4017
4018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4021 $as_echo_n "checking whether build environment is sane... " >&6; }
4022 # Reject unsafe characters in $srcdir or the absolute working directory
4023 # name. Accept space and tab only in the latter.
4024 am_lf='
4025 '
4026 case `pwd` in
4027 *[\\\"\#\$\&\'\`$am_lf]*)
4028 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4029 esac
4030 case $srcdir in
4031 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4032 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4033 esac
4034
4035 # Do 'set' in a subshell so we don't clobber the current shell's
4036 # arguments. Must try -L first in case configure is actually a
4037 # symlink; some systems play weird games with the mod time of symlinks
4038 # (eg FreeBSD returns the mod time of the symlink's containing
4039 # directory).
4040 if (
4041 am_has_slept=no
4042 for am_try in 1 2; do
4043 echo "timestamp, slept: $am_has_slept" > conftest.file
4044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4045 if test "$*" = "X"; then
4046 # -L didn't work.
4047 set X `ls -t "$srcdir/configure" conftest.file`
4048 fi
4049 if test "$*" != "X $srcdir/configure conftest.file" \
4050 && test "$*" != "X conftest.file $srcdir/configure"; then
4051
4052 # If neither matched, then we have a broken ls. This can happen
4053 # if, for instance, CONFIG_SHELL is bash and it inherits a
4054 # broken ls alias from the environment. This has actually
4055 # happened. Such a system could not be considered "sane".
4056 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4057 alias in your environment" "$LINENO" 5
4058 fi
4059 if test "$2" = conftest.file || test $am_try -eq 2; then
4060 break
4061 fi
4062 # Just in case.
4063 sleep 1
4064 am_has_slept=yes
4065 done
4066 test "$2" = conftest.file
4067 )
4068 then
4069 # Ok.
4070 :
4071 else
4072 as_fn_error $? "newly created file is older than distributed files!
4073 Check your system clock" "$LINENO" 5
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 $as_echo "yes" >&6; }
4077 # If we didn't sleep, we still need to ensure time stamps of config.status and
4078 # generated files are strictly newer.
4079 am_sleep_pid=
4080 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4081 ( sleep 1 ) &
4082 am_sleep_pid=$!
4083 fi
4084
4085 rm -f conftest.file
4086
4087 test "$program_prefix" != NONE &&
4088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4089 # Use a double $ so make ignores it.
4090 test "$program_suffix" != NONE &&
4091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4092 # Double any \ or $.
4093 # By default was `s,x,x', remove it if useless.
4094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4096
4097 if test x"${MISSING+set}" != xset; then
4098 case $am_aux_dir in
4099 *\ * | *\ *)
4100 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4101 *)
4102 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4103 esac
4104 fi
4105 # Use eval to expand $SHELL
4106 if eval "$MISSING --is-lightweight"; then
4107 am_missing_run="$MISSING "
4108 else
4109 am_missing_run=
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4111 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4112 fi
4113
4114 if test x"${install_sh+set}" != xset; then
4115 case $am_aux_dir in
4116 *\ * | *\ *)
4117 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4118 *)
4119 install_sh="\${SHELL} $am_aux_dir/install-sh"
4120 esac
4121 fi
4122
4123 # Installed binaries are usually stripped using 'strip' when the user
4124 # run "make install-strip". However 'strip' might not be the right
4125 # tool to use in cross-compilation environments, therefore Automake
4126 # will honor the 'STRIP' environment variable to overrule this program.
4127 if test "$cross_compiling" != no; then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}strip; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_STRIP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$STRIP"; then
4137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 STRIP=$ac_cv_prog_STRIP
4157 if test -n "$STRIP"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4159 $as_echo "$STRIP" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166 fi
4167 if test -z "$ac_cv_prog_STRIP"; then
4168 ac_ct_STRIP=$STRIP
4169 # Extract the first word of "strip", so it can be a program name with args.
4170 set dummy strip; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$ac_ct_STRIP"; then
4177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_ac_ct_STRIP="strip"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4197 if test -n "$ac_ct_STRIP"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4199 $as_echo "$ac_ct_STRIP" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205 if test "x$ac_ct_STRIP" = x; then
4206 STRIP=":"
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214 STRIP=$ac_ct_STRIP
4215 fi
4216 else
4217 STRIP="$ac_cv_prog_STRIP"
4218 fi
4219
4220 fi
4221 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4225 if test -z "$MKDIR_P"; then
4226 if ${ac_cv_path_mkdir+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_prog in mkdir gmkdir; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4238 'mkdir (GNU coreutils) '* | \
4239 'mkdir (coreutils) '* | \
4240 'mkdir (fileutils) '4.1*)
4241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4242 break 3;;
4243 esac
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250
4251 test -d ./--version && rmdir ./--version
4252 if test "${ac_cv_path_mkdir+set}" = set; then
4253 MKDIR_P="$ac_cv_path_mkdir -p"
4254 else
4255 # As a last resort, use the slow shell script. Don't cache a
4256 # value for MKDIR_P within a source directory, because that will
4257 # break other packages using the cache if that directory is
4258 # removed, or if the value is a relative name.
4259 MKDIR_P="$ac_install_sh -d"
4260 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4263 $as_echo "$MKDIR_P" >&6; }
4264
4265 for ac_prog in gawk mawk nawk awk
4266 do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_AWK+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$AWK"; then
4275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_AWK="$ac_prog"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 AWK=$ac_cv_prog_AWK
4295 if test -n "$AWK"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4297 $as_echo "$AWK" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304 test -n "$AWK" && break
4305 done
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4308 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4309 set x ${MAKE-make}
4310 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4311 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat >conftest.make <<\_ACEOF
4315 SHELL = /bin/sh
4316 all:
4317 @echo '@@@%%%=$(MAKE)=@@@%%%'
4318 _ACEOF
4319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4320 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4321 *@@@%%%=?*=@@@%%%*)
4322 eval ac_cv_prog_make_${ac_make}_set=yes;;
4323 *)
4324 eval ac_cv_prog_make_${ac_make}_set=no;;
4325 esac
4326 rm -f conftest.make
4327 fi
4328 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4330 $as_echo "yes" >&6; }
4331 SET_MAKE=
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 SET_MAKE="MAKE=${MAKE-make}"
4336 fi
4337
4338 rm -rf .tst 2>/dev/null
4339 mkdir .tst 2>/dev/null
4340 if test -d .tst; then
4341 am__leading_dot=.
4342 else
4343 am__leading_dot=_
4344 fi
4345 rmdir .tst 2>/dev/null
4346
4347 DEPDIR="${am__leading_dot}deps"
4348
4349 ac_config_commands="$ac_config_commands depfiles"
4350
4351
4352 am_make=${MAKE-make}
4353 cat > confinc << 'END'
4354 am__doit:
4355 @echo this is the am__doit target
4356 .PHONY: am__doit
4357 END
4358 # If we don't find an include directive, just comment out the code.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4360 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4361 am__include="#"
4362 am__quote=
4363 _am_result=none
4364 # First try GNU make style include.
4365 echo "include confinc" > confmf
4366 # Ignore all kinds of additional output from 'make'.
4367 case `$am_make -s -f confmf 2> /dev/null` in #(
4368 *the\ am__doit\ target*)
4369 am__include=include
4370 am__quote=
4371 _am_result=GNU
4372 ;;
4373 esac
4374 # Now try BSD make style include.
4375 if test "$am__include" = "#"; then
4376 echo '.include "confinc"' > confmf
4377 case `$am_make -s -f confmf 2> /dev/null` in #(
4378 *the\ am__doit\ target*)
4379 am__include=.include
4380 am__quote="\""
4381 _am_result=BSD
4382 ;;
4383 esac
4384 fi
4385
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4388 $as_echo "$_am_result" >&6; }
4389 rm -f confinc confmf
4390
4391 # Check whether --enable-dependency-tracking was given.
4392 if test "${enable_dependency_tracking+set}" = set; then :
4393 enableval=$enable_dependency_tracking;
4394 fi
4395
4396 if test "x$enable_dependency_tracking" != xno; then
4397 am_depcomp="$ac_aux_dir/depcomp"
4398 AMDEPBACKSLASH='\'
4399 am__nodep='_no'
4400 fi
4401 if test "x$enable_dependency_tracking" != xno; then
4402 AMDEP_TRUE=
4403 AMDEP_FALSE='#'
4404 else
4405 AMDEP_TRUE='#'
4406 AMDEP_FALSE=
4407 fi
4408
4409
4410 # Check whether --enable-silent-rules was given.
4411 if test "${enable_silent_rules+set}" = set; then :
4412 enableval=$enable_silent_rules;
4413 fi
4414
4415 case $enable_silent_rules in # (((
4416 yes) AM_DEFAULT_VERBOSITY=0;;
4417 no) AM_DEFAULT_VERBOSITY=1;;
4418 *) AM_DEFAULT_VERBOSITY=1;;
4419 esac
4420 am_make=${MAKE-make}
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4422 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4423 if ${am_cv_make_support_nested_variables+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if $as_echo 'TRUE=$(BAR$(V))
4427 BAR0=false
4428 BAR1=true
4429 V=1
4430 am__doit:
4431 @$(TRUE)
4432 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4433 am_cv_make_support_nested_variables=yes
4434 else
4435 am_cv_make_support_nested_variables=no
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4439 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4440 if test $am_cv_make_support_nested_variables = yes; then
4441 AM_V='$(V)'
4442 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4443 else
4444 AM_V=$AM_DEFAULT_VERBOSITY
4445 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4446 fi
4447 AM_BACKSLASH='\'
4448
4449 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4450 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4451 # is not polluted with repeated "-I."
4452 am__isrc=' -I$(srcdir)'
4453 # test to see if srcdir already configured
4454 if test -f $srcdir/config.status; then
4455 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4456 fi
4457 fi
4458
4459 # test whether we have cygpath
4460 if test -z "$CYGPATH_W"; then
4461 if (cygpath --version) >/dev/null 2>/dev/null; then
4462 CYGPATH_W='cygpath -w'
4463 else
4464 CYGPATH_W=echo
4465 fi
4466 fi
4467
4468
4469 # Define the identity of the package.
4470 PACKAGE='libcc1'
4471 VERSION='version-unused'
4472
4473
4474 # Some tools Automake needs.
4475
4476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4477
4478
4479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4480
4481
4482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4483
4484
4485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4486
4487
4488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4489
4490 # For better backward compatibility. To be removed once Automake 1.9.x
4491 # dies out for good. For more background, see:
4492 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4493 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4494 mkdir_p='$(MKDIR_P)'
4495
4496 # We need awk for the "check" target (and possibly the TAP driver). The
4497 # system "awk" is bad on some platforms.
4498 # Always define AMTAR for backward compatibility. Yes, it's still used
4499 # in the wild :-( We should find a proper way to deprecate it ...
4500 AMTAR='$${TAR-tar}'
4501
4502
4503 # We'll loop over all known methods to create a tar archive until one works.
4504 _am_tools='gnutar pax cpio none'
4505
4506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4507
4508
4509
4510
4511
4512 depcc="$CC" am_compiler_list=
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4515 $as_echo_n "checking dependency style of $depcc... " >&6; }
4516 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4520 # We make a subdir and do the tests there. Otherwise we can end up
4521 # making bogus files that we don't know about and never remove. For
4522 # instance it was reported that on HP-UX the gcc test will end up
4523 # making a dummy file named 'D' -- because '-MD' means "put the output
4524 # in D".
4525 rm -rf conftest.dir
4526 mkdir conftest.dir
4527 # Copy depcomp to subdir because otherwise we won't find it if we're
4528 # using a relative directory.
4529 cp "$am_depcomp" conftest.dir
4530 cd conftest.dir
4531 # We will build objects and dependencies in a subdirectory because
4532 # it helps to detect inapplicable dependency modes. For instance
4533 # both Tru64's cc and ICC support -MD to output dependencies as a
4534 # side effect of compilation, but ICC will put the dependencies in
4535 # the current directory while Tru64 will put them in the object
4536 # directory.
4537 mkdir sub
4538
4539 am_cv_CC_dependencies_compiler_type=none
4540 if test "$am_compiler_list" = ""; then
4541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4542 fi
4543 am__universal=false
4544 case " $depcc " in #(
4545 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4546 esac
4547
4548 for depmode in $am_compiler_list; do
4549 # Setup a source with many dependencies, because some compilers
4550 # like to wrap large dependency lists on column 80 (with \), and
4551 # we should not choose a depcomp mode which is confused by this.
4552 #
4553 # We need to recreate these files for each test, as the compiler may
4554 # overwrite some of them when testing with obscure command lines.
4555 # This happens at least with the AIX C compiler.
4556 : > sub/conftest.c
4557 for i in 1 2 3 4 5 6; do
4558 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4559 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4560 # Solaris 10 /bin/sh.
4561 echo '/* dummy */' > sub/conftst$i.h
4562 done
4563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4564
4565 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4566 # mode. It turns out that the SunPro C++ compiler does not properly
4567 # handle '-M -o', and we need to detect this. Also, some Intel
4568 # versions had trouble with output in subdirs.
4569 am__obj=sub/conftest.${OBJEXT-o}
4570 am__minus_obj="-o $am__obj"
4571 case $depmode in
4572 gcc)
4573 # This depmode causes a compiler race in universal mode.
4574 test "$am__universal" = false || continue
4575 ;;
4576 nosideeffect)
4577 # After this tag, mechanisms are not by side-effect, so they'll
4578 # only be used when explicitly requested.
4579 if test "x$enable_dependency_tracking" = xyes; then
4580 continue
4581 else
4582 break
4583 fi
4584 ;;
4585 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4586 # This compiler won't grok '-c -o', but also, the minuso test has
4587 # not run yet. These depmodes are late enough in the game, and
4588 # so weak that their functioning should not be impacted.
4589 am__obj=conftest.${OBJEXT-o}
4590 am__minus_obj=
4591 ;;
4592 none) break ;;
4593 esac
4594 if depmode=$depmode \
4595 source=sub/conftest.c object=$am__obj \
4596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4598 >/dev/null 2>conftest.err &&
4599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4603 # icc doesn't choke on unknown options, it will just issue warnings
4604 # or remarks (even with -Werror). So we grep stderr for any message
4605 # that says an option was ignored or not supported.
4606 # When given -MP, icc 7.0 and 7.1 complain thusly:
4607 # icc: Command line warning: ignoring option '-M'; no argument required
4608 # The diagnosis changed in icc 8.0:
4609 # icc: Command line remark: option '-MP' not supported
4610 if (grep 'ignoring option' conftest.err ||
4611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4612 am_cv_CC_dependencies_compiler_type=$depmode
4613 break
4614 fi
4615 fi
4616 done
4617
4618 cd ..
4619 rm -rf conftest.dir
4620 else
4621 am_cv_CC_dependencies_compiler_type=none
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4626 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4627 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4628
4629 if
4630 test "x$enable_dependency_tracking" != xno \
4631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4632 am__fastdepCC_TRUE=
4633 am__fastdepCC_FALSE='#'
4634 else
4635 am__fastdepCC_TRUE='#'
4636 am__fastdepCC_FALSE=
4637 fi
4638
4639
4640
4641 # POSIX will say in a future version that running "rm -f" with no argument
4642 # is OK; and we want to be able to make that assumption in our Makefile
4643 # recipes. So use an aggressive probe to check that the usage we want is
4644 # actually supported "in the wild" to an acceptable degree.
4645 # See automake bug#10828.
4646 # To make any issue more visible, cause the running configure to be aborted
4647 # by default if the 'rm' program in use doesn't match our expectations; the
4648 # user can still override this though.
4649 if rm -f && rm -fr && rm -rf; then : OK; else
4650 cat >&2 <<'END'
4651 Oops!
4652
4653 Your 'rm' program seems unable to run without file operands specified
4654 on the command line, even when the '-f' option is present. This is contrary
4655 to the behaviour of most rm programs out there, and not conforming with
4656 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4657
4658 Please tell bug-automake@gnu.org about your system, including the value
4659 of your $PATH and any error possibly output before this message. This
4660 can help us improve future automake versions.
4661
4662 END
4663 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4664 echo 'Configuration will proceed anyway, since you have set the' >&2
4665 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4666 echo >&2
4667 else
4668 cat >&2 <<'END'
4669 Aborting the configuration process, to ensure you take notice of the issue.
4670
4671 You can download and install GNU coreutils to get an 'rm' implementation
4672 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4673
4674 If you want to complete the configuration process using your problematic
4675 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4676 to "yes", and re-run configure.
4677
4678 END
4679 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4680 fi
4681 fi
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4685 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4686 # Check whether --enable-maintainer-mode was given.
4687 if test "${enable_maintainer_mode+set}" = set; then :
4688 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4689 else
4690 USE_MAINTAINER_MODE=no
4691 fi
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4694 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4695 if test $USE_MAINTAINER_MODE = yes; then
4696 MAINTAINER_MODE_TRUE=
4697 MAINTAINER_MODE_FALSE='#'
4698 else
4699 MAINTAINER_MODE_TRUE='#'
4700 MAINTAINER_MODE_FALSE=
4701 fi
4702
4703 MAINT=$MAINTAINER_MODE_TRUE
4704
4705
4706
4707 case `pwd` in
4708 *\ * | *\ *)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4710 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4711 esac
4712
4713
4714
4715 macro_version='2.2.7a'
4716 macro_revision='1.3134'
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 ltmain="$ac_aux_dir/ltmain.sh"
4731
4732 # Backslashify metacharacters that are still active within
4733 # double-quoted strings.
4734 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4735
4736 # Same as above, but do not quote variable references.
4737 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4738
4739 # Sed substitution to delay expansion of an escaped shell variable in a
4740 # double_quote_subst'ed string.
4741 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4742
4743 # Sed substitution to delay expansion of an escaped single quote.
4744 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4745
4746 # Sed substitution to avoid accidental globbing in evaled expressions
4747 no_glob_subst='s/\*/\\\*/g'
4748
4749 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4750 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4754 $as_echo_n "checking how to print strings... " >&6; }
4755 # Test print first, because it will be a builtin if present.
4756 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4757 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='print -r --'
4759 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4760 ECHO='printf %s\n'
4761 else
4762 # Use this function as a fallback that always works.
4763 func_fallback_echo ()
4764 {
4765 eval 'cat <<_LTECHO_EOF
4766 $1
4767 _LTECHO_EOF'
4768 }
4769 ECHO='func_fallback_echo'
4770 fi
4771
4772 # func_echo_all arg...
4773 # Invoke $ECHO with all args, space-separated.
4774 func_echo_all ()
4775 {
4776 $ECHO ""
4777 }
4778
4779 case "$ECHO" in
4780 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4781 $as_echo "printf" >&6; } ;;
4782 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4783 $as_echo "print -r" >&6; } ;;
4784 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4785 $as_echo "cat" >&6; } ;;
4786 esac
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4802 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4803 if ${ac_cv_path_SED+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4807 for ac_i in 1 2 3 4 5 6 7; do
4808 ac_script="$ac_script$as_nl$ac_script"
4809 done
4810 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4811 { ac_script=; unset ac_script;}
4812 if test -z "$SED"; then
4813 ac_path_SED_found=false
4814 # Loop through the user's path and test for each of PROGNAME-LIST
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_prog in sed gsed; do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4823 as_fn_executable_p "$ac_path_SED" || continue
4824 # Check for GNU ac_path_SED and select it if it is found.
4825 # Check for GNU $ac_path_SED
4826 case `"$ac_path_SED" --version 2>&1` in
4827 *GNU*)
4828 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829 *)
4830 ac_count=0
4831 $as_echo_n 0123456789 >"conftest.in"
4832 while :
4833 do
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 $as_echo '' >> "conftest.nl"
4838 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
4841 if test $ac_count -gt ${ac_path_SED_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_SED="$ac_path_SED"
4844 ac_path_SED_max=$ac_count
4845 fi
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 esac
4851
4852 $ac_path_SED_found && break 3
4853 done
4854 done
4855 done
4856 IFS=$as_save_IFS
4857 if test -z "$ac_cv_path_SED"; then
4858 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4859 fi
4860 else
4861 ac_cv_path_SED=$SED
4862 fi
4863
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4866 $as_echo "$ac_cv_path_SED" >&6; }
4867 SED="$ac_cv_path_SED"
4868 rm -f conftest.sed
4869
4870 test -z "$SED" && SED=sed
4871 Xsed="$SED -e 1s/^X//"
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4884 $as_echo_n "checking for fgrep... " >&6; }
4885 if ${ac_cv_path_FGREP+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4889 then ac_cv_path_FGREP="$GREP -F"
4890 else
4891 if test -z "$FGREP"; then
4892 ac_path_FGREP_found=false
4893 # Loop through the user's path and test for each of PROGNAME-LIST
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_prog in fgrep; do
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4902 as_fn_executable_p "$ac_path_FGREP" || continue
4903 # Check for GNU ac_path_FGREP and select it if it is found.
4904 # Check for GNU $ac_path_FGREP
4905 case `"$ac_path_FGREP" --version 2>&1` in
4906 *GNU*)
4907 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4908 *)
4909 ac_count=0
4910 $as_echo_n 0123456789 >"conftest.in"
4911 while :
4912 do
4913 cat "conftest.in" "conftest.in" >"conftest.tmp"
4914 mv "conftest.tmp" "conftest.in"
4915 cp "conftest.in" "conftest.nl"
4916 $as_echo 'FGREP' >> "conftest.nl"
4917 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919 as_fn_arith $ac_count + 1 && ac_count=$as_val
4920 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4921 # Best one so far, save it but keep looking for a better one
4922 ac_cv_path_FGREP="$ac_path_FGREP"
4923 ac_path_FGREP_max=$ac_count
4924 fi
4925 # 10*(2^10) chars as input seems more than enough
4926 test $ac_count -gt 10 && break
4927 done
4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4929 esac
4930
4931 $ac_path_FGREP_found && break 3
4932 done
4933 done
4934 done
4935 IFS=$as_save_IFS
4936 if test -z "$ac_cv_path_FGREP"; then
4937 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4938 fi
4939 else
4940 ac_cv_path_FGREP=$FGREP
4941 fi
4942
4943 fi
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4946 $as_echo "$ac_cv_path_FGREP" >&6; }
4947 FGREP="$ac_cv_path_FGREP"
4948
4949
4950 test -z "$GREP" && GREP=grep
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 # Check whether --with-gnu-ld was given.
4971 if test "${with_gnu_ld+set}" = set; then :
4972 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4973 else
4974 with_gnu_ld=no
4975 fi
4976
4977 ac_prog=ld
4978 if test "$GCC" = yes; then
4979 # Check if gcc -print-prog-name=ld gives a path.
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4981 $as_echo_n "checking for ld used by $CC... " >&6; }
4982 case $host in
4983 *-*-mingw*)
4984 # gcc leaves a trailing carriage return which upsets mingw
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4986 *)
4987 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4988 esac
4989 case $ac_prog in
4990 # Accept absolute paths.
4991 [\\/]* | ?:[\\/]*)
4992 re_direlt='/[^/][^/]*/\.\./'
4993 # Canonicalize the pathname of ld
4994 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4995 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4996 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4997 done
4998 test -z "$LD" && LD="$ac_prog"
4999 ;;
5000 "")
5001 # If it fails, then pretend we aren't using GCC.
5002 ac_prog=ld
5003 ;;
5004 *)
5005 # If it is relative, then search for the first ld in PATH.
5006 with_gnu_ld=unknown
5007 ;;
5008 esac
5009 elif test "$with_gnu_ld" = yes; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5011 $as_echo_n "checking for GNU ld... " >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5014 $as_echo_n "checking for non-GNU ld... " >&6; }
5015 fi
5016 if ${lt_cv_path_LD+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -z "$LD"; then
5020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5021 for ac_dir in $PATH; do
5022 IFS="$lt_save_ifs"
5023 test -z "$ac_dir" && ac_dir=.
5024 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5025 lt_cv_path_LD="$ac_dir/$ac_prog"
5026 # Check to see if the program is GNU ld. I'd rather use --version,
5027 # but apparently some variants of GNU ld only accept -v.
5028 # Break only if it was the GNU/non-GNU ld that we prefer.
5029 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5030 *GNU* | *'with BFD'*)
5031 test "$with_gnu_ld" != no && break
5032 ;;
5033 *)
5034 test "$with_gnu_ld" != yes && break
5035 ;;
5036 esac
5037 fi
5038 done
5039 IFS="$lt_save_ifs"
5040 else
5041 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5042 fi
5043 fi
5044
5045 LD="$lt_cv_path_LD"
5046 if test -n "$LD"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5048 $as_echo "$LD" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5055 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5056 if ${lt_cv_prog_gnu_ld+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5060 case `$LD -v 2>&1 </dev/null` in
5061 *GNU* | *'with BFD'*)
5062 lt_cv_prog_gnu_ld=yes
5063 ;;
5064 *)
5065 lt_cv_prog_gnu_ld=no
5066 ;;
5067 esac
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5070 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5071 with_gnu_ld=$lt_cv_prog_gnu_ld
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5082 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5083 if ${lt_cv_path_NM+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$NM"; then
5087 # Let the user override the test.
5088 lt_cv_path_NM="$NM"
5089 else
5090 lt_nm_to_check="${ac_tool_prefix}nm"
5091 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5092 lt_nm_to_check="$lt_nm_to_check nm"
5093 fi
5094 for lt_tmp_nm in $lt_nm_to_check; do
5095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5096 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5097 IFS="$lt_save_ifs"
5098 test -z "$ac_dir" && ac_dir=.
5099 tmp_nm="$ac_dir/$lt_tmp_nm"
5100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5101 # Check to see if the nm accepts a BSD-compat flag.
5102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5103 # nm: unknown option "B" ignored
5104 # Tru64's nm complains that /dev/null is an invalid object file
5105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5106 */dev/null* | *'Invalid file or object type'*)
5107 lt_cv_path_NM="$tmp_nm -B"
5108 break
5109 ;;
5110 *)
5111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5112 */dev/null*)
5113 lt_cv_path_NM="$tmp_nm -p"
5114 break
5115 ;;
5116 *)
5117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5118 continue # so that we can try to find one that supports BSD flags
5119 ;;
5120 esac
5121 ;;
5122 esac
5123 fi
5124 done
5125 IFS="$lt_save_ifs"
5126 done
5127 : ${lt_cv_path_NM=no}
5128 fi
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5131 $as_echo "$lt_cv_path_NM" >&6; }
5132 if test "$lt_cv_path_NM" != "no"; then
5133 NM="$lt_cv_path_NM"
5134 else
5135 # Didn't find any BSD compatible name lister, look for dumpbin.
5136 if test -n "$DUMPBIN"; then :
5137 # Let the user override the test.
5138 else
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog in dumpbin "link -dump"
5141 do
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_DUMPBIN+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$DUMPBIN"; then
5150 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 DUMPBIN=$ac_cv_prog_DUMPBIN
5170 if test -n "$DUMPBIN"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5172 $as_echo "$DUMPBIN" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 test -n "$DUMPBIN" && break
5180 done
5181 fi
5182 if test -z "$DUMPBIN"; then
5183 ac_ct_DUMPBIN=$DUMPBIN
5184 for ac_prog in dumpbin "link -dump"
5185 do
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_DUMPBIN"; then
5194 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5214 if test -n "$ac_ct_DUMPBIN"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5216 $as_echo "$ac_ct_DUMPBIN" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222
5223 test -n "$ac_ct_DUMPBIN" && break
5224 done
5225
5226 if test "x$ac_ct_DUMPBIN" = x; then
5227 DUMPBIN=":"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 DUMPBIN=$ac_ct_DUMPBIN
5236 fi
5237 fi
5238
5239 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5240 *COFF*)
5241 DUMPBIN="$DUMPBIN -symbols"
5242 ;;
5243 *)
5244 DUMPBIN=:
5245 ;;
5246 esac
5247 fi
5248
5249 if test "$DUMPBIN" != ":"; then
5250 NM="$DUMPBIN"
5251 fi
5252 fi
5253 test -z "$NM" && NM=nm
5254
5255
5256
5257
5258
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5261 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5262 if ${lt_cv_nm_interface+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 lt_cv_nm_interface="BSD nm"
5266 echo "int some_variable = 0;" > conftest.$ac_ext
5267 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5268 (eval "$ac_compile" 2>conftest.err)
5269 cat conftest.err >&5
5270 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5271 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5272 cat conftest.err >&5
5273 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5274 cat conftest.out >&5
5275 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5276 lt_cv_nm_interface="MS dumpbin"
5277 fi
5278 rm -f conftest*
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5281 $as_echo "$lt_cv_nm_interface" >&6; }
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5284 $as_echo_n "checking whether ln -s works... " >&6; }
5285 LN_S=$as_ln_s
5286 if test "$LN_S" = "ln -s"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288 $as_echo "yes" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5291 $as_echo "no, using $LN_S" >&6; }
5292 fi
5293
5294 # find the maximum length of command line arguments
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5296 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5297 if ${lt_cv_sys_max_cmd_len+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 i=0
5301 teststring="ABCD"
5302
5303 case $build_os in
5304 msdosdjgpp*)
5305 # On DJGPP, this test can blow up pretty badly due to problems in libc
5306 # (any single argument exceeding 2000 bytes causes a buffer overrun
5307 # during glob expansion). Even if it were fixed, the result of this
5308 # check would be larger than it should be.
5309 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5310 ;;
5311
5312 gnu*)
5313 # Under GNU Hurd, this test is not required because there is
5314 # no limit to the length of command line arguments.
5315 # Libtool will interpret -1 as no limit whatsoever
5316 lt_cv_sys_max_cmd_len=-1;
5317 ;;
5318
5319 cygwin* | mingw* | cegcc*)
5320 # On Win9x/ME, this test blows up -- it succeeds, but takes
5321 # about 5 minutes as the teststring grows exponentially.
5322 # Worse, since 9x/ME are not pre-emptively multitasking,
5323 # you end up with a "frozen" computer, even though with patience
5324 # the test eventually succeeds (with a max line length of 256k).
5325 # Instead, let's just punt: use the minimum linelength reported by
5326 # all of the supported platforms: 8192 (on NT/2K/XP).
5327 lt_cv_sys_max_cmd_len=8192;
5328 ;;
5329
5330 mint*)
5331 # On MiNT this can take a long time and run out of memory.
5332 lt_cv_sys_max_cmd_len=8192;
5333 ;;
5334
5335 amigaos*)
5336 # On AmigaOS with pdksh, this test takes hours, literally.
5337 # So we just punt and use a minimum line length of 8192.
5338 lt_cv_sys_max_cmd_len=8192;
5339 ;;
5340
5341 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5342 # This has been around since 386BSD, at least. Likely further.
5343 if test -x /sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5345 elif test -x /usr/sbin/sysctl; then
5346 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5347 else
5348 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5349 fi
5350 # And add a safety zone
5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353 ;;
5354
5355 interix*)
5356 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5357 lt_cv_sys_max_cmd_len=196608
5358 ;;
5359
5360 osf*)
5361 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5362 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5363 # nice to cause kernel panics so lets avoid the loop below.
5364 # First set a reasonable default.
5365 lt_cv_sys_max_cmd_len=16384
5366 #
5367 if test -x /sbin/sysconfig; then
5368 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5369 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5370 esac
5371 fi
5372 ;;
5373 sco3.2v5*)
5374 lt_cv_sys_max_cmd_len=102400
5375 ;;
5376 sysv5* | sco5v6* | sysv4.2uw2*)
5377 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5378 if test -n "$kargmax"; then
5379 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5380 else
5381 lt_cv_sys_max_cmd_len=32768
5382 fi
5383 ;;
5384 *)
5385 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5386 if test -n "$lt_cv_sys_max_cmd_len"; then
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5389 else
5390 # Make teststring a little bigger before we do anything with it.
5391 # a 1K string should be a reasonable start.
5392 for i in 1 2 3 4 5 6 7 8 ; do
5393 teststring=$teststring$teststring
5394 done
5395 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5396 # If test is not a shell built-in, we'll probably end up computing a
5397 # maximum length that is only half of the actual maximum length, but
5398 # we can't tell.
5399 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5400 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5401 test $i != 17 # 1/2 MB should be enough
5402 do
5403 i=`expr $i + 1`
5404 teststring=$teststring$teststring
5405 done
5406 # Only check the string length outside the loop.
5407 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5408 teststring=
5409 # Add a significant safety factor because C++ compilers can tack on
5410 # massive amounts of additional arguments before passing them to the
5411 # linker. It appears as though 1/2 is a usable value.
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5413 fi
5414 ;;
5415 esac
5416
5417 fi
5418
5419 if test -n $lt_cv_sys_max_cmd_len ; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5421 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5424 $as_echo "none" >&6; }
5425 fi
5426 max_cmd_len=$lt_cv_sys_max_cmd_len
5427
5428
5429
5430
5431
5432
5433 : ${CP="cp -f"}
5434 : ${MV="mv -f"}
5435 : ${RM="rm -f"}
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5438 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5439 # Try some XSI features
5440 xsi_shell=no
5441 ( _lt_dummy="a/b/c"
5442 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5443 = c,a/b,, \
5444 && eval 'test $(( 1 + 1 )) -eq 2 \
5445 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5446 && xsi_shell=yes
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5448 $as_echo "$xsi_shell" >&6; }
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5452 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5453 lt_shell_append=no
5454 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5455 >/dev/null 2>&1 \
5456 && lt_shell_append=yes
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5458 $as_echo "$lt_shell_append" >&6; }
5459
5460
5461 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5462 lt_unset=unset
5463 else
5464 lt_unset=false
5465 fi
5466
5467
5468
5469
5470
5471 # test EBCDIC or ASCII
5472 case `echo X|tr X '\101'` in
5473 A) # ASCII based system
5474 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5475 lt_SP2NL='tr \040 \012'
5476 lt_NL2SP='tr \015\012 \040\040'
5477 ;;
5478 *) # EBCDIC based system
5479 lt_SP2NL='tr \100 \n'
5480 lt_NL2SP='tr \r\n \100\100'
5481 ;;
5482 esac
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5493 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5494 if ${lt_cv_ld_reload_flag+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 lt_cv_ld_reload_flag='-r'
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5500 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5501 reload_flag=$lt_cv_ld_reload_flag
5502 case $reload_flag in
5503 "" | " "*) ;;
5504 *) reload_flag=" $reload_flag" ;;
5505 esac
5506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5507 case $host_os in
5508 darwin*)
5509 if test "$GCC" = yes; then
5510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5511 else
5512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5513 fi
5514 ;;
5515 esac
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525 if test -n "$ac_tool_prefix"; then
5526 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5527 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_OBJDUMP+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$OBJDUMP"; then
5534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 OBJDUMP=$ac_cv_prog_OBJDUMP
5554 if test -n "$OBJDUMP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5556 $as_echo "$OBJDUMP" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563 fi
5564 if test -z "$ac_cv_prog_OBJDUMP"; then
5565 ac_ct_OBJDUMP=$OBJDUMP
5566 # Extract the first word of "objdump", so it can be a program name with args.
5567 set dummy objdump; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$ac_ct_OBJDUMP"; then
5574 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589 IFS=$as_save_IFS
5590
5591 fi
5592 fi
5593 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5594 if test -n "$ac_ct_OBJDUMP"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5596 $as_echo "$ac_ct_OBJDUMP" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602 if test "x$ac_ct_OBJDUMP" = x; then
5603 OBJDUMP="false"
5604 else
5605 case $cross_compiling:$ac_tool_warned in
5606 yes:)
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609 ac_tool_warned=yes ;;
5610 esac
5611 OBJDUMP=$ac_ct_OBJDUMP
5612 fi
5613 else
5614 OBJDUMP="$ac_cv_prog_OBJDUMP"
5615 fi
5616
5617 test -z "$OBJDUMP" && OBJDUMP=objdump
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5628 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5629 if ${lt_cv_deplibs_check_method+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 lt_cv_file_magic_cmd='$MAGIC_CMD'
5633 lt_cv_file_magic_test_file=
5634 lt_cv_deplibs_check_method='unknown'
5635 # Need to set the preceding variable on all platforms that support
5636 # interlibrary dependencies.
5637 # 'none' -- dependencies not supported.
5638 # `unknown' -- same as none, but documents that we really don't know.
5639 # 'pass_all' -- all dependencies passed with no checks.
5640 # 'test_compile' -- check by making test program.
5641 # 'file_magic [[regex]]' -- check by looking for files in library path
5642 # which responds to the $file_magic_cmd with a given extended regex.
5643 # If you have `file' or equivalent on your system and you're not sure
5644 # whether `pass_all' will *always* work, you probably want this one.
5645
5646 case $host_os in
5647 aix[4-9]*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 beos*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 bsdi[45]*)
5656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5657 lt_cv_file_magic_cmd='/usr/bin/file -L'
5658 lt_cv_file_magic_test_file=/shlib/libc.so
5659 ;;
5660
5661 cygwin*)
5662 # func_win32_libid is a shell function defined in ltmain.sh
5663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5664 lt_cv_file_magic_cmd='func_win32_libid'
5665 ;;
5666
5667 mingw* | pw32*)
5668 # Base MSYS/MinGW do not provide the 'file' command needed by
5669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5670 # unless we find 'file', for example because we are cross-compiling.
5671 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5672 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5674 lt_cv_file_magic_cmd='func_win32_libid'
5675 else
5676 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5677 lt_cv_file_magic_cmd='$OBJDUMP -f'
5678 fi
5679 ;;
5680
5681 cegcc*)
5682 # use the weaker test based on 'objdump'. See mingw*.
5683 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5684 lt_cv_file_magic_cmd='$OBJDUMP -f'
5685 ;;
5686
5687 darwin* | rhapsody*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691 freebsd* | dragonfly*)
5692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5693 case $host_cpu in
5694 i*86 )
5695 # Not sure whether the presence of OpenBSD here was a mistake.
5696 # Let's accept both of them until this is cleared up.
5697 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5698 lt_cv_file_magic_cmd=/usr/bin/file
5699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5700 ;;
5701 esac
5702 else
5703 lt_cv_deplibs_check_method=pass_all
5704 fi
5705 ;;
5706
5707 gnu*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711 haiku*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 hpux10.20* | hpux11*)
5716 lt_cv_file_magic_cmd=/usr/bin/file
5717 case $host_cpu in
5718 ia64*)
5719 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5720 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5721 ;;
5722 hppa*64*)
5723 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]'
5724 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5725 ;;
5726 *)
5727 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5728 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5729 ;;
5730 esac
5731 ;;
5732
5733 interix[3-9]*)
5734 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5736 ;;
5737
5738 irix5* | irix6* | nonstopux*)
5739 case $LD in
5740 *-32|*"-32 ") libmagic=32-bit;;
5741 *-n32|*"-n32 ") libmagic=N32;;
5742 *-64|*"-64 ") libmagic=64-bit;;
5743 *) libmagic=never-match;;
5744 esac
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748 # This must be Linux ELF.
5749 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5750 lt_cv_deplibs_check_method=pass_all
5751 ;;
5752
5753 netbsd*)
5754 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5756 else
5757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5758 fi
5759 ;;
5760
5761 newos6*)
5762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5763 lt_cv_file_magic_cmd=/usr/bin/file
5764 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5765 ;;
5766
5767 *nto* | *qnx*)
5768 lt_cv_deplibs_check_method=pass_all
5769 ;;
5770
5771 openbsd*)
5772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5774 else
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5776 fi
5777 ;;
5778
5779 osf3* | osf4* | osf5*)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783 rdos*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 solaris*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790
5791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 sysv4 | sysv4.3*)
5796 case $host_vendor in
5797 motorola)
5798 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]'
5799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5800 ;;
5801 ncr)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804 sequent)
5805 lt_cv_file_magic_cmd='/bin/file'
5806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5807 ;;
5808 sni)
5809 lt_cv_file_magic_cmd='/bin/file'
5810 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5811 lt_cv_file_magic_test_file=/lib/libc.so
5812 ;;
5813 siemens)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816 pc)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819 esac
5820 ;;
5821
5822 tpf*)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
5825 esac
5826
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5829 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5830 file_magic_cmd=$lt_cv_file_magic_cmd
5831 deplibs_check_method=$lt_cv_deplibs_check_method
5832 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ar; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_AR+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$AR"; then
5854 ac_cv_prog_AR="$AR" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_AR="${ac_tool_prefix}ar"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 AR=$ac_cv_prog_AR
5874 if test -n "$AR"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5876 $as_echo "$AR" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_AR"; then
5885 ac_ct_AR=$AR
5886 # Extract the first word of "ar", so it can be a program name with args.
5887 set dummy ar; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$ac_ct_AR"; then
5894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_AR="ar"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5914 if test -n "$ac_ct_AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5916 $as_echo "$ac_ct_AR" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922 if test "x$ac_ct_AR" = x; then
5923 AR="false"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931 AR=$ac_ct_AR
5932 fi
5933 else
5934 AR="$ac_cv_prog_AR"
5935 fi
5936
5937 test -z "$AR" && AR=ar
5938 test -z "$AR_FLAGS" && AR_FLAGS=cru
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 if test -n "$ac_tool_prefix"; then
5951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5952 set dummy ${ac_tool_prefix}strip; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_STRIP+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$STRIP"; then
5959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 STRIP=$ac_cv_prog_STRIP
5979 if test -n "$STRIP"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5981 $as_echo "$STRIP" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987
5988 fi
5989 if test -z "$ac_cv_prog_STRIP"; then
5990 ac_ct_STRIP=$STRIP
5991 # Extract the first word of "strip", so it can be a program name with args.
5992 set dummy strip; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if test -n "$ac_ct_STRIP"; then
5999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_ac_ct_STRIP="strip"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6019 if test -n "$ac_ct_STRIP"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6021 $as_echo "$ac_ct_STRIP" >&6; }
6022 else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027 if test "x$ac_ct_STRIP" = x; then
6028 STRIP=":"
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6034 ac_tool_warned=yes ;;
6035 esac
6036 STRIP=$ac_ct_STRIP
6037 fi
6038 else
6039 STRIP="$ac_cv_prog_STRIP"
6040 fi
6041
6042 test -z "$STRIP" && STRIP=:
6043
6044
6045
6046
6047
6048
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_RANLIB+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$RANLIB"; then
6058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 RANLIB=$ac_cv_prog_RANLIB
6078 if test -n "$RANLIB"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6080 $as_echo "$RANLIB" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_RANLIB"; then
6089 ac_ct_RANLIB=$RANLIB
6090 # Extract the first word of "ranlib", so it can be a program name with args.
6091 set dummy ranlib; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$ac_ct_RANLIB"; then
6098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_ac_ct_RANLIB="ranlib"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6118 if test -n "$ac_ct_RANLIB"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6120 $as_echo "$ac_ct_RANLIB" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126 if test "x$ac_ct_RANLIB" = x; then
6127 RANLIB=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 RANLIB=$ac_ct_RANLIB
6136 fi
6137 else
6138 RANLIB="$ac_cv_prog_RANLIB"
6139 fi
6140
6141 test -z "$RANLIB" && RANLIB=:
6142
6143
6144
6145
6146
6147
6148 # Determine commands to create old-style static archives.
6149 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6150 old_postinstall_cmds='chmod 644 $oldlib'
6151 old_postuninstall_cmds=
6152
6153 if test -n "$RANLIB"; then
6154 case $host_os in
6155 openbsd*)
6156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6157 ;;
6158 *)
6159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6160 ;;
6161 esac
6162 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6163 fi
6164
6165 case $host_os in
6166 darwin*)
6167 lock_old_archive_extraction=yes ;;
6168 *)
6169 lock_old_archive_extraction=no ;;
6170 esac
6171
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 # If no C compiler was specified, use CC.
6211 LTCC=${LTCC-"$CC"}
6212
6213 # If no C compiler flags were specified, use CFLAGS.
6214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6215
6216 # Allow CC to be a program name with arguments.
6217 compiler=$CC
6218
6219
6220 # Check for command to grab the raw symbol name followed by C symbol from nm.
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6222 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6223 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226
6227 # These are sane defaults that work on at least a few old systems.
6228 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6229
6230 # Character class describing NM global symbol codes.
6231 symcode='[BCDEGRST]'
6232
6233 # Regexp to match symbols that can be accessed directly from C.
6234 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6235
6236 # Define system-specific variables.
6237 case $host_os in
6238 aix*)
6239 symcode='[BCDT]'
6240 ;;
6241 cygwin* | mingw* | pw32* | cegcc*)
6242 symcode='[ABCDGISTW]'
6243 ;;
6244 hpux*)
6245 if test "$host_cpu" = ia64; then
6246 symcode='[ABCDEGRST]'
6247 fi
6248 ;;
6249 irix* | nonstopux*)
6250 symcode='[BCDEGRST]'
6251 ;;
6252 osf*)
6253 symcode='[BCDEGQRST]'
6254 ;;
6255 solaris*)
6256 symcode='[BDRT]'
6257 ;;
6258 sco3.2v5*)
6259 symcode='[DT]'
6260 ;;
6261 sysv4.2uw2*)
6262 symcode='[DT]'
6263 ;;
6264 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6265 symcode='[ABDT]'
6266 ;;
6267 sysv4)
6268 symcode='[DFNSTU]'
6269 ;;
6270 esac
6271
6272 # If we're using GNU nm, then use its standard symbol codes.
6273 case `$NM -V 2>&1` in
6274 *GNU* | *'with BFD'*)
6275 symcode='[ABCDGIRSTW]' ;;
6276 esac
6277
6278 # Transform an extracted symbol line into a proper C declaration.
6279 # Some systems (esp. on ia64) link data and code symbols differently,
6280 # so use this general approach.
6281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282
6283 # Transform an extracted symbol line into symbol name and symbol address
6284 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6285 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'"
6286
6287 # Handle CRLF in mingw tool chain
6288 opt_cr=
6289 case $build_os in
6290 mingw*)
6291 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6292 ;;
6293 esac
6294
6295 # Try without a prefix underscore, then with it.
6296 for ac_symprfx in "" "_"; do
6297
6298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6299 symxfrm="\\1 $ac_symprfx\\2 \\2"
6300
6301 # Write the raw and C identifiers.
6302 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6303 # Fake it for dumpbin and say T for any non-static function
6304 # and D for any global variable.
6305 # Also find C++ and __fastcall symbols from MSVC++,
6306 # which start with @ or ?.
6307 lt_cv_sys_global_symbol_pipe="$AWK '"\
6308 " {last_section=section; section=\$ 3};"\
6309 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6310 " \$ 0!~/External *\|/{next};"\
6311 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6312 " {if(hide[section]) next};"\
6313 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6314 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6315 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6316 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6317 " ' prfx=^$ac_symprfx"
6318 else
6319 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6320 fi
6321
6322 # Check to see that the pipe works correctly.
6323 pipe_works=no
6324
6325 rm -f conftest*
6326 cat > conftest.$ac_ext <<_LT_EOF
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6330 char nm_test_var;
6331 void nm_test_func(void);
6332 void nm_test_func(void){}
6333 #ifdef __cplusplus
6334 }
6335 #endif
6336 int main(){nm_test_var='a';nm_test_func();return(0);}
6337 _LT_EOF
6338
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 # Now try to grab the symbols.
6345 nlist=conftest.nm
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6347 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; } && test -s "$nlist"; then
6351 # Try sorting and uniquifying the output.
6352 if sort "$nlist" | uniq > "$nlist"T; then
6353 mv -f "$nlist"T "$nlist"
6354 else
6355 rm -f "$nlist"T
6356 fi
6357
6358 # Make sure that we snagged all the symbols we need.
6359 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6360 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6361 cat <<_LT_EOF > conftest.$ac_ext
6362 #ifdef __cplusplus
6363 extern "C" {
6364 #endif
6365
6366 _LT_EOF
6367 # Now generate the symbol file.
6368 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6369
6370 cat <<_LT_EOF >> conftest.$ac_ext
6371
6372 /* The mapping between symbol names and symbols. */
6373 const struct {
6374 const char *name;
6375 void *address;
6376 }
6377 lt__PROGRAM__LTX_preloaded_symbols[] =
6378 {
6379 { "@PROGRAM@", (void *) 0 },
6380 _LT_EOF
6381 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6382 cat <<\_LT_EOF >> conftest.$ac_ext
6383 {0, (void *) 0}
6384 };
6385
6386 /* This works around a problem in FreeBSD linker */
6387 #ifdef FREEBSD_WORKAROUND
6388 static const void *lt_preloaded_setup() {
6389 return lt__PROGRAM__LTX_preloaded_symbols;
6390 }
6391 #endif
6392
6393 #ifdef __cplusplus
6394 }
6395 #endif
6396 _LT_EOF
6397 # Now try linking the two files.
6398 mv conftest.$ac_objext conftstm.$ac_objext
6399 lt_save_LIBS="$LIBS"
6400 lt_save_CFLAGS="$CFLAGS"
6401 LIBS="conftstm.$ac_objext"
6402 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6404 (eval $ac_link) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6408 pipe_works=yes
6409 fi
6410 LIBS="$lt_save_LIBS"
6411 CFLAGS="$lt_save_CFLAGS"
6412 else
6413 echo "cannot find nm_test_func in $nlist" >&5
6414 fi
6415 else
6416 echo "cannot find nm_test_var in $nlist" >&5
6417 fi
6418 else
6419 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6420 fi
6421 else
6422 echo "$progname: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 fi
6425 rm -rf conftest* conftst*
6426
6427 # Do not use the global_symbol_pipe unless it works.
6428 if test "$pipe_works" = yes; then
6429 break
6430 else
6431 lt_cv_sys_global_symbol_pipe=
6432 fi
6433 done
6434
6435 fi
6436
6437 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6438 lt_cv_sys_global_symbol_to_cdecl=
6439 fi
6440 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6442 $as_echo "failed" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6445 $as_echo "ok" >&6; }
6446 fi
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 # Check whether --enable-libtool-lock was given.
6470 if test "${enable_libtool_lock+set}" = set; then :
6471 enableval=$enable_libtool_lock;
6472 fi
6473
6474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6475
6476 # Some flags need to be propagated to the compiler or linker for good
6477 # libtool support.
6478 case $host in
6479 ia64-*-hpux*)
6480 # Find out which ABI we are using.
6481 echo 'int i;' > conftest.$ac_ext
6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483 (eval $ac_compile) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
6487 case `/usr/bin/file conftest.$ac_objext` in
6488 *ELF-32*)
6489 HPUX_IA64_MODE="32"
6490 ;;
6491 *ELF-64*)
6492 HPUX_IA64_MODE="64"
6493 ;;
6494 esac
6495 fi
6496 rm -rf conftest*
6497 ;;
6498 *-*-irix6*)
6499 # Find out which ABI we are using.
6500 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
6506 if test "$lt_cv_prog_gnu_ld" = yes; then
6507 case `/usr/bin/file conftest.$ac_objext` in
6508 *32-bit*)
6509 LD="${LD-ld} -melf32bsmip"
6510 ;;
6511 *N32*)
6512 LD="${LD-ld} -melf32bmipn32"
6513 ;;
6514 *64-bit*)
6515 LD="${LD-ld} -melf64bmip"
6516 ;;
6517 esac
6518 else
6519 case `/usr/bin/file conftest.$ac_objext` in
6520 *32-bit*)
6521 LD="${LD-ld} -32"
6522 ;;
6523 *N32*)
6524 LD="${LD-ld} -n32"
6525 ;;
6526 *64-bit*)
6527 LD="${LD-ld} -64"
6528 ;;
6529 esac
6530 fi
6531 fi
6532 rm -rf conftest*
6533 ;;
6534
6535 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6536 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6537 # Find out which ABI we are using.
6538 echo 'int i;' > conftest.$ac_ext
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
6544 case `/usr/bin/file conftest.o` in
6545 *32-bit*)
6546 case $host in
6547 x86_64-*kfreebsd*-gnu)
6548 LD="${LD-ld} -m elf_i386_fbsd"
6549 ;;
6550 x86_64-*linux*)
6551 case `/usr/bin/file conftest.o` in
6552 *x86-64*)
6553 LD="${LD-ld} -m elf32_x86_64"
6554 ;;
6555 *)
6556 LD="${LD-ld} -m elf_i386"
6557 ;;
6558 esac
6559 ;;
6560 powerpc64le-*linux*)
6561 LD="${LD-ld} -m elf32lppclinux"
6562 ;;
6563 powerpc64-*linux*)
6564 LD="${LD-ld} -m elf32ppclinux"
6565 ;;
6566 s390x-*linux*)
6567 LD="${LD-ld} -m elf_s390"
6568 ;;
6569 sparc64-*linux*)
6570 LD="${LD-ld} -m elf32_sparc"
6571 ;;
6572 esac
6573 ;;
6574 *64-bit*)
6575 case $host in
6576 x86_64-*kfreebsd*-gnu)
6577 LD="${LD-ld} -m elf_x86_64_fbsd"
6578 ;;
6579 x86_64-*linux*)
6580 LD="${LD-ld} -m elf_x86_64"
6581 ;;
6582 powerpcle-*linux*)
6583 LD="${LD-ld} -m elf64lppc"
6584 ;;
6585 powerpc-*linux*)
6586 LD="${LD-ld} -m elf64ppc"
6587 ;;
6588 s390*-*linux*|s390*-*tpf*)
6589 LD="${LD-ld} -m elf64_s390"
6590 ;;
6591 sparc*-*linux*)
6592 LD="${LD-ld} -m elf64_sparc"
6593 ;;
6594 esac
6595 ;;
6596 esac
6597 fi
6598 rm -rf conftest*
6599 ;;
6600
6601 *-*-sco3.2v5*)
6602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6603 SAVE_CFLAGS="$CFLAGS"
6604 CFLAGS="$CFLAGS -belf"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6606 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6607 if ${lt_cv_cc_needs_belf+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618
6619 int
6620 main ()
6621 {
6622
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_link "$LINENO"; then :
6628 lt_cv_cc_needs_belf=yes
6629 else
6630 lt_cv_cc_needs_belf=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6642 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6643 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6644 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6645 CFLAGS="$SAVE_CFLAGS"
6646 fi
6647 ;;
6648 sparc*-*solaris*)
6649 # Find out which ABI we are using.
6650 echo 'int i;' > conftest.$ac_ext
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6652 (eval $ac_compile) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; }; then
6656 case `/usr/bin/file conftest.o` in
6657 *64-bit*)
6658 case $lt_cv_prog_gnu_ld in
6659 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6660 *)
6661 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6662 LD="${LD-ld} -64"
6663 fi
6664 ;;
6665 esac
6666 ;;
6667 esac
6668 fi
6669 rm -rf conftest*
6670 ;;
6671 esac
6672
6673 need_locks="$enable_libtool_lock"
6674
6675
6676 case $host_os in
6677 rhapsody* | darwin*)
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$DSYMUTIL"; then
6687 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6707 if test -n "$DSYMUTIL"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6709 $as_echo "$DSYMUTIL" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_DSYMUTIL"; then
6718 ac_ct_DSYMUTIL=$DSYMUTIL
6719 # Extract the first word of "dsymutil", so it can be a program name with args.
6720 set dummy dsymutil; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$ac_ct_DSYMUTIL"; then
6727 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6747 if test -n "$ac_ct_DSYMUTIL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6749 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_DSYMUTIL" = x; then
6756 DSYMUTIL=":"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764 DSYMUTIL=$ac_ct_DSYMUTIL
6765 fi
6766 else
6767 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6768 fi
6769
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_NMEDIT+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$NMEDIT"; then
6779 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 NMEDIT=$ac_cv_prog_NMEDIT
6799 if test -n "$NMEDIT"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6801 $as_echo "$NMEDIT" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_NMEDIT"; then
6810 ac_ct_NMEDIT=$NMEDIT
6811 # Extract the first word of "nmedit", so it can be a program name with args.
6812 set dummy nmedit; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$ac_ct_NMEDIT"; then
6819 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6839 if test -n "$ac_ct_NMEDIT"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6841 $as_echo "$ac_ct_NMEDIT" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847 if test "x$ac_ct_NMEDIT" = x; then
6848 NMEDIT=":"
6849 else
6850 case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6855 esac
6856 NMEDIT=$ac_ct_NMEDIT
6857 fi
6858 else
6859 NMEDIT="$ac_cv_prog_NMEDIT"
6860 fi
6861
6862 if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6864 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_LIPO+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$LIPO"; then
6871 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 LIPO=$ac_cv_prog_LIPO
6891 if test -n "$LIPO"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6893 $as_echo "$LIPO" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$ac_cv_prog_LIPO"; then
6902 ac_ct_LIPO=$LIPO
6903 # Extract the first word of "lipo", so it can be a program name with args.
6904 set dummy lipo; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$ac_ct_LIPO"; then
6911 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_LIPO="lipo"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6931 if test -n "$ac_ct_LIPO"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6933 $as_echo "$ac_ct_LIPO" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939 if test "x$ac_ct_LIPO" = x; then
6940 LIPO=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948 LIPO=$ac_ct_LIPO
6949 fi
6950 else
6951 LIPO="$ac_cv_prog_LIPO"
6952 fi
6953
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_OTOOL+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$OTOOL"; then
6963 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 OTOOL=$ac_cv_prog_OTOOL
6983 if test -n "$OTOOL"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6985 $as_echo "$OTOOL" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991
6992 fi
6993 if test -z "$ac_cv_prog_OTOOL"; then
6994 ac_ct_OTOOL=$OTOOL
6995 # Extract the first word of "otool", so it can be a program name with args.
6996 set dummy otool; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$ac_ct_OTOOL"; then
7003 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_ac_ct_OTOOL="otool"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7023 if test -n "$ac_ct_OTOOL"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7025 $as_echo "$ac_ct_OTOOL" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031 if test "x$ac_ct_OTOOL" = x; then
7032 OTOOL=":"
7033 else
7034 case $cross_compiling:$ac_tool_warned in
7035 yes:)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040 OTOOL=$ac_ct_OTOOL
7041 fi
7042 else
7043 OTOOL="$ac_cv_prog_OTOOL"
7044 fi
7045
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_OTOOL64+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$OTOOL64"; then
7055 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 OTOOL64=$ac_cv_prog_OTOOL64
7075 if test -n "$OTOOL64"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7077 $as_echo "$OTOOL64" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083
7084 fi
7085 if test -z "$ac_cv_prog_OTOOL64"; then
7086 ac_ct_OTOOL64=$OTOOL64
7087 # Extract the first word of "otool64", so it can be a program name with args.
7088 set dummy otool64; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$ac_ct_OTOOL64"; then
7095 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_OTOOL64="otool64"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7115 if test -n "$ac_ct_OTOOL64"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7117 $as_echo "$ac_ct_OTOOL64" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_OTOOL64" = x; then
7124 OTOOL64=":"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132 OTOOL64=$ac_ct_OTOOL64
7133 fi
7134 else
7135 OTOOL64="$ac_cv_prog_OTOOL64"
7136 fi
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7165 $as_echo_n "checking for -single_module linker flag... " >&6; }
7166 if ${lt_cv_apple_cc_single_mod+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 lt_cv_apple_cc_single_mod=no
7170 if test -z "${LT_MULTI_MODULE}"; then
7171 # By default we will add the -single_module flag. You can override
7172 # by either setting the environment variable LT_MULTI_MODULE
7173 # non-empty at configure time, or by adding -multi_module to the
7174 # link flags.
7175 rm -rf libconftest.dylib*
7176 echo "int foo(void){return 1;}" > conftest.c
7177 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7178 -dynamiclib -Wl,-single_module conftest.c" >&5
7179 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7180 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7181 _lt_result=$?
7182 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7183 lt_cv_apple_cc_single_mod=yes
7184 else
7185 cat conftest.err >&5
7186 fi
7187 rm -rf libconftest.dylib*
7188 rm -f conftest.*
7189 fi
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7192 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7194 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7195 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_ld_exported_symbols_list=no
7199 save_LDFLAGS=$LDFLAGS
7200 echo "_main" > conftest.sym
7201 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204
7205 int
7206 main ()
7207 {
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 lt_cv_ld_exported_symbols_list=yes
7215 else
7216 lt_cv_ld_exported_symbols_list=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LDFLAGS="$save_LDFLAGS"
7221
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7224 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7226 $as_echo_n "checking for -force_load linker flag... " >&6; }
7227 if ${lt_cv_ld_force_load+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 lt_cv_ld_force_load=no
7231 cat > conftest.c << _LT_EOF
7232 int forced_loaded() { return 2;}
7233 _LT_EOF
7234 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7235 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7236 echo "$AR cru libconftest.a conftest.o" >&5
7237 $AR cru libconftest.a conftest.o 2>&5
7238 cat > conftest.c << _LT_EOF
7239 int main() { return 0;}
7240 _LT_EOF
7241 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7242 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7243 _lt_result=$?
7244 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7245 lt_cv_ld_force_load=yes
7246 else
7247 cat conftest.err >&5
7248 fi
7249 rm -f conftest.err libconftest.a conftest conftest.c
7250 rm -rf conftest.dSYM
7251
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7254 $as_echo "$lt_cv_ld_force_load" >&6; }
7255 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7256 # build without first building modern cctools / linker.
7257 case $host_cpu-$host_os in
7258 *-rhapsody* | *-darwin1.[012])
7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7260 *-darwin1.*)
7261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7262 *-darwin*)
7263 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7264 # deployment target is forced to an earlier version.
7265 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7266 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7267 ;;
7268 10.[012][,.]*)
7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7270 ;;
7271 *)
7272 ;;
7273 esac
7274 ;;
7275 esac
7276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7277 _lt_dar_single_mod='$single_module'
7278 fi
7279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7281 else
7282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283 fi
7284 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7285 _lt_dsymutil='~$DSYMUTIL $lib || :'
7286 else
7287 _lt_dsymutil=
7288 fi
7289 ;;
7290 esac
7291
7292 for ac_header in dlfcn.h
7293 do :
7294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7295 "
7296 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7297 cat >>confdefs.h <<_ACEOF
7298 #define HAVE_DLFCN_H 1
7299 _ACEOF
7300
7301 fi
7302
7303 done
7304
7305
7306
7307
7308
7309 # Set options
7310 # Check whether --enable-static was given.
7311 if test "${enable_static+set}" = set; then :
7312 enableval=$enable_static; p=${PACKAGE-default}
7313 case $enableval in
7314 yes) enable_static=yes ;;
7315 no) enable_static=no ;;
7316 *)
7317 enable_static=no
7318 # Look at the argument we got. We use all the common list separators.
7319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7320 for pkg in $enableval; do
7321 IFS="$lt_save_ifs"
7322 if test "X$pkg" = "X$p"; then
7323 enable_static=yes
7324 fi
7325 done
7326 IFS="$lt_save_ifs"
7327 ;;
7328 esac
7329 else
7330 enable_static=no
7331 fi
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 enable_dlopen=no
7343
7344
7345 enable_win32_dll=no
7346
7347
7348 # Check whether --enable-shared was given.
7349 if test "${enable_shared+set}" = set; then :
7350 enableval=$enable_shared; p=${PACKAGE-default}
7351 case $enableval in
7352 yes) enable_shared=yes ;;
7353 no) enable_shared=no ;;
7354 *)
7355 enable_shared=no
7356 # Look at the argument we got. We use all the common list separators.
7357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7358 for pkg in $enableval; do
7359 IFS="$lt_save_ifs"
7360 if test "X$pkg" = "X$p"; then
7361 enable_shared=yes
7362 fi
7363 done
7364 IFS="$lt_save_ifs"
7365 ;;
7366 esac
7367 else
7368 enable_shared=yes
7369 fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 # Check whether --with-pic was given.
7382 if test "${with_pic+set}" = set; then :
7383 withval=$with_pic; pic_mode="$withval"
7384 else
7385 pic_mode=default
7386 fi
7387
7388
7389 test -z "$pic_mode" && pic_mode=default
7390
7391
7392
7393
7394
7395
7396
7397 # Check whether --enable-fast-install was given.
7398 if test "${enable_fast_install+set}" = set; then :
7399 enableval=$enable_fast_install; p=${PACKAGE-default}
7400 case $enableval in
7401 yes) enable_fast_install=yes ;;
7402 no) enable_fast_install=no ;;
7403 *)
7404 enable_fast_install=no
7405 # Look at the argument we got. We use all the common list separators.
7406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7407 for pkg in $enableval; do
7408 IFS="$lt_save_ifs"
7409 if test "X$pkg" = "X$p"; then
7410 enable_fast_install=yes
7411 fi
7412 done
7413 IFS="$lt_save_ifs"
7414 ;;
7415 esac
7416 else
7417 enable_fast_install=yes
7418 fi
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 # This can be used to rebuild libtool when needed
7431 LIBTOOL_DEPS="$ltmain"
7432
7433 # Always use our own libtool.
7434 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7461 test -z "$LN_S" && LN_S="ln -s"
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 if test -n "${ZSH_VERSION+set}" ; then
7477 setopt NO_GLOB_SUBST
7478 fi
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7481 $as_echo_n "checking for objdir... " >&6; }
7482 if ${lt_cv_objdir+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 rm -f .libs 2>/dev/null
7486 mkdir .libs 2>/dev/null
7487 if test -d .libs; then
7488 lt_cv_objdir=.libs
7489 else
7490 # MS-DOS does not allow filenames that begin with a dot.
7491 lt_cv_objdir=_libs
7492 fi
7493 rmdir .libs 2>/dev/null
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7496 $as_echo "$lt_cv_objdir" >&6; }
7497 objdir=$lt_cv_objdir
7498
7499
7500
7501
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define LT_OBJDIR "$lt_cv_objdir/"
7505 _ACEOF
7506
7507
7508
7509
7510 case $host_os in
7511 aix3*)
7512 # AIX sometimes has problems with the GCC collect2 program. For some
7513 # reason, if we set the COLLECT_NAMES environment variable, the problems
7514 # vanish in a puff of smoke.
7515 if test "X${COLLECT_NAMES+set}" != Xset; then
7516 COLLECT_NAMES=
7517 export COLLECT_NAMES
7518 fi
7519 ;;
7520 esac
7521
7522 # Global variables:
7523 ofile=libtool
7524 can_build_shared=yes
7525
7526 # All known linkers require a `.a' archive for static linking (except MSVC,
7527 # which needs '.lib').
7528 libext=a
7529
7530 with_gnu_ld="$lt_cv_prog_gnu_ld"
7531
7532 old_CC="$CC"
7533 old_CFLAGS="$CFLAGS"
7534
7535 # Set sane defaults for various variables
7536 test -z "$CC" && CC=cc
7537 test -z "$LTCC" && LTCC=$CC
7538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7539 test -z "$LD" && LD=ld
7540 test -z "$ac_objext" && ac_objext=o
7541
7542 for cc_temp in $compiler""; do
7543 case $cc_temp in
7544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7546 \-*) ;;
7547 *) break;;
7548 esac
7549 done
7550 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7551
7552
7553 # Only perform the check for file, if the check method requires it
7554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7555 case $deplibs_check_method in
7556 file_magic*)
7557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 case $MAGIC_CMD in
7564 [\\/*] | ?:[\\/]*)
7565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7566 ;;
7567 *)
7568 lt_save_MAGIC_CMD="$MAGIC_CMD"
7569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7571 for ac_dir in $ac_dummy; do
7572 IFS="$lt_save_ifs"
7573 test -z "$ac_dir" && ac_dir=.
7574 if test -f $ac_dir/${ac_tool_prefix}file; then
7575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7576 if test -n "$file_magic_test_file"; then
7577 case $deplibs_check_method in
7578 "file_magic "*)
7579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7582 $EGREP "$file_magic_regex" > /dev/null; then
7583 :
7584 else
7585 cat <<_LT_EOF 1>&2
7586
7587 *** Warning: the command libtool uses to detect shared libraries,
7588 *** $file_magic_cmd, produces output that libtool cannot recognize.
7589 *** The result is that libtool may fail to recognize shared libraries
7590 *** as such. This will affect the creation of libtool libraries that
7591 *** depend on shared libraries, but programs linked with such libtool
7592 *** libraries will work regardless of this problem. Nevertheless, you
7593 *** may want to report the problem to your system manager and/or to
7594 *** bug-libtool@gnu.org
7595
7596 _LT_EOF
7597 fi ;;
7598 esac
7599 fi
7600 break
7601 fi
7602 done
7603 IFS="$lt_save_ifs"
7604 MAGIC_CMD="$lt_save_MAGIC_CMD"
7605 ;;
7606 esac
7607 fi
7608
7609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7610 if test -n "$MAGIC_CMD"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7612 $as_echo "$MAGIC_CMD" >&6; }
7613 else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618
7619
7620
7621
7622 if test -z "$lt_cv_path_MAGIC_CMD"; then
7623 if test -n "$ac_tool_prefix"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7625 $as_echo_n "checking for file... " >&6; }
7626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 case $MAGIC_CMD in
7630 [\\/*] | ?:[\\/]*)
7631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7632 ;;
7633 *)
7634 lt_save_MAGIC_CMD="$MAGIC_CMD"
7635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7637 for ac_dir in $ac_dummy; do
7638 IFS="$lt_save_ifs"
7639 test -z "$ac_dir" && ac_dir=.
7640 if test -f $ac_dir/file; then
7641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7642 if test -n "$file_magic_test_file"; then
7643 case $deplibs_check_method in
7644 "file_magic "*)
7645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7648 $EGREP "$file_magic_regex" > /dev/null; then
7649 :
7650 else
7651 cat <<_LT_EOF 1>&2
7652
7653 *** Warning: the command libtool uses to detect shared libraries,
7654 *** $file_magic_cmd, produces output that libtool cannot recognize.
7655 *** The result is that libtool may fail to recognize shared libraries
7656 *** as such. This will affect the creation of libtool libraries that
7657 *** depend on shared libraries, but programs linked with such libtool
7658 *** libraries will work regardless of this problem. Nevertheless, you
7659 *** may want to report the problem to your system manager and/or to
7660 *** bug-libtool@gnu.org
7661
7662 _LT_EOF
7663 fi ;;
7664 esac
7665 fi
7666 break
7667 fi
7668 done
7669 IFS="$lt_save_ifs"
7670 MAGIC_CMD="$lt_save_MAGIC_CMD"
7671 ;;
7672 esac
7673 fi
7674
7675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7676 if test -n "$MAGIC_CMD"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7678 $as_echo "$MAGIC_CMD" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 else
7686 MAGIC_CMD=:
7687 fi
7688 fi
7689
7690 fi
7691 ;;
7692 esac
7693
7694 # Use C for the default configuration in the libtool script
7695
7696 lt_save_CC="$CC"
7697 ac_ext=c
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702
7703
7704 # Source file extension for C test sources.
7705 ac_ext=c
7706
7707 # Object file extension for compiled C test sources.
7708 objext=o
7709 objext=$objext
7710
7711 # Code to be used in simple compile tests
7712 lt_simple_compile_test_code="int some_variable = 0;"
7713
7714 # Code to be used in simple link tests
7715 lt_simple_link_test_code='int main(){return(0);}'
7716
7717
7718
7719
7720
7721
7722
7723 # If no C compiler was specified, use CC.
7724 LTCC=${LTCC-"$CC"}
7725
7726 # If no C compiler flags were specified, use CFLAGS.
7727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7728
7729 # Allow CC to be a program name with arguments.
7730 compiler=$CC
7731
7732 # Save the default compiler, since it gets overwritten when the other
7733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7734 compiler_DEFAULT=$CC
7735
7736 # save warnings/boilerplate of simple test code
7737 ac_outfile=conftest.$ac_objext
7738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740 _lt_compiler_boilerplate=`cat conftest.err`
7741 $RM conftest*
7742
7743 ac_outfile=conftest.$ac_objext
7744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746 _lt_linker_boilerplate=`cat conftest.err`
7747 $RM -r conftest*
7748
7749
7750 ## CAVEAT EMPTOR:
7751 ## There is no encapsulation within the following macros, do not change
7752 ## the running order or otherwise move them around unless you know exactly
7753 ## what you are doing...
7754 if test -n "$compiler"; then
7755
7756 lt_prog_compiler_no_builtin_flag=
7757
7758 if test "$GCC" = yes; then
7759 case $cc_basename in
7760 nvcc*)
7761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7762 *)
7763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7764 esac
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7768 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 lt_cv_prog_compiler_rtti_exceptions=no
7772 ac_outfile=conftest.$ac_objext
7773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774 lt_compiler_flag="-fno-rtti -fno-exceptions"
7775 # Insert the option either (1) after the last *FLAGS variable, or
7776 # (2) before a word containing "conftest.", or (3) at the end.
7777 # Note that $ac_compile itself does not contain backslashes and begins
7778 # with a dollar sign (not a hyphen), so the echo should work correctly.
7779 # The option is referenced via a variable to avoid confusing sed.
7780 lt_compile=`echo "$ac_compile" | $SED \
7781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783 -e 's:$: $lt_compiler_flag:'`
7784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7785 (eval "$lt_compile" 2>conftest.err)
7786 ac_status=$?
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 if (exit $ac_status) && test -s "$ac_outfile"; then
7790 # The compiler can only warn and ignore the option if not recognized
7791 # So say no if there are warnings other than the usual output.
7792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795 lt_cv_prog_compiler_rtti_exceptions=yes
7796 fi
7797 fi
7798 $RM conftest*
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7803
7804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7806 else
7807 :
7808 fi
7809
7810 fi
7811
7812
7813
7814
7815
7816
7817 lt_prog_compiler_wl=
7818 lt_prog_compiler_pic=
7819 lt_prog_compiler_static=
7820
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7823
7824 if test "$GCC" = yes; then
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_static='-static'
7827
7828 case $host_os in
7829 aix*)
7830 # All AIX code is PIC.
7831 if test "$host_cpu" = ia64; then
7832 # AIX 5 now supports IA64 processor
7833 lt_prog_compiler_static='-Bstatic'
7834 fi
7835 lt_prog_compiler_pic='-fPIC'
7836 ;;
7837
7838 amigaos*)
7839 case $host_cpu in
7840 powerpc)
7841 # see comment about AmigaOS4 .so support
7842 lt_prog_compiler_pic='-fPIC'
7843 ;;
7844 m68k)
7845 # FIXME: we need at least 68020 code to build shared libraries, but
7846 # adding the `-m68020' flag to GCC prevents building anything better,
7847 # like `-m68040'.
7848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849 ;;
7850 esac
7851 ;;
7852
7853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7854 # PIC is the default for these OSes.
7855 ;;
7856
7857 mingw* | cygwin* | pw32* | os2* | cegcc*)
7858 # This hack is so that the source file can tell whether it is being
7859 # built for inclusion in a dll (and should export symbols for example).
7860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7861 # (--disable-auto-import) libraries
7862 lt_prog_compiler_pic='-DDLL_EXPORT'
7863 ;;
7864
7865 darwin* | rhapsody*)
7866 # PIC is the default on this platform
7867 # Common symbols not allowed in MH_DYLIB files
7868 lt_prog_compiler_pic='-fno-common'
7869 ;;
7870
7871 haiku*)
7872 # PIC is the default for Haiku.
7873 # The "-static" flag exists, but is broken.
7874 lt_prog_compiler_static=
7875 ;;
7876
7877 hpux*)
7878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7880 # sets the default TLS model and affects inlining.
7881 case $host_cpu in
7882 hppa*64*)
7883 # +Z the default
7884 ;;
7885 *)
7886 lt_prog_compiler_pic='-fPIC'
7887 ;;
7888 esac
7889 ;;
7890
7891 interix[3-9]*)
7892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7893 # Instead, we relocate shared libraries at runtime.
7894 ;;
7895
7896 msdosdjgpp*)
7897 # Just because we use GCC doesn't mean we suddenly get shared libraries
7898 # on systems that don't support them.
7899 lt_prog_compiler_can_build_shared=no
7900 enable_shared=no
7901 ;;
7902
7903 *nto* | *qnx*)
7904 # QNX uses GNU C++, but need to define -shared option too, otherwise
7905 # it will coredump.
7906 lt_prog_compiler_pic='-fPIC -shared'
7907 ;;
7908
7909 sysv4*MP*)
7910 if test -d /usr/nec; then
7911 lt_prog_compiler_pic=-Kconform_pic
7912 fi
7913 ;;
7914
7915 *)
7916 lt_prog_compiler_pic='-fPIC'
7917 ;;
7918 esac
7919
7920 case $cc_basename in
7921 nvcc*) # Cuda Compiler Driver 2.2
7922 lt_prog_compiler_wl='-Xlinker '
7923 lt_prog_compiler_pic='-Xcompiler -fPIC'
7924 ;;
7925 esac
7926 else
7927 # PORTME Check for flag to pass linker flags through the system compiler.
7928 case $host_os in
7929 aix*)
7930 lt_prog_compiler_wl='-Wl,'
7931 if test "$host_cpu" = ia64; then
7932 # AIX 5 now supports IA64 processor
7933 lt_prog_compiler_static='-Bstatic'
7934 else
7935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7936 fi
7937 ;;
7938
7939 mingw* | cygwin* | pw32* | os2* | cegcc*)
7940 # This hack is so that the source file can tell whether it is being
7941 # built for inclusion in a dll (and should export symbols for example).
7942 lt_prog_compiler_pic='-DDLL_EXPORT'
7943 ;;
7944
7945 hpux9* | hpux10* | hpux11*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7948 # not for PA HP-UX.
7949 case $host_cpu in
7950 hppa*64*|ia64*)
7951 # +Z the default
7952 ;;
7953 *)
7954 lt_prog_compiler_pic='+Z'
7955 ;;
7956 esac
7957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7958 lt_prog_compiler_static='${wl}-a ${wl}archive'
7959 ;;
7960
7961 irix5* | irix6* | nonstopux*)
7962 lt_prog_compiler_wl='-Wl,'
7963 # PIC (with -KPIC) is the default.
7964 lt_prog_compiler_static='-non_shared'
7965 ;;
7966
7967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7968 case $cc_basename in
7969 # old Intel for x86_64 which still supported -KPIC.
7970 ecc*)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-KPIC'
7973 lt_prog_compiler_static='-static'
7974 ;;
7975 # icc used to be incompatible with GCC.
7976 # ICC 10 doesn't accept -KPIC any more.
7977 icc* | ifort*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-fPIC'
7980 lt_prog_compiler_static='-static'
7981 ;;
7982 # Lahey Fortran 8.1.
7983 lf95*)
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_pic='--shared'
7986 lt_prog_compiler_static='--static'
7987 ;;
7988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7989 # Portland Group compilers (*not* the Pentium gcc compiler,
7990 # which looks to be a dead project)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='-fpic'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
7995 ccc*)
7996 lt_prog_compiler_wl='-Wl,'
7997 # All Alpha code is PIC.
7998 lt_prog_compiler_static='-non_shared'
7999 ;;
8000 xl* | bgxl* | bgf* | mpixl*)
8001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-qpic'
8004 lt_prog_compiler_static='-qstaticlink'
8005 ;;
8006 *)
8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ F* | *Sun*Fortran*)
8009 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl=''
8013 ;;
8014 *Sun\ C*)
8015 # Sun C 5.9
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl='-Wl,'
8019 ;;
8020 esac
8021 ;;
8022 esac
8023 ;;
8024
8025 newsos6)
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029
8030 *nto* | *qnx*)
8031 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 # it will coredump.
8033 lt_prog_compiler_pic='-fPIC -shared'
8034 ;;
8035
8036 osf3* | osf4* | osf5*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # All OSF/1 code is PIC.
8039 lt_prog_compiler_static='-non_shared'
8040 ;;
8041
8042 rdos*)
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
8046 solaris*)
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 case $cc_basename in
8050 f77* | f90* | f95*)
8051 lt_prog_compiler_wl='-Qoption ld ';;
8052 *)
8053 lt_prog_compiler_wl='-Wl,';;
8054 esac
8055 ;;
8056
8057 sunos4*)
8058 lt_prog_compiler_wl='-Qoption ld '
8059 lt_prog_compiler_pic='-PIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 sysv4 | sysv4.2uw2* | sysv4.3*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 sysv4*MP*)
8070 if test -d /usr/nec ;then
8071 lt_prog_compiler_pic='-Kconform_pic'
8072 lt_prog_compiler_static='-Bstatic'
8073 fi
8074 ;;
8075
8076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 unicos*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_can_build_shared=no
8085 ;;
8086
8087 uts4*)
8088 lt_prog_compiler_pic='-pic'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 *)
8093 lt_prog_compiler_can_build_shared=no
8094 ;;
8095 esac
8096 fi
8097
8098 case $host_os in
8099 # For platforms which do not support PIC, -DPIC is meaningless:
8100 *djgpp*)
8101 lt_prog_compiler_pic=
8102 ;;
8103 *)
8104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105 ;;
8106 esac
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8108 $as_echo "$lt_prog_compiler_pic" >&6; }
8109
8110
8111
8112
8113
8114
8115 #
8116 # Check to make sure the PIC flag actually works.
8117 #
8118 if test -n "$lt_prog_compiler_pic"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8120 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8121 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_prog_compiler_pic_works=no
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8128 # Insert the option either (1) after the last *FLAGS variable, or
8129 # (2) before a word containing "conftest.", or (3) at the end.
8130 # Note that $ac_compile itself does not contain backslashes and begins
8131 # with a dollar sign (not a hyphen), so the echo should work correctly.
8132 # The option is referenced via a variable to avoid confusing sed.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
8137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8138 (eval "$lt_compile" 2>conftest.err)
8139 ac_status=$?
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 if (exit $ac_status) && test -s "$ac_outfile"; then
8143 # The compiler can only warn and ignore the option if not recognized
8144 # So say no if there are warnings other than the usual output.
8145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8148 lt_cv_prog_compiler_pic_works=yes
8149 fi
8150 fi
8151 $RM conftest*
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8155 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8156
8157 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8158 case $lt_prog_compiler_pic in
8159 "" | " "*) ;;
8160 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8161 esac
8162 else
8163 lt_prog_compiler_pic=
8164 lt_prog_compiler_can_build_shared=no
8165 fi
8166
8167 fi
8168
8169
8170
8171
8172
8173
8174 #
8175 # Check to make sure the static flag actually works.
8176 #
8177 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8179 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8180 if ${lt_cv_prog_compiler_static_works+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 lt_cv_prog_compiler_static_works=no
8184 save_LDFLAGS="$LDFLAGS"
8185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8188 # The linker can only warn and ignore the option if not recognized
8189 # So say no if there are warnings
8190 if test -s conftest.err; then
8191 # Append any errors to the config.log.
8192 cat conftest.err 1>&5
8193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if diff conftest.exp conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_static_works=yes
8197 fi
8198 else
8199 lt_cv_prog_compiler_static_works=yes
8200 fi
8201 fi
8202 $RM -r conftest*
8203 LDFLAGS="$save_LDFLAGS"
8204
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8207 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8208
8209 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8210 :
8211 else
8212 lt_prog_compiler_static=
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223 if ${lt_cv_prog_compiler_c_o+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 lt_cv_prog_compiler_c_o=no
8227 $RM -r conftest 2>/dev/null
8228 mkdir conftest
8229 cd conftest
8230 mkdir out
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233 lt_compiler_flag="-o out/conftest2.$ac_objext"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>out/conftest.err)
8244 ac_status=$?
8245 cat out/conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248 then
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_c_o=yes
8255 fi
8256 fi
8257 chmod u+w . 2>&5
8258 $RM conftest*
8259 # SGI C++ compiler will create directory out/ii_files/ for
8260 # template instantiation
8261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262 $RM out/* && rmdir out
8263 cd ..
8264 $RM -r conftest
8265 $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270
8271
8272
8273
8274
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if ${lt_cv_prog_compiler_c_o+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8310 fi
8311 fi
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
8327
8328
8329 hard_links="nottested"
8330 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8331 # do not overwrite the value of need_locks provided by the user
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8333 $as_echo_n "checking if we can lock with hard links... " >&6; }
8334 hard_links=yes
8335 $RM conftest*
8336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8337 touch conftest.a
8338 ln conftest.a conftest.b 2>&5 || hard_links=no
8339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8341 $as_echo "$hard_links" >&6; }
8342 if test "$hard_links" = no; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8344 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8345 need_locks=warn
8346 fi
8347 else
8348 need_locks=no
8349 fi
8350
8351
8352
8353
8354
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8358
8359 runpath_var=
8360 allow_undefined_flag=
8361 always_export_symbols=no
8362 archive_cmds=
8363 archive_expsym_cmds=
8364 compiler_needs_object=no
8365 enable_shared_with_static_runtimes=no
8366 export_dynamic_flag_spec=
8367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8368 hardcode_automatic=no
8369 hardcode_direct=no
8370 hardcode_direct_absolute=no
8371 hardcode_libdir_flag_spec=
8372 hardcode_libdir_flag_spec_ld=
8373 hardcode_libdir_separator=
8374 hardcode_minus_L=no
8375 hardcode_shlibpath_var=unsupported
8376 inherit_rpath=no
8377 link_all_deplibs=unknown
8378 module_cmds=
8379 module_expsym_cmds=
8380 old_archive_from_new_cmds=
8381 old_archive_from_expsyms_cmds=
8382 thread_safe_flag_spec=
8383 whole_archive_flag_spec=
8384 # include_expsyms should be a list of space-separated symbols to be *always*
8385 # included in the symbol list
8386 include_expsyms=
8387 # exclude_expsyms can be an extended regexp of symbols to exclude
8388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8390 # as well as any symbol that contains `d'.
8391 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8393 # platforms (ab)use it in PIC code, but their linkers get confused if
8394 # the symbol is explicitly referenced. Since portable code cannot
8395 # rely on this symbol name, it's probably fine to never include it in
8396 # preloaded symbol tables.
8397 # Exclude shared library initialization/finalization symbols.
8398 extract_expsyms_cmds=
8399
8400 case $host_os in
8401 cygwin* | mingw* | pw32* | cegcc*)
8402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8403 # When not using gcc, we currently assume that we are using
8404 # Microsoft Visual C++.
8405 if test "$GCC" != yes; then
8406 with_gnu_ld=no
8407 fi
8408 ;;
8409 interix*)
8410 # we just hope/assume this is gcc and not c89 (= MSVC++)
8411 with_gnu_ld=yes
8412 ;;
8413 openbsd*)
8414 with_gnu_ld=no
8415 ;;
8416 esac
8417
8418 ld_shlibs=yes
8419
8420 # On some targets, GNU ld is compatible enough with the native linker
8421 # that we're better off using the native interface for both.
8422 lt_use_gnu_ld_interface=no
8423 if test "$with_gnu_ld" = yes; then
8424 case $host_os in
8425 aix*)
8426 # The AIX port of GNU ld has always aspired to compatibility
8427 # with the native linker. However, as the warning in the GNU ld
8428 # block says, versions before 2.19.5* couldn't really create working
8429 # shared libraries, regardless of the interface used.
8430 case `$LD -v 2>&1` in
8431 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8432 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8433 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8434 *)
8435 lt_use_gnu_ld_interface=yes
8436 ;;
8437 esac
8438 ;;
8439 *)
8440 lt_use_gnu_ld_interface=yes
8441 ;;
8442 esac
8443 fi
8444
8445 if test "$lt_use_gnu_ld_interface" = yes; then
8446 # If archive_cmds runs LD, not CC, wlarc should be empty
8447 wlarc='${wl}'
8448
8449 # Set some defaults for GNU ld with shared library support. These
8450 # are reset later if shared libraries are not supported. Putting them
8451 # here allows them to be overridden if necessary.
8452 runpath_var=LD_RUN_PATH
8453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454 export_dynamic_flag_spec='${wl}--export-dynamic'
8455 # ancient GNU ld didn't support --whole-archive et. al.
8456 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8457 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8458 else
8459 whole_archive_flag_spec=
8460 fi
8461 supports_anon_versioning=no
8462 case `$LD -v 2>&1` in
8463 *GNU\ gold*) supports_anon_versioning=yes ;;
8464 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8465 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8466 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8467 *\ 2.11.*) ;; # other 2.11 versions
8468 *) supports_anon_versioning=yes ;;
8469 esac
8470
8471 # See if GNU ld supports shared libraries.
8472 case $host_os in
8473 aix[3-9]*)
8474 # On AIX/PPC, the GNU linker is very broken
8475 if test "$host_cpu" != ia64; then
8476 ld_shlibs=no
8477 cat <<_LT_EOF 1>&2
8478
8479 *** Warning: the GNU linker, at least up to release 2.19, is reported
8480 *** to be unable to reliably create shared libraries on AIX.
8481 *** Therefore, libtool is disabling shared libraries support. If you
8482 *** really care for shared libraries, you may want to install binutils
8483 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8484 *** You will then need to restart the configuration process.
8485
8486 _LT_EOF
8487 fi
8488 ;;
8489
8490 amigaos*)
8491 case $host_cpu in
8492 powerpc)
8493 # see comment about AmigaOS4 .so support
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 archive_expsym_cmds=''
8496 ;;
8497 m68k)
8498 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)'
8499 hardcode_libdir_flag_spec='-L$libdir'
8500 hardcode_minus_L=yes
8501 ;;
8502 esac
8503 ;;
8504
8505 beos*)
8506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8507 allow_undefined_flag=unsupported
8508 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8509 # support --undefined. This deserves some investigation. FIXME
8510 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511 else
8512 ld_shlibs=no
8513 fi
8514 ;;
8515
8516 cygwin* | mingw* | pw32* | cegcc*)
8517 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8518 # as there is no search path for DLLs.
8519 hardcode_libdir_flag_spec='-L$libdir'
8520 export_dynamic_flag_spec='${wl}--export-all-symbols'
8521 allow_undefined_flag=unsupported
8522 always_export_symbols=no
8523 enable_shared_with_static_runtimes=yes
8524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8525
8526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8528 # If the export-symbols file already is a .def file (1st line
8529 # is EXPORTS), use it as is; otherwise, prepend...
8530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8531 cp $export_symbols $output_objdir/$soname.def;
8532 else
8533 echo EXPORTS > $output_objdir/$soname.def;
8534 cat $export_symbols >> $output_objdir/$soname.def;
8535 fi~
8536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8537 else
8538 ld_shlibs=no
8539 fi
8540 ;;
8541
8542 haiku*)
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 link_all_deplibs=yes
8545 ;;
8546
8547 interix[3-9]*)
8548 hardcode_direct=no
8549 hardcode_shlibpath_var=no
8550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8551 export_dynamic_flag_spec='${wl}-E'
8552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8553 # Instead, shared libraries are loaded at an image base (0x10000000 by
8554 # default) and relocated if they conflict, which is a slow very memory
8555 # consuming and fragmenting process. To avoid this, we pick a random,
8556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8559 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'
8560 ;;
8561
8562 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8563 tmp_diet=no
8564 if test "$host_os" = linux-dietlibc; then
8565 case $cc_basename in
8566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8567 esac
8568 fi
8569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8570 && test "$tmp_diet" = no
8571 then
8572 tmp_addflag=' $pic_flag'
8573 tmp_sharedflag='-shared'
8574 case $cc_basename,$host_cpu in
8575 pgcc*) # Portland Group C compiler
8576 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'
8577 tmp_addflag=' $pic_flag'
8578 ;;
8579 pgf77* | pgf90* | pgf95* | pgfortran*)
8580 # Portland Group f77 and f90 compilers
8581 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'
8582 tmp_addflag=' $pic_flag -Mnomain' ;;
8583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8584 tmp_addflag=' -i_dynamic' ;;
8585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8586 tmp_addflag=' -i_dynamic -nofor_main' ;;
8587 ifc* | ifort*) # Intel Fortran compiler
8588 tmp_addflag=' -nofor_main' ;;
8589 lf95*) # Lahey Fortran 8.1
8590 whole_archive_flag_spec=
8591 tmp_sharedflag='--shared' ;;
8592 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8593 tmp_sharedflag='-qmkshrobj'
8594 tmp_addflag= ;;
8595 nvcc*) # Cuda Compiler Driver 2.2
8596 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'
8597 compiler_needs_object=yes
8598 ;;
8599 esac
8600 case `$CC -V 2>&1 | sed 5q` in
8601 *Sun\ C*) # Sun C 5.9
8602 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'
8603 compiler_needs_object=yes
8604 tmp_sharedflag='-G' ;;
8605 *Sun\ F*) # Sun Fortran 8.3
8606 tmp_sharedflag='-G' ;;
8607 esac
8608 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609
8610 if test "x$supports_anon_versioning" = xyes; then
8611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8613 echo "local: *; };" >> $output_objdir/$libname.ver~
8614 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8615 fi
8616
8617 case $cc_basename in
8618 xlf* | bgf* | bgxlf* | mpixlf*)
8619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8621 hardcode_libdir_flag_spec=
8622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8623 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8624 if test "x$supports_anon_versioning" = xyes; then
8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8629 fi
8630 ;;
8631 esac
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
8637 netbsd*)
8638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8639 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8640 wlarc=
8641 else
8642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8644 fi
8645 ;;
8646
8647 solaris*)
8648 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
8651
8652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8653 *** create shared libraries on Solaris systems. Therefore, libtool
8654 *** is disabling shared libraries support. We urge you to upgrade GNU
8655 *** binutils to release 2.9.1 or newer. Another option is to modify
8656 *** your PATH or compiler configuration so that the native linker is
8657 *** used, and then restart.
8658
8659 _LT_EOF
8660 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667
8668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8669 case `$LD -v 2>&1` in
8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8671 ld_shlibs=no
8672 cat <<_LT_EOF 1>&2
8673
8674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8675 *** reliably create shared libraries on SCO systems. Therefore, libtool
8676 *** is disabling shared libraries support. We urge you to upgrade GNU
8677 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8678 *** your PATH or compiler configuration so that the native linker is
8679 *** used, and then restart.
8680
8681 _LT_EOF
8682 ;;
8683 *)
8684 # For security reasons, it is highly recommended that you always
8685 # use absolute paths for naming shared libraries, and exclude the
8686 # DT_RUNPATH tag from executables and libraries. But doing so
8687 # requires that you compile everything twice, which is a pain.
8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692 else
8693 ld_shlibs=no
8694 fi
8695 ;;
8696 esac
8697 ;;
8698
8699 sunos4*)
8700 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8701 wlarc=
8702 hardcode_direct=yes
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 *)
8707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8710 else
8711 ld_shlibs=no
8712 fi
8713 ;;
8714 esac
8715
8716 if test "$ld_shlibs" = no; then
8717 runpath_var=
8718 hardcode_libdir_flag_spec=
8719 export_dynamic_flag_spec=
8720 whole_archive_flag_spec=
8721 fi
8722 else
8723 # PORTME fill in a description of your system's linker (not GNU ld)
8724 case $host_os in
8725 aix3*)
8726 allow_undefined_flag=unsupported
8727 always_export_symbols=yes
8728 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'
8729 # Note: this linker hardcodes the directories in LIBPATH if there
8730 # are no directories specified by -L.
8731 hardcode_minus_L=yes
8732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8733 # Neither direct hardcoding nor static linking is supported with a
8734 # broken collect2.
8735 hardcode_direct=unsupported
8736 fi
8737 ;;
8738
8739 aix[4-9]*)
8740 if test "$host_cpu" = ia64; then
8741 # On IA64, the linker does run time linking by default, so we don't
8742 # have to do anything special.
8743 aix_use_runtimelinking=no
8744 exp_sym_flag='-Bexport'
8745 no_entry_flag=""
8746 else
8747 # If we're using GNU nm, then we don't want the "-C" option.
8748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8749 # Also, AIX nm treats weak defined symbols like other global
8750 # defined symbols, whereas GNU nm marks them as "W".
8751 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8752 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'
8753 else
8754 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'
8755 fi
8756 aix_use_runtimelinking=no
8757
8758 # Test if we are trying to use run time linking or normal
8759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8760 # need to do runtime linking.
8761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8762 for ld_flag in $LDFLAGS; do
8763 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8764 aix_use_runtimelinking=yes
8765 break
8766 fi
8767 done
8768 ;;
8769 esac
8770
8771 exp_sym_flag='-bexport'
8772 no_entry_flag='-bnoentry'
8773 fi
8774
8775 # When large executables or shared objects are built, AIX ld can
8776 # have problems creating the table of contents. If linking a library
8777 # or program results in "error TOC overflow" add -mminimal-toc to
8778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8780
8781 archive_cmds=''
8782 hardcode_direct=yes
8783 hardcode_direct_absolute=yes
8784 hardcode_libdir_separator=':'
8785 link_all_deplibs=yes
8786 file_list_spec='${wl}-f,'
8787
8788 if test "$GCC" = yes; then
8789 case $host_os in aix4.[012]|aix4.[012].*)
8790 # We only want to do this on AIX 4.2 and lower, the check
8791 # below for broken collect2 doesn't work under 4.3+
8792 collect2name=`${CC} -print-prog-name=collect2`
8793 if test -f "$collect2name" &&
8794 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8795 then
8796 # We have reworked collect2
8797 :
8798 else
8799 # We have old collect2
8800 hardcode_direct=unsupported
8801 # It fails to find uninstalled libraries when the uninstalled
8802 # path is not listed in the libpath. Setting hardcode_minus_L
8803 # to unsupported forces relinking
8804 hardcode_minus_L=yes
8805 hardcode_libdir_flag_spec='-L$libdir'
8806 hardcode_libdir_separator=
8807 fi
8808 ;;
8809 esac
8810 shared_flag='-shared'
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag="$shared_flag "'${wl}-G'
8813 fi
8814 else
8815 # not using gcc
8816 if test "$host_cpu" = ia64; then
8817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8818 # chokes on -Wl,-G. The following line is correct:
8819 shared_flag='-G'
8820 else
8821 if test "$aix_use_runtimelinking" = yes; then
8822 shared_flag='${wl}-G'
8823 else
8824 shared_flag='${wl}-bM:SRE'
8825 fi
8826 fi
8827 fi
8828
8829 export_dynamic_flag_spec='${wl}-bexpall'
8830 # It seems that -bexpall does not export symbols beginning with
8831 # underscore (_), so it is better to generate a list of symbols to export.
8832 always_export_symbols=yes
8833 if test "$aix_use_runtimelinking" = yes; then
8834 # Warning - without using the other runtime loading flags (-brtl),
8835 # -berok will link without error, but may produce a broken library.
8836 allow_undefined_flag='-berok'
8837 # Determine the default libpath from the value encoded in an
8838 # empty executable.
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841
8842 int
8843 main ()
8844 {
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8851
8852 lt_aix_libpath_sed='
8853 /Import File Strings/,/^$/ {
8854 /^0/ {
8855 s/^0 *\(.*\)$/\1/
8856 p
8857 }
8858 }'
8859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8860 # Check for a 64-bit object if we didn't find anything.
8861 if test -z "$aix_libpath"; then
8862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863 fi
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8868
8869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8870 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"
8871 else
8872 if test "$host_cpu" = ia64; then
8873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8874 allow_undefined_flag="-z nodefs"
8875 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"
8876 else
8877 # Determine the default libpath from the value encoded in an
8878 # empty executable.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881
8882 int
8883 main ()
8884 {
8885
8886 ;
8887 return 0;
8888 }
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8891
8892 lt_aix_libpath_sed='
8893 /Import File Strings/,/^$/ {
8894 /^0/ {
8895 s/^0 *\(.*\)$/\1/
8896 p
8897 }
8898 }'
8899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900 # Check for a 64-bit object if we didn't find anything.
8901 if test -z "$aix_libpath"; then
8902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8903 fi
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8908
8909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8910 # Warning - without using the other run time loading flags,
8911 # -berok will link without error, but may produce a broken library.
8912 no_undefined_flag=' ${wl}-bernotok'
8913 allow_undefined_flag=' ${wl}-berok'
8914 if test "$with_gnu_ld" = yes; then
8915 # We only use this code for GNU lds that support --whole-archive.
8916 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8917 else
8918 # Exported symbols can be pulled into shared objects from archives
8919 whole_archive_flag_spec='$convenience'
8920 fi
8921 archive_cmds_need_lc=yes
8922 # This is similar to how AIX traditionally builds its shared libraries.
8923 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'
8924 fi
8925 fi
8926 ;;
8927
8928 amigaos*)
8929 case $host_cpu in
8930 powerpc)
8931 # see comment about AmigaOS4 .so support
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 archive_expsym_cmds=''
8934 ;;
8935 m68k)
8936 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)'
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_minus_L=yes
8939 ;;
8940 esac
8941 ;;
8942
8943 bsdi[45]*)
8944 export_dynamic_flag_spec=-rdynamic
8945 ;;
8946
8947 cygwin* | mingw* | pw32* | cegcc*)
8948 # When not using gcc, we currently assume that we are using
8949 # Microsoft Visual C++.
8950 # hardcode_libdir_flag_spec is actually meaningless, as there is
8951 # no search path for DLLs.
8952 hardcode_libdir_flag_spec=' '
8953 allow_undefined_flag=unsupported
8954 # Tell ltmain to make .lib files, not .a files.
8955 libext=lib
8956 # Tell ltmain to make .dll files, not .so files.
8957 shrext_cmds=".dll"
8958 # FIXME: Setting linknames here is a bad hack.
8959 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8960 # The linker will automatically build a .lib file if we build a DLL.
8961 old_archive_from_new_cmds='true'
8962 # FIXME: Should let the user specify the lib program.
8963 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8964 fix_srcfile_path='`cygpath -w "$srcfile"`'
8965 enable_shared_with_static_runtimes=yes
8966 ;;
8967
8968 darwin* | rhapsody*)
8969
8970
8971 archive_cmds_need_lc=no
8972 hardcode_direct=no
8973 hardcode_automatic=yes
8974 hardcode_shlibpath_var=unsupported
8975 if test "$lt_cv_ld_force_load" = "yes"; then
8976 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\"`'
8977 else
8978 whole_archive_flag_spec=''
8979 fi
8980 link_all_deplibs=yes
8981 allow_undefined_flag="$_lt_dar_allow_undefined"
8982 case $cc_basename in
8983 ifort*) _lt_dar_can_shared=yes ;;
8984 *) _lt_dar_can_shared=$GCC ;;
8985 esac
8986 if test "$_lt_dar_can_shared" = "yes"; then
8987 output_verbose_link_cmd=func_echo_all
8988 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8989 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8990 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}"
8991 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}"
8992
8993 else
8994 ld_shlibs=no
8995 fi
8996
8997 ;;
8998
8999 dgux*)
9000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_libdir_flag_spec='-L$libdir'
9002 hardcode_shlibpath_var=no
9003 ;;
9004
9005 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9006 # support. Future versions do this automatically, but an explicit c++rt0.o
9007 # does not break anything, and helps significantly (at the cost of a little
9008 # extra space).
9009 freebsd2.2*)
9010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9011 hardcode_libdir_flag_spec='-R$libdir'
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
9014 ;;
9015
9016 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9017 freebsd2.*)
9018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9019 hardcode_direct=yes
9020 hardcode_minus_L=yes
9021 hardcode_shlibpath_var=no
9022 ;;
9023
9024 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9025 freebsd* | dragonfly*)
9026 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9027 hardcode_libdir_flag_spec='-R$libdir'
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 hpux9*)
9033 if test "$GCC" = yes; then
9034 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'
9035 else
9036 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'
9037 fi
9038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9039 hardcode_libdir_separator=:
9040 hardcode_direct=yes
9041
9042 # hardcode_minus_L: Not really in the search PATH,
9043 # but as the default location of the library.
9044 hardcode_minus_L=yes
9045 export_dynamic_flag_spec='${wl}-E'
9046 ;;
9047
9048 hpux10*)
9049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9051 else
9052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9053 fi
9054 if test "$with_gnu_ld" = no; then
9055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9056 hardcode_libdir_flag_spec_ld='+b $libdir'
9057 hardcode_libdir_separator=:
9058 hardcode_direct=yes
9059 hardcode_direct_absolute=yes
9060 export_dynamic_flag_spec='${wl}-E'
9061 # hardcode_minus_L: Not really in the search PATH,
9062 # but as the default location of the library.
9063 hardcode_minus_L=yes
9064 fi
9065 ;;
9066
9067 hpux11*)
9068 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9069 case $host_cpu in
9070 hppa*64*)
9071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 ;;
9073 ia64*)
9074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 *)
9077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 esac
9080 else
9081 case $host_cpu in
9082 hppa*64*)
9083 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 ;;
9085 ia64*)
9086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9087 ;;
9088 *)
9089
9090 # Older versions of the 11.00 compiler do not understand -b yet
9091 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9093 $as_echo_n "checking if $CC understands -b... " >&6; }
9094 if ${lt_cv_prog_compiler__b+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_prog_compiler__b=no
9098 save_LDFLAGS="$LDFLAGS"
9099 LDFLAGS="$LDFLAGS -b"
9100 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9102 # The linker can only warn and ignore the option if not recognized
9103 # So say no if there are warnings
9104 if test -s conftest.err; then
9105 # Append any errors to the config.log.
9106 cat conftest.err 1>&5
9107 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9109 if diff conftest.exp conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler__b=yes
9111 fi
9112 else
9113 lt_cv_prog_compiler__b=yes
9114 fi
9115 fi
9116 $RM -r conftest*
9117 LDFLAGS="$save_LDFLAGS"
9118
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9121 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9122
9123 if test x"$lt_cv_prog_compiler__b" = xyes; then
9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9125 else
9126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9127 fi
9128
9129 ;;
9130 esac
9131 fi
9132 if test "$with_gnu_ld" = no; then
9133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134 hardcode_libdir_separator=:
9135
9136 case $host_cpu in
9137 hppa*64*|ia64*)
9138 hardcode_direct=no
9139 hardcode_shlibpath_var=no
9140 ;;
9141 *)
9142 hardcode_direct=yes
9143 hardcode_direct_absolute=yes
9144 export_dynamic_flag_spec='${wl}-E'
9145
9146 # hardcode_minus_L: Not really in the search PATH,
9147 # but as the default location of the library.
9148 hardcode_minus_L=yes
9149 ;;
9150 esac
9151 fi
9152 ;;
9153
9154 irix5* | irix6* | nonstopux*)
9155 if test "$GCC" = yes; then
9156 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'
9157 # Try to use the -exported_symbol ld option, if it does not
9158 # work, assume that -exports_file does not work either and
9159 # implicitly export all symbols.
9160 save_LDFLAGS="$LDFLAGS"
9161 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 int foo(void) {}
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 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'
9168
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 LDFLAGS="$save_LDFLAGS"
9173 else
9174 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'
9175 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'
9176 fi
9177 archive_cmds_need_lc='no'
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 hardcode_libdir_separator=:
9180 inherit_rpath=yes
9181 link_all_deplibs=yes
9182 ;;
9183
9184 netbsd*)
9185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9187 else
9188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9189 fi
9190 hardcode_libdir_flag_spec='-R$libdir'
9191 hardcode_direct=yes
9192 hardcode_shlibpath_var=no
9193 ;;
9194
9195 newsos6)
9196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_direct=yes
9198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9199 hardcode_libdir_separator=:
9200 hardcode_shlibpath_var=no
9201 ;;
9202
9203 *nto* | *qnx*)
9204 ;;
9205
9206 openbsd*)
9207 if test -f /usr/libexec/ld.so; then
9208 hardcode_direct=yes
9209 hardcode_shlibpath_var=no
9210 hardcode_direct_absolute=yes
9211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9215 export_dynamic_flag_spec='${wl}-E'
9216 else
9217 case $host_os in
9218 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9220 hardcode_libdir_flag_spec='-R$libdir'
9221 ;;
9222 *)
9223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225 ;;
9226 esac
9227 fi
9228 else
9229 ld_shlibs=no
9230 fi
9231 ;;
9232
9233 os2*)
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9236 allow_undefined_flag=unsupported
9237 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'
9238 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9239 ;;
9240
9241 osf3*)
9242 if test "$GCC" = yes; then
9243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9244 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'
9245 else
9246 allow_undefined_flag=' -expect_unresolved \*'
9247 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'
9248 fi
9249 archive_cmds_need_lc='no'
9250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251 hardcode_libdir_separator=:
9252 ;;
9253
9254 osf4* | osf5*) # as osf3* with the addition of -msym flag
9255 if test "$GCC" = yes; then
9256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9257 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'
9258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259 else
9260 allow_undefined_flag=' -expect_unresolved \*'
9261 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'
9262 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~
9263 $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'
9264
9265 # Both c and cxx compiler support -rpath directly
9266 hardcode_libdir_flag_spec='-rpath $libdir'
9267 fi
9268 archive_cmds_need_lc='no'
9269 hardcode_libdir_separator=:
9270 ;;
9271
9272 solaris*)
9273 no_undefined_flag=' -z defs'
9274 if test "$GCC" = yes; then
9275 wlarc='${wl}'
9276 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9278 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9279 else
9280 case `$CC -V 2>&1` in
9281 *"Compilers 5.0"*)
9282 wlarc=''
9283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9286 ;;
9287 *)
9288 wlarc='${wl}'
9289 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9291 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9292 ;;
9293 esac
9294 fi
9295 hardcode_libdir_flag_spec='-R$libdir'
9296 hardcode_shlibpath_var=no
9297 case $host_os in
9298 solaris2.[0-5] | solaris2.[0-5].*) ;;
9299 *)
9300 # The compiler driver will combine and reorder linker options,
9301 # but understands `-z linker_flag'. GCC discards it without `$wl',
9302 # but is careful enough not to reorder.
9303 # Supported since Solaris 2.6 (maybe 2.5.1?)
9304 if test "$GCC" = yes; then
9305 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9306 else
9307 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9308 fi
9309 ;;
9310 esac
9311 link_all_deplibs=yes
9312 ;;
9313
9314 sunos4*)
9315 if test "x$host_vendor" = xsequent; then
9316 # Use $CC to link under sequent, because it throws in some extra .o
9317 # files that make .init and .fini sections work.
9318 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9319 else
9320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9321 fi
9322 hardcode_libdir_flag_spec='-L$libdir'
9323 hardcode_direct=yes
9324 hardcode_minus_L=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 sysv4)
9329 case $host_vendor in
9330 sni)
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_direct=yes # is this really true???
9333 ;;
9334 siemens)
9335 ## LD is ld it makes a PLAMLIB
9336 ## CC just makes a GrossModule.
9337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9338 reload_cmds='$CC -r -o $output$reload_objs'
9339 hardcode_direct=no
9340 ;;
9341 motorola)
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9344 ;;
9345 esac
9346 runpath_var='LD_RUN_PATH'
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 sysv4.3*)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_shlibpath_var=no
9353 export_dynamic_flag_spec='-Bexport'
9354 ;;
9355
9356 sysv4*MP*)
9357 if test -d /usr/nec; then
9358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_shlibpath_var=no
9360 runpath_var=LD_RUN_PATH
9361 hardcode_runpath_var=yes
9362 ld_shlibs=yes
9363 fi
9364 ;;
9365
9366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9367 no_undefined_flag='${wl}-z,text'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 runpath_var='LD_RUN_PATH'
9371
9372 if test "$GCC" = yes; then
9373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 fi
9379 ;;
9380
9381 sysv5* | sco3.2v5* | sco5v6*)
9382 # Note: We can NOT use -z defs as we might desire, because we do not
9383 # link with -lc, and that would cause any symbols used from libc to
9384 # always be unresolved, which means just about no library would
9385 # ever link correctly. If we're not using GNU ld we use -z text
9386 # though, which does catch some bad symbols but isn't as heavy-handed
9387 # as -z defs.
9388 no_undefined_flag='${wl}-z,text'
9389 allow_undefined_flag='${wl}-z,nodefs'
9390 archive_cmds_need_lc=no
9391 hardcode_shlibpath_var=no
9392 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9393 hardcode_libdir_separator=':'
9394 link_all_deplibs=yes
9395 export_dynamic_flag_spec='${wl}-Bexport'
9396 runpath_var='LD_RUN_PATH'
9397
9398 if test "$GCC" = yes; then
9399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 else
9402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 fi
9405 ;;
9406
9407 uts4*)
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 *)
9414 ld_shlibs=no
9415 ;;
9416 esac
9417
9418 if test x$host_vendor = xsni; then
9419 case $host in
9420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9421 export_dynamic_flag_spec='${wl}-Blargedynsym'
9422 ;;
9423 esac
9424 fi
9425 fi
9426
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9428 $as_echo "$ld_shlibs" >&6; }
9429 test "$ld_shlibs" = no && can_build_shared=no
9430
9431 with_gnu_ld=$with_gnu_ld
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 #
9448 # Do we need to explicitly link libc?
9449 #
9450 case "x$archive_cmds_need_lc" in
9451 x|xyes)
9452 # Assume -lc should be added
9453 archive_cmds_need_lc=yes
9454
9455 if test "$enable_shared" = yes && test "$GCC" = yes; then
9456 case $archive_cmds in
9457 *'~'*)
9458 # FIXME: we may have to deal with multi-command sequences.
9459 ;;
9460 '$CC '*)
9461 # Test whether the compiler implicitly links with -lc since on some
9462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9463 # to ld, don't add -lc before -lgcc.
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9465 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9466 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 $RM conftest*
9470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9473 (eval $ac_compile) 2>&5
9474 ac_status=$?
9475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9476 test $ac_status = 0; } 2>conftest.err; then
9477 soname=conftest
9478 lib=conftest
9479 libobjs=conftest.$ac_objext
9480 deplibs=
9481 wl=$lt_prog_compiler_wl
9482 pic_flag=$lt_prog_compiler_pic
9483 compiler_flags=-v
9484 linker_flags=-v
9485 verstring=
9486 output_objdir=.
9487 libname=conftest
9488 lt_save_allow_undefined_flag=$allow_undefined_flag
9489 allow_undefined_flag=
9490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9491 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9492 ac_status=$?
9493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9494 test $ac_status = 0; }
9495 then
9496 lt_cv_archive_cmds_need_lc=no
9497 else
9498 lt_cv_archive_cmds_need_lc=yes
9499 fi
9500 allow_undefined_flag=$lt_save_allow_undefined_flag
9501 else
9502 cat conftest.err 1>&5
9503 fi
9504 $RM conftest*
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9508 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9509 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9510 ;;
9511 esac
9512 fi
9513 ;;
9514 esac
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
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9673 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9674
9675 if test "$GCC" = yes; then
9676 case $host_os in
9677 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9678 *) lt_awk_arg="/^libraries:/" ;;
9679 esac
9680 case $host_os in
9681 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9682 *) lt_sed_strip_eq="s,=/,/,g" ;;
9683 esac
9684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9685 case $lt_search_path_spec in
9686 *\;*)
9687 # if the path contains ";" then we assume it to be the separator
9688 # otherwise default to the standard path separator (i.e. ":") - it is
9689 # assumed that no part of a normal pathname contains ";" but that should
9690 # okay in the real world where ";" in dirpaths is itself problematic.
9691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9692 ;;
9693 *)
9694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9695 ;;
9696 esac
9697 # Ok, now we have the path, separated by spaces, we can step through it
9698 # and add multilib dir if necessary.
9699 lt_tmp_lt_search_path_spec=
9700 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9701 for lt_sys_path in $lt_search_path_spec; do
9702 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9704 else
9705 test -d "$lt_sys_path" && \
9706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9707 fi
9708 done
9709 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9710 BEGIN {RS=" "; FS="/|\n";} {
9711 lt_foo="";
9712 lt_count=0;
9713 for (lt_i = NF; lt_i > 0; lt_i--) {
9714 if ($lt_i != "" && $lt_i != ".") {
9715 if ($lt_i == "..") {
9716 lt_count++;
9717 } else {
9718 if (lt_count == 0) {
9719 lt_foo="/" $lt_i lt_foo;
9720 } else {
9721 lt_count--;
9722 }
9723 }
9724 }
9725 }
9726 if (lt_foo != "") { lt_freq[lt_foo]++; }
9727 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9728 }'`
9729 # AWK program above erroneously prepends '/' to C:/dos/paths
9730 # for these hosts.
9731 case $host_os in
9732 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9733 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9734 esac
9735 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9736 else
9737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9738 fi
9739 library_names_spec=
9740 libname_spec='lib$name'
9741 soname_spec=
9742 shrext_cmds=".so"
9743 postinstall_cmds=
9744 postuninstall_cmds=
9745 finish_cmds=
9746 finish_eval=
9747 shlibpath_var=
9748 shlibpath_overrides_runpath=unknown
9749 version_type=none
9750 dynamic_linker="$host_os ld.so"
9751 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9752 need_lib_prefix=unknown
9753 hardcode_into_libs=no
9754
9755 # when you set need_version to no, make sure it does not cause -set_version
9756 # flags to be left without arguments
9757 need_version=unknown
9758
9759 case $host_os in
9760 aix3*)
9761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9763 shlibpath_var=LIBPATH
9764
9765 # AIX 3 has no versioning support, so we append a major version to the name.
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 ;;
9768
9769 aix[4-9]*)
9770 version_type=linux
9771 need_lib_prefix=no
9772 need_version=no
9773 hardcode_into_libs=yes
9774 if test "$host_cpu" = ia64; then
9775 # AIX 5 supports IA64
9776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 else
9779 # With GCC up to 2.95.x, collect2 would create an import file
9780 # for dependence libraries. The import file would start with
9781 # the line `#! .'. This would cause the generated library to
9782 # depend on `.', always an invalid library. This was fixed in
9783 # development snapshots of GCC prior to 3.0.
9784 case $host_os in
9785 aix4 | aix4.[01] | aix4.[01].*)
9786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9787 echo ' yes '
9788 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9789 :
9790 else
9791 can_build_shared=no
9792 fi
9793 ;;
9794 esac
9795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9796 # soname into executable. Probably we can add versioning support to
9797 # collect2, so additional links can be useful in future.
9798 if test "$aix_use_runtimelinking" = yes; then
9799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9800 # instead of lib<name>.a to let people know that these are not
9801 # typical AIX shared libraries.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 else
9804 # We preserve .a as extension for shared libraries through AIX4.2
9805 # and later when we are not doing run time linking.
9806 library_names_spec='${libname}${release}.a $libname.a'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 fi
9809 shlibpath_var=LIBPATH
9810 fi
9811 ;;
9812
9813 amigaos*)
9814 case $host_cpu in
9815 powerpc)
9816 # Since July 2007 AmigaOS4 officially supports .so libraries.
9817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 ;;
9820 m68k)
9821 library_names_spec='$libname.ixlibrary $libname.a'
9822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9823 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'
9824 ;;
9825 esac
9826 ;;
9827
9828 beos*)
9829 library_names_spec='${libname}${shared_ext}'
9830 dynamic_linker="$host_os ld.so"
9831 shlibpath_var=LIBRARY_PATH
9832 ;;
9833
9834 bsdi[45]*)
9835 version_type=linux
9836 need_version=no
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9843 # the default ld.so.conf also contains /usr/contrib/lib and
9844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9845 # libtool to hard-code these into programs
9846 ;;
9847
9848 cygwin* | mingw* | pw32* | cegcc*)
9849 version_type=windows
9850 shrext_cmds=".dll"
9851 need_version=no
9852 need_lib_prefix=no
9853
9854 case $GCC,$host_os in
9855 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9856 library_names_spec='$libname.dll.a'
9857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9858 postinstall_cmds='base_file=`basename \${file}`~
9859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9860 dldir=$destdir/`dirname \$dlpath`~
9861 test -d \$dldir || mkdir -p \$dldir~
9862 $install_prog $dir/$dlname \$dldir/$dlname~
9863 chmod a+x \$dldir/$dlname~
9864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9866 fi'
9867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9868 dlpath=$dir/\$dldll~
9869 $RM \$dlpath'
9870 shlibpath_overrides_runpath=yes
9871
9872 case $host_os in
9873 cygwin*)
9874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876
9877 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9878 ;;
9879 mingw* | cegcc*)
9880 # MinGW DLLs use traditional 'lib' prefix
9881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9882 ;;
9883 pw32*)
9884 # pw32 DLLs use 'pw' prefix rather than 'lib'
9885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9886 ;;
9887 esac
9888 ;;
9889
9890 *)
9891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9892 ;;
9893 esac
9894 dynamic_linker='Win32 ld.exe'
9895 # FIXME: first we should search . and the directory the executable is in
9896 shlibpath_var=PATH
9897 ;;
9898
9899 darwin* | rhapsody*)
9900 dynamic_linker="$host_os dyld"
9901 version_type=darwin
9902 need_lib_prefix=no
9903 need_version=no
9904 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9905 soname_spec='${libname}${release}${major}$shared_ext'
9906 shlibpath_overrides_runpath=yes
9907 shlibpath_var=DYLD_LIBRARY_PATH
9908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9909
9910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9912 ;;
9913
9914 dgux*)
9915 version_type=linux
9916 need_lib_prefix=no
9917 need_version=no
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 ;;
9922
9923 freebsd* | dragonfly*)
9924 # DragonFly does not have aout. When/if they implement a new
9925 # versioning mechanism, adjust this.
9926 if test -x /usr/bin/objformat; then
9927 objformat=`/usr/bin/objformat`
9928 else
9929 case $host_os in
9930 freebsd[23].*) objformat=aout ;;
9931 *) objformat=elf ;;
9932 esac
9933 fi
9934 version_type=freebsd-$objformat
9935 case $version_type in
9936 freebsd-elf*)
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9938 need_version=no
9939 need_lib_prefix=no
9940 ;;
9941 freebsd-*)
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9943 need_version=yes
9944 ;;
9945 esac
9946 shlibpath_var=LD_LIBRARY_PATH
9947 case $host_os in
9948 freebsd2.*)
9949 shlibpath_overrides_runpath=yes
9950 ;;
9951 freebsd3.[01]* | freebsdelf3.[01]*)
9952 shlibpath_overrides_runpath=yes
9953 hardcode_into_libs=yes
9954 ;;
9955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9957 shlibpath_overrides_runpath=no
9958 hardcode_into_libs=yes
9959 ;;
9960 *) # from 4.6 on, and DragonFly
9961 shlibpath_overrides_runpath=yes
9962 hardcode_into_libs=yes
9963 ;;
9964 esac
9965 ;;
9966
9967 gnu*)
9968 version_type=linux
9969 need_lib_prefix=no
9970 need_version=no
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 hardcode_into_libs=yes
9975 ;;
9976
9977 haiku*)
9978 version_type=linux
9979 need_lib_prefix=no
9980 need_version=no
9981 dynamic_linker="$host_os runtime_loader"
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9987 hardcode_into_libs=yes
9988 ;;
9989
9990 hpux9* | hpux10* | hpux11*)
9991 # Give a soname corresponding to the major version so that dld.sl refuses to
9992 # link against other versions.
9993 version_type=sunos
9994 need_lib_prefix=no
9995 need_version=no
9996 case $host_cpu in
9997 ia64*)
9998 shrext_cmds='.so'
9999 hardcode_into_libs=yes
10000 dynamic_linker="$host_os dld.so"
10001 shlibpath_var=LD_LIBRARY_PATH
10002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 if test "X$HPUX_IA64_MODE" = X32; then
10006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10007 else
10008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10009 fi
10010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10011 ;;
10012 hppa*64*)
10013 shrext_cmds='.sl'
10014 hardcode_into_libs=yes
10015 dynamic_linker="$host_os dld.sl"
10016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10022 ;;
10023 *)
10024 shrext_cmds='.sl'
10025 dynamic_linker="$host_os dld.sl"
10026 shlibpath_var=SHLIB_PATH
10027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 ;;
10031 esac
10032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10033 postinstall_cmds='chmod 555 $lib'
10034 # or fails outright, so override atomically:
10035 install_override_mode=555
10036 ;;
10037
10038 interix[3-9]*)
10039 version_type=linux
10040 need_lib_prefix=no
10041 need_version=no
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10048 ;;
10049
10050 irix5* | irix6* | nonstopux*)
10051 case $host_os in
10052 nonstopux*) version_type=nonstopux ;;
10053 *)
10054 if test "$lt_cv_prog_gnu_ld" = yes; then
10055 version_type=linux
10056 else
10057 version_type=irix
10058 fi ;;
10059 esac
10060 need_lib_prefix=no
10061 need_version=no
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10064 case $host_os in
10065 irix5* | nonstopux*)
10066 libsuff= shlibsuff=
10067 ;;
10068 *)
10069 case $LD in # libtool.m4 will add one of these switches to LD
10070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10071 libsuff= shlibsuff= libmagic=32-bit;;
10072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10073 libsuff=32 shlibsuff=N32 libmagic=N32;;
10074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10076 *) libsuff= shlibsuff= libmagic=never-match;;
10077 esac
10078 ;;
10079 esac
10080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10081 shlibpath_overrides_runpath=no
10082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10084 hardcode_into_libs=yes
10085 ;;
10086
10087 # No shared lib support for Linux oldld, aout, or coff.
10088 linux*oldld* | linux*aout* | linux*coff*)
10089 dynamic_linker=no
10090 ;;
10091
10092 # This must be Linux ELF.
10093
10094 # uclinux* changes (here and below) have been submitted to the libtool
10095 # project, but have not yet been accepted: they are GCC-local changes
10096 # for the time being. (See
10097 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10098 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=no
10107
10108 # Some binutils ld are patched to set DT_RUNPATH
10109 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 lt_cv_shlibpath_overrides_runpath=no
10113 save_LDFLAGS=$LDFLAGS
10114 save_libdir=$libdir
10115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119
10120 int
10121 main ()
10122 {
10123
10124 ;
10125 return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10130 lt_cv_shlibpath_overrides_runpath=yes
10131 fi
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LDFLAGS=$save_LDFLAGS
10136 libdir=$save_libdir
10137
10138 fi
10139
10140 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10141
10142 # This implies no fast_install, which is unacceptable.
10143 # Some rework will be needed to allow for fast_install
10144 # before this can be enabled.
10145 hardcode_into_libs=yes
10146
10147 # Append ld.so.conf contents to the search path
10148 if test -f /etc/ld.so.conf; then
10149 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' ' '`
10150 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10151 fi
10152
10153 # We used to test for /lib/ld.so.1 and disable shared libraries on
10154 # powerpc, because MkLinux only supported shared libraries with the
10155 # GNU dynamic linker. Since this was broken with cross compilers,
10156 # most powerpc-linux boxes support dynamic linking these days and
10157 # people can always --disable-shared, the test was removed, and we
10158 # assume the GNU/Linux dynamic linker is in use.
10159 dynamic_linker='GNU/Linux ld.so'
10160 ;;
10161
10162 netbsd*)
10163 version_type=sunos
10164 need_lib_prefix=no
10165 need_version=no
10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10169 dynamic_linker='NetBSD (a.out) ld.so'
10170 else
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 dynamic_linker='NetBSD ld.elf_so'
10174 fi
10175 shlibpath_var=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath=yes
10177 hardcode_into_libs=yes
10178 ;;
10179
10180 newsos6)
10181 version_type=linux
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
10185 ;;
10186
10187 *nto* | *qnx*)
10188 version_type=qnx
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 hardcode_into_libs=yes
10196 dynamic_linker='ldqnx.so'
10197 ;;
10198
10199 openbsd*)
10200 version_type=sunos
10201 sys_lib_dlsearch_path_spec="/usr/lib"
10202 need_lib_prefix=no
10203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10204 case $host_os in
10205 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10206 *) need_version=no ;;
10207 esac
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212 case $host_os in
10213 openbsd2.[89] | openbsd2.[89].*)
10214 shlibpath_overrides_runpath=no
10215 ;;
10216 *)
10217 shlibpath_overrides_runpath=yes
10218 ;;
10219 esac
10220 else
10221 shlibpath_overrides_runpath=yes
10222 fi
10223 ;;
10224
10225 os2*)
10226 libname_spec='$name'
10227 shrext_cmds=".dll"
10228 need_lib_prefix=no
10229 library_names_spec='$libname${shared_ext} $libname.a'
10230 dynamic_linker='OS/2 ld.exe'
10231 shlibpath_var=LIBPATH
10232 ;;
10233
10234 osf3* | osf4* | osf5*)
10235 version_type=osf
10236 need_lib_prefix=no
10237 need_version=no
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10243 ;;
10244
10245 rdos*)
10246 dynamic_linker=no
10247 ;;
10248
10249 solaris*)
10250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=yes
10257 hardcode_into_libs=yes
10258 # ldd complains unless libraries are executable
10259 postinstall_cmds='chmod +x $lib'
10260 ;;
10261
10262 sunos4*)
10263 version_type=sunos
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=yes
10268 if test "$with_gnu_ld" = yes; then
10269 need_lib_prefix=no
10270 fi
10271 need_version=yes
10272 ;;
10273
10274 sysv4 | sysv4.3*)
10275 version_type=linux
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 case $host_vendor in
10280 sni)
10281 shlibpath_overrides_runpath=no
10282 need_lib_prefix=no
10283 runpath_var=LD_RUN_PATH
10284 ;;
10285 siemens)
10286 need_lib_prefix=no
10287 ;;
10288 motorola)
10289 need_lib_prefix=no
10290 need_version=no
10291 shlibpath_overrides_runpath=no
10292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10293 ;;
10294 esac
10295 ;;
10296
10297 sysv4*MP*)
10298 if test -d /usr/nec ;then
10299 version_type=linux
10300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10301 soname_spec='$libname${shared_ext}.$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 fi
10304 ;;
10305
10306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10307 version_type=freebsd-elf
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 hardcode_into_libs=yes
10315 if test "$with_gnu_ld" = yes; then
10316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10317 else
10318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10319 case $host_os in
10320 sco3.2v5*)
10321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10322 ;;
10323 esac
10324 fi
10325 sys_lib_dlsearch_path_spec='/usr/lib'
10326 ;;
10327
10328 tpf*)
10329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=no
10336 hardcode_into_libs=yes
10337 ;;
10338
10339 uts4*)
10340 version_type=linux
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 ;;
10345
10346 *)
10347 dynamic_linker=no
10348 ;;
10349 esac
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10351 $as_echo "$dynamic_linker" >&6; }
10352 test "$dynamic_linker" = no && can_build_shared=no
10353
10354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10355 if test "$GCC" = yes; then
10356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10357 fi
10358
10359 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10361 fi
10362 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10363 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10364 fi
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
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10458 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10459 hardcode_action=
10460 if test -n "$hardcode_libdir_flag_spec" ||
10461 test -n "$runpath_var" ||
10462 test "X$hardcode_automatic" = "Xyes" ; then
10463
10464 # We can hardcode non-existent directories.
10465 if test "$hardcode_direct" != no &&
10466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10467 # have to relink, otherwise we might link with an installed library
10468 # when we should be linking with a yet-to-be-installed one
10469 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10470 test "$hardcode_minus_L" != no; then
10471 # Linking always hardcodes the temporary library directory.
10472 hardcode_action=relink
10473 else
10474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10475 hardcode_action=immediate
10476 fi
10477 else
10478 # We cannot hardcode anything, or else we can only hardcode existing
10479 # directories.
10480 hardcode_action=unsupported
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10483 $as_echo "$hardcode_action" >&6; }
10484
10485 if test "$hardcode_action" = relink ||
10486 test "$inherit_rpath" = yes; then
10487 # Fast installation is not supported
10488 enable_fast_install=no
10489 elif test "$shlibpath_overrides_runpath" = yes ||
10490 test "$enable_shared" = no; then
10491 # Fast installation is not necessary
10492 enable_fast_install=needless
10493 fi
10494
10495
10496
10497
10498
10499
10500 if test "x$enable_dlopen" != xyes; then
10501 enable_dlopen=unknown
10502 enable_dlopen_self=unknown
10503 enable_dlopen_self_static=unknown
10504 else
10505 lt_cv_dlopen=no
10506 lt_cv_dlopen_libs=
10507
10508 case $host_os in
10509 beos*)
10510 lt_cv_dlopen="load_add_on"
10511 lt_cv_dlopen_libs=
10512 lt_cv_dlopen_self=yes
10513 ;;
10514
10515 mingw* | pw32* | cegcc*)
10516 lt_cv_dlopen="LoadLibrary"
10517 lt_cv_dlopen_libs=
10518 ;;
10519
10520 cygwin*)
10521 lt_cv_dlopen="dlopen"
10522 lt_cv_dlopen_libs=
10523 ;;
10524
10525 darwin*)
10526 # if libdl is installed we need to link against it
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10528 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10529 if ${ac_cv_lib_dl_dlopen+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-ldl $LIBS"
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536
10537 /* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply. */
10540 #ifdef __cplusplus
10541 extern "C"
10542 #endif
10543 char dlopen ();
10544 int
10545 main ()
10546 {
10547 return dlopen ();
10548 ;
10549 return 0;
10550 }
10551 _ACEOF
10552 if ac_fn_c_try_link "$LINENO"; then :
10553 ac_cv_lib_dl_dlopen=yes
10554 else
10555 ac_cv_lib_dl_dlopen=no
10556 fi
10557 rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10563 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10565 else
10566
10567 lt_cv_dlopen="dyld"
10568 lt_cv_dlopen_libs=
10569 lt_cv_dlopen_self=yes
10570
10571 fi
10572
10573 ;;
10574
10575 *)
10576 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10577 if test "x$ac_cv_func_shl_load" = xyes; then :
10578 lt_cv_dlopen="shl_load"
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10581 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10582 if ${ac_cv_lib_dld_shl_load+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-ldld $LIBS"
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 char shl_load ();
10597 int
10598 main ()
10599 {
10600 return shl_load ();
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 ac_cv_lib_dld_shl_load=yes
10607 else
10608 ac_cv_lib_dld_shl_load=no
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LIBS=$ac_check_lib_save_LIBS
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10615 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10616 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10617 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10618 else
10619 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10620 if test "x$ac_cv_func_dlopen" = xyes; then :
10621 lt_cv_dlopen="dlopen"
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10625 if ${ac_cv_lib_dl_dlopen+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 ac_check_lib_save_LIBS=$LIBS
10629 LIBS="-ldl $LIBS"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char dlopen ();
10640 int
10641 main ()
10642 {
10643 return dlopen ();
10644 ;
10645 return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_c_try_link "$LINENO"; then :
10649 ac_cv_lib_dl_dlopen=yes
10650 else
10651 ac_cv_lib_dl_dlopen=no
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10663 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10664 if ${ac_cv_lib_svld_dlopen+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-lsvld $LIBS"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char dlopen ();
10679 int
10680 main ()
10681 {
10682 return dlopen ();
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_svld_dlopen=yes
10689 else
10690 ac_cv_lib_svld_dlopen=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10697 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10698 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10702 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10703 if ${ac_cv_lib_dld_dld_link+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-ldld $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char dld_link ();
10718 int
10719 main ()
10720 {
10721 return dld_link ();
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_dld_dld_link=yes
10728 else
10729 ac_cv_lib_dld_dld_link=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10736 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10737 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10738 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10739 fi
10740
10741
10742 fi
10743
10744
10745 fi
10746
10747
10748 fi
10749
10750
10751 fi
10752
10753
10754 fi
10755
10756 ;;
10757 esac
10758
10759 if test "x$lt_cv_dlopen" != xno; then
10760 enable_dlopen=yes
10761 else
10762 enable_dlopen=no
10763 fi
10764
10765 case $lt_cv_dlopen in
10766 dlopen)
10767 save_CPPFLAGS="$CPPFLAGS"
10768 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10769
10770 save_LDFLAGS="$LDFLAGS"
10771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10772
10773 save_LIBS="$LIBS"
10774 LIBS="$lt_cv_dlopen_libs $LIBS"
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10777 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10778 if ${lt_cv_dlopen_self+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test "$cross_compiling" = yes; then :
10782 lt_cv_dlopen_self=cross
10783 else
10784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10785 lt_status=$lt_dlunknown
10786 cat > conftest.$ac_ext <<_LT_EOF
10787 #line 10787 "configure"
10788 #include "confdefs.h"
10789
10790 #if HAVE_DLFCN_H
10791 #include <dlfcn.h>
10792 #endif
10793
10794 #include <stdio.h>
10795
10796 #ifdef RTLD_GLOBAL
10797 # define LT_DLGLOBAL RTLD_GLOBAL
10798 #else
10799 # ifdef DL_GLOBAL
10800 # define LT_DLGLOBAL DL_GLOBAL
10801 # else
10802 # define LT_DLGLOBAL 0
10803 # endif
10804 #endif
10805
10806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10807 find out it does not work in some platform. */
10808 #ifndef LT_DLLAZY_OR_NOW
10809 # ifdef RTLD_LAZY
10810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10811 # else
10812 # ifdef DL_LAZY
10813 # define LT_DLLAZY_OR_NOW DL_LAZY
10814 # else
10815 # ifdef RTLD_NOW
10816 # define LT_DLLAZY_OR_NOW RTLD_NOW
10817 # else
10818 # ifdef DL_NOW
10819 # define LT_DLLAZY_OR_NOW DL_NOW
10820 # else
10821 # define LT_DLLAZY_OR_NOW 0
10822 # endif
10823 # endif
10824 # endif
10825 # endif
10826 #endif
10827
10828 /* When -fvisbility=hidden is used, assume the code has been annotated
10829 correspondingly for the symbols needed. */
10830 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10831 void fnord () __attribute__((visibility("default")));
10832 #endif
10833
10834 void fnord () { int i=42; }
10835 int main ()
10836 {
10837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10838 int status = $lt_dlunknown;
10839
10840 if (self)
10841 {
10842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10843 else
10844 {
10845 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10846 else puts (dlerror ());
10847 }
10848 /* dlclose (self); */
10849 }
10850 else
10851 puts (dlerror ());
10852
10853 return status;
10854 }
10855 _LT_EOF
10856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10857 (eval $ac_link) 2>&5
10858 ac_status=$?
10859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10860 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10861 (./conftest; exit; ) >&5 2>/dev/null
10862 lt_status=$?
10863 case x$lt_status in
10864 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10865 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10866 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10867 esac
10868 else :
10869 # compilation failed
10870 lt_cv_dlopen_self=no
10871 fi
10872 fi
10873 rm -fr conftest*
10874
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10878 $as_echo "$lt_cv_dlopen_self" >&6; }
10879
10880 if test "x$lt_cv_dlopen_self" = xyes; then
10881 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10883 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10884 if ${lt_cv_dlopen_self_static+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test "$cross_compiling" = yes; then :
10888 lt_cv_dlopen_self_static=cross
10889 else
10890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10891 lt_status=$lt_dlunknown
10892 cat > conftest.$ac_ext <<_LT_EOF
10893 #line 10893 "configure"
10894 #include "confdefs.h"
10895
10896 #if HAVE_DLFCN_H
10897 #include <dlfcn.h>
10898 #endif
10899
10900 #include <stdio.h>
10901
10902 #ifdef RTLD_GLOBAL
10903 # define LT_DLGLOBAL RTLD_GLOBAL
10904 #else
10905 # ifdef DL_GLOBAL
10906 # define LT_DLGLOBAL DL_GLOBAL
10907 # else
10908 # define LT_DLGLOBAL 0
10909 # endif
10910 #endif
10911
10912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10913 find out it does not work in some platform. */
10914 #ifndef LT_DLLAZY_OR_NOW
10915 # ifdef RTLD_LAZY
10916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10917 # else
10918 # ifdef DL_LAZY
10919 # define LT_DLLAZY_OR_NOW DL_LAZY
10920 # else
10921 # ifdef RTLD_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_NOW
10923 # else
10924 # ifdef DL_NOW
10925 # define LT_DLLAZY_OR_NOW DL_NOW
10926 # else
10927 # define LT_DLLAZY_OR_NOW 0
10928 # endif
10929 # endif
10930 # endif
10931 # endif
10932 #endif
10933
10934 /* When -fvisbility=hidden is used, assume the code has been annotated
10935 correspondingly for the symbols needed. */
10936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10937 void fnord () __attribute__((visibility("default")));
10938 #endif
10939
10940 void fnord () { int i=42; }
10941 int main ()
10942 {
10943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10944 int status = $lt_dlunknown;
10945
10946 if (self)
10947 {
10948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10949 else
10950 {
10951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952 else puts (dlerror ());
10953 }
10954 /* dlclose (self); */
10955 }
10956 else
10957 puts (dlerror ());
10958
10959 return status;
10960 }
10961 _LT_EOF
10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10963 (eval $ac_link) 2>&5
10964 ac_status=$?
10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10968 lt_status=$?
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10973 esac
10974 else :
10975 # compilation failed
10976 lt_cv_dlopen_self_static=no
10977 fi
10978 fi
10979 rm -fr conftest*
10980
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10984 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10985 fi
10986
10987 CPPFLAGS="$save_CPPFLAGS"
10988 LDFLAGS="$save_LDFLAGS"
10989 LIBS="$save_LIBS"
10990 ;;
10991 esac
10992
10993 case $lt_cv_dlopen_self in
10994 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10995 *) enable_dlopen_self=unknown ;;
10996 esac
10997
10998 case $lt_cv_dlopen_self_static in
10999 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11000 *) enable_dlopen_self_static=unknown ;;
11001 esac
11002 fi
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 striplib=
11021 old_striplib=
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11023 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11024 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11025 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11026 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11028 $as_echo "yes" >&6; }
11029 else
11030 # FIXME - insert some real tests, host_os isn't really good enough
11031 case $host_os in
11032 darwin*)
11033 if test -n "$STRIP" ; then
11034 striplib="$STRIP -x"
11035 old_striplib="$STRIP -S"
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 $as_echo "yes" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11041 fi
11042 ;;
11043 *)
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11046 ;;
11047 esac
11048 fi
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061 # Report which library types will actually be built
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11063 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11065 $as_echo "$can_build_shared" >&6; }
11066
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11068 $as_echo_n "checking whether to build shared libraries... " >&6; }
11069 test "$can_build_shared" = "no" && enable_shared=no
11070
11071 # On AIX, shared libraries and static libraries use the same namespace, and
11072 # are all built from PIC.
11073 case $host_os in
11074 aix3*)
11075 test "$enable_shared" = yes && enable_static=no
11076 if test -n "$RANLIB"; then
11077 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11078 postinstall_cmds='$RANLIB $lib'
11079 fi
11080 ;;
11081
11082 aix[4-9]*)
11083 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11084 test "$enable_shared" = yes && enable_static=no
11085 fi
11086 ;;
11087 esac
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11089 $as_echo "$enable_shared" >&6; }
11090
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11092 $as_echo_n "checking whether to build static libraries... " >&6; }
11093 # Make sure either enable_shared or enable_static is yes.
11094 test "$enable_shared" = yes || enable_static=yes
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11096 $as_echo "$enable_static" >&6; }
11097
11098
11099
11100
11101 fi
11102 ac_ext=c
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108 CC="$lt_save_CC"
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122 ac_config_commands="$ac_config_commands libtool"
11123
11124
11125
11126
11127 # Only expand once:
11128
11129
11130
11131 ac_ext=cpp
11132 ac_cpp='$CXXCPP $CPPFLAGS'
11133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11136 if test -z "$CXX"; then
11137 if test -n "$CCC"; then
11138 CXX=$CCC
11139 else
11140 if test -n "$ac_tool_prefix"; then
11141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11142 do
11143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_prog_CXX+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 if test -n "$CXX"; then
11151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11152 else
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11155 do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11163 fi
11164 done
11165 done
11166 IFS=$as_save_IFS
11167
11168 fi
11169 fi
11170 CXX=$ac_cv_prog_CXX
11171 if test -n "$CXX"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11173 $as_echo "$CXX" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178
11179
11180 test -n "$CXX" && break
11181 done
11182 fi
11183 if test -z "$CXX"; then
11184 ac_ct_CXX=$CXX
11185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11186 do
11187 # Extract the first word of "$ac_prog", so it can be a program name with args.
11188 set dummy $ac_prog; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 if test -n "$ac_ct_CXX"; then
11195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_ac_ct_CXX="$ac_prog"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208 done
11209 done
11210 IFS=$as_save_IFS
11211
11212 fi
11213 fi
11214 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11215 if test -n "$ac_ct_CXX"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11217 $as_echo "$ac_ct_CXX" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11221 fi
11222
11223
11224 test -n "$ac_ct_CXX" && break
11225 done
11226
11227 if test "x$ac_ct_CXX" = x; then
11228 CXX="g++"
11229 else
11230 case $cross_compiling:$ac_tool_warned in
11231 yes:)
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11234 ac_tool_warned=yes ;;
11235 esac
11236 CXX=$ac_ct_CXX
11237 fi
11238 fi
11239
11240 fi
11241 fi
11242 # Provide some information about the compiler.
11243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11244 set X $ac_compile
11245 ac_compiler=$2
11246 for ac_option in --version -v -V -qversion; do
11247 { { ac_try="$ac_compiler $ac_option >&5"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251 esac
11252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11253 $as_echo "$ac_try_echo"; } >&5
11254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11255 ac_status=$?
11256 if test -s conftest.err; then
11257 sed '10a\
11258 ... rest of stderr output deleted ...
11259 10q' conftest.err >conftest.er1
11260 cat conftest.er1 >&5
11261 fi
11262 rm -f conftest.er1 conftest.err
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; }
11265 done
11266
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11268 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11269 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274
11275 int
11276 main ()
11277 {
11278 #ifndef __GNUC__
11279 choke me
11280 #endif
11281
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_cxx_try_compile "$LINENO"; then :
11287 ac_compiler_gnu=yes
11288 else
11289 ac_compiler_gnu=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11293
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11296 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11297 if test $ac_compiler_gnu = yes; then
11298 GXX=yes
11299 else
11300 GXX=
11301 fi
11302 ac_test_CXXFLAGS=${CXXFLAGS+set}
11303 ac_save_CXXFLAGS=$CXXFLAGS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11305 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11306 if ${ac_cv_prog_cxx_g+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11310 ac_cxx_werror_flag=yes
11311 ac_cv_prog_cxx_g=no
11312 CXXFLAGS="-g"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315
11316 int
11317 main ()
11318 {
11319
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_cxx_try_compile "$LINENO"; then :
11325 ac_cv_prog_cxx_g=yes
11326 else
11327 CXXFLAGS=""
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330
11331 int
11332 main ()
11333 {
11334
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_cxx_try_compile "$LINENO"; then :
11340
11341 else
11342 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11343 CXXFLAGS="-g"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346
11347 int
11348 main ()
11349 {
11350
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_cxx_try_compile "$LINENO"; then :
11356 ac_cv_prog_cxx_g=yes
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11364 fi
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11366 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11367 if test "$ac_test_CXXFLAGS" = set; then
11368 CXXFLAGS=$ac_save_CXXFLAGS
11369 elif test $ac_cv_prog_cxx_g = yes; then
11370 if test "$GXX" = yes; then
11371 CXXFLAGS="-g -O2"
11372 else
11373 CXXFLAGS="-g"
11374 fi
11375 else
11376 if test "$GXX" = yes; then
11377 CXXFLAGS="-O2"
11378 else
11379 CXXFLAGS=
11380 fi
11381 fi
11382 ac_ext=c
11383 ac_cpp='$CPP $CPPFLAGS'
11384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387
11388 depcc="$CXX" am_compiler_list=
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11391 $as_echo_n "checking dependency style of $depcc... " >&6; }
11392 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11396 # We make a subdir and do the tests there. Otherwise we can end up
11397 # making bogus files that we don't know about and never remove. For
11398 # instance it was reported that on HP-UX the gcc test will end up
11399 # making a dummy file named 'D' -- because '-MD' means "put the output
11400 # in D".
11401 rm -rf conftest.dir
11402 mkdir conftest.dir
11403 # Copy depcomp to subdir because otherwise we won't find it if we're
11404 # using a relative directory.
11405 cp "$am_depcomp" conftest.dir
11406 cd conftest.dir
11407 # We will build objects and dependencies in a subdirectory because
11408 # it helps to detect inapplicable dependency modes. For instance
11409 # both Tru64's cc and ICC support -MD to output dependencies as a
11410 # side effect of compilation, but ICC will put the dependencies in
11411 # the current directory while Tru64 will put them in the object
11412 # directory.
11413 mkdir sub
11414
11415 am_cv_CXX_dependencies_compiler_type=none
11416 if test "$am_compiler_list" = ""; then
11417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11418 fi
11419 am__universal=false
11420 case " $depcc " in #(
11421 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11422 esac
11423
11424 for depmode in $am_compiler_list; do
11425 # Setup a source with many dependencies, because some compilers
11426 # like to wrap large dependency lists on column 80 (with \), and
11427 # we should not choose a depcomp mode which is confused by this.
11428 #
11429 # We need to recreate these files for each test, as the compiler may
11430 # overwrite some of them when testing with obscure command lines.
11431 # This happens at least with the AIX C compiler.
11432 : > sub/conftest.c
11433 for i in 1 2 3 4 5 6; do
11434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11435 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11436 # Solaris 10 /bin/sh.
11437 echo '/* dummy */' > sub/conftst$i.h
11438 done
11439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11440
11441 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11442 # mode. It turns out that the SunPro C++ compiler does not properly
11443 # handle '-M -o', and we need to detect this. Also, some Intel
11444 # versions had trouble with output in subdirs.
11445 am__obj=sub/conftest.${OBJEXT-o}
11446 am__minus_obj="-o $am__obj"
11447 case $depmode in
11448 gcc)
11449 # This depmode causes a compiler race in universal mode.
11450 test "$am__universal" = false || continue
11451 ;;
11452 nosideeffect)
11453 # After this tag, mechanisms are not by side-effect, so they'll
11454 # only be used when explicitly requested.
11455 if test "x$enable_dependency_tracking" = xyes; then
11456 continue
11457 else
11458 break
11459 fi
11460 ;;
11461 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11462 # This compiler won't grok '-c -o', but also, the minuso test has
11463 # not run yet. These depmodes are late enough in the game, and
11464 # so weak that their functioning should not be impacted.
11465 am__obj=conftest.${OBJEXT-o}
11466 am__minus_obj=
11467 ;;
11468 none) break ;;
11469 esac
11470 if depmode=$depmode \
11471 source=sub/conftest.c object=$am__obj \
11472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11474 >/dev/null 2>conftest.err &&
11475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11479 # icc doesn't choke on unknown options, it will just issue warnings
11480 # or remarks (even with -Werror). So we grep stderr for any message
11481 # that says an option was ignored or not supported.
11482 # When given -MP, icc 7.0 and 7.1 complain thusly:
11483 # icc: Command line warning: ignoring option '-M'; no argument required
11484 # The diagnosis changed in icc 8.0:
11485 # icc: Command line remark: option '-MP' not supported
11486 if (grep 'ignoring option' conftest.err ||
11487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11488 am_cv_CXX_dependencies_compiler_type=$depmode
11489 break
11490 fi
11491 fi
11492 done
11493
11494 cd ..
11495 rm -rf conftest.dir
11496 else
11497 am_cv_CXX_dependencies_compiler_type=none
11498 fi
11499
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11502 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11503 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11504
11505 if
11506 test "x$enable_dependency_tracking" != xno \
11507 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11508 am__fastdepCXX_TRUE=
11509 am__fastdepCXX_FALSE='#'
11510 else
11511 am__fastdepCXX_TRUE='#'
11512 am__fastdepCXX_FALSE=
11513 fi
11514
11515
11516 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11517 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11518 (test "X$CXX" != "Xg++"))) ; then
11519 ac_ext=cpp
11520 ac_cpp='$CXXCPP $CPPFLAGS'
11521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11525 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11526 if test -z "$CXXCPP"; then
11527 if ${ac_cv_prog_CXXCPP+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 # Double quotes because CXXCPP needs to be expanded
11531 for CXXCPP in "$CXX -E" "/lib/cpp"
11532 do
11533 ac_preproc_ok=false
11534 for ac_cxx_preproc_warn_flag in '' yes
11535 do
11536 # Use a header file that comes with gcc, so configuring glibc
11537 # with a fresh cross-compiler works.
11538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11539 # <limits.h> exists even on freestanding compilers.
11540 # On the NeXT, cc -E runs the code through the compiler's parser,
11541 # not just through cpp. "Syntax error" is here to catch this case.
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 #ifdef __STDC__
11545 # include <limits.h>
11546 #else
11547 # include <assert.h>
11548 #endif
11549 Syntax error
11550 _ACEOF
11551 if ac_fn_cxx_try_cpp "$LINENO"; then :
11552
11553 else
11554 # Broken: fails on valid input.
11555 continue
11556 fi
11557 rm -f conftest.err conftest.i conftest.$ac_ext
11558
11559 # OK, works on sane cases. Now check whether nonexistent headers
11560 # can be detected and how.
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563 #include <ac_nonexistent.h>
11564 _ACEOF
11565 if ac_fn_cxx_try_cpp "$LINENO"; then :
11566 # Broken: success on invalid input.
11567 continue
11568 else
11569 # Passes both tests.
11570 ac_preproc_ok=:
11571 break
11572 fi
11573 rm -f conftest.err conftest.i conftest.$ac_ext
11574
11575 done
11576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11577 rm -f conftest.i conftest.err conftest.$ac_ext
11578 if $ac_preproc_ok; then :
11579 break
11580 fi
11581
11582 done
11583 ac_cv_prog_CXXCPP=$CXXCPP
11584
11585 fi
11586 CXXCPP=$ac_cv_prog_CXXCPP
11587 else
11588 ac_cv_prog_CXXCPP=$CXXCPP
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11591 $as_echo "$CXXCPP" >&6; }
11592 ac_preproc_ok=false
11593 for ac_cxx_preproc_warn_flag in '' yes
11594 do
11595 # Use a header file that comes with gcc, so configuring glibc
11596 # with a fresh cross-compiler works.
11597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 # <limits.h> exists even on freestanding compilers.
11599 # On the NeXT, cc -E runs the code through the compiler's parser,
11600 # not just through cpp. "Syntax error" is here to catch this case.
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603 #ifdef __STDC__
11604 # include <limits.h>
11605 #else
11606 # include <assert.h>
11607 #endif
11608 Syntax error
11609 _ACEOF
11610 if ac_fn_cxx_try_cpp "$LINENO"; then :
11611
11612 else
11613 # Broken: fails on valid input.
11614 continue
11615 fi
11616 rm -f conftest.err conftest.i conftest.$ac_ext
11617
11618 # OK, works on sane cases. Now check whether nonexistent headers
11619 # can be detected and how.
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 #include <ac_nonexistent.h>
11623 _ACEOF
11624 if ac_fn_cxx_try_cpp "$LINENO"; then :
11625 # Broken: success on invalid input.
11626 continue
11627 else
11628 # Passes both tests.
11629 ac_preproc_ok=:
11630 break
11631 fi
11632 rm -f conftest.err conftest.i conftest.$ac_ext
11633
11634 done
11635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11636 rm -f conftest.i conftest.err conftest.$ac_ext
11637 if $ac_preproc_ok; then :
11638
11639 else
11640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11642 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11643 See \`config.log' for more details" "$LINENO" 5; }
11644 fi
11645
11646 ac_ext=c
11647 ac_cpp='$CPP $CPPFLAGS'
11648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651
11652 else
11653 _lt_caught_CXX_error=yes
11654 fi
11655
11656 ac_ext=cpp
11657 ac_cpp='$CXXCPP $CPPFLAGS'
11658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11661
11662 archive_cmds_need_lc_CXX=no
11663 allow_undefined_flag_CXX=
11664 always_export_symbols_CXX=no
11665 archive_expsym_cmds_CXX=
11666 compiler_needs_object_CXX=no
11667 export_dynamic_flag_spec_CXX=
11668 hardcode_direct_CXX=no
11669 hardcode_direct_absolute_CXX=no
11670 hardcode_libdir_flag_spec_CXX=
11671 hardcode_libdir_flag_spec_ld_CXX=
11672 hardcode_libdir_separator_CXX=
11673 hardcode_minus_L_CXX=no
11674 hardcode_shlibpath_var_CXX=unsupported
11675 hardcode_automatic_CXX=no
11676 inherit_rpath_CXX=no
11677 module_cmds_CXX=
11678 module_expsym_cmds_CXX=
11679 link_all_deplibs_CXX=unknown
11680 old_archive_cmds_CXX=$old_archive_cmds
11681 reload_flag_CXX=$reload_flag
11682 reload_cmds_CXX=$reload_cmds
11683 no_undefined_flag_CXX=
11684 whole_archive_flag_spec_CXX=
11685 enable_shared_with_static_runtimes_CXX=no
11686
11687 # Source file extension for C++ test sources.
11688 ac_ext=cpp
11689
11690 # Object file extension for compiled C++ test sources.
11691 objext=o
11692 objext_CXX=$objext
11693
11694 # No sense in running all these tests if we already determined that
11695 # the CXX compiler isn't working. Some variables (like enable_shared)
11696 # are currently assumed to apply to all compilers on this platform,
11697 # and will be corrupted by setting them based on a non-working compiler.
11698 if test "$_lt_caught_CXX_error" != yes; then
11699 # Code to be used in simple compile tests
11700 lt_simple_compile_test_code="int some_variable = 0;"
11701
11702 # Code to be used in simple link tests
11703 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11704
11705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11706
11707
11708
11709
11710
11711
11712 # If no C compiler was specified, use CC.
11713 LTCC=${LTCC-"$CC"}
11714
11715 # If no C compiler flags were specified, use CFLAGS.
11716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11717
11718 # Allow CC to be a program name with arguments.
11719 compiler=$CC
11720
11721
11722 # save warnings/boilerplate of simple test code
11723 ac_outfile=conftest.$ac_objext
11724 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11725 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11726 _lt_compiler_boilerplate=`cat conftest.err`
11727 $RM conftest*
11728
11729 ac_outfile=conftest.$ac_objext
11730 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11731 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11732 _lt_linker_boilerplate=`cat conftest.err`
11733 $RM -r conftest*
11734
11735
11736 # Allow CC to be a program name with arguments.
11737 lt_save_CC=$CC
11738 lt_save_LD=$LD
11739 lt_save_GCC=$GCC
11740 GCC=$GXX
11741 lt_save_with_gnu_ld=$with_gnu_ld
11742 lt_save_path_LD=$lt_cv_path_LD
11743 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11744 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11745 else
11746 $as_unset lt_cv_prog_gnu_ld
11747 fi
11748 if test -n "${lt_cv_path_LDCXX+set}"; then
11749 lt_cv_path_LD=$lt_cv_path_LDCXX
11750 else
11751 $as_unset lt_cv_path_LD
11752 fi
11753 test -z "${LDCXX+set}" || LD=$LDCXX
11754 CC=${CXX-"c++"}
11755 compiler=$CC
11756 compiler_CXX=$CC
11757 for cc_temp in $compiler""; do
11758 case $cc_temp in
11759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11761 \-*) ;;
11762 *) break;;
11763 esac
11764 done
11765 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11766
11767
11768 if test -n "$compiler"; then
11769 # We don't want -fno-exception when compiling C++ code, so set the
11770 # no_builtin_flag separately
11771 if test "$GXX" = yes; then
11772 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11773 else
11774 lt_prog_compiler_no_builtin_flag_CXX=
11775 fi
11776
11777 if test "$GXX" = yes; then
11778 # Set up default GNU C++ configuration
11779
11780
11781
11782 # Check whether --with-gnu-ld was given.
11783 if test "${with_gnu_ld+set}" = set; then :
11784 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11785 else
11786 with_gnu_ld=no
11787 fi
11788
11789 ac_prog=ld
11790 if test "$GCC" = yes; then
11791 # Check if gcc -print-prog-name=ld gives a path.
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11793 $as_echo_n "checking for ld used by $CC... " >&6; }
11794 case $host in
11795 *-*-mingw*)
11796 # gcc leaves a trailing carriage return which upsets mingw
11797 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11798 *)
11799 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11800 esac
11801 case $ac_prog in
11802 # Accept absolute paths.
11803 [\\/]* | ?:[\\/]*)
11804 re_direlt='/[^/][^/]*/\.\./'
11805 # Canonicalize the pathname of ld
11806 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11807 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11808 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11809 done
11810 test -z "$LD" && LD="$ac_prog"
11811 ;;
11812 "")
11813 # If it fails, then pretend we aren't using GCC.
11814 ac_prog=ld
11815 ;;
11816 *)
11817 # If it is relative, then search for the first ld in PATH.
11818 with_gnu_ld=unknown
11819 ;;
11820 esac
11821 elif test "$with_gnu_ld" = yes; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11823 $as_echo_n "checking for GNU ld... " >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11826 $as_echo_n "checking for non-GNU ld... " >&6; }
11827 fi
11828 if ${lt_cv_path_LD+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if test -z "$LD"; then
11832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11833 for ac_dir in $PATH; do
11834 IFS="$lt_save_ifs"
11835 test -z "$ac_dir" && ac_dir=.
11836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11837 lt_cv_path_LD="$ac_dir/$ac_prog"
11838 # Check to see if the program is GNU ld. I'd rather use --version,
11839 # but apparently some variants of GNU ld only accept -v.
11840 # Break only if it was the GNU/non-GNU ld that we prefer.
11841 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11842 *GNU* | *'with BFD'*)
11843 test "$with_gnu_ld" != no && break
11844 ;;
11845 *)
11846 test "$with_gnu_ld" != yes && break
11847 ;;
11848 esac
11849 fi
11850 done
11851 IFS="$lt_save_ifs"
11852 else
11853 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11854 fi
11855 fi
11856
11857 LD="$lt_cv_path_LD"
11858 if test -n "$LD"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11860 $as_echo "$LD" >&6; }
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11867 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11868 if ${lt_cv_prog_gnu_ld+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11872 case `$LD -v 2>&1 </dev/null` in
11873 *GNU* | *'with BFD'*)
11874 lt_cv_prog_gnu_ld=yes
11875 ;;
11876 *)
11877 lt_cv_prog_gnu_ld=no
11878 ;;
11879 esac
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11882 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11883 with_gnu_ld=$lt_cv_prog_gnu_ld
11884
11885
11886
11887
11888
11889
11890
11891 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11892 # archiving commands below assume that GNU ld is being used.
11893 if test "$with_gnu_ld" = yes; then
11894 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895 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'
11896
11897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11899
11900 # If archive_cmds runs LD, not CC, wlarc should be empty
11901 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11902 # investigate it a little bit more. (MM)
11903 wlarc='${wl}'
11904
11905 # ancient GNU ld didn't support --whole-archive et. al.
11906 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11907 $GREP 'no-whole-archive' > /dev/null; then
11908 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11909 else
11910 whole_archive_flag_spec_CXX=
11911 fi
11912 else
11913 with_gnu_ld=no
11914 wlarc=
11915
11916 # A generic and very simple default shared library creation
11917 # command for GNU C++ for the case where it uses the native
11918 # linker, instead of GNU ld. If possible, this setting should
11919 # overridden to take advantage of the native linker features on
11920 # the platform it is being used on.
11921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11922 fi
11923
11924 # Commands to make compiler produce verbose output that lists
11925 # what "hidden" libraries, object files and flags are used when
11926 # linking a shared library.
11927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11928
11929 else
11930 GXX=no
11931 with_gnu_ld=no
11932 wlarc=
11933 fi
11934
11935 # PORTME: fill in a description of your system's C++ link characteristics
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11937 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11938 ld_shlibs_CXX=yes
11939 case $host_os in
11940 aix3*)
11941 # FIXME: insert proper C++ library support
11942 ld_shlibs_CXX=no
11943 ;;
11944 aix[4-9]*)
11945 if test "$host_cpu" = ia64; then
11946 # On IA64, the linker does run time linking by default, so we don't
11947 # have to do anything special.
11948 aix_use_runtimelinking=no
11949 exp_sym_flag='-Bexport'
11950 no_entry_flag=""
11951 else
11952 aix_use_runtimelinking=no
11953
11954 # Test if we are trying to use run time linking or normal
11955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11956 # need to do runtime linking.
11957 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11958 for ld_flag in $LDFLAGS; do
11959 case $ld_flag in
11960 *-brtl*)
11961 aix_use_runtimelinking=yes
11962 break
11963 ;;
11964 esac
11965 done
11966 ;;
11967 esac
11968
11969 exp_sym_flag='-bexport'
11970 no_entry_flag='-bnoentry'
11971 fi
11972
11973 # When large executables or shared objects are built, AIX ld can
11974 # have problems creating the table of contents. If linking a library
11975 # or program results in "error TOC overflow" add -mminimal-toc to
11976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11978
11979 archive_cmds_CXX=''
11980 hardcode_direct_CXX=yes
11981 hardcode_direct_absolute_CXX=yes
11982 hardcode_libdir_separator_CXX=':'
11983 link_all_deplibs_CXX=yes
11984 file_list_spec_CXX='${wl}-f,'
11985
11986 if test "$GXX" = yes; then
11987 case $host_os in aix4.[012]|aix4.[012].*)
11988 # We only want to do this on AIX 4.2 and lower, the check
11989 # below for broken collect2 doesn't work under 4.3+
11990 collect2name=`${CC} -print-prog-name=collect2`
11991 if test -f "$collect2name" &&
11992 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11993 then
11994 # We have reworked collect2
11995 :
11996 else
11997 # We have old collect2
11998 hardcode_direct_CXX=unsupported
11999 # It fails to find uninstalled libraries when the uninstalled
12000 # path is not listed in the libpath. Setting hardcode_minus_L
12001 # to unsupported forces relinking
12002 hardcode_minus_L_CXX=yes
12003 hardcode_libdir_flag_spec_CXX='-L$libdir'
12004 hardcode_libdir_separator_CXX=
12005 fi
12006 esac
12007 shared_flag='-shared'
12008 if test "$aix_use_runtimelinking" = yes; then
12009 shared_flag="$shared_flag "'${wl}-G'
12010 fi
12011 else
12012 # not using gcc
12013 if test "$host_cpu" = ia64; then
12014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12015 # chokes on -Wl,-G. The following line is correct:
12016 shared_flag='-G'
12017 else
12018 if test "$aix_use_runtimelinking" = yes; then
12019 shared_flag='${wl}-G'
12020 else
12021 shared_flag='${wl}-bM:SRE'
12022 fi
12023 fi
12024 fi
12025
12026 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12027 # It seems that -bexpall does not export symbols beginning with
12028 # underscore (_), so it is better to generate a list of symbols to
12029 # export.
12030 always_export_symbols_CXX=yes
12031 if test "$aix_use_runtimelinking" = yes; then
12032 # Warning - without using the other runtime loading flags (-brtl),
12033 # -berok will link without error, but may produce a broken library.
12034 allow_undefined_flag_CXX='-berok'
12035 # Determine the default libpath from the value encoded in an empty
12036 # executable.
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039
12040 int
12041 main ()
12042 {
12043
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_cxx_try_link "$LINENO"; then :
12049
12050 lt_aix_libpath_sed='
12051 /Import File Strings/,/^$/ {
12052 /^0/ {
12053 s/^0 *\(.*\)$/\1/
12054 p
12055 }
12056 }'
12057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12058 # Check for a 64-bit object if we didn't find anything.
12059 if test -z "$aix_libpath"; then
12060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12061 fi
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12066
12067 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12068
12069 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"
12070 else
12071 if test "$host_cpu" = ia64; then
12072 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12073 allow_undefined_flag_CXX="-z nodefs"
12074 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"
12075 else
12076 # Determine the default libpath from the value encoded in an
12077 # empty executable.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080
12081 int
12082 main ()
12083 {
12084
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_cxx_try_link "$LINENO"; then :
12090
12091 lt_aix_libpath_sed='
12092 /Import File Strings/,/^$/ {
12093 /^0/ {
12094 s/^0 *\(.*\)$/\1/
12095 p
12096 }
12097 }'
12098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12099 # Check for a 64-bit object if we didn't find anything.
12100 if test -z "$aix_libpath"; then
12101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12102 fi
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12107
12108 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12109 # Warning - without using the other run time loading flags,
12110 # -berok will link without error, but may produce a broken library.
12111 no_undefined_flag_CXX=' ${wl}-bernotok'
12112 allow_undefined_flag_CXX=' ${wl}-berok'
12113 if test "$with_gnu_ld" = yes; then
12114 # We only use this code for GNU lds that support --whole-archive.
12115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12116 else
12117 # Exported symbols can be pulled into shared objects from archives
12118 whole_archive_flag_spec_CXX='$convenience'
12119 fi
12120 archive_cmds_need_lc_CXX=yes
12121 # This is similar to how AIX traditionally builds its shared
12122 # libraries.
12123 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'
12124 fi
12125 fi
12126 ;;
12127
12128 beos*)
12129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12130 allow_undefined_flag_CXX=unsupported
12131 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
12132 # support --undefined. This deserves some investigation. FIXME
12133 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12134 else
12135 ld_shlibs_CXX=no
12136 fi
12137 ;;
12138
12139 chorus*)
12140 case $cc_basename in
12141 *)
12142 # FIXME: insert proper C++ library support
12143 ld_shlibs_CXX=no
12144 ;;
12145 esac
12146 ;;
12147
12148 cygwin* | mingw* | pw32* | cegcc*)
12149 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12150 # as there is no search path for DLLs.
12151 hardcode_libdir_flag_spec_CXX='-L$libdir'
12152 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12153 allow_undefined_flag_CXX=unsupported
12154 always_export_symbols_CXX=no
12155 enable_shared_with_static_runtimes_CXX=yes
12156
12157 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12158 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'
12159 # If the export-symbols file already is a .def file (1st line
12160 # is EXPORTS), use it as is; otherwise, prepend...
12161 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12162 cp $export_symbols $output_objdir/$soname.def;
12163 else
12164 echo EXPORTS > $output_objdir/$soname.def;
12165 cat $export_symbols >> $output_objdir/$soname.def;
12166 fi~
12167 $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'
12168 else
12169 ld_shlibs_CXX=no
12170 fi
12171 ;;
12172 darwin* | rhapsody*)
12173
12174
12175 archive_cmds_need_lc_CXX=no
12176 hardcode_direct_CXX=no
12177 hardcode_automatic_CXX=yes
12178 hardcode_shlibpath_var_CXX=unsupported
12179 if test "$lt_cv_ld_force_load" = "yes"; then
12180 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\"`'
12181 else
12182 whole_archive_flag_spec_CXX=''
12183 fi
12184 link_all_deplibs_CXX=yes
12185 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12186 case $cc_basename in
12187 ifort*) _lt_dar_can_shared=yes ;;
12188 *) _lt_dar_can_shared=$GCC ;;
12189 esac
12190 if test "$_lt_dar_can_shared" = "yes"; then
12191 output_verbose_link_cmd=func_echo_all
12192 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}"
12193 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12194 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}"
12195 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}"
12196 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12197 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}"
12198 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}"
12199 fi
12200
12201 else
12202 ld_shlibs_CXX=no
12203 fi
12204
12205 ;;
12206
12207 dgux*)
12208 case $cc_basename in
12209 ec++*)
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12212 ;;
12213 ghcx*)
12214 # Green Hills C++ Compiler
12215 # FIXME: insert proper C++ library support
12216 ld_shlibs_CXX=no
12217 ;;
12218 *)
12219 # FIXME: insert proper C++ library support
12220 ld_shlibs_CXX=no
12221 ;;
12222 esac
12223 ;;
12224
12225 freebsd2.*)
12226 # C++ shared libraries reported to be fairly broken before
12227 # switch to ELF
12228 ld_shlibs_CXX=no
12229 ;;
12230
12231 freebsd-elf*)
12232 archive_cmds_need_lc_CXX=no
12233 ;;
12234
12235 freebsd* | dragonfly*)
12236 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12237 # conventions
12238 ld_shlibs_CXX=yes
12239 ;;
12240
12241 gnu*)
12242 ;;
12243
12244 haiku*)
12245 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 link_all_deplibs_CXX=yes
12247 ;;
12248
12249 hpux9*)
12250 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12251 hardcode_libdir_separator_CXX=:
12252 export_dynamic_flag_spec_CXX='${wl}-E'
12253 hardcode_direct_CXX=yes
12254 hardcode_minus_L_CXX=yes # Not in the search PATH,
12255 # but as the default
12256 # location of the library.
12257
12258 case $cc_basename in
12259 CC*)
12260 # FIXME: insert proper C++ library support
12261 ld_shlibs_CXX=no
12262 ;;
12263 aCC*)
12264 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'
12265 # Commands to make compiler produce verbose output that lists
12266 # what "hidden" libraries, object files and flags are used when
12267 # linking a shared library.
12268 #
12269 # There doesn't appear to be a way to prevent this compiler from
12270 # explicitly linking system object files so we need to strip them
12271 # from the output so that they don't get included in the library
12272 # dependencies.
12273 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"'
12274 ;;
12275 *)
12276 if test "$GXX" = yes; then
12277 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'
12278 else
12279 # FIXME: insert proper C++ library support
12280 ld_shlibs_CXX=no
12281 fi
12282 ;;
12283 esac
12284 ;;
12285
12286 hpux10*|hpux11*)
12287 if test $with_gnu_ld = no; then
12288 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12289 hardcode_libdir_separator_CXX=:
12290
12291 case $host_cpu in
12292 hppa*64*|ia64*)
12293 ;;
12294 *)
12295 export_dynamic_flag_spec_CXX='${wl}-E'
12296 ;;
12297 esac
12298 fi
12299 case $host_cpu in
12300 hppa*64*|ia64*)
12301 hardcode_direct_CXX=no
12302 hardcode_shlibpath_var_CXX=no
12303 ;;
12304 *)
12305 hardcode_direct_CXX=yes
12306 hardcode_direct_absolute_CXX=yes
12307 hardcode_minus_L_CXX=yes # Not in the search PATH,
12308 # but as the default
12309 # location of the library.
12310 ;;
12311 esac
12312
12313 case $cc_basename in
12314 CC*)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12317 ;;
12318 aCC*)
12319 case $host_cpu in
12320 hppa*64*)
12321 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12322 ;;
12323 ia64*)
12324 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12325 ;;
12326 *)
12327 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12328 ;;
12329 esac
12330 # Commands to make compiler produce verbose output that lists
12331 # what "hidden" libraries, object files and flags are used when
12332 # linking a shared library.
12333 #
12334 # There doesn't appear to be a way to prevent this compiler from
12335 # explicitly linking system object files so we need to strip them
12336 # from the output so that they don't get included in the library
12337 # dependencies.
12338 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"'
12339 ;;
12340 *)
12341 if test "$GXX" = yes; then
12342 if test $with_gnu_ld = no; then
12343 case $host_cpu in
12344 hppa*64*)
12345 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12346 ;;
12347 ia64*)
12348 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12349 ;;
12350 *)
12351 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'
12352 ;;
12353 esac
12354 fi
12355 else
12356 # FIXME: insert proper C++ library support
12357 ld_shlibs_CXX=no
12358 fi
12359 ;;
12360 esac
12361 ;;
12362
12363 interix[3-9]*)
12364 hardcode_direct_CXX=no
12365 hardcode_shlibpath_var_CXX=no
12366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12367 export_dynamic_flag_spec_CXX='${wl}-E'
12368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12369 # Instead, shared libraries are loaded at an image base (0x10000000 by
12370 # default) and relocated if they conflict, which is a slow very memory
12371 # consuming and fragmenting process. To avoid this, we pick a random,
12372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12374 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'
12375 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'
12376 ;;
12377 irix5* | irix6*)
12378 case $cc_basename in
12379 CC*)
12380 # SGI C++
12381 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'
12382
12383 # Archives containing C++ object files must be created using
12384 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12385 # necessary to make sure instantiated templates are included
12386 # in the archive.
12387 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12388 ;;
12389 *)
12390 if test "$GXX" = yes; then
12391 if test "$with_gnu_ld" = no; then
12392 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'
12393 else
12394 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'
12395 fi
12396 fi
12397 link_all_deplibs_CXX=yes
12398 ;;
12399 esac
12400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12401 hardcode_libdir_separator_CXX=:
12402 inherit_rpath_CXX=yes
12403 ;;
12404
12405 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12406 case $cc_basename in
12407 KCC*)
12408 # Kuck and Associates, Inc. (KAI) C++ Compiler
12409
12410 # KCC will only create a shared library if the output file
12411 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12412 # to its proper name (with version) after linking.
12413 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'
12414 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'
12415 # Commands to make compiler produce verbose output that lists
12416 # what "hidden" libraries, object files and flags are used when
12417 # linking a shared library.
12418 #
12419 # There doesn't appear to be a way to prevent this compiler from
12420 # explicitly linking system object files so we need to strip them
12421 # from the output so that they don't get included in the library
12422 # dependencies.
12423 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"'
12424
12425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12427
12428 # Archives containing C++ object files must be created using
12429 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12430 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12431 ;;
12432 icpc* | ecpc* )
12433 # Intel C++
12434 with_gnu_ld=yes
12435 # version 8.0 and above of icpc choke on multiply defined symbols
12436 # if we add $predep_objects and $postdep_objects, however 7.1 and
12437 # earlier do not add the objects themselves.
12438 case `$CC -V 2>&1` in
12439 *"Version 7."*)
12440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 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'
12442 ;;
12443 *) # Version 8.0 or newer
12444 tmp_idyn=
12445 case $host_cpu in
12446 ia64*) tmp_idyn=' -i_dynamic';;
12447 esac
12448 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12449 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'
12450 ;;
12451 esac
12452 archive_cmds_need_lc_CXX=no
12453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12455 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12456 ;;
12457 pgCC* | pgcpp*)
12458 # Portland Group C++ compiler
12459 case `$CC -V` in
12460 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12461 prelink_cmds_CXX='tpldir=Template.dir~
12462 rm -rf $tpldir~
12463 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12464 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12465 old_archive_cmds_CXX='tpldir=Template.dir~
12466 rm -rf $tpldir~
12467 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12468 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12469 $RANLIB $oldlib'
12470 archive_cmds_CXX='tpldir=Template.dir~
12471 rm -rf $tpldir~
12472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12474 archive_expsym_cmds_CXX='tpldir=Template.dir~
12475 rm -rf $tpldir~
12476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12477 $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'
12478 ;;
12479 *) # Version 6 and above use weak symbols
12480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12481 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'
12482 ;;
12483 esac
12484
12485 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12486 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12487 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'
12488 ;;
12489 cxx*)
12490 # Compaq C++
12491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492 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'
12493
12494 runpath_var=LD_RUN_PATH
12495 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12496 hardcode_libdir_separator_CXX=:
12497
12498 # Commands to make compiler produce verbose output that lists
12499 # what "hidden" libraries, object files and flags are used when
12500 # linking a shared library.
12501 #
12502 # There doesn't appear to be a way to prevent this compiler from
12503 # explicitly linking system object files so we need to strip them
12504 # from the output so that they don't get included in the library
12505 # dependencies.
12506 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'
12507 ;;
12508 xl* | mpixl* | bgxl*)
12509 # IBM XL 8.0 on PPC, with GNU ld
12510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12511 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12512 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513 if test "x$supports_anon_versioning" = xyes; then
12514 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12516 echo "local: *; };" >> $output_objdir/$libname.ver~
12517 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12518 fi
12519 ;;
12520 *)
12521 case `$CC -V 2>&1 | sed 5q` in
12522 *Sun\ C*)
12523 # Sun C++ 5.9
12524 no_undefined_flag_CXX=' -zdefs'
12525 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 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'
12527 hardcode_libdir_flag_spec_CXX='-R$libdir'
12528 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'
12529 compiler_needs_object_CXX=yes
12530
12531 # Not sure whether something based on
12532 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12533 # would be better.
12534 output_verbose_link_cmd='func_echo_all'
12535
12536 # Archives containing C++ object files must be created using
12537 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12538 # necessary to make sure instantiated templates are included
12539 # in the archive.
12540 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12541 ;;
12542 esac
12543 ;;
12544 esac
12545 ;;
12546
12547 lynxos*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551
12552 m88k*)
12553 # FIXME: insert proper C++ library support
12554 ld_shlibs_CXX=no
12555 ;;
12556
12557 mvs*)
12558 case $cc_basename in
12559 cxx*)
12560 # FIXME: insert proper C++ library support
12561 ld_shlibs_CXX=no
12562 ;;
12563 *)
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12566 ;;
12567 esac
12568 ;;
12569
12570 netbsd*)
12571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12572 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12573 wlarc=
12574 hardcode_libdir_flag_spec_CXX='-R$libdir'
12575 hardcode_direct_CXX=yes
12576 hardcode_shlibpath_var_CXX=no
12577 fi
12578 # Workaround some broken pre-1.5 toolchains
12579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12580 ;;
12581
12582 *nto* | *qnx*)
12583 ld_shlibs_CXX=yes
12584 ;;
12585
12586 openbsd2*)
12587 # C++ shared libraries are fairly broken
12588 ld_shlibs_CXX=no
12589 ;;
12590
12591 openbsd*)
12592 if test -f /usr/libexec/ld.so; then
12593 hardcode_direct_CXX=yes
12594 hardcode_shlibpath_var_CXX=no
12595 hardcode_direct_absolute_CXX=yes
12596 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12599 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12600 export_dynamic_flag_spec_CXX='${wl}-E'
12601 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12602 fi
12603 output_verbose_link_cmd=func_echo_all
12604 else
12605 ld_shlibs_CXX=no
12606 fi
12607 ;;
12608
12609 osf3* | osf4* | osf5*)
12610 case $cc_basename in
12611 KCC*)
12612 # Kuck and Associates, Inc. (KAI) C++ Compiler
12613
12614 # KCC will only create a shared library if the output file
12615 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12616 # to its proper name (with version) after linking.
12617 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'
12618
12619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12620 hardcode_libdir_separator_CXX=:
12621
12622 # Archives containing C++ object files must be created using
12623 # the KAI C++ compiler.
12624 case $host in
12625 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12626 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12627 esac
12628 ;;
12629 RCC*)
12630 # Rational C++ 2.4.1
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12633 ;;
12634 cxx*)
12635 case $host in
12636 osf3*)
12637 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12638 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'
12639 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12640 ;;
12641 *)
12642 allow_undefined_flag_CXX=' -expect_unresolved \*'
12643 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'
12644 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12645 echo "-hidden">> $lib.exp~
12646 $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~
12647 $RM $lib.exp'
12648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649 ;;
12650 esac
12651
12652 hardcode_libdir_separator_CXX=:
12653
12654 # Commands to make compiler produce verbose output that lists
12655 # what "hidden" libraries, object files and flags are used when
12656 # linking a shared library.
12657 #
12658 # There doesn't appear to be a way to prevent this compiler from
12659 # explicitly linking system object files so we need to strip them
12660 # from the output so that they don't get included in the library
12661 # dependencies.
12662 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"'
12663 ;;
12664 *)
12665 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12666 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12667 case $host in
12668 osf3*)
12669 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'
12670 ;;
12671 *)
12672 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'
12673 ;;
12674 esac
12675
12676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12677 hardcode_libdir_separator_CXX=:
12678
12679 # Commands to make compiler produce verbose output that lists
12680 # what "hidden" libraries, object files and flags are used when
12681 # linking a shared library.
12682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12683
12684 else
12685 # FIXME: insert proper C++ library support
12686 ld_shlibs_CXX=no
12687 fi
12688 ;;
12689 esac
12690 ;;
12691
12692 psos*)
12693 # FIXME: insert proper C++ library support
12694 ld_shlibs_CXX=no
12695 ;;
12696
12697 sunos4*)
12698 case $cc_basename in
12699 CC*)
12700 # Sun C++ 4.x
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 lcc*)
12705 # Lucid
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12708 ;;
12709 *)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12712 ;;
12713 esac
12714 ;;
12715
12716 solaris*)
12717 case $cc_basename in
12718 CC*)
12719 # Sun C++ 4.2, 5.x and Centerline C++
12720 archive_cmds_need_lc_CXX=yes
12721 no_undefined_flag_CXX=' -zdefs'
12722 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12723 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12724 $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'
12725
12726 hardcode_libdir_flag_spec_CXX='-R$libdir'
12727 hardcode_shlibpath_var_CXX=no
12728 case $host_os in
12729 solaris2.[0-5] | solaris2.[0-5].*) ;;
12730 *)
12731 # The compiler driver will combine and reorder linker options,
12732 # but understands `-z linker_flag'.
12733 # Supported since Solaris 2.6 (maybe 2.5.1?)
12734 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12735 ;;
12736 esac
12737 link_all_deplibs_CXX=yes
12738
12739 output_verbose_link_cmd='func_echo_all'
12740
12741 # Archives containing C++ object files must be created using
12742 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12743 # necessary to make sure instantiated templates are included
12744 # in the archive.
12745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12746 ;;
12747 gcx*)
12748 # Green Hills C++ Compiler
12749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12750
12751 # The C++ compiler must be used to create the archive.
12752 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12753 ;;
12754 *)
12755 # GNU C++ compiler with Solaris linker
12756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12757 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12758 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12759 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12760 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12761 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12762
12763 # Commands to make compiler produce verbose output that lists
12764 # what "hidden" libraries, object files and flags are used when
12765 # linking a shared library.
12766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12767 else
12768 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12769 # platform.
12770 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12771 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12772 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12773
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12778 fi
12779
12780 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12781 case $host_os in
12782 solaris2.[0-5] | solaris2.[0-5].*) ;;
12783 *)
12784 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12785 ;;
12786 esac
12787 fi
12788 ;;
12789 esac
12790 ;;
12791
12792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12793 no_undefined_flag_CXX='${wl}-z,text'
12794 archive_cmds_need_lc_CXX=no
12795 hardcode_shlibpath_var_CXX=no
12796 runpath_var='LD_RUN_PATH'
12797
12798 case $cc_basename in
12799 CC*)
12800 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12801 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12802 ;;
12803 *)
12804 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12805 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12806 ;;
12807 esac
12808 ;;
12809
12810 sysv5* | sco3.2v5* | sco5v6*)
12811 # Note: We can NOT use -z defs as we might desire, because we do not
12812 # link with -lc, and that would cause any symbols used from libc to
12813 # always be unresolved, which means just about no library would
12814 # ever link correctly. If we're not using GNU ld we use -z text
12815 # though, which does catch some bad symbols but isn't as heavy-handed
12816 # as -z defs.
12817 no_undefined_flag_CXX='${wl}-z,text'
12818 allow_undefined_flag_CXX='${wl}-z,nodefs'
12819 archive_cmds_need_lc_CXX=no
12820 hardcode_shlibpath_var_CXX=no
12821 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12822 hardcode_libdir_separator_CXX=':'
12823 link_all_deplibs_CXX=yes
12824 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12825 runpath_var='LD_RUN_PATH'
12826
12827 case $cc_basename in
12828 CC*)
12829 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12830 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12831 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12832 '"$old_archive_cmds_CXX"
12833 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12834 '"$reload_cmds_CXX"
12835 ;;
12836 *)
12837 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12838 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 esac
12841 ;;
12842
12843 tandem*)
12844 case $cc_basename in
12845 NCC*)
12846 # NonStop-UX NCC 3.20
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850 *)
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 ;;
12854 esac
12855 ;;
12856
12857 vxworks*)
12858 # FIXME: insert proper C++ library support
12859 ld_shlibs_CXX=no
12860 ;;
12861
12862 *)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 esac
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12869 $as_echo "$ld_shlibs_CXX" >&6; }
12870 test "$ld_shlibs_CXX" = no && can_build_shared=no
12871
12872 GCC_CXX="$GXX"
12873 LD_CXX="$LD"
12874
12875 ## CAVEAT EMPTOR:
12876 ## There is no encapsulation within the following macros, do not change
12877 ## the running order or otherwise move them around unless you know exactly
12878 ## what you are doing...
12879 # Dependencies to place before and after the object being linked:
12880 predep_objects_CXX=
12881 postdep_objects_CXX=
12882 predeps_CXX=
12883 postdeps_CXX=
12884 compiler_lib_search_path_CXX=
12885
12886 cat > conftest.$ac_ext <<_LT_EOF
12887 class Foo
12888 {
12889 public:
12890 Foo (void) { a = 0; }
12891 private:
12892 int a;
12893 };
12894 _LT_EOF
12895
12896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12897 (eval $ac_compile) 2>&5
12898 ac_status=$?
12899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12900 test $ac_status = 0; }; then
12901 # Parse the compiler output and extract the necessary
12902 # objects, libraries and library flags.
12903
12904 # Sentinel used to keep track of whether or not we are before
12905 # the conftest object file.
12906 pre_test_object_deps_done=no
12907
12908 for p in `eval "$output_verbose_link_cmd"`; do
12909 case $p in
12910
12911 -L* | -R* | -l*)
12912 # Some compilers place space between "-{L,R}" and the path.
12913 # Remove the space.
12914 if test $p = "-L" ||
12915 test $p = "-R"; then
12916 prev=$p
12917 continue
12918 else
12919 prev=
12920 fi
12921
12922 if test "$pre_test_object_deps_done" = no; then
12923 case $p in
12924 -L* | -R*)
12925 # Internal compiler library paths should come after those
12926 # provided the user. The postdeps already come after the
12927 # user supplied libs so there is no need to process them.
12928 if test -z "$compiler_lib_search_path_CXX"; then
12929 compiler_lib_search_path_CXX="${prev}${p}"
12930 else
12931 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12932 fi
12933 ;;
12934 # The "-l" case would never come before the object being
12935 # linked, so don't bother handling this case.
12936 esac
12937 else
12938 if test -z "$postdeps_CXX"; then
12939 postdeps_CXX="${prev}${p}"
12940 else
12941 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12942 fi
12943 fi
12944 ;;
12945
12946 *.$objext)
12947 # This assumes that the test object file only shows up
12948 # once in the compiler output.
12949 if test "$p" = "conftest.$objext"; then
12950 pre_test_object_deps_done=yes
12951 continue
12952 fi
12953
12954 if test "$pre_test_object_deps_done" = no; then
12955 if test -z "$predep_objects_CXX"; then
12956 predep_objects_CXX="$p"
12957 else
12958 predep_objects_CXX="$predep_objects_CXX $p"
12959 fi
12960 else
12961 if test -z "$postdep_objects_CXX"; then
12962 postdep_objects_CXX="$p"
12963 else
12964 postdep_objects_CXX="$postdep_objects_CXX $p"
12965 fi
12966 fi
12967 ;;
12968
12969 *) ;; # Ignore the rest.
12970
12971 esac
12972 done
12973
12974 # Clean up.
12975 rm -f a.out a.exe
12976 else
12977 echo "libtool.m4: error: problem compiling CXX test program"
12978 fi
12979
12980 $RM -f confest.$objext
12981
12982 # PORTME: override above test on systems where it is broken
12983 case $host_os in
12984 interix[3-9]*)
12985 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12986 # hack all around it, let's just trust "g++" to DTRT.
12987 predep_objects_CXX=
12988 postdep_objects_CXX=
12989 postdeps_CXX=
12990 ;;
12991
12992 linux*)
12993 case `$CC -V 2>&1 | sed 5q` in
12994 *Sun\ C*)
12995 # Sun C++ 5.9
12996
12997 # The more standards-conforming stlport4 library is
12998 # incompatible with the Cstd library. Avoid specifying
12999 # it if it's in CXXFLAGS. Ignore libCrun as
13000 # -library=stlport4 depends on it.
13001 case " $CXX $CXXFLAGS " in
13002 *" -library=stlport4 "*)
13003 solaris_use_stlport4=yes
13004 ;;
13005 esac
13006
13007 if test "$solaris_use_stlport4" != yes; then
13008 postdeps_CXX='-library=Cstd -library=Crun'
13009 fi
13010 ;;
13011 esac
13012 ;;
13013
13014 solaris*)
13015 case $cc_basename in
13016 CC*)
13017 # The more standards-conforming stlport4 library is
13018 # incompatible with the Cstd library. Avoid specifying
13019 # it if it's in CXXFLAGS. Ignore libCrun as
13020 # -library=stlport4 depends on it.
13021 case " $CXX $CXXFLAGS " in
13022 *" -library=stlport4 "*)
13023 solaris_use_stlport4=yes
13024 ;;
13025 esac
13026
13027 # Adding this requires a known-good setup of shared libraries for
13028 # Sun compiler versions before 5.6, else PIC objects from an old
13029 # archive will be linked into the output, leading to subtle bugs.
13030 if test "$solaris_use_stlport4" != yes; then
13031 postdeps_CXX='-library=Cstd -library=Crun'
13032 fi
13033 ;;
13034 esac
13035 ;;
13036 esac
13037
13038
13039 case " $postdeps_CXX " in
13040 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13041 esac
13042 compiler_lib_search_dirs_CXX=
13043 if test -n "${compiler_lib_search_path_CXX}"; then
13044 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13045 fi
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
13077 lt_prog_compiler_wl_CXX=
13078 lt_prog_compiler_pic_CXX=
13079 lt_prog_compiler_static_CXX=
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13082 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13083
13084 # C++ specific cases for pic, static, wl, etc.
13085 if test "$GXX" = yes; then
13086 lt_prog_compiler_wl_CXX='-Wl,'
13087 lt_prog_compiler_static_CXX='-static'
13088
13089 case $host_os in
13090 aix*)
13091 # All AIX code is PIC.
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 now supports IA64 processor
13094 lt_prog_compiler_static_CXX='-Bstatic'
13095 fi
13096 lt_prog_compiler_pic_CXX='-fPIC'
13097 ;;
13098
13099 amigaos*)
13100 case $host_cpu in
13101 powerpc)
13102 # see comment about AmigaOS4 .so support
13103 lt_prog_compiler_pic_CXX='-fPIC'
13104 ;;
13105 m68k)
13106 # FIXME: we need at least 68020 code to build shared libraries, but
13107 # adding the `-m68020' flag to GCC prevents building anything better,
13108 # like `-m68040'.
13109 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13110 ;;
13111 esac
13112 ;;
13113
13114 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13115 # PIC is the default for these OSes.
13116 ;;
13117 mingw* | cygwin* | os2* | pw32* | cegcc*)
13118 # This hack is so that the source file can tell whether it is being
13119 # built for inclusion in a dll (and should export symbols for example).
13120 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13121 # (--disable-auto-import) libraries
13122 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13123 ;;
13124 darwin* | rhapsody*)
13125 # PIC is the default on this platform
13126 # Common symbols not allowed in MH_DYLIB files
13127 lt_prog_compiler_pic_CXX='-fno-common'
13128 ;;
13129 *djgpp*)
13130 # DJGPP does not support shared libraries at all
13131 lt_prog_compiler_pic_CXX=
13132 ;;
13133 haiku*)
13134 # PIC is the default for Haiku.
13135 # The "-static" flag exists, but is broken.
13136 lt_prog_compiler_static_CXX=
13137 ;;
13138 interix[3-9]*)
13139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13140 # Instead, we relocate shared libraries at runtime.
13141 ;;
13142 sysv4*MP*)
13143 if test -d /usr/nec; then
13144 lt_prog_compiler_pic_CXX=-Kconform_pic
13145 fi
13146 ;;
13147 hpux*)
13148 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13149 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13150 # sets the default TLS model and affects inlining.
13151 case $host_cpu in
13152 hppa*64*)
13153 ;;
13154 *)
13155 lt_prog_compiler_pic_CXX='-fPIC'
13156 ;;
13157 esac
13158 ;;
13159 *qnx* | *nto*)
13160 # QNX uses GNU C++, but need to define -shared option too, otherwise
13161 # it will coredump.
13162 lt_prog_compiler_pic_CXX='-fPIC -shared'
13163 ;;
13164 *)
13165 lt_prog_compiler_pic_CXX='-fPIC'
13166 ;;
13167 esac
13168 else
13169 case $host_os in
13170 aix[4-9]*)
13171 # All AIX code is PIC.
13172 if test "$host_cpu" = ia64; then
13173 # AIX 5 now supports IA64 processor
13174 lt_prog_compiler_static_CXX='-Bstatic'
13175 else
13176 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13177 fi
13178 ;;
13179 chorus*)
13180 case $cc_basename in
13181 cxch68*)
13182 # Green Hills C++ Compiler
13183 # _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"
13184 ;;
13185 esac
13186 ;;
13187 dgux*)
13188 case $cc_basename in
13189 ec++*)
13190 lt_prog_compiler_pic_CXX='-KPIC'
13191 ;;
13192 ghcx*)
13193 # Green Hills C++ Compiler
13194 lt_prog_compiler_pic_CXX='-pic'
13195 ;;
13196 *)
13197 ;;
13198 esac
13199 ;;
13200 freebsd* | dragonfly*)
13201 # FreeBSD uses GNU C++
13202 ;;
13203 hpux9* | hpux10* | hpux11*)
13204 case $cc_basename in
13205 CC*)
13206 lt_prog_compiler_wl_CXX='-Wl,'
13207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13208 if test "$host_cpu" != ia64; then
13209 lt_prog_compiler_pic_CXX='+Z'
13210 fi
13211 ;;
13212 aCC*)
13213 lt_prog_compiler_wl_CXX='-Wl,'
13214 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13215 case $host_cpu in
13216 hppa*64*|ia64*)
13217 # +Z the default
13218 ;;
13219 *)
13220 lt_prog_compiler_pic_CXX='+Z'
13221 ;;
13222 esac
13223 ;;
13224 *)
13225 ;;
13226 esac
13227 ;;
13228 interix*)
13229 # This is c89, which is MS Visual C++ (no shared libs)
13230 # Anyone wants to do a port?
13231 ;;
13232 irix5* | irix6* | nonstopux*)
13233 case $cc_basename in
13234 CC*)
13235 lt_prog_compiler_wl_CXX='-Wl,'
13236 lt_prog_compiler_static_CXX='-non_shared'
13237 # CC pic flag -KPIC is the default.
13238 ;;
13239 *)
13240 ;;
13241 esac
13242 ;;
13243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13244 case $cc_basename in
13245 KCC*)
13246 # KAI C++ Compiler
13247 lt_prog_compiler_wl_CXX='--backend -Wl,'
13248 lt_prog_compiler_pic_CXX='-fPIC'
13249 ;;
13250 ecpc* )
13251 # old Intel C++ for x86_64 which still supported -KPIC.
13252 lt_prog_compiler_wl_CXX='-Wl,'
13253 lt_prog_compiler_pic_CXX='-KPIC'
13254 lt_prog_compiler_static_CXX='-static'
13255 ;;
13256 icpc* )
13257 # Intel C++, used to be incompatible with GCC.
13258 # ICC 10 doesn't accept -KPIC any more.
13259 lt_prog_compiler_wl_CXX='-Wl,'
13260 lt_prog_compiler_pic_CXX='-fPIC'
13261 lt_prog_compiler_static_CXX='-static'
13262 ;;
13263 pgCC* | pgcpp*)
13264 # Portland Group C++ compiler
13265 lt_prog_compiler_wl_CXX='-Wl,'
13266 lt_prog_compiler_pic_CXX='-fpic'
13267 lt_prog_compiler_static_CXX='-Bstatic'
13268 ;;
13269 cxx*)
13270 # Compaq C++
13271 # Make sure the PIC flag is empty. It appears that all Alpha
13272 # Linux and Compaq Tru64 Unix objects are PIC.
13273 lt_prog_compiler_pic_CXX=
13274 lt_prog_compiler_static_CXX='-non_shared'
13275 ;;
13276 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13277 # IBM XL 8.0, 9.0 on PPC and BlueGene
13278 lt_prog_compiler_wl_CXX='-Wl,'
13279 lt_prog_compiler_pic_CXX='-qpic'
13280 lt_prog_compiler_static_CXX='-qstaticlink'
13281 ;;
13282 *)
13283 case `$CC -V 2>&1 | sed 5q` in
13284 *Sun\ C*)
13285 # Sun C++ 5.9
13286 lt_prog_compiler_pic_CXX='-KPIC'
13287 lt_prog_compiler_static_CXX='-Bstatic'
13288 lt_prog_compiler_wl_CXX='-Qoption ld '
13289 ;;
13290 esac
13291 ;;
13292 esac
13293 ;;
13294 lynxos*)
13295 ;;
13296 m88k*)
13297 ;;
13298 mvs*)
13299 case $cc_basename in
13300 cxx*)
13301 lt_prog_compiler_pic_CXX='-W c,exportall'
13302 ;;
13303 *)
13304 ;;
13305 esac
13306 ;;
13307 netbsd*)
13308 ;;
13309 *qnx* | *nto*)
13310 # QNX uses GNU C++, but need to define -shared option too, otherwise
13311 # it will coredump.
13312 lt_prog_compiler_pic_CXX='-fPIC -shared'
13313 ;;
13314 osf3* | osf4* | osf5*)
13315 case $cc_basename in
13316 KCC*)
13317 lt_prog_compiler_wl_CXX='--backend -Wl,'
13318 ;;
13319 RCC*)
13320 # Rational C++ 2.4.1
13321 lt_prog_compiler_pic_CXX='-pic'
13322 ;;
13323 cxx*)
13324 # Digital/Compaq C++
13325 lt_prog_compiler_wl_CXX='-Wl,'
13326 # Make sure the PIC flag is empty. It appears that all Alpha
13327 # Linux and Compaq Tru64 Unix objects are PIC.
13328 lt_prog_compiler_pic_CXX=
13329 lt_prog_compiler_static_CXX='-non_shared'
13330 ;;
13331 *)
13332 ;;
13333 esac
13334 ;;
13335 psos*)
13336 ;;
13337 solaris*)
13338 case $cc_basename in
13339 CC*)
13340 # Sun C++ 4.2, 5.x and Centerline C++
13341 lt_prog_compiler_pic_CXX='-KPIC'
13342 lt_prog_compiler_static_CXX='-Bstatic'
13343 lt_prog_compiler_wl_CXX='-Qoption ld '
13344 ;;
13345 gcx*)
13346 # Green Hills C++ Compiler
13347 lt_prog_compiler_pic_CXX='-PIC'
13348 ;;
13349 *)
13350 ;;
13351 esac
13352 ;;
13353 sunos4*)
13354 case $cc_basename in
13355 CC*)
13356 # Sun C++ 4.x
13357 lt_prog_compiler_pic_CXX='-pic'
13358 lt_prog_compiler_static_CXX='-Bstatic'
13359 ;;
13360 lcc*)
13361 # Lucid
13362 lt_prog_compiler_pic_CXX='-pic'
13363 ;;
13364 *)
13365 ;;
13366 esac
13367 ;;
13368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13369 case $cc_basename in
13370 CC*)
13371 lt_prog_compiler_wl_CXX='-Wl,'
13372 lt_prog_compiler_pic_CXX='-KPIC'
13373 lt_prog_compiler_static_CXX='-Bstatic'
13374 ;;
13375 esac
13376 ;;
13377 tandem*)
13378 case $cc_basename in
13379 NCC*)
13380 # NonStop-UX NCC 3.20
13381 lt_prog_compiler_pic_CXX='-KPIC'
13382 ;;
13383 *)
13384 ;;
13385 esac
13386 ;;
13387 vxworks*)
13388 ;;
13389 *)
13390 lt_prog_compiler_can_build_shared_CXX=no
13391 ;;
13392 esac
13393 fi
13394
13395 case $host_os in
13396 # For platforms which do not support PIC, -DPIC is meaningless:
13397 *djgpp*)
13398 lt_prog_compiler_pic_CXX=
13399 ;;
13400 *)
13401 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13402 ;;
13403 esac
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13405 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13406
13407
13408
13409 #
13410 # Check to make sure the PIC flag actually works.
13411 #
13412 if test -n "$lt_prog_compiler_pic_CXX"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13415 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 lt_cv_prog_compiler_pic_works_CXX=no
13419 ac_outfile=conftest.$ac_objext
13420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13421 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13422 # Insert the option either (1) after the last *FLAGS variable, or
13423 # (2) before a word containing "conftest.", or (3) at the end.
13424 # Note that $ac_compile itself does not contain backslashes and begins
13425 # with a dollar sign (not a hyphen), so the echo should work correctly.
13426 # The option is referenced via a variable to avoid confusing sed.
13427 lt_compile=`echo "$ac_compile" | $SED \
13428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13430 -e 's:$: $lt_compiler_flag:'`
13431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13432 (eval "$lt_compile" 2>conftest.err)
13433 ac_status=$?
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 if (exit $ac_status) && test -s "$ac_outfile"; then
13437 # The compiler can only warn and ignore the option if not recognized
13438 # So say no if there are warnings other than the usual output.
13439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13442 lt_cv_prog_compiler_pic_works_CXX=yes
13443 fi
13444 fi
13445 $RM conftest*
13446
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13449 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13450
13451 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13452 case $lt_prog_compiler_pic_CXX in
13453 "" | " "*) ;;
13454 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13455 esac
13456 else
13457 lt_prog_compiler_pic_CXX=
13458 lt_prog_compiler_can_build_shared_CXX=no
13459 fi
13460
13461 fi
13462
13463
13464
13465 #
13466 # Check to make sure the static flag actually works.
13467 #
13468 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13470 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13471 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 lt_cv_prog_compiler_static_works_CXX=no
13475 save_LDFLAGS="$LDFLAGS"
13476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13479 # The linker can only warn and ignore the option if not recognized
13480 # So say no if there are warnings
13481 if test -s conftest.err; then
13482 # Append any errors to the config.log.
13483 cat conftest.err 1>&5
13484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13486 if diff conftest.exp conftest.er2 >/dev/null; then
13487 lt_cv_prog_compiler_static_works_CXX=yes
13488 fi
13489 else
13490 lt_cv_prog_compiler_static_works_CXX=yes
13491 fi
13492 fi
13493 $RM -r conftest*
13494 LDFLAGS="$save_LDFLAGS"
13495
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13498 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13499
13500 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13501 :
13502 else
13503 lt_prog_compiler_static_CXX=
13504 fi
13505
13506
13507
13508
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13511 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 lt_cv_prog_compiler_c_o_CXX=no
13515 $RM -r conftest 2>/dev/null
13516 mkdir conftest
13517 cd conftest
13518 mkdir out
13519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13520
13521 lt_compiler_flag="-o out/conftest2.$ac_objext"
13522 # Insert the option either (1) after the last *FLAGS variable, or
13523 # (2) before a word containing "conftest.", or (3) at the end.
13524 # Note that $ac_compile itself does not contain backslashes and begins
13525 # with a dollar sign (not a hyphen), so the echo should work correctly.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
13530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13531 (eval "$lt_compile" 2>out/conftest.err)
13532 ac_status=$?
13533 cat out/conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13536 then
13537 # The compiler can only warn and ignore the option if not recognized
13538 # So say no if there are warnings
13539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13542 lt_cv_prog_compiler_c_o_CXX=yes
13543 fi
13544 fi
13545 chmod u+w . 2>&5
13546 $RM conftest*
13547 # SGI C++ compiler will create directory out/ii_files/ for
13548 # template instantiation
13549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13550 $RM out/* && rmdir out
13551 cd ..
13552 $RM -r conftest
13553 $RM conftest*
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13557 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13558
13559
13560
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13563 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 lt_cv_prog_compiler_c_o_CXX=no
13567 $RM -r conftest 2>/dev/null
13568 mkdir conftest
13569 cd conftest
13570 mkdir out
13571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13572
13573 lt_compiler_flag="-o out/conftest2.$ac_objext"
13574 # Insert the option either (1) after the last *FLAGS variable, or
13575 # (2) before a word containing "conftest.", or (3) at the end.
13576 # Note that $ac_compile itself does not contain backslashes and begins
13577 # with a dollar sign (not a hyphen), so the echo should work correctly.
13578 lt_compile=`echo "$ac_compile" | $SED \
13579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13581 -e 's:$: $lt_compiler_flag:'`
13582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13583 (eval "$lt_compile" 2>out/conftest.err)
13584 ac_status=$?
13585 cat out/conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13588 then
13589 # The compiler can only warn and ignore the option if not recognized
13590 # So say no if there are warnings
13591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13594 lt_cv_prog_compiler_c_o_CXX=yes
13595 fi
13596 fi
13597 chmod u+w . 2>&5
13598 $RM conftest*
13599 # SGI C++ compiler will create directory out/ii_files/ for
13600 # template instantiation
13601 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13602 $RM out/* && rmdir out
13603 cd ..
13604 $RM -r conftest
13605 $RM conftest*
13606
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13609 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13610
13611
13612
13613
13614 hard_links="nottested"
13615 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13616 # do not overwrite the value of need_locks provided by the user
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13618 $as_echo_n "checking if we can lock with hard links... " >&6; }
13619 hard_links=yes
13620 $RM conftest*
13621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13622 touch conftest.a
13623 ln conftest.a conftest.b 2>&5 || hard_links=no
13624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13626 $as_echo "$hard_links" >&6; }
13627 if test "$hard_links" = no; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13629 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13630 need_locks=warn
13631 fi
13632 else
13633 need_locks=no
13634 fi
13635
13636
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13639 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13640
13641 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13642 case $host_os in
13643 aix[4-9]*)
13644 # If we're using GNU nm, then we don't want the "-C" option.
13645 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13646 # Also, AIX nm treats weak defined symbols like other global defined
13647 # symbols, whereas GNU nm marks them as "W".
13648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13649 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'
13650 else
13651 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'
13652 fi
13653 ;;
13654 pw32*)
13655 export_symbols_cmds_CXX="$ltdll_cmds"
13656 ;;
13657 cygwin* | mingw* | cegcc*)
13658 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'
13659 ;;
13660 *)
13661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13662 ;;
13663 esac
13664 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13665
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13667 $as_echo "$ld_shlibs_CXX" >&6; }
13668 test "$ld_shlibs_CXX" = no && can_build_shared=no
13669
13670 with_gnu_ld_CXX=$with_gnu_ld
13671
13672
13673
13674
13675
13676
13677 #
13678 # Do we need to explicitly link libc?
13679 #
13680 case "x$archive_cmds_need_lc_CXX" in
13681 x|xyes)
13682 # Assume -lc should be added
13683 archive_cmds_need_lc_CXX=yes
13684
13685 if test "$enable_shared" = yes && test "$GCC" = yes; then
13686 case $archive_cmds_CXX in
13687 *'~'*)
13688 # FIXME: we may have to deal with multi-command sequences.
13689 ;;
13690 '$CC '*)
13691 # Test whether the compiler implicitly links with -lc since on some
13692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13693 # to ld, don't add -lc before -lgcc.
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13696 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 $RM conftest*
13700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13701
13702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13703 (eval $ac_compile) 2>&5
13704 ac_status=$?
13705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13706 test $ac_status = 0; } 2>conftest.err; then
13707 soname=conftest
13708 lib=conftest
13709 libobjs=conftest.$ac_objext
13710 deplibs=
13711 wl=$lt_prog_compiler_wl_CXX
13712 pic_flag=$lt_prog_compiler_pic_CXX
13713 compiler_flags=-v
13714 linker_flags=-v
13715 verstring=
13716 output_objdir=.
13717 libname=conftest
13718 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13719 allow_undefined_flag_CXX=
13720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13721 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13722 ac_status=$?
13723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13724 test $ac_status = 0; }
13725 then
13726 lt_cv_archive_cmds_need_lc_CXX=no
13727 else
13728 lt_cv_archive_cmds_need_lc_CXX=yes
13729 fi
13730 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13731 else
13732 cat conftest.err 1>&5
13733 fi
13734 $RM conftest*
13735
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13738 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13739 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13740 ;;
13741 esac
13742 fi
13743 ;;
13744 esac
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
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13811
13812 library_names_spec=
13813 libname_spec='lib$name'
13814 soname_spec=
13815 shrext_cmds=".so"
13816 postinstall_cmds=
13817 postuninstall_cmds=
13818 finish_cmds=
13819 finish_eval=
13820 shlibpath_var=
13821 shlibpath_overrides_runpath=unknown
13822 version_type=none
13823 dynamic_linker="$host_os ld.so"
13824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13825 need_lib_prefix=unknown
13826 hardcode_into_libs=no
13827
13828 # when you set need_version to no, make sure it does not cause -set_version
13829 # flags to be left without arguments
13830 need_version=unknown
13831
13832 case $host_os in
13833 aix3*)
13834 version_type=linux
13835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13836 shlibpath_var=LIBPATH
13837
13838 # AIX 3 has no versioning support, so we append a major version to the name.
13839 soname_spec='${libname}${release}${shared_ext}$major'
13840 ;;
13841
13842 aix[4-9]*)
13843 version_type=linux
13844 need_lib_prefix=no
13845 need_version=no
13846 hardcode_into_libs=yes
13847 if test "$host_cpu" = ia64; then
13848 # AIX 5 supports IA64
13849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 else
13852 # With GCC up to 2.95.x, collect2 would create an import file
13853 # for dependence libraries. The import file would start with
13854 # the line `#! .'. This would cause the generated library to
13855 # depend on `.', always an invalid library. This was fixed in
13856 # development snapshots of GCC prior to 3.0.
13857 case $host_os in
13858 aix4 | aix4.[01] | aix4.[01].*)
13859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13860 echo ' yes '
13861 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13862 :
13863 else
13864 can_build_shared=no
13865 fi
13866 ;;
13867 esac
13868 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13869 # soname into executable. Probably we can add versioning support to
13870 # collect2, so additional links can be useful in future.
13871 if test "$aix_use_runtimelinking" = yes; then
13872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13873 # instead of lib<name>.a to let people know that these are not
13874 # typical AIX shared libraries.
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876 else
13877 # We preserve .a as extension for shared libraries through AIX4.2
13878 # and later when we are not doing run time linking.
13879 library_names_spec='${libname}${release}.a $libname.a'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 fi
13882 shlibpath_var=LIBPATH
13883 fi
13884 ;;
13885
13886 amigaos*)
13887 case $host_cpu in
13888 powerpc)
13889 # Since July 2007 AmigaOS4 officially supports .so libraries.
13890 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 ;;
13893 m68k)
13894 library_names_spec='$libname.ixlibrary $libname.a'
13895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13896 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'
13897 ;;
13898 esac
13899 ;;
13900
13901 beos*)
13902 library_names_spec='${libname}${shared_ext}'
13903 dynamic_linker="$host_os ld.so"
13904 shlibpath_var=LIBRARY_PATH
13905 ;;
13906
13907 bsdi[45]*)
13908 version_type=linux
13909 need_version=no
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13911 soname_spec='${libname}${release}${shared_ext}$major'
13912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13913 shlibpath_var=LD_LIBRARY_PATH
13914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13916 # the default ld.so.conf also contains /usr/contrib/lib and
13917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13918 # libtool to hard-code these into programs
13919 ;;
13920
13921 cygwin* | mingw* | pw32* | cegcc*)
13922 version_type=windows
13923 shrext_cmds=".dll"
13924 need_version=no
13925 need_lib_prefix=no
13926
13927 case $GCC,$host_os in
13928 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13929 library_names_spec='$libname.dll.a'
13930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13931 postinstall_cmds='base_file=`basename \${file}`~
13932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13933 dldir=$destdir/`dirname \$dlpath`~
13934 test -d \$dldir || mkdir -p \$dldir~
13935 $install_prog $dir/$dlname \$dldir/$dlname~
13936 chmod a+x \$dldir/$dlname~
13937 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13938 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13939 fi'
13940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13941 dlpath=$dir/\$dldll~
13942 $RM \$dlpath'
13943 shlibpath_overrides_runpath=yes
13944
13945 case $host_os in
13946 cygwin*)
13947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13949
13950 ;;
13951 mingw* | cegcc*)
13952 # MinGW DLLs use traditional 'lib' prefix
13953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13954 ;;
13955 pw32*)
13956 # pw32 DLLs use 'pw' prefix rather than 'lib'
13957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13958 ;;
13959 esac
13960 ;;
13961
13962 *)
13963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13964 ;;
13965 esac
13966 dynamic_linker='Win32 ld.exe'
13967 # FIXME: first we should search . and the directory the executable is in
13968 shlibpath_var=PATH
13969 ;;
13970
13971 darwin* | rhapsody*)
13972 dynamic_linker="$host_os dyld"
13973 version_type=darwin
13974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13977 soname_spec='${libname}${release}${major}$shared_ext'
13978 shlibpath_overrides_runpath=yes
13979 shlibpath_var=DYLD_LIBRARY_PATH
13980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13981
13982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13983 ;;
13984
13985 dgux*)
13986 version_type=linux
13987 need_lib_prefix=no
13988 need_version=no
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 ;;
13993
13994 freebsd* | dragonfly*)
13995 # DragonFly does not have aout. When/if they implement a new
13996 # versioning mechanism, adjust this.
13997 if test -x /usr/bin/objformat; then
13998 objformat=`/usr/bin/objformat`
13999 else
14000 case $host_os in
14001 freebsd[23].*) objformat=aout ;;
14002 *) objformat=elf ;;
14003 esac
14004 fi
14005 version_type=freebsd-$objformat
14006 case $version_type in
14007 freebsd-elf*)
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14009 need_version=no
14010 need_lib_prefix=no
14011 ;;
14012 freebsd-*)
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14014 need_version=yes
14015 ;;
14016 esac
14017 shlibpath_var=LD_LIBRARY_PATH
14018 case $host_os in
14019 freebsd2.*)
14020 shlibpath_overrides_runpath=yes
14021 ;;
14022 freebsd3.[01]* | freebsdelf3.[01]*)
14023 shlibpath_overrides_runpath=yes
14024 hardcode_into_libs=yes
14025 ;;
14026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14028 shlibpath_overrides_runpath=no
14029 hardcode_into_libs=yes
14030 ;;
14031 *) # from 4.6 on, and DragonFly
14032 shlibpath_overrides_runpath=yes
14033 hardcode_into_libs=yes
14034 ;;
14035 esac
14036 ;;
14037
14038 gnu*)
14039 version_type=linux
14040 need_lib_prefix=no
14041 need_version=no
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14043 soname_spec='${libname}${release}${shared_ext}$major'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 hardcode_into_libs=yes
14046 ;;
14047
14048 haiku*)
14049 version_type=linux
14050 need_lib_prefix=no
14051 need_version=no
14052 dynamic_linker="$host_os runtime_loader"
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 shlibpath_var=LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14058 hardcode_into_libs=yes
14059 ;;
14060
14061 hpux9* | hpux10* | hpux11*)
14062 # Give a soname corresponding to the major version so that dld.sl refuses to
14063 # link against other versions.
14064 version_type=sunos
14065 need_lib_prefix=no
14066 need_version=no
14067 case $host_cpu in
14068 ia64*)
14069 shrext_cmds='.so'
14070 hardcode_into_libs=yes
14071 dynamic_linker="$host_os dld.so"
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 if test "X$HPUX_IA64_MODE" = X32; then
14077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14078 else
14079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14080 fi
14081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14082 ;;
14083 hppa*64*)
14084 shrext_cmds='.sl'
14085 hardcode_into_libs=yes
14086 dynamic_linker="$host_os dld.sl"
14087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14093 ;;
14094 *)
14095 shrext_cmds='.sl'
14096 dynamic_linker="$host_os dld.sl"
14097 shlibpath_var=SHLIB_PATH
14098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 ;;
14102 esac
14103 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14104 postinstall_cmds='chmod 555 $lib'
14105 # or fails outright, so override atomically:
14106 install_override_mode=555
14107 ;;
14108
14109 interix[3-9]*)
14110 version_type=linux
14111 need_lib_prefix=no
14112 need_version=no
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=no
14118 hardcode_into_libs=yes
14119 ;;
14120
14121 irix5* | irix6* | nonstopux*)
14122 case $host_os in
14123 nonstopux*) version_type=nonstopux ;;
14124 *)
14125 if test "$lt_cv_prog_gnu_ld" = yes; then
14126 version_type=linux
14127 else
14128 version_type=irix
14129 fi ;;
14130 esac
14131 need_lib_prefix=no
14132 need_version=no
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14135 case $host_os in
14136 irix5* | nonstopux*)
14137 libsuff= shlibsuff=
14138 ;;
14139 *)
14140 case $LD in # libtool.m4 will add one of these switches to LD
14141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14142 libsuff= shlibsuff= libmagic=32-bit;;
14143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14144 libsuff=32 shlibsuff=N32 libmagic=N32;;
14145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14147 *) libsuff= shlibsuff= libmagic=never-match;;
14148 esac
14149 ;;
14150 esac
14151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14152 shlibpath_overrides_runpath=no
14153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14155 hardcode_into_libs=yes
14156 ;;
14157
14158 # No shared lib support for Linux oldld, aout, or coff.
14159 linux*oldld* | linux*aout* | linux*coff*)
14160 dynamic_linker=no
14161 ;;
14162
14163 # This must be Linux ELF.
14164
14165 # uclinux* changes (here and below) have been submitted to the libtool
14166 # project, but have not yet been accepted: they are GCC-local changes
14167 # for the time being. (See
14168 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14169 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=no
14178
14179 # Some binutils ld are patched to set DT_RUNPATH
14180 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 lt_cv_shlibpath_overrides_runpath=no
14184 save_LDFLAGS=$LDFLAGS
14185 save_libdir=$libdir
14186 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14187 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190
14191 int
14192 main ()
14193 {
14194
14195 ;
14196 return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_cxx_try_link "$LINENO"; then :
14200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14201 lt_cv_shlibpath_overrides_runpath=yes
14202 fi
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14206 LDFLAGS=$save_LDFLAGS
14207 libdir=$save_libdir
14208
14209 fi
14210
14211 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14212
14213 # This implies no fast_install, which is unacceptable.
14214 # Some rework will be needed to allow for fast_install
14215 # before this can be enabled.
14216 hardcode_into_libs=yes
14217
14218 # Append ld.so.conf contents to the search path
14219 if test -f /etc/ld.so.conf; then
14220 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' ' '`
14221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14222 fi
14223
14224 # We used to test for /lib/ld.so.1 and disable shared libraries on
14225 # powerpc, because MkLinux only supported shared libraries with the
14226 # GNU dynamic linker. Since this was broken with cross compilers,
14227 # most powerpc-linux boxes support dynamic linking these days and
14228 # people can always --disable-shared, the test was removed, and we
14229 # assume the GNU/Linux dynamic linker is in use.
14230 dynamic_linker='GNU/Linux ld.so'
14231 ;;
14232
14233 netbsd*)
14234 version_type=sunos
14235 need_lib_prefix=no
14236 need_version=no
14237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14240 dynamic_linker='NetBSD (a.out) ld.so'
14241 else
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 dynamic_linker='NetBSD ld.elf_so'
14245 fi
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes
14248 hardcode_into_libs=yes
14249 ;;
14250
14251 newsos6)
14252 version_type=linux
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=yes
14256 ;;
14257
14258 *nto* | *qnx*)
14259 version_type=qnx
14260 need_lib_prefix=no
14261 need_version=no
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 soname_spec='${libname}${release}${shared_ext}$major'
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=no
14266 hardcode_into_libs=yes
14267 dynamic_linker='ldqnx.so'
14268 ;;
14269
14270 openbsd*)
14271 version_type=sunos
14272 sys_lib_dlsearch_path_spec="/usr/lib"
14273 need_lib_prefix=no
14274 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14275 case $host_os in
14276 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14277 *) need_version=no ;;
14278 esac
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14283 case $host_os in
14284 openbsd2.[89] | openbsd2.[89].*)
14285 shlibpath_overrides_runpath=no
14286 ;;
14287 *)
14288 shlibpath_overrides_runpath=yes
14289 ;;
14290 esac
14291 else
14292 shlibpath_overrides_runpath=yes
14293 fi
14294 ;;
14295
14296 os2*)
14297 libname_spec='$name'
14298 shrext_cmds=".dll"
14299 need_lib_prefix=no
14300 library_names_spec='$libname${shared_ext} $libname.a'
14301 dynamic_linker='OS/2 ld.exe'
14302 shlibpath_var=LIBPATH
14303 ;;
14304
14305 osf3* | osf4* | osf5*)
14306 version_type=osf
14307 need_lib_prefix=no
14308 need_version=no
14309 soname_spec='${libname}${release}${shared_ext}$major'
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14313 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14314 ;;
14315
14316 rdos*)
14317 dynamic_linker=no
14318 ;;
14319
14320 solaris*)
14321 version_type=linux
14322 need_lib_prefix=no
14323 need_version=no
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14326 shlibpath_var=LD_LIBRARY_PATH
14327 shlibpath_overrides_runpath=yes
14328 hardcode_into_libs=yes
14329 # ldd complains unless libraries are executable
14330 postinstall_cmds='chmod +x $lib'
14331 ;;
14332
14333 sunos4*)
14334 version_type=sunos
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14337 shlibpath_var=LD_LIBRARY_PATH
14338 shlibpath_overrides_runpath=yes
14339 if test "$with_gnu_ld" = yes; then
14340 need_lib_prefix=no
14341 fi
14342 need_version=yes
14343 ;;
14344
14345 sysv4 | sysv4.3*)
14346 version_type=linux
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 case $host_vendor in
14351 sni)
14352 shlibpath_overrides_runpath=no
14353 need_lib_prefix=no
14354 runpath_var=LD_RUN_PATH
14355 ;;
14356 siemens)
14357 need_lib_prefix=no
14358 ;;
14359 motorola)
14360 need_lib_prefix=no
14361 need_version=no
14362 shlibpath_overrides_runpath=no
14363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14364 ;;
14365 esac
14366 ;;
14367
14368 sysv4*MP*)
14369 if test -d /usr/nec ;then
14370 version_type=linux
14371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14372 soname_spec='$libname${shared_ext}.$major'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 fi
14375 ;;
14376
14377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14378 version_type=freebsd-elf
14379 need_lib_prefix=no
14380 need_version=no
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 shlibpath_var=LD_LIBRARY_PATH
14384 shlibpath_overrides_runpath=yes
14385 hardcode_into_libs=yes
14386 if test "$with_gnu_ld" = yes; then
14387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14388 else
14389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14390 case $host_os in
14391 sco3.2v5*)
14392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14393 ;;
14394 esac
14395 fi
14396 sys_lib_dlsearch_path_spec='/usr/lib'
14397 ;;
14398
14399 tpf*)
14400 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14401 version_type=linux
14402 need_lib_prefix=no
14403 need_version=no
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=no
14407 hardcode_into_libs=yes
14408 ;;
14409
14410 uts4*)
14411 version_type=linux
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 ;;
14416
14417 *)
14418 dynamic_linker=no
14419 ;;
14420 esac
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14422 $as_echo "$dynamic_linker" >&6; }
14423 test "$dynamic_linker" = no && can_build_shared=no
14424
14425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14426 if test "$GCC" = yes; then
14427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14428 fi
14429
14430 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14431 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14432 fi
14433 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14434 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14435 fi
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
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14475 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14476 hardcode_action_CXX=
14477 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14478 test -n "$runpath_var_CXX" ||
14479 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14480
14481 # We can hardcode non-existent directories.
14482 if test "$hardcode_direct_CXX" != no &&
14483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14484 # have to relink, otherwise we might link with an installed library
14485 # when we should be linking with a yet-to-be-installed one
14486 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14487 test "$hardcode_minus_L_CXX" != no; then
14488 # Linking always hardcodes the temporary library directory.
14489 hardcode_action_CXX=relink
14490 else
14491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14492 hardcode_action_CXX=immediate
14493 fi
14494 else
14495 # We cannot hardcode anything, or else we can only hardcode existing
14496 # directories.
14497 hardcode_action_CXX=unsupported
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14500 $as_echo "$hardcode_action_CXX" >&6; }
14501
14502 if test "$hardcode_action_CXX" = relink ||
14503 test "$inherit_rpath_CXX" = yes; then
14504 # Fast installation is not supported
14505 enable_fast_install=no
14506 elif test "$shlibpath_overrides_runpath" = yes ||
14507 test "$enable_shared" = no; then
14508 # Fast installation is not necessary
14509 enable_fast_install=needless
14510 fi
14511
14512
14513
14514
14515
14516
14517
14518 fi # test -n "$compiler"
14519
14520 CC=$lt_save_CC
14521 LDCXX=$LD
14522 LD=$lt_save_LD
14523 GCC=$lt_save_GCC
14524 with_gnu_ld=$lt_save_with_gnu_ld
14525 lt_cv_path_LDCXX=$lt_cv_path_LD
14526 lt_cv_path_LD=$lt_save_path_LD
14527 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14528 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14529 fi # test "$_lt_caught_CXX_error" != yes
14530
14531 ac_ext=c
14532 ac_cpp='$CPP $CPPFLAGS'
14533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14536
14537
14538
14539 visibility=
14540 if test "$GXX" = yes; then
14541 visibility=-fvisibility=hidden
14542 fi
14543
14544
14545 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14546 if test "x$ac_cv_have_decl_basename" = xyes; then :
14547 ac_have_decl=1
14548 else
14549 ac_have_decl=0
14550 fi
14551
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_DECL_BASENAME $ac_have_decl
14554 _ACEOF
14555
14556
14557
14558 get_gcc_base_ver="cat"
14559
14560 # Check whether --with-gcc-major-version-only was given.
14561 if test "${with_gcc_major_version_only+set}" = set; then :
14562 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14563 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14564 fi
14565
14566 fi
14567
14568
14569
14570
14571 if test x$with_gcc_major_version_only = xyes ; then
14572 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14573 else
14574 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14575 fi
14576
14577 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14578
14579
14580 ac_ext=c
14581 ac_cpp='$CPP $CPPFLAGS'
14582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14585
14586 WARN_FLAGS=
14587 save_CFLAGS="$CFLAGS"
14588 for real_option in -W -Wall; do
14589 # Do the check with the no- prefix removed since gcc silently
14590 # accepts any -Wno-* option on purpose
14591 case $real_option in
14592 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14593 *) option=$real_option ;;
14594 esac
14595 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14596
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14598 $as_echo_n "checking whether $CC supports $option... " >&6; }
14599 if eval \${$as_acx_Woption+:} false; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 CFLAGS="$option"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605
14606 int
14607 main ()
14608 {
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_compile "$LINENO"; then :
14615 eval "$as_acx_Woption=yes"
14616 else
14617 eval "$as_acx_Woption=no"
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620
14621 fi
14622 eval ac_res=\$$as_acx_Woption
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14624 $as_echo "$ac_res" >&6; }
14625 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14626 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14627 fi
14628 done
14629 CFLAGS="$save_CFLAGS"
14630 ac_ext=c
14631 ac_cpp='$CPP $CPPFLAGS'
14632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14635
14636
14637
14638 ac_ext=c
14639 ac_cpp='$CPP $CPPFLAGS'
14640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14643
14644 WERROR=
14645 # Check whether --enable-werror-always was given.
14646 if test "${enable_werror_always+set}" = set; then :
14647 enableval=$enable_werror_always;
14648 else
14649 enable_werror_always=no
14650 fi
14651
14652 if test $enable_werror_always = yes; then :
14653 WERROR="$WERROR${WERROR:+ }-Werror"
14654 fi
14655
14656 ac_ext=c
14657 ac_cpp='$CPP $CPPFLAGS'
14658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14661
14662
14663
14664
14665
14666 libsuffix=
14667 if test "$GXX" = yes; then
14668 libsuffix=`$CXX -print-multi-os-directory`
14669 fi
14670
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14673 $as_echo_n "checking for socket libraries... " >&6; }
14674 if ${libcc1_cv_lib_sockets+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 libcc1_cv_lib_sockets=
14678 libcc1_check_both=no
14679 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14680 if test "x$ac_cv_func_connect" = xyes; then :
14681 libcc1_check_socket=no
14682 else
14683 libcc1_check_socket=yes
14684 fi
14685
14686 if test "$libcc1_check_socket" = "yes"; then
14687 unset ac_cv_func_connect
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14689 $as_echo_n "checking for main in -lsocket... " >&6; }
14690 if ${ac_cv_lib_socket_main+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lsocket $LIBS"
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14697
14698
14699 int
14700 main ()
14701 {
14702 return main ();
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_c_try_link "$LINENO"; then :
14708 ac_cv_lib_socket_main=yes
14709 else
14710 ac_cv_lib_socket_main=no
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext \
14713 conftest$ac_exeext conftest.$ac_ext
14714 LIBS=$ac_check_lib_save_LIBS
14715 fi
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14717 $as_echo "$ac_cv_lib_socket_main" >&6; }
14718 if test "x$ac_cv_lib_socket_main" = xyes; then :
14719 libcc1_cv_lib_sockets="-lsocket"
14720 else
14721 libcc1_check_both=yes
14722 fi
14723
14724 fi
14725 if test "$libcc1_check_both" = "yes"; then
14726 libcc1_old_libs=$LIBS
14727 LIBS="$LIBS -lsocket -lnsl"
14728 unset ac_cv_func_accept
14729 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14730 if test "x$ac_cv_func_accept" = xyes; then :
14731 libcc1_check_nsl=no
14732 libcc1_cv_lib_sockets="-lsocket -lnsl"
14733 fi
14734
14735 unset ac_cv_func_accept
14736 LIBS=$libcc1_old_libs
14737 fi
14738 unset ac_cv_func_gethostbyname
14739 libcc1_old_libs="$LIBS"
14740 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14741 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14742
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14745 $as_echo_n "checking for main in -lnsl... " >&6; }
14746 if ${ac_cv_lib_nsl_main+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 ac_check_lib_save_LIBS=$LIBS
14750 LIBS="-lnsl $LIBS"
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753
14754
14755 int
14756 main ()
14757 {
14758 return main ();
14759 ;
14760 return 0;
14761 }
14762 _ACEOF
14763 if ac_fn_c_try_link "$LINENO"; then :
14764 ac_cv_lib_nsl_main=yes
14765 else
14766 ac_cv_lib_nsl_main=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14770 LIBS=$ac_check_lib_save_LIBS
14771 fi
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14773 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14774 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14775 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14776 fi
14777
14778 fi
14779
14780 unset ac_cv_func_gethostbyname
14781 LIBS=$libcc1_old_libs
14782
14783 fi
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14785 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14786 LIBS="$LIBS $libcc1_cv_lib_sockets"
14787
14788 case "$host" in
14789 *-*-darwin*) darwin_dynamic_lookup=yes ;;
14790 *) darwin_dynamic_lookup=no ;;
14791 esac
14792 if test $darwin_dynamic_lookup = yes; then
14793 DARWIN_DYNAMIC_LOOKUP_TRUE=
14794 DARWIN_DYNAMIC_LOOKUP_FALSE='#'
14795 else
14796 DARWIN_DYNAMIC_LOOKUP_TRUE='#'
14797 DARWIN_DYNAMIC_LOOKUP_FALSE=
14798 fi
14799
14800
14801 # If any of these functions are missing, simply don't bother building
14802 # this plugin.
14803 # Check for plugin support
14804 # Check whether --enable-plugin was given.
14805 if test "${enable_plugin+set}" = set; then :
14806 enableval=$enable_plugin; enable_plugin=$enableval
14807 else
14808 enable_plugin=yes; default_plugin=yes
14809 fi
14810
14811
14812 pluginlibs=
14813 plugin_check=yes
14814
14815 case "${host}" in
14816 *-*-mingw*)
14817 # Since plugin support under MinGW is not as straightforward as on
14818 # other platforms (e.g., we have to link import library, etc), we
14819 # only enable it if explicitly requested.
14820 if test x"$default_plugin" = x"yes"; then
14821 enable_plugin=no
14822 elif test x"$enable_plugin" = x"yes"; then
14823 # Use make's target variable to derive import library name.
14824 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
14825 plugin_check=no
14826 fi
14827 ;;
14828 *-*-darwin*)
14829 if test x$build = x$host; then
14830 export_sym_check="nm${exeext} -g"
14831 elif test x$host = x$target; then
14832 export_sym_check="$gcc_cv_nm -g"
14833 else
14834 export_sym_check=
14835 fi
14836 ;;
14837 *)
14838 if test x$build = x$host; then
14839 export_sym_check="objdump${exeext} -T"
14840 elif test x$host = x$target; then
14841 export_sym_check="$gcc_cv_objdump -T"
14842 else
14843 export_sym_check=
14844 fi
14845 ;;
14846 esac
14847
14848 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
14849
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14851 $as_echo_n "checking for exported symbols... " >&6; }
14852 if test "x$export_sym_check" != x; then
14853 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14854 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14855 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
14856 : # No need to use a flag
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14858 $as_echo "yes" >&6; }
14859 else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861 $as_echo "yes" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14863 $as_echo_n "checking for -rdynamic... " >&6; }
14864 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14865 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
14866 plugin_rdynamic=yes
14867 pluginlibs="-rdynamic"
14868 else
14869 plugin_rdynamic=no
14870 enable_plugin=no
14871 fi
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14873 $as_echo "$plugin_rdynamic" >&6; }
14874 fi
14875 else
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14877 $as_echo "unable to check" >&6; }
14878 fi
14879
14880 # Check -ldl
14881 saved_LIBS="$LIBS"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14883 $as_echo_n "checking for library containing dlopen... " >&6; }
14884 if ${ac_cv_search_dlopen+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 ac_func_search_save_LIBS=$LIBS
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char dlopen ();
14898 int
14899 main ()
14900 {
14901 return dlopen ();
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 for ac_lib in '' dl; do
14907 if test -z "$ac_lib"; then
14908 ac_res="none required"
14909 else
14910 ac_res=-l$ac_lib
14911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14912 fi
14913 if ac_fn_c_try_link "$LINENO"; then :
14914 ac_cv_search_dlopen=$ac_res
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext
14918 if ${ac_cv_search_dlopen+:} false; then :
14919 break
14920 fi
14921 done
14922 if ${ac_cv_search_dlopen+:} false; then :
14923
14924 else
14925 ac_cv_search_dlopen=no
14926 fi
14927 rm conftest.$ac_ext
14928 LIBS=$ac_func_search_save_LIBS
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14931 $as_echo "$ac_cv_search_dlopen" >&6; }
14932 ac_res=$ac_cv_search_dlopen
14933 if test "$ac_res" != no; then :
14934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14935
14936 fi
14937
14938 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14939 pluginlibs="$pluginlibs -ldl"
14940 fi
14941 LIBS="$saved_LIBS"
14942
14943 # Check that we can build shared objects with -fPIC -shared
14944 saved_LDFLAGS="$LDFLAGS"
14945 saved_CFLAGS="$CFLAGS"
14946 case "${host}" in
14947 *-*-darwin*)
14948 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14949 CFLAGS="$CFLAGS -fPIC"
14950 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14951 ;;
14952 *)
14953 CFLAGS="$CFLAGS -fPIC"
14954 LDFLAGS="$LDFLAGS -fPIC -shared"
14955 ;;
14956 esac
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14958 $as_echo_n "checking for -fPIC -shared... " >&6; }
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 extern int X;
14962 int
14963 main ()
14964 {
14965 return X == 0;
14966 ;
14967 return 0;
14968 }
14969 _ACEOF
14970 if ac_fn_c_try_link "$LINENO"; then :
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14972 $as_echo "yes" >&6; }; have_pic_shared=yes
14973 else
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }; have_pic_shared=no
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14979 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14980 pluginlibs=
14981 enable_plugin=no
14982 fi
14983 LDFLAGS="$saved_LDFLAGS"
14984 CFLAGS="$saved_CFLAGS"
14985
14986 # If plugin support had been requested but not available, fail.
14987 if test x"$enable_plugin" = x"no" ; then
14988 if test x"$default_plugin" != x"yes"; then
14989 as_fn_error $? "
14990 Building GCC with plugin support requires a host that supports
14991 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14992 fi
14993 fi
14994 fi
14995
14996 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14997 if test "x$ac_cv_func_socketpair" = xyes; then :
14998
14999 else
15000 enable_plugin=no
15001 fi
15002
15003 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15004 if test "x$ac_cv_func_select" = xyes; then :
15005
15006 else
15007 enable_plugin=no
15008 fi
15009
15010 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
15011 if test "x$ac_cv_func_fork" = xyes; then :
15012
15013 else
15014 enable_plugin=no
15015 fi
15016
15017 if test $enable_plugin = yes; then
15018 ENABLE_PLUGIN_TRUE=
15019 ENABLE_PLUGIN_FALSE='#'
15020 else
15021 ENABLE_PLUGIN_TRUE='#'
15022 ENABLE_PLUGIN_FALSE=
15023 fi
15024
15025
15026 ac_config_files="$ac_config_files Makefile"
15027
15028 cat >confcache <<\_ACEOF
15029 # This file is a shell script that caches the results of configure
15030 # tests run on this system so they can be shared between configure
15031 # scripts and configure runs, see configure's option --config-cache.
15032 # It is not useful on other systems. If it contains results you don't
15033 # want to keep, you may remove or edit it.
15034 #
15035 # config.status only pays attention to the cache file if you give it
15036 # the --recheck option to rerun configure.
15037 #
15038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15040 # following values.
15041
15042 _ACEOF
15043
15044 # The following way of writing the cache mishandles newlines in values,
15045 # but we know of no workaround that is simple, portable, and efficient.
15046 # So, we kill variables containing newlines.
15047 # Ultrix sh set writes to stderr and can't be redirected directly,
15048 # and sets the high bit in the cache file unless we assign to the vars.
15049 (
15050 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15051 eval ac_val=\$$ac_var
15052 case $ac_val in #(
15053 *${as_nl}*)
15054 case $ac_var in #(
15055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15057 esac
15058 case $ac_var in #(
15059 _ | IFS | as_nl) ;; #(
15060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15061 *) { eval $ac_var=; unset $ac_var;} ;;
15062 esac ;;
15063 esac
15064 done
15065
15066 (set) 2>&1 |
15067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15068 *${as_nl}ac_space=\ *)
15069 # `set' does not quote correctly, so add quotes: double-quote
15070 # substitution turns \\\\ into \\, and sed turns \\ into \.
15071 sed -n \
15072 "s/'/'\\\\''/g;
15073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15074 ;; #(
15075 *)
15076 # `set' quotes correctly as required by POSIX, so do not add quotes.
15077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15078 ;;
15079 esac |
15080 sort
15081 ) |
15082 sed '
15083 /^ac_cv_env_/b end
15084 t clear
15085 :clear
15086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15087 t end
15088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15089 :end' >>confcache
15090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15091 if test -w "$cache_file"; then
15092 if test "x$cache_file" != "x/dev/null"; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15094 $as_echo "$as_me: updating cache $cache_file" >&6;}
15095 if test ! -f "$cache_file" || test -h "$cache_file"; then
15096 cat confcache >"$cache_file"
15097 else
15098 case $cache_file in #(
15099 */* | ?:*)
15100 mv -f confcache "$cache_file"$$ &&
15101 mv -f "$cache_file"$$ "$cache_file" ;; #(
15102 *)
15103 mv -f confcache "$cache_file" ;;
15104 esac
15105 fi
15106 fi
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15109 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15110 fi
15111 fi
15112 rm -f confcache
15113
15114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15115 # Let make expand exec_prefix.
15116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15117
15118 DEFS=-DHAVE_CONFIG_H
15119
15120 ac_libobjs=
15121 ac_ltlibobjs=
15122 U=
15123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15124 # 1. Remove the extension, and $U if already installed.
15125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15126 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15128 # will be set to the directory where LIBOBJS objects are built.
15129 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15130 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15131 done
15132 LIBOBJS=$ac_libobjs
15133
15134 LTLIBOBJS=$ac_ltlibobjs
15135
15136
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15138 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15139 if test -n "$am_sleep_pid"; then
15140 # Hide warnings about reused PIDs.
15141 wait $am_sleep_pid 2>/dev/null
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15144 $as_echo "done" >&6; }
15145 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15146 as_fn_error $? "conditional \"AMDEP\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15150 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 fi
15153 if test -n "$EXEEXT"; then
15154 am__EXEEXT_TRUE=
15155 am__EXEEXT_FALSE='#'
15156 else
15157 am__EXEEXT_TRUE='#'
15158 am__EXEEXT_FALSE=
15159 fi
15160
15161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15162 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164 fi
15165 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168 fi
15169 if test -z "${DARWIN_DYNAMIC_LOOKUP_TRUE}" && test -z "${DARWIN_DYNAMIC_LOOKUP_FALSE}"; then
15170 as_fn_error $? "conditional \"DARWIN_DYNAMIC_LOOKUP\" was never defined.
15171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172 fi
15173 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15174 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176 fi
15177
15178 : "${CONFIG_STATUS=./config.status}"
15179 ac_write_fail=0
15180 ac_clean_files_save=$ac_clean_files
15181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15183 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15184 as_write_fail=0
15185 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15186 #! $SHELL
15187 # Generated by $as_me.
15188 # Run this file to recreate the current configuration.
15189 # Compiler output produced by configure, useful for debugging
15190 # configure, is in config.log if it exists.
15191
15192 debug=false
15193 ac_cs_recheck=false
15194 ac_cs_silent=false
15195
15196 SHELL=\${CONFIG_SHELL-$SHELL}
15197 export SHELL
15198 _ASEOF
15199 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15200 ## -------------------- ##
15201 ## M4sh Initialization. ##
15202 ## -------------------- ##
15203
15204 # Be more Bourne compatible
15205 DUALCASE=1; export DUALCASE # for MKS sh
15206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15207 emulate sh
15208 NULLCMD=:
15209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15210 # is contrary to our usage. Disable this feature.
15211 alias -g '${1+"$@"}'='"$@"'
15212 setopt NO_GLOB_SUBST
15213 else
15214 case `(set -o) 2>/dev/null` in #(
15215 *posix*) :
15216 set -o posix ;; #(
15217 *) :
15218 ;;
15219 esac
15220 fi
15221
15222
15223 as_nl='
15224 '
15225 export as_nl
15226 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15227 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15230 # Prefer a ksh shell builtin over an external printf program on Solaris,
15231 # but without wasting forks for bash or zsh.
15232 if test -z "$BASH_VERSION$ZSH_VERSION" \
15233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15234 as_echo='print -r --'
15235 as_echo_n='print -rn --'
15236 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15237 as_echo='printf %s\n'
15238 as_echo_n='printf %s'
15239 else
15240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15242 as_echo_n='/usr/ucb/echo -n'
15243 else
15244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15245 as_echo_n_body='eval
15246 arg=$1;
15247 case $arg in #(
15248 *"$as_nl"*)
15249 expr "X$arg" : "X\\(.*\\)$as_nl";
15250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15251 esac;
15252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15253 '
15254 export as_echo_n_body
15255 as_echo_n='sh -c $as_echo_n_body as_echo'
15256 fi
15257 export as_echo_body
15258 as_echo='sh -c $as_echo_body as_echo'
15259 fi
15260
15261 # The user is always right.
15262 if test "${PATH_SEPARATOR+set}" != set; then
15263 PATH_SEPARATOR=:
15264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15266 PATH_SEPARATOR=';'
15267 }
15268 fi
15269
15270
15271 # IFS
15272 # We need space, tab and new line, in precisely that order. Quoting is
15273 # there to prevent editors from complaining about space-tab.
15274 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15275 # splitting by setting IFS to empty value.)
15276 IFS=" "" $as_nl"
15277
15278 # Find who we are. Look in the path if we contain no directory separator.
15279 as_myself=
15280 case $0 in #((
15281 *[\\/]* ) as_myself=$0 ;;
15282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283 for as_dir in $PATH
15284 do
15285 IFS=$as_save_IFS
15286 test -z "$as_dir" && as_dir=.
15287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15288 done
15289 IFS=$as_save_IFS
15290
15291 ;;
15292 esac
15293 # We did not find ourselves, most probably we were run as `sh COMMAND'
15294 # in which case we are not to be found in the path.
15295 if test "x$as_myself" = x; then
15296 as_myself=$0
15297 fi
15298 if test ! -f "$as_myself"; then
15299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15300 exit 1
15301 fi
15302
15303 # Unset variables that we do not need and which cause bugs (e.g. in
15304 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15305 # suppresses any "Segmentation fault" message there. '((' could
15306 # trigger a bug in pdksh 5.2.14.
15307 for as_var in BASH_ENV ENV MAIL MAILPATH
15308 do eval test x\${$as_var+set} = xset \
15309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15310 done
15311 PS1='$ '
15312 PS2='> '
15313 PS4='+ '
15314
15315 # NLS nuisances.
15316 LC_ALL=C
15317 export LC_ALL
15318 LANGUAGE=C
15319 export LANGUAGE
15320
15321 # CDPATH.
15322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15323
15324
15325 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15326 # ----------------------------------------
15327 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15328 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15329 # script with STATUS, using 1 if that was 0.
15330 as_fn_error ()
15331 {
15332 as_status=$1; test $as_status -eq 0 && as_status=1
15333 if test "$4"; then
15334 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15336 fi
15337 $as_echo "$as_me: error: $2" >&2
15338 as_fn_exit $as_status
15339 } # as_fn_error
15340
15341
15342 # as_fn_set_status STATUS
15343 # -----------------------
15344 # Set $? to STATUS, without forking.
15345 as_fn_set_status ()
15346 {
15347 return $1
15348 } # as_fn_set_status
15349
15350 # as_fn_exit STATUS
15351 # -----------------
15352 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15353 as_fn_exit ()
15354 {
15355 set +e
15356 as_fn_set_status $1
15357 exit $1
15358 } # as_fn_exit
15359
15360 # as_fn_unset VAR
15361 # ---------------
15362 # Portably unset VAR.
15363 as_fn_unset ()
15364 {
15365 { eval $1=; unset $1;}
15366 }
15367 as_unset=as_fn_unset
15368 # as_fn_append VAR VALUE
15369 # ----------------------
15370 # Append the text in VALUE to the end of the definition contained in VAR. Take
15371 # advantage of any shell optimizations that allow amortized linear growth over
15372 # repeated appends, instead of the typical quadratic growth present in naive
15373 # implementations.
15374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15375 eval 'as_fn_append ()
15376 {
15377 eval $1+=\$2
15378 }'
15379 else
15380 as_fn_append ()
15381 {
15382 eval $1=\$$1\$2
15383 }
15384 fi # as_fn_append
15385
15386 # as_fn_arith ARG...
15387 # ------------------
15388 # Perform arithmetic evaluation on the ARGs, and store the result in the
15389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15390 # must be portable across $(()) and expr.
15391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15392 eval 'as_fn_arith ()
15393 {
15394 as_val=$(( $* ))
15395 }'
15396 else
15397 as_fn_arith ()
15398 {
15399 as_val=`expr "$@" || test $? -eq 1`
15400 }
15401 fi # as_fn_arith
15402
15403
15404 if expr a : '\(a\)' >/dev/null 2>&1 &&
15405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15406 as_expr=expr
15407 else
15408 as_expr=false
15409 fi
15410
15411 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15412 as_basename=basename
15413 else
15414 as_basename=false
15415 fi
15416
15417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15418 as_dirname=dirname
15419 else
15420 as_dirname=false
15421 fi
15422
15423 as_me=`$as_basename -- "$0" ||
15424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15425 X"$0" : 'X\(//\)$' \| \
15426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15427 $as_echo X/"$0" |
15428 sed '/^.*\/\([^/][^/]*\)\/*$/{
15429 s//\1/
15430 q
15431 }
15432 /^X\/\(\/\/\)$/{
15433 s//\1/
15434 q
15435 }
15436 /^X\/\(\/\).*/{
15437 s//\1/
15438 q
15439 }
15440 s/.*/./; q'`
15441
15442 # Avoid depending upon Character Ranges.
15443 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15444 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15445 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15446 as_cr_digits='0123456789'
15447 as_cr_alnum=$as_cr_Letters$as_cr_digits
15448
15449 ECHO_C= ECHO_N= ECHO_T=
15450 case `echo -n x` in #(((((
15451 -n*)
15452 case `echo 'xy\c'` in
15453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15454 xy) ECHO_C='\c';;
15455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15456 ECHO_T=' ';;
15457 esac;;
15458 *)
15459 ECHO_N='-n';;
15460 esac
15461
15462 rm -f conf$$ conf$$.exe conf$$.file
15463 if test -d conf$$.dir; then
15464 rm -f conf$$.dir/conf$$.file
15465 else
15466 rm -f conf$$.dir
15467 mkdir conf$$.dir 2>/dev/null
15468 fi
15469 if (echo >conf$$.file) 2>/dev/null; then
15470 if ln -s conf$$.file conf$$ 2>/dev/null; then
15471 as_ln_s='ln -s'
15472 # ... but there are two gotchas:
15473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15475 # In both cases, we have to default to `cp -pR'.
15476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15477 as_ln_s='cp -pR'
15478 elif ln conf$$.file conf$$ 2>/dev/null; then
15479 as_ln_s=ln
15480 else
15481 as_ln_s='cp -pR'
15482 fi
15483 else
15484 as_ln_s='cp -pR'
15485 fi
15486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15487 rmdir conf$$.dir 2>/dev/null
15488
15489
15490 # as_fn_mkdir_p
15491 # -------------
15492 # Create "$as_dir" as a directory, including parents if necessary.
15493 as_fn_mkdir_p ()
15494 {
15495
15496 case $as_dir in #(
15497 -*) as_dir=./$as_dir;;
15498 esac
15499 test -d "$as_dir" || eval $as_mkdir_p || {
15500 as_dirs=
15501 while :; do
15502 case $as_dir in #(
15503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15504 *) as_qdir=$as_dir;;
15505 esac
15506 as_dirs="'$as_qdir' $as_dirs"
15507 as_dir=`$as_dirname -- "$as_dir" ||
15508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$as_dir" : 'X\(//\)[^/]' \| \
15510 X"$as_dir" : 'X\(//\)$' \| \
15511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15512 $as_echo X"$as_dir" |
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\/\)[^/].*/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\).*/{
15526 s//\1/
15527 q
15528 }
15529 s/.*/./; q'`
15530 test -d "$as_dir" && break
15531 done
15532 test -z "$as_dirs" || eval "mkdir $as_dirs"
15533 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15534
15535
15536 } # as_fn_mkdir_p
15537 if mkdir -p . 2>/dev/null; then
15538 as_mkdir_p='mkdir -p "$as_dir"'
15539 else
15540 test -d ./-p && rmdir ./-p
15541 as_mkdir_p=false
15542 fi
15543
15544
15545 # as_fn_executable_p FILE
15546 # -----------------------
15547 # Test if FILE is an executable regular file.
15548 as_fn_executable_p ()
15549 {
15550 test -f "$1" && test -x "$1"
15551 } # as_fn_executable_p
15552 as_test_x='test -x'
15553 as_executable_p=as_fn_executable_p
15554
15555 # Sed expression to map a string onto a valid CPP name.
15556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15557
15558 # Sed expression to map a string onto a valid variable name.
15559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15560
15561
15562 exec 6>&1
15563 ## ----------------------------------- ##
15564 ## Main body of $CONFIG_STATUS script. ##
15565 ## ----------------------------------- ##
15566 _ASEOF
15567 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15568
15569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15570 # Save the log message, to keep $0 and so on meaningful, and to
15571 # report actual input values of CONFIG_FILES etc. instead of their
15572 # values after options handling.
15573 ac_log="
15574 This file was extended by libcc1 $as_me version-unused, which was
15575 generated by GNU Autoconf 2.69. Invocation command line was
15576
15577 CONFIG_FILES = $CONFIG_FILES
15578 CONFIG_HEADERS = $CONFIG_HEADERS
15579 CONFIG_LINKS = $CONFIG_LINKS
15580 CONFIG_COMMANDS = $CONFIG_COMMANDS
15581 $ $0 $@
15582
15583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15584 "
15585
15586 _ACEOF
15587
15588 case $ac_config_files in *"
15589 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15590 esac
15591
15592 case $ac_config_headers in *"
15593 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15594 esac
15595
15596
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598 # Files that config.status was made for.
15599 config_files="$ac_config_files"
15600 config_headers="$ac_config_headers"
15601 config_commands="$ac_config_commands"
15602
15603 _ACEOF
15604
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 ac_cs_usage="\
15607 \`$as_me' instantiates files and other configuration actions
15608 from templates according to the current configuration. Unless the files
15609 and actions are specified as TAGs, all are instantiated by default.
15610
15611 Usage: $0 [OPTION]... [TAG]...
15612
15613 -h, --help print this help, then exit
15614 -V, --version print version number and configuration settings, then exit
15615 --config print configuration, then exit
15616 -q, --quiet, --silent
15617 do not print progress messages
15618 -d, --debug don't remove temporary files
15619 --recheck update $as_me by reconfiguring in the same conditions
15620 --file=FILE[:TEMPLATE]
15621 instantiate the configuration file FILE
15622 --header=FILE[:TEMPLATE]
15623 instantiate the configuration header FILE
15624
15625 Configuration files:
15626 $config_files
15627
15628 Configuration headers:
15629 $config_headers
15630
15631 Configuration commands:
15632 $config_commands
15633
15634 Report bugs to the package provider."
15635
15636 _ACEOF
15637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15639 ac_cs_version="\\
15640 libcc1 config.status version-unused
15641 configured by $0, generated by GNU Autoconf 2.69,
15642 with options \\"\$ac_cs_config\\"
15643
15644 Copyright (C) 2012 Free Software Foundation, Inc.
15645 This config.status script is free software; the Free Software Foundation
15646 gives unlimited permission to copy, distribute and modify it."
15647
15648 ac_pwd='$ac_pwd'
15649 srcdir='$srcdir'
15650 INSTALL='$INSTALL'
15651 MKDIR_P='$MKDIR_P'
15652 AWK='$AWK'
15653 test -n "\$AWK" || AWK=awk
15654 _ACEOF
15655
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 # The default lists apply if the user does not specify any file.
15658 ac_need_defaults=:
15659 while test $# != 0
15660 do
15661 case $1 in
15662 --*=?*)
15663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15664 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15665 ac_shift=:
15666 ;;
15667 --*=)
15668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15669 ac_optarg=
15670 ac_shift=:
15671 ;;
15672 *)
15673 ac_option=$1
15674 ac_optarg=$2
15675 ac_shift=shift
15676 ;;
15677 esac
15678
15679 case $ac_option in
15680 # Handling of the options.
15681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15682 ac_cs_recheck=: ;;
15683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15684 $as_echo "$ac_cs_version"; exit ;;
15685 --config | --confi | --conf | --con | --co | --c )
15686 $as_echo "$ac_cs_config"; exit ;;
15687 --debug | --debu | --deb | --de | --d | -d )
15688 debug=: ;;
15689 --file | --fil | --fi | --f )
15690 $ac_shift
15691 case $ac_optarg in
15692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15693 '') as_fn_error $? "missing file argument" ;;
15694 esac
15695 as_fn_append CONFIG_FILES " '$ac_optarg'"
15696 ac_need_defaults=false;;
15697 --header | --heade | --head | --hea )
15698 $ac_shift
15699 case $ac_optarg in
15700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15701 esac
15702 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15703 ac_need_defaults=false;;
15704 --he | --h)
15705 # Conflict between --help and --header
15706 as_fn_error $? "ambiguous option: \`$1'
15707 Try \`$0 --help' for more information.";;
15708 --help | --hel | -h )
15709 $as_echo "$ac_cs_usage"; exit ;;
15710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15712 ac_cs_silent=: ;;
15713
15714 # This is an error.
15715 -*) as_fn_error $? "unrecognized option: \`$1'
15716 Try \`$0 --help' for more information." ;;
15717
15718 *) as_fn_append ac_config_targets " $1"
15719 ac_need_defaults=false ;;
15720
15721 esac
15722 shift
15723 done
15724
15725 ac_configure_extra_args=
15726
15727 if $ac_cs_silent; then
15728 exec 6>/dev/null
15729 ac_configure_extra_args="$ac_configure_extra_args --silent"
15730 fi
15731
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734 if \$ac_cs_recheck; then
15735 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15736 shift
15737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15738 CONFIG_SHELL='$SHELL'
15739 export CONFIG_SHELL
15740 exec "\$@"
15741 fi
15742
15743 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 exec 5>>config.log
15746 {
15747 echo
15748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15749 ## Running $as_me. ##
15750 _ASBOX
15751 $as_echo "$ac_log"
15752 } >&5
15753
15754 _ACEOF
15755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756 #
15757 # INIT-COMMANDS
15758 #
15759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15760
15761
15762 # The HP-UX ksh and POSIX shell print the target directory to stdout
15763 # if CDPATH is set.
15764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15765
15766 sed_quote_subst='$sed_quote_subst'
15767 double_quote_subst='$double_quote_subst'
15768 delay_variable_subst='$delay_variable_subst'
15769 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15770 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15771 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15772 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15773 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15774 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15775 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15776 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15777 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15778 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15779 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15780 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15781 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15782 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15783 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15784 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15785 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15786 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15787 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15788 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15789 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15790 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15791 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15792 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15793 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15794 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15795 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15796 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15797 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15798 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15799 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15800 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15801 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15802 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15803 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15804 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15805 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15806 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15807 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15808 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15809 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15810 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15811 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15812 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15813 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15814 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15815 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15816 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15817 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"`'
15818 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15819 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15820 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15821 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15824 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15825 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15826 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15827 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15828 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15829 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15830 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15831 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15832 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15833 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15835 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15836 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15837 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15838 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15839 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15841 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15842 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15843 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15844 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15845 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15846 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15847 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15848 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15850 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15852 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15853 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15854 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15855 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15856 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15857 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15858 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15859 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15860 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15861 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15862 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15863 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15864 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15865 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15866 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15867 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15868 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15869 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15870 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15871 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15872 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15873 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15874 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15875 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15876 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15877 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15878 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15879 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15880 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15881 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15882 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15883 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15884 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15885 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15886 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15887 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15888 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15889 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15890 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15891 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15892 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15893 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15894 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15895 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15896 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15897 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15898 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15899 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15900 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15901 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15902 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15903 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15904 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15905 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15906 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15907 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15908 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15909 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15910 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15911 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15912 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15913 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15914 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15915 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15916 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15917 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15918 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15919 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15920 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15921 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15922 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15923 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15924 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15925 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15926 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15927 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15928 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15929 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15930 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15931 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15932 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15933 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15934 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15935 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15936 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15937 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15938 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15939 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15940 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15941 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15942 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15943 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15944
15945 LTCC='$LTCC'
15946 LTCFLAGS='$LTCFLAGS'
15947 compiler='$compiler_DEFAULT'
15948
15949 # A function that is used when there is no print builtin or printf.
15950 func_fallback_echo ()
15951 {
15952 eval 'cat <<_LTECHO_EOF
15953 \$1
15954 _LTECHO_EOF'
15955 }
15956
15957 # Quote evaled strings.
15958 for var in SHELL \
15959 ECHO \
15960 SED \
15961 GREP \
15962 EGREP \
15963 FGREP \
15964 LD \
15965 NM \
15966 LN_S \
15967 lt_SP2NL \
15968 lt_NL2SP \
15969 reload_flag \
15970 OBJDUMP \
15971 deplibs_check_method \
15972 file_magic_cmd \
15973 AR \
15974 AR_FLAGS \
15975 STRIP \
15976 RANLIB \
15977 CC \
15978 CFLAGS \
15979 compiler \
15980 lt_cv_sys_global_symbol_pipe \
15981 lt_cv_sys_global_symbol_to_cdecl \
15982 lt_cv_sys_global_symbol_to_c_name_address \
15983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15984 lt_prog_compiler_no_builtin_flag \
15985 lt_prog_compiler_wl \
15986 lt_prog_compiler_pic \
15987 lt_prog_compiler_static \
15988 lt_cv_prog_compiler_c_o \
15989 need_locks \
15990 DSYMUTIL \
15991 NMEDIT \
15992 LIPO \
15993 OTOOL \
15994 OTOOL64 \
15995 shrext_cmds \
15996 export_dynamic_flag_spec \
15997 whole_archive_flag_spec \
15998 compiler_needs_object \
15999 with_gnu_ld \
16000 allow_undefined_flag \
16001 no_undefined_flag \
16002 hardcode_libdir_flag_spec \
16003 hardcode_libdir_flag_spec_ld \
16004 hardcode_libdir_separator \
16005 fix_srcfile_path \
16006 exclude_expsyms \
16007 include_expsyms \
16008 file_list_spec \
16009 variables_saved_for_relink \
16010 libname_spec \
16011 library_names_spec \
16012 soname_spec \
16013 install_override_mode \
16014 finish_eval \
16015 old_striplib \
16016 striplib \
16017 compiler_lib_search_dirs \
16018 predep_objects \
16019 postdep_objects \
16020 predeps \
16021 postdeps \
16022 compiler_lib_search_path \
16023 LD_CXX \
16024 reload_flag_CXX \
16025 compiler_CXX \
16026 lt_prog_compiler_no_builtin_flag_CXX \
16027 lt_prog_compiler_wl_CXX \
16028 lt_prog_compiler_pic_CXX \
16029 lt_prog_compiler_static_CXX \
16030 lt_cv_prog_compiler_c_o_CXX \
16031 export_dynamic_flag_spec_CXX \
16032 whole_archive_flag_spec_CXX \
16033 compiler_needs_object_CXX \
16034 with_gnu_ld_CXX \
16035 allow_undefined_flag_CXX \
16036 no_undefined_flag_CXX \
16037 hardcode_libdir_flag_spec_CXX \
16038 hardcode_libdir_flag_spec_ld_CXX \
16039 hardcode_libdir_separator_CXX \
16040 fix_srcfile_path_CXX \
16041 exclude_expsyms_CXX \
16042 include_expsyms_CXX \
16043 file_list_spec_CXX \
16044 compiler_lib_search_dirs_CXX \
16045 predep_objects_CXX \
16046 postdep_objects_CXX \
16047 predeps_CXX \
16048 postdeps_CXX \
16049 compiler_lib_search_path_CXX; do
16050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16051 *[\\\\\\\`\\"\\\$]*)
16052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16053 ;;
16054 *)
16055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16056 ;;
16057 esac
16058 done
16059
16060 # Double-quote double-evaled strings.
16061 for var in reload_cmds \
16062 old_postinstall_cmds \
16063 old_postuninstall_cmds \
16064 old_archive_cmds \
16065 extract_expsyms_cmds \
16066 old_archive_from_new_cmds \
16067 old_archive_from_expsyms_cmds \
16068 archive_cmds \
16069 archive_expsym_cmds \
16070 module_cmds \
16071 module_expsym_cmds \
16072 export_symbols_cmds \
16073 prelink_cmds \
16074 postinstall_cmds \
16075 postuninstall_cmds \
16076 finish_cmds \
16077 sys_lib_search_path_spec \
16078 sys_lib_dlsearch_path_spec \
16079 reload_cmds_CXX \
16080 old_archive_cmds_CXX \
16081 old_archive_from_new_cmds_CXX \
16082 old_archive_from_expsyms_cmds_CXX \
16083 archive_cmds_CXX \
16084 archive_expsym_cmds_CXX \
16085 module_cmds_CXX \
16086 module_expsym_cmds_CXX \
16087 export_symbols_cmds_CXX \
16088 prelink_cmds_CXX; do
16089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16090 *[\\\\\\\`\\"\\\$]*)
16091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16092 ;;
16093 *)
16094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16095 ;;
16096 esac
16097 done
16098
16099 ac_aux_dir='$ac_aux_dir'
16100 xsi_shell='$xsi_shell'
16101 lt_shell_append='$lt_shell_append'
16102
16103 # See if we are running on zsh, and set the options which allow our
16104 # commands through without removal of \ escapes INIT.
16105 if test -n "\${ZSH_VERSION+set}" ; then
16106 setopt NO_GLOB_SUBST
16107 fi
16108
16109
16110 PACKAGE='$PACKAGE'
16111 VERSION='$VERSION'
16112 TIMESTAMP='$TIMESTAMP'
16113 RM='$RM'
16114 ofile='$ofile'
16115
16116
16117
16118
16119
16120
16121 _ACEOF
16122
16123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16124
16125 # Handling of arguments.
16126 for ac_config_target in $ac_config_targets
16127 do
16128 case $ac_config_target in
16129 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16130 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16131 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16133
16134 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16135 esac
16136 done
16137
16138
16139 # If the user did not use the arguments to specify the items to instantiate,
16140 # then the envvar interface is used. Set only those that are not.
16141 # We use the long form for the default assignment because of an extremely
16142 # bizarre bug on SunOS 4.1.3.
16143 if $ac_need_defaults; then
16144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16147 fi
16148
16149 # Have a temporary directory for convenience. Make it in the build tree
16150 # simply because there is no reason against having it here, and in addition,
16151 # creating and moving files from /tmp can sometimes cause problems.
16152 # Hook for its removal unless debugging.
16153 # Note that there is a small window in which the directory will not be cleaned:
16154 # after its creation but before its name has been assigned to `$tmp'.
16155 $debug ||
16156 {
16157 tmp= ac_tmp=
16158 trap 'exit_status=$?
16159 : "${ac_tmp:=$tmp}"
16160 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16161 ' 0
16162 trap 'as_fn_exit 1' 1 2 13 15
16163 }
16164 # Create a (secure) tmp directory for tmp files.
16165
16166 {
16167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16168 test -d "$tmp"
16169 } ||
16170 {
16171 tmp=./conf$$-$RANDOM
16172 (umask 077 && mkdir "$tmp")
16173 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16174 ac_tmp=$tmp
16175
16176 # Set up the scripts for CONFIG_FILES section.
16177 # No need to generate them if there are no CONFIG_FILES.
16178 # This happens for instance with `./config.status config.h'.
16179 if test -n "$CONFIG_FILES"; then
16180
16181
16182 ac_cr=`echo X | tr X '\015'`
16183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16184 # But we know of no other shell where ac_cr would be empty at this
16185 # point, so we can use a bashism as a fallback.
16186 if test "x$ac_cr" = x; then
16187 eval ac_cr=\$\'\\r\'
16188 fi
16189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16191 ac_cs_awk_cr='\\r'
16192 else
16193 ac_cs_awk_cr=$ac_cr
16194 fi
16195
16196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16197 _ACEOF
16198
16199
16200 {
16201 echo "cat >conf$$subs.awk <<_ACEOF" &&
16202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16203 echo "_ACEOF"
16204 } >conf$$subs.sh ||
16205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16207 ac_delim='%!_!# '
16208 for ac_last_try in false false false false false :; do
16209 . ./conf$$subs.sh ||
16210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16211
16212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16213 if test $ac_delim_n = $ac_delim_num; then
16214 break
16215 elif $ac_last_try; then
16216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16217 else
16218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16219 fi
16220 done
16221 rm -f conf$$subs.sh
16222
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16225 _ACEOF
16226 sed -n '
16227 h
16228 s/^/S["/; s/!.*/"]=/
16229 p
16230 g
16231 s/^[^!]*!//
16232 :repl
16233 t repl
16234 s/'"$ac_delim"'$//
16235 t delim
16236 :nl
16237 h
16238 s/\(.\{148\}\)..*/\1/
16239 t more1
16240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16241 p
16242 n
16243 b repl
16244 :more1
16245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16246 p
16247 g
16248 s/.\{148\}//
16249 t nl
16250 :delim
16251 h
16252 s/\(.\{148\}\)..*/\1/
16253 t more2
16254 s/["\\]/\\&/g; s/^/"/; s/$/"/
16255 p
16256 b
16257 :more2
16258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16259 p
16260 g
16261 s/.\{148\}//
16262 t delim
16263 ' <conf$$subs.awk | sed '
16264 /^[^""]/{
16265 N
16266 s/\n//
16267 }
16268 ' >>$CONFIG_STATUS || ac_write_fail=1
16269 rm -f conf$$subs.awk
16270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16271 _ACAWK
16272 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16273 for (key in S) S_is_set[key] = 1
16274 FS = ""
16275
16276 }
16277 {
16278 line = $ 0
16279 nfields = split(line, field, "@")
16280 substed = 0
16281 len = length(field[1])
16282 for (i = 2; i < nfields; i++) {
16283 key = field[i]
16284 keylen = length(key)
16285 if (S_is_set[key]) {
16286 value = S[key]
16287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16288 len += length(value) + length(field[++i])
16289 substed = 1
16290 } else
16291 len += 1 + keylen
16292 }
16293
16294 print line
16295 }
16296
16297 _ACAWK
16298 _ACEOF
16299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16302 else
16303 cat
16304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16305 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16306 _ACEOF
16307
16308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16310 # trailing colons and then remove the whole line if VPATH becomes empty
16311 # (actually we leave an empty line to preserve line numbers).
16312 if test "x$srcdir" = x.; then
16313 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16314 h
16315 s///
16316 s/^/:/
16317 s/[ ]*$/:/
16318 s/:\$(srcdir):/:/g
16319 s/:\${srcdir}:/:/g
16320 s/:@srcdir@:/:/g
16321 s/^:*//
16322 s/:*$//
16323 x
16324 s/\(=[ ]*\).*/\1/
16325 G
16326 s/\n//
16327 s/^[^=]*=[ ]*$//
16328 }'
16329 fi
16330
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 fi # test -n "$CONFIG_FILES"
16333
16334 # Set up the scripts for CONFIG_HEADERS section.
16335 # No need to generate them if there are no CONFIG_HEADERS.
16336 # This happens for instance with `./config.status Makefile'.
16337 if test -n "$CONFIG_HEADERS"; then
16338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16339 BEGIN {
16340 _ACEOF
16341
16342 # Transform confdefs.h into an awk script `defines.awk', embedded as
16343 # here-document in config.status, that substitutes the proper values into
16344 # config.h.in to produce config.h.
16345
16346 # Create a delimiter string that does not exist in confdefs.h, to ease
16347 # handling of long lines.
16348 ac_delim='%!_!# '
16349 for ac_last_try in false false :; do
16350 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16351 if test -z "$ac_tt"; then
16352 break
16353 elif $ac_last_try; then
16354 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16355 else
16356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16357 fi
16358 done
16359
16360 # For the awk script, D is an array of macro values keyed by name,
16361 # likewise P contains macro parameters if any. Preserve backslash
16362 # newline sequences.
16363
16364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16365 sed -n '
16366 s/.\{148\}/&'"$ac_delim"'/g
16367 t rset
16368 :rset
16369 s/^[ ]*#[ ]*define[ ][ ]*/ /
16370 t def
16371 d
16372 :def
16373 s/\\$//
16374 t bsnl
16375 s/["\\]/\\&/g
16376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16377 D["\1"]=" \3"/p
16378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16379 d
16380 :bsnl
16381 s/["\\]/\\&/g
16382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16383 D["\1"]=" \3\\\\\\n"\\/p
16384 t cont
16385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16386 t cont
16387 d
16388 :cont
16389 n
16390 s/.\{148\}/&'"$ac_delim"'/g
16391 t clear
16392 :clear
16393 s/\\$//
16394 t bsnlc
16395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16396 d
16397 :bsnlc
16398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16399 b cont
16400 ' <confdefs.h | sed '
16401 s/'"$ac_delim"'/"\\\
16402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16403
16404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16405 for (key in D) D_is_set[key] = 1
16406 FS = ""
16407 }
16408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16409 line = \$ 0
16410 split(line, arg, " ")
16411 if (arg[1] == "#") {
16412 defundef = arg[2]
16413 mac1 = arg[3]
16414 } else {
16415 defundef = substr(arg[1], 2)
16416 mac1 = arg[2]
16417 }
16418 split(mac1, mac2, "(") #)
16419 macro = mac2[1]
16420 prefix = substr(line, 1, index(line, defundef) - 1)
16421 if (D_is_set[macro]) {
16422 # Preserve the white space surrounding the "#".
16423 print prefix "define", macro P[macro] D[macro]
16424 next
16425 } else {
16426 # Replace #undef with comments. This is necessary, for example,
16427 # in the case of _POSIX_SOURCE, which is predefined and required
16428 # on some systems where configure will not decide to define it.
16429 if (defundef == "undef") {
16430 print "/*", prefix defundef, macro, "*/"
16431 next
16432 }
16433 }
16434 }
16435 { print }
16436 _ACAWK
16437 _ACEOF
16438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16439 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16440 fi # test -n "$CONFIG_HEADERS"
16441
16442
16443 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16444 shift
16445 for ac_tag
16446 do
16447 case $ac_tag in
16448 :[FHLC]) ac_mode=$ac_tag; continue;;
16449 esac
16450 case $ac_mode$ac_tag in
16451 :[FHL]*:*);;
16452 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16453 :[FH]-) ac_tag=-:-;;
16454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16455 esac
16456 ac_save_IFS=$IFS
16457 IFS=:
16458 set x $ac_tag
16459 IFS=$ac_save_IFS
16460 shift
16461 ac_file=$1
16462 shift
16463
16464 case $ac_mode in
16465 :L) ac_source=$1;;
16466 :[FH])
16467 ac_file_inputs=
16468 for ac_f
16469 do
16470 case $ac_f in
16471 -) ac_f="$ac_tmp/stdin";;
16472 *) # Look for the file first in the build tree, then in the source tree
16473 # (if the path is not absolute). The absolute path cannot be DOS-style,
16474 # because $ac_f cannot contain `:'.
16475 test -f "$ac_f" ||
16476 case $ac_f in
16477 [\\/$]*) false;;
16478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16479 esac ||
16480 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16481 esac
16482 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16483 as_fn_append ac_file_inputs " '$ac_f'"
16484 done
16485
16486 # Let's still pretend it is `configure' which instantiates (i.e., don't
16487 # use $as_me), people would be surprised to read:
16488 # /* config.h. Generated by config.status. */
16489 configure_input='Generated from '`
16490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16491 `' by configure.'
16492 if test x"$ac_file" != x-; then
16493 configure_input="$ac_file. $configure_input"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16495 $as_echo "$as_me: creating $ac_file" >&6;}
16496 fi
16497 # Neutralize special characters interpreted by sed in replacement strings.
16498 case $configure_input in #(
16499 *\&* | *\|* | *\\* )
16500 ac_sed_conf_input=`$as_echo "$configure_input" |
16501 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16502 *) ac_sed_conf_input=$configure_input;;
16503 esac
16504
16505 case $ac_tag in
16506 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16508 esac
16509 ;;
16510 esac
16511
16512 ac_dir=`$as_dirname -- "$ac_file" ||
16513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16514 X"$ac_file" : 'X\(//\)[^/]' \| \
16515 X"$ac_file" : 'X\(//\)$' \| \
16516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16517 $as_echo X"$ac_file" |
16518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16519 s//\1/
16520 q
16521 }
16522 /^X\(\/\/\)[^/].*/{
16523 s//\1/
16524 q
16525 }
16526 /^X\(\/\/\)$/{
16527 s//\1/
16528 q
16529 }
16530 /^X\(\/\).*/{
16531 s//\1/
16532 q
16533 }
16534 s/.*/./; q'`
16535 as_dir="$ac_dir"; as_fn_mkdir_p
16536 ac_builddir=.
16537
16538 case "$ac_dir" in
16539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16540 *)
16541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16542 # A ".." for each directory in $ac_dir_suffix.
16543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16544 case $ac_top_builddir_sub in
16545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16547 esac ;;
16548 esac
16549 ac_abs_top_builddir=$ac_pwd
16550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16551 # for backward compatibility:
16552 ac_top_builddir=$ac_top_build_prefix
16553
16554 case $srcdir in
16555 .) # We are building in place.
16556 ac_srcdir=.
16557 ac_top_srcdir=$ac_top_builddir_sub
16558 ac_abs_top_srcdir=$ac_pwd ;;
16559 [\\/]* | ?:[\\/]* ) # Absolute name.
16560 ac_srcdir=$srcdir$ac_dir_suffix;
16561 ac_top_srcdir=$srcdir
16562 ac_abs_top_srcdir=$srcdir ;;
16563 *) # Relative name.
16564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16565 ac_top_srcdir=$ac_top_build_prefix$srcdir
16566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16567 esac
16568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16569
16570
16571 case $ac_mode in
16572 :F)
16573 #
16574 # CONFIG_FILE
16575 #
16576
16577 case $INSTALL in
16578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16580 esac
16581 ac_MKDIR_P=$MKDIR_P
16582 case $MKDIR_P in
16583 [\\/$]* | ?:[\\/]* ) ;;
16584 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16585 esac
16586 _ACEOF
16587
16588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 # If the template does not know about datarootdir, expand it.
16590 # FIXME: This hack should be removed a few years after 2.60.
16591 ac_datarootdir_hack=; ac_datarootdir_seen=
16592 ac_sed_dataroot='
16593 /datarootdir/ {
16594 p
16595 q
16596 }
16597 /@datadir@/p
16598 /@docdir@/p
16599 /@infodir@/p
16600 /@localedir@/p
16601 /@mandir@/p'
16602 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16603 *datarootdir*) ac_datarootdir_seen=yes;;
16604 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16606 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16607 _ACEOF
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_datarootdir_hack='
16610 s&@datadir@&$datadir&g
16611 s&@docdir@&$docdir&g
16612 s&@infodir@&$infodir&g
16613 s&@localedir@&$localedir&g
16614 s&@mandir@&$mandir&g
16615 s&\\\${datarootdir}&$datarootdir&g' ;;
16616 esac
16617 _ACEOF
16618
16619 # Neutralize VPATH when `$srcdir' = `.'.
16620 # Shell code in configure.ac might set extrasub.
16621 # FIXME: do we really want to maintain this feature?
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623 ac_sed_extra="$ac_vpsub
16624 $extrasub
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 :t
16628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16629 s|@configure_input@|$ac_sed_conf_input|;t t
16630 s&@top_builddir@&$ac_top_builddir_sub&;t t
16631 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16632 s&@srcdir@&$ac_srcdir&;t t
16633 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16634 s&@top_srcdir@&$ac_top_srcdir&;t t
16635 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16636 s&@builddir@&$ac_builddir&;t t
16637 s&@abs_builddir@&$ac_abs_builddir&;t t
16638 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16639 s&@INSTALL@&$ac_INSTALL&;t t
16640 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16641 $ac_datarootdir_hack
16642 "
16643 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16644 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16645
16646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16647 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16649 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16651 which seems to be undefined. Please make sure it is defined" >&5
16652 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16653 which seems to be undefined. Please make sure it is defined" >&2;}
16654
16655 rm -f "$ac_tmp/stdin"
16656 case $ac_file in
16657 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16658 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16659 esac \
16660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16661 ;;
16662 :H)
16663 #
16664 # CONFIG_HEADER
16665 #
16666 if test x"$ac_file" != x-; then
16667 {
16668 $as_echo "/* $configure_input */" \
16669 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16670 } >"$ac_tmp/config.h" \
16671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16672 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16674 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16675 else
16676 rm -f "$ac_file"
16677 mv "$ac_tmp/config.h" "$ac_file" \
16678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16679 fi
16680 else
16681 $as_echo "/* $configure_input */" \
16682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16683 || as_fn_error $? "could not create -" "$LINENO" 5
16684 fi
16685 # Compute "$ac_file"'s index in $config_headers.
16686 _am_arg="$ac_file"
16687 _am_stamp_count=1
16688 for _am_header in $config_headers :; do
16689 case $_am_header in
16690 $_am_arg | $_am_arg:* )
16691 break ;;
16692 * )
16693 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16694 esac
16695 done
16696 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16697 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698 X"$_am_arg" : 'X\(//\)[^/]' \| \
16699 X"$_am_arg" : 'X\(//\)$' \| \
16700 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16701 $as_echo X"$_am_arg" |
16702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16703 s//\1/
16704 q
16705 }
16706 /^X\(\/\/\)[^/].*/{
16707 s//\1/
16708 q
16709 }
16710 /^X\(\/\/\)$/{
16711 s//\1/
16712 q
16713 }
16714 /^X\(\/\).*/{
16715 s//\1/
16716 q
16717 }
16718 s/.*/./; q'`/stamp-h$_am_stamp_count
16719 ;;
16720
16721 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16722 $as_echo "$as_me: executing $ac_file commands" >&6;}
16723 ;;
16724 esac
16725
16726
16727 case $ac_file$ac_mode in
16728 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16729 # Older Autoconf quotes --file arguments for eval, but not when files
16730 # are listed without --file. Let's play safe and only enable the eval
16731 # if we detect the quoting.
16732 case $CONFIG_FILES in
16733 *\'*) eval set x "$CONFIG_FILES" ;;
16734 *) set x $CONFIG_FILES ;;
16735 esac
16736 shift
16737 for mf
16738 do
16739 # Strip MF so we end up with the name of the file.
16740 mf=`echo "$mf" | sed -e 's/:.*$//'`
16741 # Check whether this is an Automake generated Makefile or not.
16742 # We used to match only the files named 'Makefile.in', but
16743 # some people rename them; so instead we look at the file content.
16744 # Grep'ing the first line is not enough: some people post-process
16745 # each Makefile.in and add a new line on top of each file to say so.
16746 # Grep'ing the whole file is not good either: AIX grep has a line
16747 # limit of 2048, but all sed's we know have understand at least 4000.
16748 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16749 dirpart=`$as_dirname -- "$mf" ||
16750 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16751 X"$mf" : 'X\(//\)[^/]' \| \
16752 X"$mf" : 'X\(//\)$' \| \
16753 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16754 $as_echo X"$mf" |
16755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16756 s//\1/
16757 q
16758 }
16759 /^X\(\/\/\)[^/].*/{
16760 s//\1/
16761 q
16762 }
16763 /^X\(\/\/\)$/{
16764 s//\1/
16765 q
16766 }
16767 /^X\(\/\).*/{
16768 s//\1/
16769 q
16770 }
16771 s/.*/./; q'`
16772 else
16773 continue
16774 fi
16775 # Extract the definition of DEPDIR, am__include, and am__quote
16776 # from the Makefile without running 'make'.
16777 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16778 test -z "$DEPDIR" && continue
16779 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16780 test -z "$am__include" && continue
16781 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16782 # Find all dependency output files, they are included files with
16783 # $(DEPDIR) in their names. We invoke sed twice because it is the
16784 # simplest approach to changing $(DEPDIR) to its actual value in the
16785 # expansion.
16786 for file in `sed -n "
16787 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16788 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16789 # Make sure the directory exists.
16790 test -f "$dirpart/$file" && continue
16791 fdir=`$as_dirname -- "$file" ||
16792 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16793 X"$file" : 'X\(//\)[^/]' \| \
16794 X"$file" : 'X\(//\)$' \| \
16795 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16796 $as_echo X"$file" |
16797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798 s//\1/
16799 q
16800 }
16801 /^X\(\/\/\)[^/].*/{
16802 s//\1/
16803 q
16804 }
16805 /^X\(\/\/\)$/{
16806 s//\1/
16807 q
16808 }
16809 /^X\(\/\).*/{
16810 s//\1/
16811 q
16812 }
16813 s/.*/./; q'`
16814 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16815 # echo "creating $dirpart/$file"
16816 echo '# dummy' > "$dirpart/$file"
16817 done
16818 done
16819 }
16820 ;;
16821 "libtool":C)
16822
16823 # See if we are running on zsh, and set the options which allow our
16824 # commands through without removal of \ escapes.
16825 if test -n "${ZSH_VERSION+set}" ; then
16826 setopt NO_GLOB_SUBST
16827 fi
16828
16829 cfgfile="${ofile}T"
16830 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16831 $RM "$cfgfile"
16832
16833 cat <<_LT_EOF >> "$cfgfile"
16834 #! $SHELL
16835
16836 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16837 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16838 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16839 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16840 #
16841 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16842 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16843 # Written by Gordon Matzigkeit, 1996
16844 #
16845 # This file is part of GNU Libtool.
16846 #
16847 # GNU Libtool is free software; you can redistribute it and/or
16848 # modify it under the terms of the GNU General Public License as
16849 # published by the Free Software Foundation; either version 2 of
16850 # the License, or (at your option) any later version.
16851 #
16852 # As a special exception to the GNU General Public License,
16853 # if you distribute this file as part of a program or library that
16854 # is built using GNU Libtool, you may include this file under the
16855 # same distribution terms that you use for the rest of that program.
16856 #
16857 # GNU Libtool is distributed in the hope that it will be useful,
16858 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16859 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16860 # GNU General Public License for more details.
16861 #
16862 # You should have received a copy of the GNU General Public License
16863 # along with GNU Libtool; see the file COPYING. If not, a copy
16864 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16865 # obtained by writing to the Free Software Foundation, Inc.,
16866 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16867
16868
16869 # The names of the tagged configurations supported by this script.
16870 available_tags="CXX "
16871
16872 # ### BEGIN LIBTOOL CONFIG
16873
16874 # Which release of libtool.m4 was used?
16875 macro_version=$macro_version
16876 macro_revision=$macro_revision
16877
16878 # Whether or not to build static libraries.
16879 build_old_libs=$enable_static
16880
16881 # Whether or not to build shared libraries.
16882 build_libtool_libs=$enable_shared
16883
16884 # What type of objects to build.
16885 pic_mode=$pic_mode
16886
16887 # Whether or not to optimize for fast installation.
16888 fast_install=$enable_fast_install
16889
16890 # Shell to use when invoking shell scripts.
16891 SHELL=$lt_SHELL
16892
16893 # An echo program that protects backslashes.
16894 ECHO=$lt_ECHO
16895
16896 # The host system.
16897 host_alias=$host_alias
16898 host=$host
16899 host_os=$host_os
16900
16901 # The build system.
16902 build_alias=$build_alias
16903 build=$build
16904 build_os=$build_os
16905
16906 # A sed program that does not truncate output.
16907 SED=$lt_SED
16908
16909 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16910 Xsed="\$SED -e 1s/^X//"
16911
16912 # A grep program that handles long lines.
16913 GREP=$lt_GREP
16914
16915 # An ERE matcher.
16916 EGREP=$lt_EGREP
16917
16918 # A literal string matcher.
16919 FGREP=$lt_FGREP
16920
16921 # A BSD- or MS-compatible name lister.
16922 NM=$lt_NM
16923
16924 # Whether we need soft or hard links.
16925 LN_S=$lt_LN_S
16926
16927 # What is the maximum length of a command?
16928 max_cmd_len=$max_cmd_len
16929
16930 # Object file suffix (normally "o").
16931 objext=$ac_objext
16932
16933 # Executable file suffix (normally "").
16934 exeext=$exeext
16935
16936 # whether the shell understands "unset".
16937 lt_unset=$lt_unset
16938
16939 # turn spaces into newlines.
16940 SP2NL=$lt_lt_SP2NL
16941
16942 # turn newlines into spaces.
16943 NL2SP=$lt_lt_NL2SP
16944
16945 # An object symbol dumper.
16946 OBJDUMP=$lt_OBJDUMP
16947
16948 # Method to check whether dependent libraries are shared objects.
16949 deplibs_check_method=$lt_deplibs_check_method
16950
16951 # Command to use when deplibs_check_method == "file_magic".
16952 file_magic_cmd=$lt_file_magic_cmd
16953
16954 # The archiver.
16955 AR=$lt_AR
16956 AR_FLAGS=$lt_AR_FLAGS
16957
16958 # A symbol stripping program.
16959 STRIP=$lt_STRIP
16960
16961 # Commands used to install an old-style archive.
16962 RANLIB=$lt_RANLIB
16963 old_postinstall_cmds=$lt_old_postinstall_cmds
16964 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16965
16966 # Whether to use a lock for old archive extraction.
16967 lock_old_archive_extraction=$lock_old_archive_extraction
16968
16969 # A C compiler.
16970 LTCC=$lt_CC
16971
16972 # LTCC compiler flags.
16973 LTCFLAGS=$lt_CFLAGS
16974
16975 # Take the output of nm and produce a listing of raw symbols and C names.
16976 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16977
16978 # Transform the output of nm in a proper C declaration.
16979 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16980
16981 # Transform the output of nm in a C name address pair.
16982 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16983
16984 # Transform the output of nm in a C name address pair when lib prefix is needed.
16985 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16986
16987 # The name of the directory that contains temporary libtool files.
16988 objdir=$objdir
16989
16990 # Used to examine libraries when file_magic_cmd begins with "file".
16991 MAGIC_CMD=$MAGIC_CMD
16992
16993 # Must we lock files when doing compilation?
16994 need_locks=$lt_need_locks
16995
16996 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16997 DSYMUTIL=$lt_DSYMUTIL
16998
16999 # Tool to change global to local symbols on Mac OS X.
17000 NMEDIT=$lt_NMEDIT
17001
17002 # Tool to manipulate fat objects and archives on Mac OS X.
17003 LIPO=$lt_LIPO
17004
17005 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17006 OTOOL=$lt_OTOOL
17007
17008 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17009 OTOOL64=$lt_OTOOL64
17010
17011 # Old archive suffix (normally "a").
17012 libext=$libext
17013
17014 # Shared library suffix (normally ".so").
17015 shrext_cmds=$lt_shrext_cmds
17016
17017 # The commands to extract the exported symbol list from a shared archive.
17018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17019
17020 # Variables whose values should be saved in libtool wrapper scripts and
17021 # restored at link time.
17022 variables_saved_for_relink=$lt_variables_saved_for_relink
17023
17024 # Do we need the "lib" prefix for modules?
17025 need_lib_prefix=$need_lib_prefix
17026
17027 # Do we need a version for libraries?
17028 need_version=$need_version
17029
17030 # Library versioning type.
17031 version_type=$version_type
17032
17033 # Shared library runtime path variable.
17034 runpath_var=$runpath_var
17035
17036 # Shared library path variable.
17037 shlibpath_var=$shlibpath_var
17038
17039 # Is shlibpath searched before the hard-coded library search path?
17040 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17041
17042 # Format of library name prefix.
17043 libname_spec=$lt_libname_spec
17044
17045 # List of archive names. First name is the real one, the rest are links.
17046 # The last name is the one that the linker finds with -lNAME
17047 library_names_spec=$lt_library_names_spec
17048
17049 # The coded name of the library, if different from the real name.
17050 soname_spec=$lt_soname_spec
17051
17052 # Permission mode override for installation of shared libraries.
17053 install_override_mode=$lt_install_override_mode
17054
17055 # Command to use after installation of a shared archive.
17056 postinstall_cmds=$lt_postinstall_cmds
17057
17058 # Command to use after uninstallation of a shared archive.
17059 postuninstall_cmds=$lt_postuninstall_cmds
17060
17061 # Commands used to finish a libtool library installation in a directory.
17062 finish_cmds=$lt_finish_cmds
17063
17064 # As "finish_cmds", except a single script fragment to be evaled but
17065 # not shown.
17066 finish_eval=$lt_finish_eval
17067
17068 # Whether we should hardcode library paths into libraries.
17069 hardcode_into_libs=$hardcode_into_libs
17070
17071 # Compile-time system search path for libraries.
17072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17073
17074 # Run-time system search path for libraries.
17075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17076
17077 # Whether dlopen is supported.
17078 dlopen_support=$enable_dlopen
17079
17080 # Whether dlopen of programs is supported.
17081 dlopen_self=$enable_dlopen_self
17082
17083 # Whether dlopen of statically linked programs is supported.
17084 dlopen_self_static=$enable_dlopen_self_static
17085
17086 # Commands to strip libraries.
17087 old_striplib=$lt_old_striplib
17088 striplib=$lt_striplib
17089
17090
17091 # The linker used to build libraries.
17092 LD=$lt_LD
17093
17094 # How to create reloadable object files.
17095 reload_flag=$lt_reload_flag
17096 reload_cmds=$lt_reload_cmds
17097
17098 # Commands used to build an old-style archive.
17099 old_archive_cmds=$lt_old_archive_cmds
17100
17101 # A language specific compiler.
17102 CC=$lt_compiler
17103
17104 # Is the compiler the GNU compiler?
17105 with_gcc=$GCC
17106
17107 # Compiler flag to turn off builtin functions.
17108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17109
17110 # How to pass a linker flag through the compiler.
17111 wl=$lt_lt_prog_compiler_wl
17112
17113 # Additional compiler flags for building library objects.
17114 pic_flag=$lt_lt_prog_compiler_pic
17115
17116 # Compiler flag to prevent dynamic linking.
17117 link_static_flag=$lt_lt_prog_compiler_static
17118
17119 # Does compiler simultaneously support -c and -o options?
17120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17121
17122 # Whether or not to add -lc for building shared libraries.
17123 build_libtool_need_lc=$archive_cmds_need_lc
17124
17125 # Whether or not to disallow shared libs when runtime libs are static.
17126 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17127
17128 # Compiler flag to allow reflexive dlopens.
17129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17130
17131 # Compiler flag to generate shared objects directly from archives.
17132 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17133
17134 # Whether the compiler copes with passing no objects directly.
17135 compiler_needs_object=$lt_compiler_needs_object
17136
17137 # Create an old-style archive from a shared archive.
17138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17139
17140 # Create a temporary old-style archive to link instead of a shared archive.
17141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17142
17143 # Commands used to build a shared archive.
17144 archive_cmds=$lt_archive_cmds
17145 archive_expsym_cmds=$lt_archive_expsym_cmds
17146
17147 # Commands used to build a loadable module if different from building
17148 # a shared archive.
17149 module_cmds=$lt_module_cmds
17150 module_expsym_cmds=$lt_module_expsym_cmds
17151
17152 # Whether we are building with GNU ld or not.
17153 with_gnu_ld=$lt_with_gnu_ld
17154
17155 # Flag that allows shared libraries with undefined symbols to be built.
17156 allow_undefined_flag=$lt_allow_undefined_flag
17157
17158 # Flag that enforces no undefined symbols.
17159 no_undefined_flag=$lt_no_undefined_flag
17160
17161 # Flag to hardcode \$libdir into a binary during linking.
17162 # This must work even if \$libdir does not exist
17163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17164
17165 # If ld is used when linking, flag to hardcode \$libdir into a binary
17166 # during linking. This must work even if \$libdir does not exist.
17167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17168
17169 # Whether we need a single "-rpath" flag with a separated argument.
17170 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17171
17172 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17173 # DIR into the resulting binary.
17174 hardcode_direct=$hardcode_direct
17175
17176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17177 # DIR into the resulting binary and the resulting library dependency is
17178 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17179 # library is relocated.
17180 hardcode_direct_absolute=$hardcode_direct_absolute
17181
17182 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17183 # into the resulting binary.
17184 hardcode_minus_L=$hardcode_minus_L
17185
17186 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17187 # into the resulting binary.
17188 hardcode_shlibpath_var=$hardcode_shlibpath_var
17189
17190 # Set to "yes" if building a shared library automatically hardcodes DIR
17191 # into the library and all subsequent libraries and executables linked
17192 # against it.
17193 hardcode_automatic=$hardcode_automatic
17194
17195 # Set to yes if linker adds runtime paths of dependent libraries
17196 # to runtime path list.
17197 inherit_rpath=$inherit_rpath
17198
17199 # Whether libtool must link a program against all its dependency libraries.
17200 link_all_deplibs=$link_all_deplibs
17201
17202 # Fix the shell variable \$srcfile for the compiler.
17203 fix_srcfile_path=$lt_fix_srcfile_path
17204
17205 # Set to "yes" if exported symbols are required.
17206 always_export_symbols=$always_export_symbols
17207
17208 # The commands to list exported symbols.
17209 export_symbols_cmds=$lt_export_symbols_cmds
17210
17211 # Symbols that should not be listed in the preloaded symbols.
17212 exclude_expsyms=$lt_exclude_expsyms
17213
17214 # Symbols that must always be exported.
17215 include_expsyms=$lt_include_expsyms
17216
17217 # Commands necessary for linking programs (against libraries) with templates.
17218 prelink_cmds=$lt_prelink_cmds
17219
17220 # Specify filename containing input files.
17221 file_list_spec=$lt_file_list_spec
17222
17223 # How to hardcode a shared library path into an executable.
17224 hardcode_action=$hardcode_action
17225
17226 # The directories searched by this compiler when creating a shared library.
17227 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17228
17229 # Dependencies to place before and after the objects being linked to
17230 # create a shared library.
17231 predep_objects=$lt_predep_objects
17232 postdep_objects=$lt_postdep_objects
17233 predeps=$lt_predeps
17234 postdeps=$lt_postdeps
17235
17236 # The library search path used internally by the compiler when linking
17237 # a shared library.
17238 compiler_lib_search_path=$lt_compiler_lib_search_path
17239
17240 # ### END LIBTOOL CONFIG
17241
17242 _LT_EOF
17243
17244 case $host_os in
17245 aix3*)
17246 cat <<\_LT_EOF >> "$cfgfile"
17247 # AIX sometimes has problems with the GCC collect2 program. For some
17248 # reason, if we set the COLLECT_NAMES environment variable, the problems
17249 # vanish in a puff of smoke.
17250 if test "X${COLLECT_NAMES+set}" != Xset; then
17251 COLLECT_NAMES=
17252 export COLLECT_NAMES
17253 fi
17254 _LT_EOF
17255 ;;
17256 esac
17257
17258
17259 ltmain="$ac_aux_dir/ltmain.sh"
17260
17261
17262 # We use sed instead of cat because bash on DJGPP gets confused if
17263 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17264 # text mode, it properly converts lines to CR/LF. This bash problem
17265 # is reportedly fixed, but why not run on old versions too?
17266 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17267 || (rm -f "$cfgfile"; exit 1)
17268
17269 case $xsi_shell in
17270 yes)
17271 cat << \_LT_EOF >> "$cfgfile"
17272
17273 # func_dirname file append nondir_replacement
17274 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17275 # otherwise set result to NONDIR_REPLACEMENT.
17276 func_dirname ()
17277 {
17278 case ${1} in
17279 */*) func_dirname_result="${1%/*}${2}" ;;
17280 * ) func_dirname_result="${3}" ;;
17281 esac
17282 }
17283
17284 # func_basename file
17285 func_basename ()
17286 {
17287 func_basename_result="${1##*/}"
17288 }
17289
17290 # func_dirname_and_basename file append nondir_replacement
17291 # perform func_basename and func_dirname in a single function
17292 # call:
17293 # dirname: Compute the dirname of FILE. If nonempty,
17294 # add APPEND to the result, otherwise set result
17295 # to NONDIR_REPLACEMENT.
17296 # value returned in "$func_dirname_result"
17297 # basename: Compute filename of FILE.
17298 # value retuned in "$func_basename_result"
17299 # Implementation must be kept synchronized with func_dirname
17300 # and func_basename. For efficiency, we do not delegate to
17301 # those functions but instead duplicate the functionality here.
17302 func_dirname_and_basename ()
17303 {
17304 case ${1} in
17305 */*) func_dirname_result="${1%/*}${2}" ;;
17306 * ) func_dirname_result="${3}" ;;
17307 esac
17308 func_basename_result="${1##*/}"
17309 }
17310
17311 # func_stripname prefix suffix name
17312 # strip PREFIX and SUFFIX off of NAME.
17313 # PREFIX and SUFFIX must not contain globbing or regex special
17314 # characters, hashes, percent signs, but SUFFIX may contain a leading
17315 # dot (in which case that matches only a dot).
17316 func_stripname ()
17317 {
17318 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17319 # positional parameters, so assign one to ordinary parameter first.
17320 func_stripname_result=${3}
17321 func_stripname_result=${func_stripname_result#"${1}"}
17322 func_stripname_result=${func_stripname_result%"${2}"}
17323 }
17324
17325 # func_opt_split
17326 func_opt_split ()
17327 {
17328 func_opt_split_opt=${1%%=*}
17329 func_opt_split_arg=${1#*=}
17330 }
17331
17332 # func_lo2o object
17333 func_lo2o ()
17334 {
17335 case ${1} in
17336 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17337 *) func_lo2o_result=${1} ;;
17338 esac
17339 }
17340
17341 # func_xform libobj-or-source
17342 func_xform ()
17343 {
17344 func_xform_result=${1%.*}.lo
17345 }
17346
17347 # func_arith arithmetic-term...
17348 func_arith ()
17349 {
17350 func_arith_result=$(( $* ))
17351 }
17352
17353 # func_len string
17354 # STRING may not start with a hyphen.
17355 func_len ()
17356 {
17357 func_len_result=${#1}
17358 }
17359
17360 _LT_EOF
17361 ;;
17362 *) # Bourne compatible functions.
17363 cat << \_LT_EOF >> "$cfgfile"
17364
17365 # func_dirname file append nondir_replacement
17366 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17367 # otherwise set result to NONDIR_REPLACEMENT.
17368 func_dirname ()
17369 {
17370 # Extract subdirectory from the argument.
17371 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17372 if test "X$func_dirname_result" = "X${1}"; then
17373 func_dirname_result="${3}"
17374 else
17375 func_dirname_result="$func_dirname_result${2}"
17376 fi
17377 }
17378
17379 # func_basename file
17380 func_basename ()
17381 {
17382 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17383 }
17384
17385
17386 # func_stripname prefix suffix name
17387 # strip PREFIX and SUFFIX off of NAME.
17388 # PREFIX and SUFFIX must not contain globbing or regex special
17389 # characters, hashes, percent signs, but SUFFIX may contain a leading
17390 # dot (in which case that matches only a dot).
17391 # func_strip_suffix prefix name
17392 func_stripname ()
17393 {
17394 case ${2} in
17395 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17396 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17397 esac
17398 }
17399
17400 # sed scripts:
17401 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17402 my_sed_long_arg='1s/^-[^=]*=//'
17403
17404 # func_opt_split
17405 func_opt_split ()
17406 {
17407 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17408 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17409 }
17410
17411 # func_lo2o object
17412 func_lo2o ()
17413 {
17414 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17415 }
17416
17417 # func_xform libobj-or-source
17418 func_xform ()
17419 {
17420 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17421 }
17422
17423 # func_arith arithmetic-term...
17424 func_arith ()
17425 {
17426 func_arith_result=`expr "$@"`
17427 }
17428
17429 # func_len string
17430 # STRING may not start with a hyphen.
17431 func_len ()
17432 {
17433 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17434 }
17435
17436 _LT_EOF
17437 esac
17438
17439 case $lt_shell_append in
17440 yes)
17441 cat << \_LT_EOF >> "$cfgfile"
17442
17443 # func_append var value
17444 # Append VALUE to the end of shell variable VAR.
17445 func_append ()
17446 {
17447 eval "$1+=\$2"
17448 }
17449 _LT_EOF
17450 ;;
17451 *)
17452 cat << \_LT_EOF >> "$cfgfile"
17453
17454 # func_append var value
17455 # Append VALUE to the end of shell variable VAR.
17456 func_append ()
17457 {
17458 eval "$1=\$$1\$2"
17459 }
17460
17461 _LT_EOF
17462 ;;
17463 esac
17464
17465
17466 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17467 || (rm -f "$cfgfile"; exit 1)
17468
17469 mv -f "$cfgfile" "$ofile" ||
17470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17471 chmod +x "$ofile"
17472
17473
17474 cat <<_LT_EOF >> "$ofile"
17475
17476 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17477
17478 # The linker used to build libraries.
17479 LD=$lt_LD_CXX
17480
17481 # How to create reloadable object files.
17482 reload_flag=$lt_reload_flag_CXX
17483 reload_cmds=$lt_reload_cmds_CXX
17484
17485 # Commands used to build an old-style archive.
17486 old_archive_cmds=$lt_old_archive_cmds_CXX
17487
17488 # A language specific compiler.
17489 CC=$lt_compiler_CXX
17490
17491 # Is the compiler the GNU compiler?
17492 with_gcc=$GCC_CXX
17493
17494 # Compiler flag to turn off builtin functions.
17495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17496
17497 # How to pass a linker flag through the compiler.
17498 wl=$lt_lt_prog_compiler_wl_CXX
17499
17500 # Additional compiler flags for building library objects.
17501 pic_flag=$lt_lt_prog_compiler_pic_CXX
17502
17503 # Compiler flag to prevent dynamic linking.
17504 link_static_flag=$lt_lt_prog_compiler_static_CXX
17505
17506 # Does compiler simultaneously support -c and -o options?
17507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17508
17509 # Whether or not to add -lc for building shared libraries.
17510 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17511
17512 # Whether or not to disallow shared libs when runtime libs are static.
17513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17514
17515 # Compiler flag to allow reflexive dlopens.
17516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17517
17518 # Compiler flag to generate shared objects directly from archives.
17519 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17520
17521 # Whether the compiler copes with passing no objects directly.
17522 compiler_needs_object=$lt_compiler_needs_object_CXX
17523
17524 # Create an old-style archive from a shared archive.
17525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17526
17527 # Create a temporary old-style archive to link instead of a shared archive.
17528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17529
17530 # Commands used to build a shared archive.
17531 archive_cmds=$lt_archive_cmds_CXX
17532 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17533
17534 # Commands used to build a loadable module if different from building
17535 # a shared archive.
17536 module_cmds=$lt_module_cmds_CXX
17537 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17538
17539 # Whether we are building with GNU ld or not.
17540 with_gnu_ld=$lt_with_gnu_ld_CXX
17541
17542 # Flag that allows shared libraries with undefined symbols to be built.
17543 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17544
17545 # Flag that enforces no undefined symbols.
17546 no_undefined_flag=$lt_no_undefined_flag_CXX
17547
17548 # Flag to hardcode \$libdir into a binary during linking.
17549 # This must work even if \$libdir does not exist
17550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17551
17552 # If ld is used when linking, flag to hardcode \$libdir into a binary
17553 # during linking. This must work even if \$libdir does not exist.
17554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17555
17556 # Whether we need a single "-rpath" flag with a separated argument.
17557 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17558
17559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17560 # DIR into the resulting binary.
17561 hardcode_direct=$hardcode_direct_CXX
17562
17563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17564 # DIR into the resulting binary and the resulting library dependency is
17565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17566 # library is relocated.
17567 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17568
17569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17570 # into the resulting binary.
17571 hardcode_minus_L=$hardcode_minus_L_CXX
17572
17573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17574 # into the resulting binary.
17575 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17576
17577 # Set to "yes" if building a shared library automatically hardcodes DIR
17578 # into the library and all subsequent libraries and executables linked
17579 # against it.
17580 hardcode_automatic=$hardcode_automatic_CXX
17581
17582 # Set to yes if linker adds runtime paths of dependent libraries
17583 # to runtime path list.
17584 inherit_rpath=$inherit_rpath_CXX
17585
17586 # Whether libtool must link a program against all its dependency libraries.
17587 link_all_deplibs=$link_all_deplibs_CXX
17588
17589 # Fix the shell variable \$srcfile for the compiler.
17590 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17591
17592 # Set to "yes" if exported symbols are required.
17593 always_export_symbols=$always_export_symbols_CXX
17594
17595 # The commands to list exported symbols.
17596 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17597
17598 # Symbols that should not be listed in the preloaded symbols.
17599 exclude_expsyms=$lt_exclude_expsyms_CXX
17600
17601 # Symbols that must always be exported.
17602 include_expsyms=$lt_include_expsyms_CXX
17603
17604 # Commands necessary for linking programs (against libraries) with templates.
17605 prelink_cmds=$lt_prelink_cmds_CXX
17606
17607 # Specify filename containing input files.
17608 file_list_spec=$lt_file_list_spec_CXX
17609
17610 # How to hardcode a shared library path into an executable.
17611 hardcode_action=$hardcode_action_CXX
17612
17613 # The directories searched by this compiler when creating a shared library.
17614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17615
17616 # Dependencies to place before and after the objects being linked to
17617 # create a shared library.
17618 predep_objects=$lt_predep_objects_CXX
17619 postdep_objects=$lt_postdep_objects_CXX
17620 predeps=$lt_predeps_CXX
17621 postdeps=$lt_postdeps_CXX
17622
17623 # The library search path used internally by the compiler when linking
17624 # a shared library.
17625 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17626
17627 # ### END LIBTOOL TAG CONFIG: CXX
17628 _LT_EOF
17629
17630 ;;
17631
17632 esac
17633 done # for ac_tag
17634
17635
17636 as_fn_exit 0
17637 _ACEOF
17638 ac_clean_files=$ac_clean_files_save
17639
17640 test $ac_write_fail = 0 ||
17641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17642
17643
17644 # configure is writing to config.log, and then calls config.status.
17645 # config.status does its own redirection, appending to config.log.
17646 # Unfortunately, on DOS this fails, as config.log is still kept open
17647 # by configure, so config.status won't be able to write to it; its
17648 # output is simply discarded. So we exec the FD to /dev/null,
17649 # effectively closing config.log, so it can be properly (re)opened and
17650 # appended to by config.status. When coming back to configure, we
17651 # need to make the FD available again.
17652 if test "$no_create" != yes; then
17653 ac_cs_success=:
17654 ac_config_status_args=
17655 test "$silent" = yes &&
17656 ac_config_status_args="$ac_config_status_args --quiet"
17657 exec 5>/dev/null
17658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17659 exec 5>>config.log
17660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17661 # would make configure fail if this is the last instruction.
17662 $ac_cs_success || as_fn_exit 1
17663 fi
17664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17667 fi
17668
17669