]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcc1/configure
regenerate configure files
[thirdparty/gcc.git] / libcc1 / configure
CommitLineData
ddc8de03
PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for libcc1 version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
ddc8de03 7#
ddc8de03
PM
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
ddc8de03
PM
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
ddc8de03
PM
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
ddc8de03
PM
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
199test \$(( 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
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
ddc8de03
PM
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
ddc8de03
PM
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
ddc8de03
PM
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
ddc8de03
PM
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
ddc8de03
PM
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
ddc8de03 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
ddc8de03
PM
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
ddc8de03
PM
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
ddc8de03 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
ddc8de03
PM
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
ddc8de03
PM
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
ddc8de03
PM
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
ddc8de03
PM
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
ddc8de03
PM
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ddc8de03
PM
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libcc1'
589PACKAGE_TARNAME='libcc1'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='libcc1 version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libcc1.cc"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636ENABLE_PLUGIN_FALSE
637ENABLE_PLUGIN_TRUE
1352bc88
IS
638DARWIN_DYNAMIC_LOOKUP_FALSE
639DARWIN_DYNAMIC_LOOKUP_TRUE
ddc8de03 640libsuffix
ca557f53
JJ
641GMPINC
642WERROR
ddc8de03 643WARN_FLAGS
ca37d49a 644CONFIG_STATUS_DEPENDENCIES
ddc8de03 645gcc_version
3c36aa6b 646get_gcc_base_ver
af3bef0e 647CET_HOST_FLAGS
ddc8de03
PM
648visibility
649CXXCPP
650am__fastdepCXX_FALSE
651am__fastdepCXX_TRUE
652CXXDEPMODE
653ac_ct_CXX
654CXXFLAGS
655CXX
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661RANLIB
662AR
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670SED
671LIBTOOL
672MAINT
673MAINTAINER_MODE_FALSE
674MAINTAINER_MODE_TRUE
22e05272
JM
675AM_BACKSLASH
676AM_DEFAULT_VERBOSITY
677AM_DEFAULT_V
678AM_V
ddc8de03
PM
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
4709a6d2 682am__nodep
ddc8de03
PM
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712target_subdir
713host_subdir
714build_subdir
715build_libsubdir
716target_noncanonical
717EGREP
718GREP
719CPP
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727target_os
728target_vendor
729target_cpu
730target
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780with_build_libsubdir
781enable_dependency_tracking
22e05272 782enable_silent_rules
ddc8de03
PM
783enable_maintainer_mode
784enable_static
785enable_shared
786with_pic
787enable_fast_install
788with_gnu_ld
789enable_libtool_lock
af3bef0e 790enable_cet
3c36aa6b 791with_gcc_major_version_only
ca557f53 792enable_werror_always
ddc8de03
PM
793enable_plugin
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
806CCC
ca557f53
JJ
807CXXCPP
808GMPINC'
ddc8de03
PM
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
22e05272
JM
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
ddc8de03
PM
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 918 as_fn_error $? "invalid feature name: $ac_useropt"
ddc8de03
PM
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 944 as_fn_error $? "invalid feature name: $ac_useropt"
ddc8de03
PM
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1148 as_fn_error $? "invalid package name: $ac_useropt"
ddc8de03
PM
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1164 as_fn_error $? "invalid package name: $ac_useropt"
ddc8de03
PM
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
22e05272
JM
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
ddc8de03
PM
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
ddc8de03
PM
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
ddc8de03
PM
1214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1221 as_fn_error $? "missing argument to $ac_option"
ddc8de03
PM
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
22e05272 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ddc8de03
PM
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
22e05272 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
ddc8de03
PM
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
ddc8de03
PM
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1278 as_fn_error $? "working directory cannot be determined"
ddc8de03 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1280 as_fn_error $? "pwd does not report name of working directory"
ddc8de03
PM
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
ddc8de03
PM
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
22e05272 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
ddc8de03
PM
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
22e05272 1363 -q, --quiet, --silent do not print \`checking ...' messages
ddc8de03
PM
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1421 esac
1422 cat <<\_ACEOF
1423
1424Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-maintainer-mode
1435 enable make rules and dependencies not useful (and
1436 sometimes confusing) to the casual installer
ddc8de03
PM
1437 --enable-static[=PKGS] build static libraries [default=no]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
af3bef0e 1442 --enable-cet enable Intel CET in host libraries [default=auto]
ca557f53 1443 --enable-werror-always enable -Werror despite compiler version
ddc8de03
PM
1444 --enable-plugin enable plugin support
1445
1446Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-build-libsubdir=DIR Directory where to find libraries for build system
1450 --with-pic try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1453 --with-gcc-major-version-only
1454 use only GCC major number in filesystem paths
ddc8de03
PM
1455
1456Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
ddc8de03
PM
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1467 CXXCPP C++ preprocessor
ca557f53 1468 GMPINC How to find GMP include files
ddc8de03
PM
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to the package provider.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
1536libcc1 configure version-unused
22e05272 1537generated by GNU Autoconf 2.69
ddc8de03 1538
22e05272 1539Copyright (C) 2012 Free Software Foundation, Inc.
ddc8de03
PM
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543 exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
22e05272
JM
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
ddc8de03
PM
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_cpp LINENO
1589# ----------------------
1590# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_cpp ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1609 test $ac_status = 0; } > conftest.i && {
ddc8de03
PM
1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 }; then :
1613 ac_retval=0
1614else
1615 $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619fi
22e05272
JM
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
ddc8de03
PM
1622
1623} # ac_fn_c_try_cpp
1624
1625# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1628# the include files in INCLUDES and setting the cache variable VAR
1629# accordingly.
1630ac_fn_c_check_header_mongrel ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1633 if eval \${$3+:} false; then :
ddc8de03
PM
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635$as_echo_n "checking for $2... " >&6; }
22e05272 1636if eval \${$3+:} false; then :
ddc8de03
PM
1637 $as_echo_n "(cached) " >&6
1638fi
1639eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }
1642else
1643 # Is the header compilable?
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1645$as_echo_n "checking $2 usability... " >&6; }
1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652 ac_header_compiler=yes
1653else
1654 ac_header_compiler=no
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1658$as_echo "$ac_header_compiler" >&6; }
1659
1660# Is the header present?
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1662$as_echo_n "checking $2 presence... " >&6; }
1663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665#include <$2>
1666_ACEOF
1667if ac_fn_c_try_cpp "$LINENO"; then :
1668 ac_header_preproc=yes
1669else
1670 ac_header_preproc=no
1671fi
22e05272 1672rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1674$as_echo "$ac_header_preproc" >&6; }
1675
1676# So? What about this header?
1677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1678 yes:no: )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1680$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ;;
1684 no:yes:* )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1686$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1688$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1690$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1692$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 ;;
1696esac
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
22e05272 1699if eval \${$3+:} false; then :
ddc8de03
PM
1700 $as_echo_n "(cached) " >&6
1701else
1702 eval "$3=\$ac_header_compiler"
1703fi
1704eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707fi
22e05272 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ddc8de03
PM
1709
1710} # ac_fn_c_check_header_mongrel
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
ddc8de03
PM
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
22e05272 1763if eval \${$3+:} false; then :
ddc8de03
PM
1764 $as_echo_n "(cached) " >&6
1765else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773else
1774 eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
22e05272 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ddc8de03
PM
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
22e05272 1812 test -x conftest$ac_exeext
ddc8de03
PM
1813 }; then :
1814 ac_retval=0
1815else
1816 $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
ddc8de03
PM
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_func LINENO FUNC VAR
1832# ----------------------------------
1833# Tests whether FUNC exists, setting the cache variable VAR accordingly
1834ac_fn_c_check_func ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
22e05272 1839if eval \${$3+:} false; then :
ddc8de03
PM
1840 $as_echo_n "(cached) " >&6
1841else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885else
1886 eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
22e05272 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ddc8de03
PM
1895
1896} # ac_fn_c_check_func
1897
1898# ac_fn_cxx_try_compile LINENO
1899# ----------------------------
1900# Try to compile conftest.$ac_ext, and return whether this succeeded.
1901ac_fn_cxx_try_compile ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext
1905 if { { ac_try="$ac_compile"
1906case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_compile") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1918 fi
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_cxx_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest.$ac_objext; then :
1924 ac_retval=0
1925else
1926 $as_echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 ac_retval=1
1930fi
22e05272
JM
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
ddc8de03
PM
1933
1934} # ac_fn_cxx_try_compile
1935
1936# ac_fn_cxx_try_cpp LINENO
1937# ------------------------
1938# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939ac_fn_cxx_try_cpp ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_cpp conftest.$ac_ext"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1957 test $ac_status = 0; } > conftest.i && {
ddc8de03
PM
1958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1959 test ! -s conftest.err
1960 }; then :
1961 ac_retval=0
1962else
1963 $as_echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=1
1967fi
22e05272
JM
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
ddc8de03
PM
1970
1971} # ac_fn_cxx_try_cpp
1972
1973# ac_fn_cxx_try_link LINENO
1974# -------------------------
1975# Try to link conftest.$ac_ext, and return whether this succeeded.
1976ac_fn_cxx_try_link ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 rm -f conftest.$ac_objext conftest$ac_exeext
1980 if { { ac_try="$ac_link"
1981case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984esac
1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986$as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1993 fi
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest$ac_exeext && {
1999 test "$cross_compiling" = yes ||
22e05272 2000 test -x conftest$ac_exeext
ddc8de03
PM
2001 }; then :
2002 ac_retval=0
2003else
2004 $as_echo "$as_me: failed program was:" >&5
2005sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=1
2008fi
2009 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2010 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2011 # interfere with the next link command; also delete a directory that is
2012 # left behind by Apple's compiler. We do this before executing the actions.
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
ddc8de03
PM
2016
2017} # ac_fn_cxx_try_link
2018
22e05272
JM
2019# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2020# ---------------------------------------------
2021# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2022# accordingly.
ddc8de03
PM
2023ac_fn_c_check_decl ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 as_decl_name=`echo $2|sed 's/ *(.*//'`
2027 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2029$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2030if eval \${$3+:} false; then :
ddc8de03
PM
2031 $as_echo_n "(cached) " >&6
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
2039#ifndef $as_decl_name
2040#ifdef __cplusplus
2041 (void) $as_decl_use;
2042#else
2043 (void) $as_decl_name;
2044#endif
2045#endif
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$3=yes"
2053else
2054 eval "$3=no"
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057fi
2058eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060$as_echo "$ac_res" >&6; }
22e05272 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ddc8de03
PM
2062
2063} # ac_fn_c_check_decl
2064cat >config.log <<_ACEOF
2065This file contains any messages produced by compilers while
2066running configure, to aid debugging if configure makes a mistake.
2067
2068It was created by libcc1 $as_me version-unused, which was
22e05272 2069generated by GNU Autoconf 2.69. Invocation command line was
ddc8de03
PM
2070
2071 $ $0 $@
2072
2073_ACEOF
2074exec 5>>config.log
2075{
2076cat <<_ASUNAME
2077## --------- ##
2078## Platform. ##
2079## --------- ##
2080
2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
2098_ASUNAME
2099
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 $as_echo "PATH: $as_dir"
2106 done
2107IFS=$as_save_IFS
2108
2109} >&5
2110
2111cat >&5 <<_ACEOF
2112
2113
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2117
2118_ACEOF
2119
2120
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
2123# Strip out --silent because we don't want to record it for future runs.
2124# Also quote any args containing shell meta-characters.
2125# Make two passes to allow for proper duplicate-argument suppression.
2126ac_configure_args=
2127ac_configure_args0=
2128ac_configure_args1=
2129ac_must_keep_next=false
2130for ac_pass in 1 2
2131do
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
2139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 esac
2142 case $ac_pass in
2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 2)
2145 as_fn_append ac_configure_args1 " '$ac_arg'"
2146 if test $ac_must_keep_next = true; then
2147 ac_must_keep_next=false # Got value, back to normal.
2148 else
2149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
2160 fi
2161 as_fn_append ac_configure_args " '$ac_arg'"
2162 ;;
2163 esac
2164 done
2165done
2166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
2168
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log. We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
2172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
2176 {
2177 echo
2178
22e05272 2179 $as_echo "## ---------------- ##
ddc8de03 2180## Cache variables. ##
22e05272 2181## ---------------- ##"
ddc8de03
PM
2182 echo
2183 # The following way of writing the cache mishandles newlines in values,
2184(
2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in #(
2188 *${as_nl}*)
2189 case $ac_var in #(
2190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192 esac
2193 case $ac_var in #(
2194 _ | IFS | as_nl) ;; #(
2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2196 *) { eval $ac_var=; unset $ac_var;} ;;
2197 esac ;;
2198 esac
2199 done
2200 (set) 2>&1 |
2201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202 *${as_nl}ac_space=\ *)
2203 sed -n \
2204 "s/'\''/'\''\\\\'\'''\''/g;
2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206 ;; #(
2207 *)
2208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209 ;;
2210 esac |
2211 sort
2212)
2213 echo
2214
22e05272 2215 $as_echo "## ----------------- ##
ddc8de03 2216## Output variables. ##
22e05272 2217## ----------------- ##"
ddc8de03
PM
2218 echo
2219 for ac_var in $ac_subst_vars
2220 do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
2226 done | sort
2227 echo
2228
2229 if test -n "$ac_subst_files"; then
22e05272 2230 $as_echo "## ------------------- ##
ddc8de03 2231## File substitutions. ##
22e05272 2232## ------------------- ##"
ddc8de03
PM
2233 echo
2234 for ac_var in $ac_subst_files
2235 do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2243 fi
2244
2245 if test -s confdefs.h; then
22e05272 2246 $as_echo "## ----------- ##
ddc8de03 2247## confdefs.h. ##
22e05272 2248## ----------- ##"
ddc8de03
PM
2249 echo
2250 cat confdefs.h
2251 echo
2252 fi
2253 test "$ac_signal" != 0 &&
2254 $as_echo "$as_me: caught signal $ac_signal"
2255 $as_echo "$as_me: exit $exit_status"
2256 } >&5
2257 rm -f core *.core core.conftest.* &&
2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259 exit $exit_status
2260' 0
2261for ac_signal in 1 2 13 15; do
2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263done
2264ac_signal=0
2265
2266# confdefs.h avoids OS command line length limits that DEFS can exceed.
2267rm -f -r conftest* confdefs.h
2268
2269$as_echo "/* confdefs.h */" > confdefs.h
2270
2271# Predefined preprocessor variables.
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_NAME "$PACKAGE_NAME"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_VERSION "$PACKAGE_VERSION"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_STRING "$PACKAGE_STRING"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_URL "$PACKAGE_URL"
2295_ACEOF
2296
2297
2298# Let the site file select an alternate cache file if it wants to.
2299# Prefer an explicitly selected file to automatically selected ones.
2300ac_site_file1=NONE
2301ac_site_file2=NONE
2302if test -n "$CONFIG_SITE"; then
22e05272
JM
2303 # We do not want a PATH search for config.site.
2304 case $CONFIG_SITE in #((
2305 -*) ac_site_file1=./$CONFIG_SITE;;
2306 */*) ac_site_file1=$CONFIG_SITE;;
2307 *) ac_site_file1=./$CONFIG_SITE;;
2308 esac
ddc8de03
PM
2309elif test "x$prefix" != xNONE; then
2310 ac_site_file1=$prefix/share/config.site
2311 ac_site_file2=$prefix/etc/config.site
2312else
2313 ac_site_file1=$ac_default_prefix/share/config.site
2314 ac_site_file2=$ac_default_prefix/etc/config.site
2315fi
2316for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317do
2318 test "x$ac_site_file" = xNONE && continue
22e05272 2319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
ddc8de03
PM
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2323 . "$ac_site_file" \
2324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326as_fn_error $? "failed to load site script $ac_site_file
2327See \`config.log' for more details" "$LINENO" 5; }
ddc8de03
PM
2328 fi
2329done
2330
2331if test -r "$cache_file"; then
22e05272
JM
2332 # Some versions of bash will fail to source /dev/null (special files
2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
ddc8de03
PM
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336$as_echo "$as_me: loading cache $cache_file" >&6;}
2337 case $cache_file in
2338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339 *) . "./$cache_file";;
2340 esac
2341 fi
2342else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344$as_echo "$as_me: creating cache $cache_file" >&6;}
2345 >$cache_file
2346fi
2347
2348# Check that the precious variables saved in the cache have kept the same
2349# value.
2350ac_cache_corrupted=false
2351for ac_var in $ac_precious_vars; do
2352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
2354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
2356 case $ac_old_set,$ac_new_set in
2357 set,)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,set)
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2365 ,);;
2366 *)
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
2368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2381$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2383$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 fi;;
2385 esac
2386 # Pass precious variables to config.status.
2387 if test "$ac_new_set" = set; then
2388 case $ac_new_val in
2389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 *) ac_arg=$ac_var=$ac_new_val ;;
2391 esac
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2395 esac
2396 fi
2397done
2398if $ac_cache_corrupted; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ddc8de03
PM
2404fi
2405## -------------------- ##
2406## Main body of script. ##
2407## -------------------- ##
2408
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
2417
2418
2419
2420ac_config_headers="$ac_config_headers cc1plugin-config.h"
2421
2422
2423ac_aux_dir=
2424for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2425 if test -f "$ac_dir/install-sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install-sh -c"
2428 break
2429 elif test -f "$ac_dir/install.sh"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/install.sh -c"
2432 break
2433 elif test -f "$ac_dir/shtool"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/shtool install -c"
2436 break
2437 fi
ddc8de03
PM
2438done
2439if test -z "$ac_aux_dir"; then
22e05272 2440 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
ddc8de03
PM
2441fi
2442
2443# These three variables are undocumented and unsupported,
2444# and are intended to be withdrawn in a future Autoconf release.
2445# They can cause serious problems if a builder's source tree is in a directory
2446# whose full name contains unusual characters.
2447ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2448ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2449ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2450
2451
2452# Make sure we can run config.sub.
2453$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2454 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ddc8de03
PM
2455
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2457$as_echo_n "checking build system type... " >&6; }
22e05272 2458if ${ac_cv_build+:} false; then :
ddc8de03
PM
2459 $as_echo_n "(cached) " >&6
2460else
2461 ac_build_alias=$build_alias
2462test "x$ac_build_alias" = x &&
2463 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2464test "x$ac_build_alias" = x &&
22e05272 2465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ddc8de03 2466ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ddc8de03
PM
2468
2469fi
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2471$as_echo "$ac_cv_build" >&6; }
2472case $ac_cv_build in
2473*-*-*) ;;
22e05272 2474*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
ddc8de03
PM
2475esac
2476build=$ac_cv_build
2477ac_save_IFS=$IFS; IFS='-'
2478set x $ac_cv_build
2479shift
2480build_cpu=$1
2481build_vendor=$2
2482shift; shift
2483# Remember, the first character of IFS is used to create $*,
2484# except with old shells:
2485build_os=$*
2486IFS=$ac_save_IFS
2487case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2488
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2491$as_echo_n "checking host system type... " >&6; }
22e05272 2492if ${ac_cv_host+:} false; then :
ddc8de03
PM
2493 $as_echo_n "(cached) " >&6
2494else
2495 if test "x$host_alias" = x; then
2496 ac_cv_host=$ac_cv_build
2497else
2498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ddc8de03
PM
2500fi
2501
2502fi
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2504$as_echo "$ac_cv_host" >&6; }
2505case $ac_cv_host in
2506*-*-*) ;;
22e05272 2507*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
ddc8de03
PM
2508esac
2509host=$ac_cv_host
2510ac_save_IFS=$IFS; IFS='-'
2511set x $ac_cv_host
2512shift
2513host_cpu=$1
2514host_vendor=$2
2515shift; shift
2516# Remember, the first character of IFS is used to create $*,
2517# except with old shells:
2518host_os=$*
2519IFS=$ac_save_IFS
2520case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2524$as_echo_n "checking target system type... " >&6; }
22e05272 2525if ${ac_cv_target+:} false; then :
ddc8de03
PM
2526 $as_echo_n "(cached) " >&6
2527else
2528 if test "x$target_alias" = x; then
2529 ac_cv_target=$ac_cv_host
2530else
2531 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ddc8de03
PM
2533fi
2534
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2537$as_echo "$ac_cv_target" >&6; }
2538case $ac_cv_target in
2539*-*-*) ;;
22e05272 2540*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
ddc8de03
PM
2541esac
2542target=$ac_cv_target
2543ac_save_IFS=$IFS; IFS='-'
2544set x $ac_cv_target
2545shift
2546target_cpu=$1
2547target_vendor=$2
2548shift; shift
2549# Remember, the first character of IFS is used to create $*,
2550# except with old shells:
2551target_os=$*
2552IFS=$ac_save_IFS
2553case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554
2555
2556# The aliases save the names the user supplied, while $host etc.
2557# will get canonicalized.
2558test -n "$target_alias" &&
2559 test "$program_prefix$program_suffix$program_transform_name" = \
2560 NONENONEs,x,x, &&
2561 program_prefix=${target_alias}-
2562
22e05272
JM
2563# Expand $ac_aux_dir to an absolute path.
2564am_aux_dir=`cd "$ac_aux_dir" && pwd`
2565
ddc8de03
PM
2566ac_ext=c
2567ac_cpp='$CPP $CPPFLAGS'
2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2573set dummy ${ac_tool_prefix}gcc; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2576if ${ac_cv_prog_CC+:} false; then :
ddc8de03
PM
2577 $as_echo_n "(cached) " >&6
2578else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593done
2594 done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602$as_echo "$CC" >&6; }
2603else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609fi
2610if test -z "$ac_cv_prog_CC"; then
2611 ac_ct_CC=$CC
2612 # Extract the first word of "gcc", so it can be a program name with args.
2613set dummy gcc; ac_word=$2
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2616if ${ac_cv_prog_ac_ct_CC+:} false; then :
ddc8de03
PM
2617 $as_echo_n "(cached) " >&6
2618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2629 ac_cv_prog_ac_ct_CC="gcc"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
2634 done
2635IFS=$as_save_IFS
2636
2637fi
2638fi
2639ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640if test -n "$ac_ct_CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2642$as_echo "$ac_ct_CC" >&6; }
2643else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
2646fi
2647
2648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652yes:)
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655ac_tool_warned=yes ;;
2656esac
2657 CC=$ac_ct_CC
2658 fi
2659else
2660 CC="$ac_cv_prog_CC"
2661fi
2662
2663if test -z "$CC"; then
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2666set dummy ${ac_tool_prefix}cc; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2669if ${ac_cv_prog_CC+:} false; then :
ddc8de03
PM
2670 $as_echo_n "(cached) " >&6
2671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2682 ac_cv_prog_CC="${ac_tool_prefix}cc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687 done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702 fi
2703fi
2704if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706set dummy cc; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2709if ${ac_cv_prog_CC+:} false; then :
ddc8de03
PM
2710 $as_echo_n "(cached) " >&6
2711else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715 ac_prog_rejected=no
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2726 fi
2727 ac_cv_prog_CC="cc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732 done
2733IFS=$as_save_IFS
2734
2735if test $ac_prog_rejected = yes; then
2736 # We found a bogon in the path, so make sure we never use it.
2737 set dummy $ac_cv_prog_CC
2738 shift
2739 if test $# != 0; then
2740 # We chose a different compiler from the bogus one.
2741 # However, it has the same basename, so the bogon will be chosen
2742 # first if we set CC to just the basename; use the full file name.
2743 shift
2744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 fi
2746fi
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752$as_echo "$CC" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759fi
2760if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
2762 for ac_prog in cl.exe
2763 do
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2768if ${ac_cv_prog_CC+:} false; then :
ddc8de03
PM
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794$as_echo "$CC" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801 test -n "$CC" && break
2802 done
2803fi
2804if test -z "$CC"; then
2805 ac_ct_CC=$CC
2806 for ac_prog in cl.exe
2807do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809set dummy $ac_prog; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2812if ${ac_cv_prog_ac_ct_CC+:} false; then :
ddc8de03
PM
2813 $as_echo_n "(cached) " >&6
2814else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
2825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838$as_echo "$ac_ct_CC" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844
2845 test -n "$ac_ct_CC" && break
2846done
2847
2848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855ac_tool_warned=yes ;;
2856esac
2857 CC=$ac_ct_CC
2858 fi
2859fi
2860
2861fi
2862
2863
2864test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2866as_fn_error $? "no acceptable C compiler found in \$PATH
2867See \`config.log' for more details" "$LINENO" 5; }
ddc8de03
PM
2868
2869# Provide some information about the compiler.
2870$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2871set X $ac_compile
2872ac_compiler=$2
2873for ac_option in --version -v -V -qversion; do
2874 { { ac_try="$ac_compiler $ac_option >&5"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880$as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2882 ac_status=$?
2883 if test -s conftest.err; then
2884 sed '10a\
2885... rest of stderr output deleted ...
2886 10q' conftest.err >conftest.er1
2887 cat conftest.er1 >&5
ddc8de03 2888 fi
22e05272 2889 rm -f conftest.er1 conftest.err
ddc8de03
PM
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }
2892done
2893
2894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896
2897int
2898main ()
2899{
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905ac_clean_files_save=$ac_clean_files
22e05272 2906ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ddc8de03
PM
2907# Try to create an executable without -o first, disregard a.out.
2908# It will help us diagnose broken compilers, and finding out an intuition
2909# of exeext.
22e05272
JM
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2911$as_echo_n "checking whether the C compiler works... " >&6; }
ddc8de03
PM
2912ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913
2914# The possible output files:
2915ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916
2917ac_rmfiles=
2918for ac_file in $ac_files
2919do
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2923 esac
2924done
2925rm -f $ac_rmfiles
2926
2927if { { ac_try="$ac_link_default"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933$as_echo "$ac_try_echo"; } >&5
2934 (eval "$ac_link_default") 2>&5
2935 ac_status=$?
2936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937 test $ac_status = 0; }; then :
2938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2939# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2940# in a Makefile. We should not override ac_cv_exeext if it was cached,
2941# so that the user can short-circuit this test for compilers unknown to
2942# Autoconf.
2943for ac_file in $ac_files ''
2944do
2945 test -f "$ac_file" || continue
2946 case $ac_file in
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 ;;
2949 [ab].out )
2950 # We found the default executable, but exeext='' is most
2951 # certainly right.
2952 break;;
2953 *.* )
2954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2955 then :; else
2956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 fi
2958 # We set ac_cv_exeext here because the later test for it is not
2959 # safe: cross compilers may not add the suffix if given an `-o'
2960 # argument, so we may need to know it at that point already.
2961 # Even if this section looks crufty: it has the advantage of
2962 # actually working.
2963 break;;
2964 * )
2965 break;;
2966 esac
2967done
2968test "$ac_cv_exeext" = no && ac_cv_exeext=
2969
2970else
2971 ac_file=''
2972fi
ddc8de03 2973if test -z "$ac_file"; then :
22e05272
JM
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976$as_echo "$as_me: failed program was:" >&5
ddc8de03
PM
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2981as_fn_error 77 "C compiler cannot create executables
2982See \`config.log' for more details" "$LINENO" 5; }
2983else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985$as_echo "yes" >&6; }
ddc8de03 2986fi
22e05272
JM
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2988$as_echo_n "checking for C compiler default output file name... " >&6; }
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990$as_echo "$ac_file" >&6; }
ddc8de03
PM
2991ac_exeext=$ac_cv_exeext
2992
22e05272 2993rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ddc8de03 2994ac_clean_files=$ac_clean_files_save
ddc8de03
PM
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2996$as_echo_n "checking for suffix of executables... " >&6; }
2997if { { ac_try="$ac_link"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3009# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3010# work properly (i.e., refer to `conftest.exe'), while it won't with
3011# `rm'.
3012for ac_file in conftest.exe conftest conftest.*; do
3013 test -f "$ac_file" || continue
3014 case $ac_file in
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 break;;
3018 * ) break;;
3019 esac
3020done
3021else
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3024as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3025See \`config.log' for more details" "$LINENO" 5; }
ddc8de03 3026fi
22e05272 3027rm -f conftest conftest$ac_cv_exeext
ddc8de03
PM
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3029$as_echo "$ac_cv_exeext" >&6; }
3030
3031rm -f conftest.$ac_ext
3032EXEEXT=$ac_cv_exeext
3033ac_exeext=$EXEEXT
22e05272
JM
3034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035/* end confdefs.h. */
3036#include <stdio.h>
3037int
3038main ()
3039{
3040FILE *f = fopen ("conftest.out", "w");
3041 return ferror (f) || fclose (f) != 0;
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047ac_clean_files="$ac_clean_files conftest.out"
3048# Check that the compiler produces executables we can run. If not, either
3049# the compiler is broken, or we cross compile.
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3051$as_echo_n "checking whether we are cross compiling... " >&6; }
3052if test "$cross_compiling" != yes; then
3053 { { ac_try="$ac_link"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 if { ac_try='./conftest$ac_cv_exeext'
3065 { { case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070$as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_try") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; }; then
3075 cross_compiling=no
3076 else
3077 if test "$cross_compiling" = maybe; then
3078 cross_compiling=yes
3079 else
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082as_fn_error $? "cannot run C compiled programs.
3083If you meant to cross compile, use \`--host'.
3084See \`config.log' for more details" "$LINENO" 5; }
3085 fi
3086 fi
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3089$as_echo "$cross_compiling" >&6; }
3090
3091rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3092ac_clean_files=$ac_clean_files_save
ddc8de03
PM
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3094$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3095if ${ac_cv_objext+:} false; then :
ddc8de03
PM
3096 $as_echo_n "(cached) " >&6
3097else
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.o conftest.obj
3110if { { ac_try="$ac_compile"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_compile") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 for ac_file in conftest.o conftest.obj conftest.*; do
3122 test -f "$ac_file" || continue;
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3126 break;;
3127 esac
3128done
3129else
3130 $as_echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3135as_fn_error $? "cannot compute suffix of object files: cannot compile
3136See \`config.log' for more details" "$LINENO" 5; }
ddc8de03
PM
3137fi
3138rm -f conftest.$ac_cv_objext conftest.$ac_ext
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3141$as_echo "$ac_cv_objext" >&6; }
3142OBJEXT=$ac_cv_objext
3143ac_objext=$OBJEXT
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3145$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3146if ${ac_cv_c_compiler_gnu+:} false; then :
ddc8de03
PM
3147 $as_echo_n "(cached) " >&6
3148else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155#ifndef __GNUC__
3156 choke me
3157#endif
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163if ac_fn_c_try_compile "$LINENO"; then :
3164 ac_compiler_gnu=yes
3165else
3166 ac_compiler_gnu=no
3167fi
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171fi
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3173$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3174if test $ac_compiler_gnu = yes; then
3175 GCC=yes
3176else
3177 GCC=
3178fi
3179ac_test_CFLAGS=${CFLAGS+set}
3180ac_save_CFLAGS=$CFLAGS
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3182$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3183if ${ac_cv_prog_cc_g+:} false; then :
ddc8de03
PM
3184 $as_echo_n "(cached) " >&6
3185else
3186 ac_save_c_werror_flag=$ac_c_werror_flag
3187 ac_c_werror_flag=yes
3188 ac_cv_prog_cc_g=no
3189 CFLAGS="-g"
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201if ac_fn_c_try_compile "$LINENO"; then :
3202 ac_cv_prog_cc_g=yes
3203else
3204 CFLAGS=""
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
3216if ac_fn_c_try_compile "$LINENO"; then :
3217
3218else
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232if ac_fn_c_try_compile "$LINENO"; then :
3233 ac_cv_prog_cc_g=yes
3234fi
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3243$as_echo "$ac_cv_prog_cc_g" >&6; }
3244if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3248 CFLAGS="-g -O2"
3249 else
3250 CFLAGS="-g"
3251 fi
3252else
3253 if test "$GCC" = yes; then
3254 CFLAGS="-O2"
3255 else
3256 CFLAGS=
3257 fi
3258fi
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3260$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3261if ${ac_cv_prog_cc_c89+:} false; then :
ddc8de03
PM
3262 $as_echo_n "(cached) " >&6
3263else
3264 ac_cv_prog_cc_c89=no
3265ac_save_CC=$CC
3266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267/* end confdefs.h. */
3268#include <stdarg.h>
3269#include <stdio.h>
22e05272 3270struct stat;
ddc8de03
PM
3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
3289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
3304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320do
3321 CC="$ac_save_CC $ac_arg"
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_c89=$ac_arg
3324fi
3325rm -f core conftest.err conftest.$ac_objext
3326 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327done
3328rm -f conftest.$ac_ext
3329CC=$ac_save_CC
3330
3331fi
3332# AC_CACHE_VAL
3333case "x$ac_cv_prog_cc_c89" in
3334 x)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3336$as_echo "none needed" >&6; } ;;
3337 xno)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3339$as_echo "unsupported" >&6; } ;;
3340 *)
3341 CC="$CC $ac_cv_prog_cc_c89"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3344esac
3345if test "x$ac_cv_prog_cc_c89" != xno; then :
3346
3347fi
3348
3349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
22e05272
JM
3355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3361$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3362if ${am_cv_prog_cc_c_o+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376 # Make sure it works both with $CC and with simple cc.
3377 # Following AC_PROG_CC_C_O, we do the test twice because some
3378 # compilers refuse to overwrite an existing .o file with -o,
3379 # though they will create one.
3380 am_cv_prog_cc_c_o=yes
3381 for am_i in 1 2; do
3382 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3383 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } \
3387 && test -f conftest2.$ac_objext; then
3388 : OK
3389 else
3390 am_cv_prog_cc_c_o=no
3391 break
3392 fi
3393 done
3394 rm -f core conftest*
3395 unset am_i
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3398$as_echo "$am_cv_prog_cc_c_o" >&6; }
3399if test "$am_cv_prog_cc_c_o" != yes; then
3400 # Losing compiler, so override with the script.
3401 # FIXME: It is wrong to rewrite CC.
3402 # But if we don't then we get into trouble of one sort or another.
3403 # A longer-term fix would be to have automake use am__CC in this case,
3404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3405 CC="$am_aux_dir/compile $CC"
3406fi
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412
3413
ddc8de03
PM
3414
3415ac_ext=c
3416ac_cpp='$CPP $CPPFLAGS'
3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3421$as_echo_n "checking how to run the C preprocessor... " >&6; }
3422# On Suns, sometimes $CPP names a directory.
3423if test -n "$CPP" && test -d "$CPP"; then
3424 CPP=
3425fi
3426if test -z "$CPP"; then
22e05272 3427 if ${ac_cv_prog_CPP+:} false; then :
ddc8de03
PM
3428 $as_echo_n "(cached) " >&6
3429else
3430 # Double quotes because CPP needs to be expanded
3431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3432 do
3433 ac_preproc_ok=false
3434for ac_c_preproc_warn_flag in '' yes
3435do
3436 # Use a header file that comes with gcc, so configuring glibc
3437 # with a fresh cross-compiler works.
3438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3439 # <limits.h> exists even on freestanding compilers.
3440 # On the NeXT, cc -E runs the code through the compiler's parser,
3441 # not just through cpp. "Syntax error" is here to catch this case.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h. */
3444#ifdef __STDC__
3445# include <limits.h>
3446#else
3447# include <assert.h>
3448#endif
3449 Syntax error
3450_ACEOF
3451if ac_fn_c_try_cpp "$LINENO"; then :
3452
3453else
3454 # Broken: fails on valid input.
3455continue
3456fi
22e05272 3457rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
3458
3459 # OK, works on sane cases. Now check whether nonexistent headers
3460 # can be detected and how.
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h. */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if ac_fn_c_try_cpp "$LINENO"; then :
3466 # Broken: success on invalid input.
3467continue
3468else
3469 # Passes both tests.
3470ac_preproc_ok=:
3471break
3472fi
22e05272 3473rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
3474
3475done
3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3477rm -f conftest.i conftest.err conftest.$ac_ext
ddc8de03
PM
3478if $ac_preproc_ok; then :
3479 break
3480fi
3481
3482 done
3483 ac_cv_prog_CPP=$CPP
3484
3485fi
3486 CPP=$ac_cv_prog_CPP
3487else
3488 ac_cv_prog_CPP=$CPP
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3491$as_echo "$CPP" >&6; }
3492ac_preproc_ok=false
3493for ac_c_preproc_warn_flag in '' yes
3494do
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h. */
3503#ifdef __STDC__
3504# include <limits.h>
3505#else
3506# include <assert.h>
3507#endif
3508 Syntax error
3509_ACEOF
3510if ac_fn_c_try_cpp "$LINENO"; then :
3511
3512else
3513 # Broken: fails on valid input.
3514continue
3515fi
22e05272 3516rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
3517
3518 # OK, works on sane cases. Now check whether nonexistent headers
3519 # can be detected and how.
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h. */
3522#include <ac_nonexistent.h>
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
3525 # Broken: success on invalid input.
3526continue
3527else
3528 # Passes both tests.
3529ac_preproc_ok=:
3530break
3531fi
22e05272 3532rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
3533
3534done
3535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3536rm -f conftest.i conftest.err conftest.$ac_ext
ddc8de03
PM
3537if $ac_preproc_ok; then :
3538
3539else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3542as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3543See \`config.log' for more details" "$LINENO" 5; }
ddc8de03
PM
3544fi
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3554$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3555if ${ac_cv_path_GREP+:} false; then :
ddc8de03
PM
3556 $as_echo_n "(cached) " >&6
3557else
3558 if test -z "$GREP"; then
3559 ac_path_GREP_found=false
3560 # Loop through the user's path and test for each of PROGNAME-LIST
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_prog in grep ggrep; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3569 as_fn_executable_p "$ac_path_GREP" || continue
ddc8de03
PM
3570# Check for GNU ac_path_GREP and select it if it is found.
3571 # Check for GNU $ac_path_GREP
3572case `"$ac_path_GREP" --version 2>&1` in
3573*GNU*)
3574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3575*)
3576 ac_count=0
3577 $as_echo_n 0123456789 >"conftest.in"
3578 while :
3579 do
3580 cat "conftest.in" "conftest.in" >"conftest.tmp"
3581 mv "conftest.tmp" "conftest.in"
3582 cp "conftest.in" "conftest.nl"
3583 $as_echo 'GREP' >> "conftest.nl"
3584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3586 as_fn_arith $ac_count + 1 && ac_count=$as_val
3587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3588 # Best one so far, save it but keep looking for a better one
3589 ac_cv_path_GREP="$ac_path_GREP"
3590 ac_path_GREP_max=$ac_count
3591 fi
3592 # 10*(2^10) chars as input seems more than enough
3593 test $ac_count -gt 10 && break
3594 done
3595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596esac
3597
3598 $ac_path_GREP_found && break 3
3599 done
3600 done
3601 done
3602IFS=$as_save_IFS
3603 if test -z "$ac_cv_path_GREP"; then
22e05272 3604 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ddc8de03
PM
3605 fi
3606else
3607 ac_cv_path_GREP=$GREP
3608fi
3609
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3612$as_echo "$ac_cv_path_GREP" >&6; }
3613 GREP="$ac_cv_path_GREP"
3614
3615
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3617$as_echo_n "checking for egrep... " >&6; }
22e05272 3618if ${ac_cv_path_EGREP+:} false; then :
ddc8de03
PM
3619 $as_echo_n "(cached) " >&6
3620else
3621 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3622 then ac_cv_path_EGREP="$GREP -E"
3623 else
3624 if test -z "$EGREP"; then
3625 ac_path_EGREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in egrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3635 as_fn_executable_p "$ac_path_EGREP" || continue
ddc8de03
PM
3636# Check for GNU ac_path_EGREP and select it if it is found.
3637 # Check for GNU $ac_path_EGREP
3638case `"$ac_path_EGREP" --version 2>&1` in
3639*GNU*)
3640 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3641*)
3642 ac_count=0
3643 $as_echo_n 0123456789 >"conftest.in"
3644 while :
3645 do
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 $as_echo 'EGREP' >> "conftest.nl"
3650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 as_fn_arith $ac_count + 1 && ac_count=$as_val
3653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_EGREP="$ac_path_EGREP"
3656 ac_path_EGREP_max=$ac_count
3657 fi
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3660 done
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662esac
3663
3664 $ac_path_EGREP_found && break 3
3665 done
3666 done
3667 done
3668IFS=$as_save_IFS
3669 if test -z "$ac_cv_path_EGREP"; then
22e05272 3670 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ddc8de03
PM
3671 fi
3672else
3673 ac_cv_path_EGREP=$EGREP
3674fi
3675
3676 fi
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3679$as_echo "$ac_cv_path_EGREP" >&6; }
3680 EGREP="$ac_cv_path_EGREP"
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3684$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3685if ${ac_cv_header_stdc+:} false; then :
ddc8de03
PM
3686 $as_echo_n "(cached) " >&6
3687else
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h. */
3690#include <stdlib.h>
3691#include <stdarg.h>
3692#include <string.h>
3693#include <float.h>
3694
3695int
3696main ()
3697{
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_header_stdc=yes
3705else
3706 ac_cv_header_stdc=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709
3710if test $ac_cv_header_stdc = yes; then
3711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h. */
3714#include <string.h>
3715
3716_ACEOF
3717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 $EGREP "memchr" >/dev/null 2>&1; then :
3719
3720else
3721 ac_cv_header_stdc=no
3722fi
3723rm -f conftest*
3724
3725fi
3726
3727if test $ac_cv_header_stdc = yes; then
3728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h. */
3731#include <stdlib.h>
3732
3733_ACEOF
3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 $EGREP "free" >/dev/null 2>&1; then :
3736
3737else
3738 ac_cv_header_stdc=no
3739fi
3740rm -f conftest*
3741
3742fi
3743
3744if test $ac_cv_header_stdc = yes; then
3745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3746 if test "$cross_compiling" = yes; then :
3747 :
3748else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
3751#include <ctype.h>
3752#include <stdlib.h>
3753#if ((' ' & 0x0FF) == 0x020)
3754# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3755# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3756#else
3757# define ISLOWER(c) \
3758 (('a' <= (c) && (c) <= 'i') \
3759 || ('j' <= (c) && (c) <= 'r') \
3760 || ('s' <= (c) && (c) <= 'z'))
3761# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762#endif
3763
3764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765int
3766main ()
3767{
3768 int i;
3769 for (i = 0; i < 256; i++)
3770 if (XOR (islower (i), ISLOWER (i))
3771 || toupper (i) != TOUPPER (i))
3772 return 2;
3773 return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_run "$LINENO"; then :
3777
3778else
3779 ac_cv_header_stdc=no
3780fi
3781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3782 conftest.$ac_objext conftest.beam conftest.$ac_ext
3783fi
3784
3785fi
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3788$as_echo "$ac_cv_header_stdc" >&6; }
3789if test $ac_cv_header_stdc = yes; then
3790
3791$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3792
3793fi
3794
3795# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3796for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3797 inttypes.h stdint.h unistd.h
3798do :
3799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3801"
22e05272 3802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ddc8de03
PM
3803 cat >>confdefs.h <<_ACEOF
3804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805_ACEOF
3806
3807fi
3808
3809done
3810
3811
3812
3813 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3814if test "x$ac_cv_header_minix_config_h" = xyes; then :
ddc8de03
PM
3815 MINIX=yes
3816else
3817 MINIX=
3818fi
3819
3820
3821 if test "$MINIX" = yes; then
3822
3823$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3824
3825
3826$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3827
3828
3829$as_echo "#define _MINIX 1" >>confdefs.h
3830
3831 fi
3832
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3835$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3836if ${ac_cv_safe_to_define___extensions__+:} false; then :
ddc8de03
PM
3837 $as_echo_n "(cached) " >&6
3838else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h. */
3841
22e05272
JM
3842# define __EXTENSIONS__ 1
3843 $ac_includes_default
ddc8de03
PM
3844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_safe_to_define___extensions__=yes
3854else
3855 ac_cv_safe_to_define___extensions__=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3860$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3861 test $ac_cv_safe_to_define___extensions__ = yes &&
3862 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3863
3864 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3865
3866 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3867
3868 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3869
3870 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871
3872
3873# Determine the noncanonical target name, for directory use.
3874 case ${build_alias} in
3875 "") build_noncanonical=${build} ;;
3876 *) build_noncanonical=${build_alias} ;;
3877esac
3878
3879 case ${host_alias} in
3880 "") host_noncanonical=${build_noncanonical} ;;
3881 *) host_noncanonical=${host_alias} ;;
3882esac
3883
3884 case ${target_alias} in
3885 "") target_noncanonical=${host_noncanonical} ;;
3886 *) target_noncanonical=${target_alias} ;;
3887esac
3888
3889
3890
3891
3892# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3893# have matching libraries, they should use host libraries: Makefile.tpl
3894# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3895# However, they still use the build modules, because the corresponding
3896# host modules (e.g. bison) are only built for the host when bootstrap
3897# finishes. So:
3898# - build_subdir is where we find build modules, and never changes.
3899# - build_libsubdir is where we find build libraries, and can be overridden.
3900
3901# Prefix 'build-' so this never conflicts with target_subdir.
3902build_subdir="build-${build_noncanonical}"
3903
3904# Check whether --with-build-libsubdir was given.
3905if test "${with_build_libsubdir+set}" = set; then :
3906 withval=$with_build_libsubdir; build_libsubdir="$withval"
3907else
3908 build_libsubdir="$build_subdir"
3909fi
3910
3911# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3912if ( test $srcdir = . && test -d gcc ) \
3913 || test -d $srcdir/../host-${host_noncanonical}; then
3914 host_subdir="host-${host_noncanonical}"
3915else
3916 host_subdir=.
3917fi
3918# No prefix.
3919target_subdir=${target_noncanonical}
3920
3921
3922# 1.11.1: Require that version of automake.
3923# foreign: Don't require README, INSTALL, NEWS, etc.
3924# no-define: Don't define PACKAGE and VERSION.
3925# -Wall: Issue all automake warnings.
3926# -Wno-portability: Don't warn about constructs supported by GNU make.
3927# (because GCC requires GNU make anyhow).
22e05272 3928am__api_version='1.15'
ddc8de03
PM
3929
3930# Find a good install program. We prefer a C program (faster),
3931# so one script is as good as another. But avoid the broken or
3932# incompatible versions:
3933# SysV /etc/install, /usr/sbin/install
3934# SunOS /usr/etc/install
3935# IRIX /sbin/install
3936# AIX /bin/install
3937# AmigaOS /C/install, which installs bootblocks on floppy discs
3938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3939# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3941# OS/2's system install, which has a completely different semantic
3942# ./install, which can be erroneously created by make from ./install.sh.
3943# Reject install programs that cannot install multiple files.
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3945$as_echo_n "checking for a BSD-compatible install... " >&6; }
3946if test -z "$INSTALL"; then
22e05272 3947if ${ac_cv_path_install+:} false; then :
ddc8de03
PM
3948 $as_echo_n "(cached) " >&6
3949else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 # Account for people who put trailing slashes in PATH elements.
3956case $as_dir/ in #((
3957 ./ | .// | /[cC]/* | \
3958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3960 /usr/ucb/* ) ;;
3961 *)
3962 # OSF1 and SCO ODT 3.0 have their own names for install.
3963 # Don't use installbsd from OSF since it installs stuff as root
3964 # by default.
3965 for ac_prog in ginstall scoinst install; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ddc8de03
PM
3968 if test $ac_prog = install &&
3969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3970 # AIX install. It has an incompatible calling convention.
3971 :
3972 elif test $ac_prog = install &&
3973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3974 # program-specific install script used by HP pwplus--don't use.
3975 :
3976 else
3977 rm -rf conftest.one conftest.two conftest.dir
3978 echo one > conftest.one
3979 echo two > conftest.two
3980 mkdir conftest.dir
3981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3982 test -s conftest.one && test -s conftest.two &&
3983 test -s conftest.dir/conftest.one &&
3984 test -s conftest.dir/conftest.two
3985 then
3986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3987 break 3
3988 fi
3989 fi
3990 fi
3991 done
3992 done
3993 ;;
3994esac
3995
3996 done
3997IFS=$as_save_IFS
3998
3999rm -rf conftest.one conftest.two conftest.dir
4000
4001fi
4002 if test "${ac_cv_path_install+set}" = set; then
4003 INSTALL=$ac_cv_path_install
4004 else
4005 # As a last resort, use the slow shell script. Don't cache a
4006 # value for INSTALL within a source directory, because that will
4007 # break other packages using the cache if that directory is
4008 # removed, or if the value is a relative name.
4009 INSTALL=$ac_install_sh
4010 fi
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4013$as_echo "$INSTALL" >&6; }
4014
4015# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4016# It thinks the first close brace ends the variable substitution.
4017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4018
4019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4020
4021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4024$as_echo_n "checking whether build environment is sane... " >&6; }
ddc8de03
PM
4025# Reject unsafe characters in $srcdir or the absolute working directory
4026# name. Accept space and tab only in the latter.
4027am_lf='
4028'
4029case `pwd` in
4030 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4031 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
ddc8de03
PM
4032esac
4033case $srcdir in
4034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
ddc8de03
PM
4036esac
4037
22e05272 4038# Do 'set' in a subshell so we don't clobber the current shell's
ddc8de03
PM
4039# arguments. Must try -L first in case configure is actually a
4040# symlink; some systems play weird games with the mod time of symlinks
4041# (eg FreeBSD returns the mod time of the symlink's containing
4042# directory).
4043if (
22e05272
JM
4044 am_has_slept=no
4045 for am_try in 1 2; do
4046 echo "timestamp, slept: $am_has_slept" > conftest.file
4047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4048 if test "$*" = "X"; then
4049 # -L didn't work.
4050 set X `ls -t "$srcdir/configure" conftest.file`
4051 fi
4052 if test "$*" != "X $srcdir/configure conftest.file" \
4053 && test "$*" != "X conftest.file $srcdir/configure"; then
4054
4055 # If neither matched, then we have a broken ls. This can happen
4056 # if, for instance, CONFIG_SHELL is bash and it inherits a
4057 # broken ls alias from the environment. This has actually
4058 # happened. Such a system could not be considered "sane".
4059 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4060 alias in your environment" "$LINENO" 5
4061 fi
4062 if test "$2" = conftest.file || test $am_try -eq 2; then
4063 break
4064 fi
4065 # Just in case.
4066 sleep 1
4067 am_has_slept=yes
4068 done
ddc8de03
PM
4069 test "$2" = conftest.file
4070 )
4071then
4072 # Ok.
4073 :
4074else
22e05272 4075 as_fn_error $? "newly created file is older than distributed files!
ddc8de03
PM
4076Check your system clock" "$LINENO" 5
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079$as_echo "yes" >&6; }
22e05272
JM
4080# If we didn't sleep, we still need to ensure time stamps of config.status and
4081# generated files are strictly newer.
4082am_sleep_pid=
4083if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4084 ( sleep 1 ) &
4085 am_sleep_pid=$!
4086fi
4087
4088rm -f conftest.file
4089
ddc8de03
PM
4090test "$program_prefix" != NONE &&
4091 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4092# Use a double $ so make ignores it.
4093test "$program_suffix" != NONE &&
4094 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4095# Double any \ or $.
4096# By default was `s,x,x', remove it if useless.
4097ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4098program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4099
ddc8de03
PM
4100if test x"${MISSING+set}" != xset; then
4101 case $am_aux_dir in
4102 *\ * | *\ *)
4103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4104 *)
4105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4106 esac
4107fi
4108# Use eval to expand $SHELL
22e05272
JM
4109if eval "$MISSING --is-lightweight"; then
4110 am_missing_run="$MISSING "
ddc8de03
PM
4111else
4112 am_missing_run=
22e05272
JM
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4114$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
ddc8de03
PM
4115fi
4116
22e05272 4117if test x"${install_sh+set}" != xset; then
ddc8de03
PM
4118 case $am_aux_dir in
4119 *\ * | *\ *)
4120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4121 *)
4122 install_sh="\${SHELL} $am_aux_dir/install-sh"
4123 esac
4124fi
4125
22e05272
JM
4126# Installed binaries are usually stripped using 'strip' when the user
4127# run "make install-strip". However 'strip' might not be the right
ddc8de03 4128# tool to use in cross-compilation environments, therefore Automake
22e05272 4129# will honor the 'STRIP' environment variable to overrule this program.
ddc8de03
PM
4130if test "$cross_compiling" != no; then
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4133set dummy ${ac_tool_prefix}strip; ac_word=$2
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4136if ${ac_cv_prog_STRIP+:} false; then :
ddc8de03
PM
4137 $as_echo_n "(cached) " >&6
4138else
4139 if test -n "$STRIP"; then
4140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
4149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153done
4154 done
4155IFS=$as_save_IFS
4156
4157fi
4158fi
4159STRIP=$ac_cv_prog_STRIP
4160if test -n "$STRIP"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4162$as_echo "$STRIP" >&6; }
4163else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165$as_echo "no" >&6; }
4166fi
4167
4168
4169fi
4170if test -z "$ac_cv_prog_STRIP"; then
4171 ac_ct_STRIP=$STRIP
4172 # Extract the first word of "strip", so it can be a program name with args.
4173set dummy strip; ac_word=$2
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4176if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
ddc8de03
PM
4177 $as_echo_n "(cached) " >&6
4178else
4179 if test -n "$ac_ct_STRIP"; then
4180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
4189 ac_cv_prog_ac_ct_STRIP="strip"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193done
4194 done
4195IFS=$as_save_IFS
4196
4197fi
4198fi
4199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4200if test -n "$ac_ct_STRIP"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4202$as_echo "$ac_ct_STRIP" >&6; }
4203else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207
4208 if test "x$ac_ct_STRIP" = x; then
4209 STRIP=":"
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212yes:)
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217 STRIP=$ac_ct_STRIP
4218 fi
4219else
4220 STRIP="$ac_cv_prog_STRIP"
4221fi
4222
4223fi
4224INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4227$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4228if test -z "$MKDIR_P"; then
22e05272 4229 if ${ac_cv_path_mkdir+:} false; then :
ddc8de03
PM
4230 $as_echo_n "(cached) " >&6
4231else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in mkdir gmkdir; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
ddc8de03
PM
4240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4241 'mkdir (GNU coreutils) '* | \
4242 'mkdir (coreutils) '* | \
4243 'mkdir (fileutils) '4.1*)
4244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4245 break 3;;
4246 esac
4247 done
4248 done
4249 done
4250IFS=$as_save_IFS
4251
4252fi
4253
22e05272 4254 test -d ./--version && rmdir ./--version
ddc8de03
PM
4255 if test "${ac_cv_path_mkdir+set}" = set; then
4256 MKDIR_P="$ac_cv_path_mkdir -p"
4257 else
4258 # As a last resort, use the slow shell script. Don't cache a
4259 # value for MKDIR_P within a source directory, because that will
4260 # break other packages using the cache if that directory is
4261 # removed, or if the value is a relative name.
ddc8de03
PM
4262 MKDIR_P="$ac_install_sh -d"
4263 fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4266$as_echo "$MKDIR_P" >&6; }
4267
ddc8de03
PM
4268for ac_prog in gawk mawk nawk awk
4269do
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271set dummy $ac_prog; ac_word=$2
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4274if ${ac_cv_prog_AWK+:} false; then :
ddc8de03
PM
4275 $as_echo_n "(cached) " >&6
4276else
4277 if test -n "$AWK"; then
4278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4279else
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
4287 ac_cv_prog_AWK="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
4292 done
4293IFS=$as_save_IFS
4294
4295fi
4296fi
4297AWK=$ac_cv_prog_AWK
4298if test -n "$AWK"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4300$as_echo "$AWK" >&6; }
4301else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
4304fi
4305
4306
4307 test -n "$AWK" && break
4308done
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4312set x ${MAKE-make}
4313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4314if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
ddc8de03
PM
4315 $as_echo_n "(cached) " >&6
4316else
4317 cat >conftest.make <<\_ACEOF
4318SHELL = /bin/sh
4319all:
4320 @echo '@@@%%%=$(MAKE)=@@@%%%'
4321_ACEOF
22e05272 4322# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
ddc8de03
PM
4323case `${MAKE-make} -f conftest.make 2>/dev/null` in
4324 *@@@%%%=?*=@@@%%%*)
4325 eval ac_cv_prog_make_${ac_make}_set=yes;;
4326 *)
4327 eval ac_cv_prog_make_${ac_make}_set=no;;
4328esac
4329rm -f conftest.make
4330fi
4331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4333$as_echo "yes" >&6; }
4334 SET_MAKE=
4335else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338 SET_MAKE="MAKE=${MAKE-make}"
4339fi
4340
4341rm -rf .tst 2>/dev/null
4342mkdir .tst 2>/dev/null
4343if test -d .tst; then
4344 am__leading_dot=.
4345else
4346 am__leading_dot=_
4347fi
4348rmdir .tst 2>/dev/null
4349
4350DEPDIR="${am__leading_dot}deps"
4351
4352ac_config_commands="$ac_config_commands depfiles"
4353
4354
4355am_make=${MAKE-make}
4356cat > confinc << 'END'
4357am__doit:
4358 @echo this is the am__doit target
4359.PHONY: am__doit
4360END
4361# If we don't find an include directive, just comment out the code.
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4363$as_echo_n "checking for style of include used by $am_make... " >&6; }
4364am__include="#"
4365am__quote=
4366_am_result=none
4367# First try GNU make style include.
4368echo "include confinc" > confmf
22e05272 4369# Ignore all kinds of additional output from 'make'.
ddc8de03
PM
4370case `$am_make -s -f confmf 2> /dev/null` in #(
4371*the\ am__doit\ target*)
4372 am__include=include
4373 am__quote=
4374 _am_result=GNU
4375 ;;
4376esac
4377# Now try BSD make style include.
4378if test "$am__include" = "#"; then
4379 echo '.include "confinc"' > confmf
4380 case `$am_make -s -f confmf 2> /dev/null` in #(
4381 *the\ am__doit\ target*)
4382 am__include=.include
4383 am__quote="\""
4384 _am_result=BSD
4385 ;;
4386 esac
4387fi
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4391$as_echo "$_am_result" >&6; }
4392rm -f confinc confmf
4393
4394# Check whether --enable-dependency-tracking was given.
4395if test "${enable_dependency_tracking+set}" = set; then :
4396 enableval=$enable_dependency_tracking;
4397fi
4398
4399if test "x$enable_dependency_tracking" != xno; then
4400 am_depcomp="$ac_aux_dir/depcomp"
4401 AMDEPBACKSLASH='\'
4709a6d2 4402 am__nodep='_no'
ddc8de03
PM
4403fi
4404 if test "x$enable_dependency_tracking" != xno; then
4405 AMDEP_TRUE=
4406 AMDEP_FALSE='#'
4407else
4408 AMDEP_TRUE='#'
4409 AMDEP_FALSE=
4410fi
4411
4412
22e05272
JM
4413# Check whether --enable-silent-rules was given.
4414if test "${enable_silent_rules+set}" = set; then :
4415 enableval=$enable_silent_rules;
4416fi
4417
4418case $enable_silent_rules in # (((
4419 yes) AM_DEFAULT_VERBOSITY=0;;
4420 no) AM_DEFAULT_VERBOSITY=1;;
4421 *) AM_DEFAULT_VERBOSITY=1;;
4422esac
4423am_make=${MAKE-make}
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4425$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4426if ${am_cv_make_support_nested_variables+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 if $as_echo 'TRUE=$(BAR$(V))
4430BAR0=false
4431BAR1=true
4432V=1
4433am__doit:
4434 @$(TRUE)
4435.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4436 am_cv_make_support_nested_variables=yes
4437else
4438 am_cv_make_support_nested_variables=no
4439fi
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4442$as_echo "$am_cv_make_support_nested_variables" >&6; }
4443if test $am_cv_make_support_nested_variables = yes; then
4444 AM_V='$(V)'
4445 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4446else
4447 AM_V=$AM_DEFAULT_VERBOSITY
4448 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4449fi
4450AM_BACKSLASH='\'
4451
ddc8de03
PM
4452if test "`cd $srcdir && pwd`" != "`pwd`"; then
4453 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4454 # is not polluted with repeated "-I."
4455 am__isrc=' -I$(srcdir)'
4456 # test to see if srcdir already configured
4457 if test -f $srcdir/config.status; then
22e05272 4458 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
ddc8de03
PM
4459 fi
4460fi
4461
4462# test whether we have cygpath
4463if test -z "$CYGPATH_W"; then
4464 if (cygpath --version) >/dev/null 2>/dev/null; then
4465 CYGPATH_W='cygpath -w'
4466 else
4467 CYGPATH_W=echo
4468 fi
4469fi
4470
4471
4472# Define the identity of the package.
4473 PACKAGE='libcc1'
4474 VERSION='version-unused'
4475
4476
4477# Some tools Automake needs.
4478
4479ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4480
4481
4482AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4483
4484
4485AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4486
4487
4488AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4489
4490
4491MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4492
22e05272
JM
4493# For better backward compatibility. To be removed once Automake 1.9.x
4494# dies out for good. For more background, see:
4495# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4496# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4497mkdir_p='$(MKDIR_P)'
4498
4499# We need awk for the "check" target (and possibly the TAP driver). The
4500# system "awk" is bad on some platforms.
4709a6d2
MH
4501# Always define AMTAR for backward compatibility. Yes, it's still used
4502# in the wild :-( We should find a proper way to deprecate it ...
4503AMTAR='$${TAR-tar}'
ddc8de03 4504
22e05272
JM
4505
4506# We'll loop over all known methods to create a tar archive until one works.
4507_am_tools='gnutar pax cpio none'
4508
4709a6d2 4509am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
ddc8de03
PM
4510
4511
4512
4513
22e05272 4514
ddc8de03
PM
4515depcc="$CC" am_compiler_list=
4516
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4518$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4519if ${am_cv_CC_dependencies_compiler_type+:} false; then :
ddc8de03
PM
4520 $as_echo_n "(cached) " >&6
4521else
4522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4709a6d2 4528 rm -rf conftest.dir
ddc8de03
PM
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CC_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
ddc8de03
PM
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
22e05272 4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
ddc8de03 4569 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
ddc8de03
PM
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
22e05272
JM
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
ddc8de03
PM
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4709a6d2 4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4589 # This compiler won't grok '-c -o', but also, the minuso test has
ddc8de03
PM
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thusly:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CC_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623else
4624 am_cv_CC_dependencies_compiler_type=none
4625fi
4626
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4630CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633 test "x$enable_dependency_tracking" != xno \
4634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635 am__fastdepCC_TRUE=
4636 am__fastdepCC_FALSE='#'
4637else
4638 am__fastdepCC_TRUE='#'
4639 am__fastdepCC_FALSE=
4640fi
4641
4642
4643
22e05272
JM
4644# POSIX will say in a future version that running "rm -f" with no argument
4645# is OK; and we want to be able to make that assumption in our Makefile
4646# recipes. So use an aggressive probe to check that the usage we want is
4647# actually supported "in the wild" to an acceptable degree.
4648# See automake bug#10828.
4649# To make any issue more visible, cause the running configure to be aborted
4650# by default if the 'rm' program in use doesn't match our expectations; the
4651# user can still override this though.
4652if rm -f && rm -fr && rm -rf; then : OK; else
4653 cat >&2 <<'END'
4654Oops!
4655
4656Your 'rm' program seems unable to run without file operands specified
4657on the command line, even when the '-f' option is present. This is contrary
4658to the behaviour of most rm programs out there, and not conforming with
4659the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4660
4661Please tell bug-automake@gnu.org about your system, including the value
4662of your $PATH and any error possibly output before this message. This
4663can help us improve future automake versions.
4664
4665END
4666 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4667 echo 'Configuration will proceed anyway, since you have set the' >&2
4668 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4669 echo >&2
4670 else
4671 cat >&2 <<'END'
4672Aborting the configuration process, to ensure you take notice of the issue.
4673
4674You can download and install GNU coreutils to get an 'rm' implementation
4675that behaves properly: <http://www.gnu.org/software/coreutils/>.
4676
4677If you want to complete the configuration process using your problematic
4678'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4679to "yes", and re-run configure.
4680
4681END
4682 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4683 fi
4684fi
4685
ddc8de03
PM
4686
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4688$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4689 # Check whether --enable-maintainer-mode was given.
4690if test "${enable_maintainer_mode+set}" = set; then :
4691 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4692else
4693 USE_MAINTAINER_MODE=no
4694fi
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4697$as_echo "$USE_MAINTAINER_MODE" >&6; }
4698 if test $USE_MAINTAINER_MODE = yes; then
4699 MAINTAINER_MODE_TRUE=
4700 MAINTAINER_MODE_FALSE='#'
4701else
4702 MAINTAINER_MODE_TRUE='#'
4703 MAINTAINER_MODE_FALSE=
4704fi
4705
4706 MAINT=$MAINTAINER_MODE_TRUE
4707
4708
4709
4710case `pwd` in
4711 *\ * | *\ *)
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4713$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4714esac
4715
4716
4717
4718macro_version='2.2.7a'
4719macro_revision='1.3134'
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733ltmain="$ac_aux_dir/ltmain.sh"
4734
4735# Backslashify metacharacters that are still active within
4736# double-quoted strings.
4737sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4738
4739# Same as above, but do not quote variable references.
4740double_quote_subst='s/\(["`\\]\)/\\\1/g'
4741
4742# Sed substitution to delay expansion of an escaped shell variable in a
4743# double_quote_subst'ed string.
4744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4745
4746# Sed substitution to delay expansion of an escaped single quote.
4747delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4748
4749# Sed substitution to avoid accidental globbing in evaled expressions
4750no_glob_subst='s/\*/\\\*/g'
4751
4752ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4753ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4754ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4755
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4757$as_echo_n "checking how to print strings... " >&6; }
4758# Test print first, because it will be a builtin if present.
4759if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4760 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4761 ECHO='print -r --'
4762elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4763 ECHO='printf %s\n'
4764else
4765 # Use this function as a fallback that always works.
4766 func_fallback_echo ()
4767 {
4768 eval 'cat <<_LTECHO_EOF
4769$1
4770_LTECHO_EOF'
4771 }
4772 ECHO='func_fallback_echo'
4773fi
4774
4775# func_echo_all arg...
4776# Invoke $ECHO with all args, space-separated.
4777func_echo_all ()
4778{
4779 $ECHO ""
4780}
4781
4782case "$ECHO" in
4783 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4784$as_echo "printf" >&6; } ;;
4785 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4786$as_echo "print -r" >&6; } ;;
4787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4788$as_echo "cat" >&6; } ;;
4789esac
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4805$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4806if ${ac_cv_path_SED+:} false; then :
ddc8de03
PM
4807 $as_echo_n "(cached) " >&6
4808else
4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4810 for ac_i in 1 2 3 4 5 6 7; do
4811 ac_script="$ac_script$as_nl$ac_script"
4812 done
4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4814 { ac_script=; unset ac_script;}
4815 if test -z "$SED"; then
4816 ac_path_SED_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in sed gsed; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4826 as_fn_executable_p "$ac_path_SED" || continue
ddc8de03
PM
4827# Check for GNU ac_path_SED and select it if it is found.
4828 # Check for GNU $ac_path_SED
4829case `"$ac_path_SED" --version 2>&1` in
4830*GNU*)
4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4832*)
4833 ac_count=0
4834 $as_echo_n 0123456789 >"conftest.in"
4835 while :
4836 do
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo '' >> "conftest.nl"
4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_SED="$ac_path_SED"
4847 ac_path_SED_max=$ac_count
4848 fi
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4851 done
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853esac
4854
4855 $ac_path_SED_found && break 3
4856 done
4857 done
4858 done
4859IFS=$as_save_IFS
4860 if test -z "$ac_cv_path_SED"; then
22e05272 4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ddc8de03
PM
4862 fi
4863else
4864 ac_cv_path_SED=$SED
4865fi
4866
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4869$as_echo "$ac_cv_path_SED" >&6; }
4870 SED="$ac_cv_path_SED"
4871 rm -f conftest.sed
4872
4873test -z "$SED" && SED=sed
4874Xsed="$SED -e 1s/^X//"
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4887$as_echo_n "checking for fgrep... " >&6; }
22e05272 4888if ${ac_cv_path_FGREP+:} false; then :
ddc8de03
PM
4889 $as_echo_n "(cached) " >&6
4890else
4891 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4892 then ac_cv_path_FGREP="$GREP -F"
4893 else
4894 if test -z "$FGREP"; then
4895 ac_path_FGREP_found=false
4896 # Loop through the user's path and test for each of PROGNAME-LIST
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_prog in fgrep; do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4905 as_fn_executable_p "$ac_path_FGREP" || continue
ddc8de03
PM
4906# Check for GNU ac_path_FGREP and select it if it is found.
4907 # Check for GNU $ac_path_FGREP
4908case `"$ac_path_FGREP" --version 2>&1` in
4909*GNU*)
4910 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4911*)
4912 ac_count=0
4913 $as_echo_n 0123456789 >"conftest.in"
4914 while :
4915 do
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
4919 $as_echo 'FGREP' >> "conftest.nl"
4920 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922 as_fn_arith $ac_count + 1 && ac_count=$as_val
4923 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_FGREP="$ac_path_FGREP"
4926 ac_path_FGREP_max=$ac_count
4927 fi
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4930 done
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932esac
4933
4934 $ac_path_FGREP_found && break 3
4935 done
4936 done
4937 done
4938IFS=$as_save_IFS
4939 if test -z "$ac_cv_path_FGREP"; then
22e05272 4940 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ddc8de03
PM
4941 fi
4942else
4943 ac_cv_path_FGREP=$FGREP
4944fi
4945
4946 fi
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4949$as_echo "$ac_cv_path_FGREP" >&6; }
4950 FGREP="$ac_cv_path_FGREP"
4951
4952
4953test -z "$GREP" && GREP=grep
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973# Check whether --with-gnu-ld was given.
4974if test "${with_gnu_ld+set}" = set; then :
4975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4976else
4977 with_gnu_ld=no
4978fi
4979
4980ac_prog=ld
4981if test "$GCC" = yes; then
4982 # Check if gcc -print-prog-name=ld gives a path.
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4984$as_echo_n "checking for ld used by $CC... " >&6; }
4985 case $host in
4986 *-*-mingw*)
4987 # gcc leaves a trailing carriage return which upsets mingw
4988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4989 *)
4990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4991 esac
4992 case $ac_prog in
4993 # Accept absolute paths.
4994 [\\/]* | ?:[\\/]*)
4995 re_direlt='/[^/][^/]*/\.\./'
4996 # Canonicalize the pathname of ld
4997 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4998 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4999 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5000 done
5001 test -z "$LD" && LD="$ac_prog"
5002 ;;
5003 "")
5004 # If it fails, then pretend we aren't using GCC.
5005 ac_prog=ld
5006 ;;
5007 *)
5008 # If it is relative, then search for the first ld in PATH.
5009 with_gnu_ld=unknown
5010 ;;
5011 esac
5012elif test "$with_gnu_ld" = yes; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5014$as_echo_n "checking for GNU ld... " >&6; }
5015else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5017$as_echo_n "checking for non-GNU ld... " >&6; }
5018fi
22e05272 5019if ${lt_cv_path_LD+:} false; then :
ddc8de03
PM
5020 $as_echo_n "(cached) " >&6
5021else
5022 if test -z "$LD"; then
5023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5025 IFS="$lt_save_ifs"
5026 test -z "$ac_dir" && ac_dir=.
5027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5028 lt_cv_path_LD="$ac_dir/$ac_prog"
5029 # Check to see if the program is GNU ld. I'd rather use --version,
5030 # but apparently some variants of GNU ld only accept -v.
5031 # Break only if it was the GNU/non-GNU ld that we prefer.
5032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5033 *GNU* | *'with BFD'*)
5034 test "$with_gnu_ld" != no && break
5035 ;;
5036 *)
5037 test "$with_gnu_ld" != yes && break
5038 ;;
5039 esac
5040 fi
5041 done
5042 IFS="$lt_save_ifs"
5043else
5044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5045fi
5046fi
5047
5048LD="$lt_cv_path_LD"
5049if test -n "$LD"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5051$as_echo "$LD" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
22e05272 5056test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
ddc8de03
PM
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5058$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5059if ${lt_cv_prog_gnu_ld+:} false; then :
ddc8de03
PM
5060 $as_echo_n "(cached) " >&6
5061else
5062 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5063case `$LD -v 2>&1 </dev/null` in
5064*GNU* | *'with BFD'*)
5065 lt_cv_prog_gnu_ld=yes
5066 ;;
5067*)
5068 lt_cv_prog_gnu_ld=no
5069 ;;
5070esac
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5073$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5074with_gnu_ld=$lt_cv_prog_gnu_ld
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5085$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5086if ${lt_cv_path_NM+:} false; then :
ddc8de03
PM
5087 $as_echo_n "(cached) " >&6
5088else
5089 if test -n "$NM"; then
5090 # Let the user override the test.
5091 lt_cv_path_NM="$NM"
5092else
5093 lt_nm_to_check="${ac_tool_prefix}nm"
5094 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5095 lt_nm_to_check="$lt_nm_to_check nm"
5096 fi
5097 for lt_tmp_nm in $lt_nm_to_check; do
5098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5099 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5100 IFS="$lt_save_ifs"
5101 test -z "$ac_dir" && ac_dir=.
5102 tmp_nm="$ac_dir/$lt_tmp_nm"
5103 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5104 # Check to see if the nm accepts a BSD-compat flag.
5105 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5106 # nm: unknown option "B" ignored
5107 # Tru64's nm complains that /dev/null is an invalid object file
5108 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5109 */dev/null* | *'Invalid file or object type'*)
5110 lt_cv_path_NM="$tmp_nm -B"
5111 break
5112 ;;
5113 *)
5114 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5115 */dev/null*)
5116 lt_cv_path_NM="$tmp_nm -p"
5117 break
5118 ;;
5119 *)
5120 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5121 continue # so that we can try to find one that supports BSD flags
5122 ;;
5123 esac
5124 ;;
5125 esac
5126 fi
5127 done
5128 IFS="$lt_save_ifs"
5129 done
5130 : ${lt_cv_path_NM=no}
5131fi
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5134$as_echo "$lt_cv_path_NM" >&6; }
5135if test "$lt_cv_path_NM" != "no"; then
5136 NM="$lt_cv_path_NM"
5137else
5138 # Didn't find any BSD compatible name lister, look for dumpbin.
5139 if test -n "$DUMPBIN"; then :
5140 # Let the user override the test.
5141 else
5142 if test -n "$ac_tool_prefix"; then
5143 for ac_prog in dumpbin "link -dump"
5144 do
5145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5149if ${ac_cv_prog_DUMPBIN+:} false; then :
ddc8de03
PM
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -n "$DUMPBIN"; then
5153 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5162 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166done
5167 done
5168IFS=$as_save_IFS
5169
5170fi
5171fi
5172DUMPBIN=$ac_cv_prog_DUMPBIN
5173if test -n "$DUMPBIN"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5175$as_echo "$DUMPBIN" >&6; }
5176else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182 test -n "$DUMPBIN" && break
5183 done
5184fi
5185if test -z "$DUMPBIN"; then
5186 ac_ct_DUMPBIN=$DUMPBIN
5187 for ac_prog in dumpbin "link -dump"
5188do
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190set dummy $ac_prog; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5193if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ddc8de03
PM
5194 $as_echo_n "(cached) " >&6
5195else
5196 if test -n "$ac_ct_DUMPBIN"; then
5197 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210done
5211 done
5212IFS=$as_save_IFS
5213
5214fi
5215fi
5216ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5217if test -n "$ac_ct_DUMPBIN"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5219$as_echo "$ac_ct_DUMPBIN" >&6; }
5220else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225
5226 test -n "$ac_ct_DUMPBIN" && break
5227done
5228
5229 if test "x$ac_ct_DUMPBIN" = x; then
5230 DUMPBIN=":"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233yes:)
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238 DUMPBIN=$ac_ct_DUMPBIN
5239 fi
5240fi
5241
5242 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5243 *COFF*)
5244 DUMPBIN="$DUMPBIN -symbols"
5245 ;;
5246 *)
5247 DUMPBIN=:
5248 ;;
5249 esac
5250 fi
5251
5252 if test "$DUMPBIN" != ":"; then
5253 NM="$DUMPBIN"
5254 fi
5255fi
5256test -z "$NM" && NM=nm
5257
5258
5259
5260
5261
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5264$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5265if ${lt_cv_nm_interface+:} false; then :
ddc8de03
PM
5266 $as_echo_n "(cached) " >&6
5267else
5268 lt_cv_nm_interface="BSD nm"
5269 echo "int some_variable = 0;" > conftest.$ac_ext
5270 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5271 (eval "$ac_compile" 2>conftest.err)
5272 cat conftest.err >&5
5273 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5274 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5275 cat conftest.err >&5
5276 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5277 cat conftest.out >&5
5278 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5279 lt_cv_nm_interface="MS dumpbin"
5280 fi
5281 rm -f conftest*
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5284$as_echo "$lt_cv_nm_interface" >&6; }
5285
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5287$as_echo_n "checking whether ln -s works... " >&6; }
5288LN_S=$as_ln_s
5289if test "$LN_S" = "ln -s"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291$as_echo "yes" >&6; }
5292else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5294$as_echo "no, using $LN_S" >&6; }
5295fi
5296
5297# find the maximum length of command line arguments
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5299$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5300if ${lt_cv_sys_max_cmd_len+:} false; then :
ddc8de03
PM
5301 $as_echo_n "(cached) " >&6
5302else
5303 i=0
5304 teststring="ABCD"
5305
5306 case $build_os in
5307 msdosdjgpp*)
5308 # On DJGPP, this test can blow up pretty badly due to problems in libc
5309 # (any single argument exceeding 2000 bytes causes a buffer overrun
5310 # during glob expansion). Even if it were fixed, the result of this
5311 # check would be larger than it should be.
5312 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5313 ;;
5314
5315 gnu*)
5316 # Under GNU Hurd, this test is not required because there is
5317 # no limit to the length of command line arguments.
5318 # Libtool will interpret -1 as no limit whatsoever
5319 lt_cv_sys_max_cmd_len=-1;
5320 ;;
5321
5322 cygwin* | mingw* | cegcc*)
5323 # On Win9x/ME, this test blows up -- it succeeds, but takes
5324 # about 5 minutes as the teststring grows exponentially.
5325 # Worse, since 9x/ME are not pre-emptively multitasking,
5326 # you end up with a "frozen" computer, even though with patience
5327 # the test eventually succeeds (with a max line length of 256k).
5328 # Instead, let's just punt: use the minimum linelength reported by
5329 # all of the supported platforms: 8192 (on NT/2K/XP).
5330 lt_cv_sys_max_cmd_len=8192;
5331 ;;
5332
5333 mint*)
5334 # On MiNT this can take a long time and run out of memory.
5335 lt_cv_sys_max_cmd_len=8192;
5336 ;;
5337
5338 amigaos*)
5339 # On AmigaOS with pdksh, this test takes hours, literally.
5340 # So we just punt and use a minimum line length of 8192.
5341 lt_cv_sys_max_cmd_len=8192;
5342 ;;
5343
5344 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5345 # This has been around since 386BSD, at least. Likely further.
5346 if test -x /sbin/sysctl; then
5347 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5348 elif test -x /usr/sbin/sysctl; then
5349 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5350 else
5351 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5352 fi
5353 # And add a safety zone
5354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5356 ;;
5357
5358 interix*)
5359 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5360 lt_cv_sys_max_cmd_len=196608
5361 ;;
5362
5363 osf*)
5364 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5365 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5366 # nice to cause kernel panics so lets avoid the loop below.
5367 # First set a reasonable default.
5368 lt_cv_sys_max_cmd_len=16384
5369 #
5370 if test -x /sbin/sysconfig; then
5371 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5372 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5373 esac
5374 fi
5375 ;;
5376 sco3.2v5*)
5377 lt_cv_sys_max_cmd_len=102400
5378 ;;
5379 sysv5* | sco5v6* | sysv4.2uw2*)
5380 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5381 if test -n "$kargmax"; then
5382 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5383 else
5384 lt_cv_sys_max_cmd_len=32768
5385 fi
5386 ;;
5387 *)
5388 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5389 if test -n "$lt_cv_sys_max_cmd_len"; then
5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5392 else
5393 # Make teststring a little bigger before we do anything with it.
5394 # a 1K string should be a reasonable start.
5395 for i in 1 2 3 4 5 6 7 8 ; do
5396 teststring=$teststring$teststring
5397 done
5398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5399 # If test is not a shell built-in, we'll probably end up computing a
5400 # maximum length that is only half of the actual maximum length, but
5401 # we can't tell.
5402 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5403 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5404 test $i != 17 # 1/2 MB should be enough
5405 do
5406 i=`expr $i + 1`
5407 teststring=$teststring$teststring
5408 done
5409 # Only check the string length outside the loop.
5410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5411 teststring=
5412 # Add a significant safety factor because C++ compilers can tack on
5413 # massive amounts of additional arguments before passing them to the
5414 # linker. It appears as though 1/2 is a usable value.
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5416 fi
5417 ;;
5418 esac
5419
5420fi
5421
5422if test -n $lt_cv_sys_max_cmd_len ; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5424$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5427$as_echo "none" >&6; }
5428fi
5429max_cmd_len=$lt_cv_sys_max_cmd_len
5430
5431
5432
5433
5434
5435
5436: ${CP="cp -f"}
5437: ${MV="mv -f"}
5438: ${RM="rm -f"}
5439
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5441$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5442# Try some XSI features
5443xsi_shell=no
5444( _lt_dummy="a/b/c"
5445 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5446 = c,a/b,, \
5447 && eval 'test $(( 1 + 1 )) -eq 2 \
5448 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5449 && xsi_shell=yes
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5451$as_echo "$xsi_shell" >&6; }
5452
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5455$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5456lt_shell_append=no
5457( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5458 >/dev/null 2>&1 \
5459 && lt_shell_append=yes
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5461$as_echo "$lt_shell_append" >&6; }
5462
5463
5464if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5465 lt_unset=unset
5466else
5467 lt_unset=false
5468fi
5469
5470
5471
5472
5473
5474# test EBCDIC or ASCII
5475case `echo X|tr X '\101'` in
5476 A) # ASCII based system
5477 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5478 lt_SP2NL='tr \040 \012'
5479 lt_NL2SP='tr \015\012 \040\040'
5480 ;;
5481 *) # EBCDIC based system
5482 lt_SP2NL='tr \100 \n'
5483 lt_NL2SP='tr \r\n \100\100'
5484 ;;
5485esac
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5496$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5497if ${lt_cv_ld_reload_flag+:} false; then :
ddc8de03
PM
5498 $as_echo_n "(cached) " >&6
5499else
5500 lt_cv_ld_reload_flag='-r'
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5503$as_echo "$lt_cv_ld_reload_flag" >&6; }
5504reload_flag=$lt_cv_ld_reload_flag
5505case $reload_flag in
5506"" | " "*) ;;
5507*) reload_flag=" $reload_flag" ;;
5508esac
5509reload_cmds='$LD$reload_flag -o $output$reload_objs'
5510case $host_os in
5511 darwin*)
5512 if test "$GCC" = yes; then
5513 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5514 else
5515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516 fi
5517 ;;
5518esac
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528if test -n "$ac_tool_prefix"; then
5529 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5530set dummy ${ac_tool_prefix}objdump; ac_word=$2
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5533if ${ac_cv_prog_OBJDUMP+:} false; then :
ddc8de03
PM
5534 $as_echo_n "(cached) " >&6
5535else
5536 if test -n "$OBJDUMP"; then
5537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5538else
5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH
5541do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5546 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550done
5551 done
5552IFS=$as_save_IFS
5553
5554fi
5555fi
5556OBJDUMP=$ac_cv_prog_OBJDUMP
5557if test -n "$OBJDUMP"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5559$as_echo "$OBJDUMP" >&6; }
5560else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562$as_echo "no" >&6; }
5563fi
5564
5565
5566fi
5567if test -z "$ac_cv_prog_OBJDUMP"; then
5568 ac_ct_OBJDUMP=$OBJDUMP
5569 # Extract the first word of "objdump", so it can be a program name with args.
5570set dummy objdump; ac_word=$2
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5573if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
ddc8de03
PM
5574 $as_echo_n "(cached) " >&6
5575else
5576 if test -n "$ac_ct_OBJDUMP"; then
5577 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5578else
5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5586 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590done
5591 done
5592IFS=$as_save_IFS
5593
5594fi
5595fi
5596ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5597if test -n "$ac_ct_OBJDUMP"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5599$as_echo "$ac_ct_OBJDUMP" >&6; }
5600else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602$as_echo "no" >&6; }
5603fi
5604
5605 if test "x$ac_ct_OBJDUMP" = x; then
5606 OBJDUMP="false"
5607 else
5608 case $cross_compiling:$ac_tool_warned in
5609yes:)
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5612ac_tool_warned=yes ;;
5613esac
5614 OBJDUMP=$ac_ct_OBJDUMP
5615 fi
5616else
5617 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618fi
5619
5620test -z "$OBJDUMP" && OBJDUMP=objdump
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5631$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5632if ${lt_cv_deplibs_check_method+:} false; then :
ddc8de03
PM
5633 $as_echo_n "(cached) " >&6
5634else
5635 lt_cv_file_magic_cmd='$MAGIC_CMD'
5636lt_cv_file_magic_test_file=
5637lt_cv_deplibs_check_method='unknown'
5638# Need to set the preceding variable on all platforms that support
5639# interlibrary dependencies.
5640# 'none' -- dependencies not supported.
5641# `unknown' -- same as none, but documents that we really don't know.
5642# 'pass_all' -- all dependencies passed with no checks.
5643# 'test_compile' -- check by making test program.
5644# 'file_magic [[regex]]' -- check by looking for files in library path
5645# which responds to the $file_magic_cmd with a given extended regex.
5646# If you have `file' or equivalent on your system and you're not sure
5647# whether `pass_all' will *always* work, you probably want this one.
5648
5649case $host_os in
5650aix[4-9]*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654beos*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658bsdi[45]*)
5659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5660 lt_cv_file_magic_cmd='/usr/bin/file -L'
5661 lt_cv_file_magic_test_file=/shlib/libc.so
5662 ;;
5663
5664cygwin*)
5665 # func_win32_libid is a shell function defined in ltmain.sh
5666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5667 lt_cv_file_magic_cmd='func_win32_libid'
5668 ;;
5669
5670mingw* | pw32*)
5671 # Base MSYS/MinGW do not provide the 'file' command needed by
5672 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5673 # unless we find 'file', for example because we are cross-compiling.
5674 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5675 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5676 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5677 lt_cv_file_magic_cmd='func_win32_libid'
5678 else
5679 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5680 lt_cv_file_magic_cmd='$OBJDUMP -f'
5681 fi
5682 ;;
5683
5684cegcc*)
5685 # use the weaker test based on 'objdump'. See mingw*.
5686 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5687 lt_cv_file_magic_cmd='$OBJDUMP -f'
5688 ;;
5689
5690darwin* | rhapsody*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694freebsd* | dragonfly*)
5695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 case $host_cpu in
5697 i*86 )
5698 # Not sure whether the presence of OpenBSD here was a mistake.
5699 # Let's accept both of them until this is cleared up.
5700 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5701 lt_cv_file_magic_cmd=/usr/bin/file
5702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5703 ;;
5704 esac
5705 else
5706 lt_cv_deplibs_check_method=pass_all
5707 fi
5708 ;;
5709
5710gnu*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714haiku*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718hpux10.20* | hpux11*)
5719 lt_cv_file_magic_cmd=/usr/bin/file
5720 case $host_cpu in
5721 ia64*)
5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5724 ;;
5725 hppa*64*)
5726 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]'
5727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5728 ;;
5729 *)
5730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5731 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5732 ;;
5733 esac
5734 ;;
5735
5736interix[3-9]*)
5737 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5739 ;;
5740
5741irix5* | irix6* | nonstopux*)
5742 case $LD in
5743 *-32|*"-32 ") libmagic=32-bit;;
5744 *-n32|*"-n32 ") libmagic=N32;;
5745 *-64|*"-64 ") libmagic=64-bit;;
5746 *) libmagic=never-match;;
5747 esac
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751# This must be Linux ELF.
e9085da5 5752linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
ddc8de03
PM
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756netbsd*)
5757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5759 else
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5761 fi
5762 ;;
5763
5764newos6*)
5765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5766 lt_cv_file_magic_cmd=/usr/bin/file
5767 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5768 ;;
5769
5770*nto* | *qnx*)
5771 lt_cv_deplibs_check_method=pass_all
5772 ;;
5773
5774openbsd*)
5775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5777 else
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5779 fi
5780 ;;
5781
5782osf3* | osf4* | osf5*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785
5786rdos*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789
5790solaris*)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793
5794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797
5798sysv4 | sysv4.3*)
5799 case $host_vendor in
5800 motorola)
5801 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]'
5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5803 ;;
5804 ncr)
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
5807 sequent)
5808 lt_cv_file_magic_cmd='/bin/file'
5809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5810 ;;
5811 sni)
5812 lt_cv_file_magic_cmd='/bin/file'
5813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5814 lt_cv_file_magic_test_file=/lib/libc.so
5815 ;;
5816 siemens)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819 pc)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822 esac
5823 ;;
5824
5825tpf*)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
0ecd0f1c
OH
5828vxworks*)
5829 # Assume VxWorks cross toolchains are built on Linux, possibly
5830 # as canadian for Windows hosts.
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
ddc8de03
PM
5833esac
5834
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5837$as_echo "$lt_cv_deplibs_check_method" >&6; }
5838file_magic_cmd=$lt_cv_file_magic_cmd
5839deplibs_check_method=$lt_cv_deplibs_check_method
5840test -z "$deplibs_check_method" && deplibs_check_method=unknown
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5855set dummy ${ac_tool_prefix}ar; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5858if ${ac_cv_prog_AR+:} false; then :
ddc8de03
PM
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$AR"; then
5862 ac_cv_prog_AR="$AR" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5871 ac_cv_prog_AR="${ac_tool_prefix}ar"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876 done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881AR=$ac_cv_prog_AR
5882if test -n "$AR"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5884$as_echo "$AR" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890
5891fi
5892if test -z "$ac_cv_prog_AR"; then
5893 ac_ct_AR=$AR
5894 # Extract the first word of "ar", so it can be a program name with args.
5895set dummy ar; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5898if ${ac_cv_prog_ac_ct_AR+:} false; then :
ddc8de03
PM
5899 $as_echo_n "(cached) " >&6
5900else
5901 if test -n "$ac_ct_AR"; then
5902 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5911 ac_cv_prog_ac_ct_AR="ar"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916 done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921ac_ct_AR=$ac_cv_prog_ac_ct_AR
5922if test -n "$ac_ct_AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5924$as_echo "$ac_ct_AR" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930 if test "x$ac_ct_AR" = x; then
5931 AR="false"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934yes:)
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937ac_tool_warned=yes ;;
5938esac
5939 AR=$ac_ct_AR
5940 fi
5941else
5942 AR="$ac_cv_prog_AR"
5943fi
5944
5945test -z "$AR" && AR=ar
5946test -z "$AR_FLAGS" && AR_FLAGS=cru
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5960set dummy ${ac_tool_prefix}strip; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5963if ${ac_cv_prog_STRIP+:} false; then :
ddc8de03
PM
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$STRIP"; then
5967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
5976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986STRIP=$ac_cv_prog_STRIP
5987if test -n "$STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5989$as_echo "$STRIP" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_STRIP"; then
5998 ac_ct_STRIP=$STRIP
5999 # Extract the first word of "strip", so it can be a program name with args.
6000set dummy strip; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6003if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
ddc8de03
PM
6004 $as_echo_n "(cached) " >&6
6005else
6006 if test -n "$ac_ct_STRIP"; then
6007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6016 ac_cv_prog_ac_ct_STRIP="strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020done
6021 done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6027if test -n "$ac_ct_STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6029$as_echo "$ac_ct_STRIP" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035 if test "x$ac_ct_STRIP" = x; then
6036 STRIP=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 STRIP=$ac_ct_STRIP
6045 fi
6046else
6047 STRIP="$ac_cv_prog_STRIP"
6048fi
6049
6050test -z "$STRIP" && STRIP=:
6051
6052
6053
6054
6055
6056
6057if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6062if ${ac_cv_prog_RANLIB+:} false; then :
ddc8de03
PM
6063 $as_echo_n "(cached) " >&6
6064else
6065 if test -n "$RANLIB"; then
6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080 done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085RANLIB=$ac_cv_prog_RANLIB
6086if test -n "$RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6088$as_echo "$RANLIB" >&6; }
6089else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094
6095fi
6096if test -z "$ac_cv_prog_RANLIB"; then
6097 ac_ct_RANLIB=$RANLIB
6098 # Extract the first word of "ranlib", so it can be a program name with args.
6099set dummy ranlib; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6102if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
ddc8de03
PM
6103 $as_echo_n "(cached) " >&6
6104else
6105 if test -n "$ac_ct_RANLIB"; then
6106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6115 ac_cv_prog_ac_ct_RANLIB="ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119done
6120 done
6121IFS=$as_save_IFS
6122
6123fi
6124fi
6125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6126if test -n "$ac_ct_RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6128$as_echo "$ac_ct_RANLIB" >&6; }
6129else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
6133
6134 if test "x$ac_ct_RANLIB" = x; then
6135 RANLIB=":"
6136 else
6137 case $cross_compiling:$ac_tool_warned in
6138yes:)
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6141ac_tool_warned=yes ;;
6142esac
6143 RANLIB=$ac_ct_RANLIB
6144 fi
6145else
6146 RANLIB="$ac_cv_prog_RANLIB"
6147fi
6148
6149test -z "$RANLIB" && RANLIB=:
6150
6151
6152
6153
6154
6155
6156# Determine commands to create old-style static archives.
6157old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6158old_postinstall_cmds='chmod 644 $oldlib'
6159old_postuninstall_cmds=
6160
6161if test -n "$RANLIB"; then
6162 case $host_os in
6163 openbsd*)
6164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6165 ;;
6166 *)
6167 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6168 ;;
6169 esac
6170 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6171fi
6172
6173case $host_os in
6174 darwin*)
6175 lock_old_archive_extraction=yes ;;
6176 *)
6177 lock_old_archive_extraction=no ;;
6178esac
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218# If no C compiler was specified, use CC.
6219LTCC=${LTCC-"$CC"}
6220
6221# If no C compiler flags were specified, use CFLAGS.
6222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6223
6224# Allow CC to be a program name with arguments.
6225compiler=$CC
6226
6227
6228# Check for command to grab the raw symbol name followed by C symbol from nm.
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6230$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6231if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ddc8de03
PM
6232 $as_echo_n "(cached) " >&6
6233else
6234
6235# These are sane defaults that work on at least a few old systems.
6236# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6237
6238# Character class describing NM global symbol codes.
6239symcode='[BCDEGRST]'
6240
6241# Regexp to match symbols that can be accessed directly from C.
6242sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6243
6244# Define system-specific variables.
6245case $host_os in
6246aix*)
6247 symcode='[BCDT]'
6248 ;;
6249cygwin* | mingw* | pw32* | cegcc*)
6250 symcode='[ABCDGISTW]'
6251 ;;
6252hpux*)
6253 if test "$host_cpu" = ia64; then
6254 symcode='[ABCDEGRST]'
6255 fi
6256 ;;
6257irix* | nonstopux*)
6258 symcode='[BCDEGRST]'
6259 ;;
6260osf*)
6261 symcode='[BCDEGQRST]'
6262 ;;
6263solaris*)
6264 symcode='[BDRT]'
6265 ;;
6266sco3.2v5*)
6267 symcode='[DT]'
6268 ;;
6269sysv4.2uw2*)
6270 symcode='[DT]'
6271 ;;
6272sysv5* | sco5v6* | unixware* | OpenUNIX*)
6273 symcode='[ABDT]'
6274 ;;
6275sysv4)
6276 symcode='[DFNSTU]'
6277 ;;
6278esac
6279
6280# If we're using GNU nm, then use its standard symbol codes.
6281case `$NM -V 2>&1` in
6282*GNU* | *'with BFD'*)
6283 symcode='[ABCDGIRSTW]' ;;
6284esac
6285
6286# Transform an extracted symbol line into a proper C declaration.
6287# Some systems (esp. on ia64) link data and code symbols differently,
6288# so use this general approach.
6289lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6290
6291# Transform an extracted symbol line into symbol name and symbol address
6292lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6293lt_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'"
6294
6295# Handle CRLF in mingw tool chain
6296opt_cr=
6297case $build_os in
6298mingw*)
6299 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6300 ;;
6301esac
6302
6303# Try without a prefix underscore, then with it.
6304for ac_symprfx in "" "_"; do
6305
6306 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6307 symxfrm="\\1 $ac_symprfx\\2 \\2"
6308
6309 # Write the raw and C identifiers.
6310 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6311 # Fake it for dumpbin and say T for any non-static function
6312 # and D for any global variable.
6313 # Also find C++ and __fastcall symbols from MSVC++,
6314 # which start with @ or ?.
6315 lt_cv_sys_global_symbol_pipe="$AWK '"\
6316" {last_section=section; section=\$ 3};"\
6317" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6318" \$ 0!~/External *\|/{next};"\
6319" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6320" {if(hide[section]) next};"\
6321" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6322" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6323" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6324" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6325" ' prfx=^$ac_symprfx"
6326 else
6327 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6328 fi
6329
6330 # Check to see that the pipe works correctly.
6331 pipe_works=no
6332
6333 rm -f conftest*
6334 cat > conftest.$ac_ext <<_LT_EOF
6335#ifdef __cplusplus
6336extern "C" {
6337#endif
6338char nm_test_var;
6339void nm_test_func(void);
6340void nm_test_func(void){}
6341#ifdef __cplusplus
6342}
6343#endif
6344int main(){nm_test_var='a';nm_test_func();return(0);}
6345_LT_EOF
6346
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 # Now try to grab the symbols.
6353 nlist=conftest.nm
6354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6355 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6356 ac_status=$?
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; } && test -s "$nlist"; then
6359 # Try sorting and uniquifying the output.
6360 if sort "$nlist" | uniq > "$nlist"T; then
6361 mv -f "$nlist"T "$nlist"
6362 else
6363 rm -f "$nlist"T
6364 fi
6365
6366 # Make sure that we snagged all the symbols we need.
6367 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6368 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6369 cat <<_LT_EOF > conftest.$ac_ext
6370#ifdef __cplusplus
6371extern "C" {
6372#endif
6373
6374_LT_EOF
6375 # Now generate the symbol file.
6376 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6377
6378 cat <<_LT_EOF >> conftest.$ac_ext
6379
6380/* The mapping between symbol names and symbols. */
6381const struct {
6382 const char *name;
6383 void *address;
6384}
6385lt__PROGRAM__LTX_preloaded_symbols[] =
6386{
6387 { "@PROGRAM@", (void *) 0 },
6388_LT_EOF
6389 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6390 cat <<\_LT_EOF >> conftest.$ac_ext
6391 {0, (void *) 0}
6392};
6393
6394/* This works around a problem in FreeBSD linker */
6395#ifdef FREEBSD_WORKAROUND
6396static const void *lt_preloaded_setup() {
6397 return lt__PROGRAM__LTX_preloaded_symbols;
6398}
6399#endif
6400
6401#ifdef __cplusplus
6402}
6403#endif
6404_LT_EOF
6405 # Now try linking the two files.
6406 mv conftest.$ac_objext conftstm.$ac_objext
6407 lt_save_LIBS="$LIBS"
6408 lt_save_CFLAGS="$CFLAGS"
6409 LIBS="conftstm.$ac_objext"
6410 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6412 (eval $ac_link) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6416 pipe_works=yes
6417 fi
6418 LIBS="$lt_save_LIBS"
6419 CFLAGS="$lt_save_CFLAGS"
6420 else
6421 echo "cannot find nm_test_func in $nlist" >&5
6422 fi
6423 else
6424 echo "cannot find nm_test_var in $nlist" >&5
6425 fi
6426 else
6427 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6428 fi
6429 else
6430 echo "$progname: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6432 fi
6433 rm -rf conftest* conftst*
6434
6435 # Do not use the global_symbol_pipe unless it works.
6436 if test "$pipe_works" = yes; then
6437 break
6438 else
6439 lt_cv_sys_global_symbol_pipe=
6440 fi
6441done
6442
6443fi
6444
6445if test -z "$lt_cv_sys_global_symbol_pipe"; then
6446 lt_cv_sys_global_symbol_to_cdecl=
6447fi
6448if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6450$as_echo "failed" >&6; }
6451else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6453$as_echo "ok" >&6; }
6454fi
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477# Check whether --enable-libtool-lock was given.
6478if test "${enable_libtool_lock+set}" = set; then :
6479 enableval=$enable_libtool_lock;
6480fi
6481
6482test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6483
6484# Some flags need to be propagated to the compiler or linker for good
6485# libtool support.
6486case $host in
6487ia64-*-hpux*)
6488 # Find out which ABI we are using.
6489 echo 'int i;' > conftest.$ac_ext
6490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6491 (eval $ac_compile) 2>&5
6492 ac_status=$?
6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6494 test $ac_status = 0; }; then
6495 case `/usr/bin/file conftest.$ac_objext` in
6496 *ELF-32*)
6497 HPUX_IA64_MODE="32"
6498 ;;
6499 *ELF-64*)
6500 HPUX_IA64_MODE="64"
6501 ;;
6502 esac
6503 fi
6504 rm -rf conftest*
6505 ;;
6506*-*-irix6*)
6507 # Find out which ABI we are using.
6508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }; then
6514 if test "$lt_cv_prog_gnu_ld" = yes; then
6515 case `/usr/bin/file conftest.$ac_objext` in
6516 *32-bit*)
6517 LD="${LD-ld} -melf32bsmip"
6518 ;;
6519 *N32*)
6520 LD="${LD-ld} -melf32bmipn32"
6521 ;;
6522 *64-bit*)
6523 LD="${LD-ld} -melf64bmip"
6524 ;;
6525 esac
6526 else
6527 case `/usr/bin/file conftest.$ac_objext` in
6528 *32-bit*)
6529 LD="${LD-ld} -32"
6530 ;;
6531 *N32*)
6532 LD="${LD-ld} -n32"
6533 ;;
6534 *64-bit*)
6535 LD="${LD-ld} -64"
6536 ;;
6537 esac
6538 fi
6539 fi
6540 rm -rf conftest*
6541 ;;
6542
6543x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6544s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6545 # Find out which ABI we are using.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.o` in
6553 *32-bit*)
6554 case $host in
6555 x86_64-*kfreebsd*-gnu)
6556 LD="${LD-ld} -m elf_i386_fbsd"
6557 ;;
6558 x86_64-*linux*)
6559 case `/usr/bin/file conftest.o` in
6560 *x86-64*)
6561 LD="${LD-ld} -m elf32_x86_64"
6562 ;;
6563 *)
6564 LD="${LD-ld} -m elf_i386"
6565 ;;
6566 esac
6567 ;;
6568 powerpc64le-*linux*)
6569 LD="${LD-ld} -m elf32lppclinux"
6570 ;;
6571 powerpc64-*linux*)
6572 LD="${LD-ld} -m elf32ppclinux"
6573 ;;
6574 s390x-*linux*)
6575 LD="${LD-ld} -m elf_s390"
6576 ;;
6577 sparc64-*linux*)
6578 LD="${LD-ld} -m elf32_sparc"
6579 ;;
6580 esac
6581 ;;
6582 *64-bit*)
6583 case $host in
6584 x86_64-*kfreebsd*-gnu)
6585 LD="${LD-ld} -m elf_x86_64_fbsd"
6586 ;;
6587 x86_64-*linux*)
6588 LD="${LD-ld} -m elf_x86_64"
6589 ;;
6590 powerpcle-*linux*)
6591 LD="${LD-ld} -m elf64lppc"
6592 ;;
6593 powerpc-*linux*)
6594 LD="${LD-ld} -m elf64ppc"
6595 ;;
6596 s390*-*linux*|s390*-*tpf*)
6597 LD="${LD-ld} -m elf64_s390"
6598 ;;
6599 sparc*-*linux*)
6600 LD="${LD-ld} -m elf64_sparc"
6601 ;;
6602 esac
6603 ;;
6604 esac
6605 fi
6606 rm -rf conftest*
6607 ;;
6608
6609*-*-sco3.2v5*)
6610 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6611 SAVE_CFLAGS="$CFLAGS"
6612 CFLAGS="$CFLAGS -belf"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6614$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6615if ${lt_cv_cc_needs_belf+:} false; then :
ddc8de03
PM
6616 $as_echo_n "(cached) " >&6
6617else
6618 ac_ext=c
6619ac_cpp='$CPP $CPPFLAGS'
6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h. */
6626
6627int
6628main ()
6629{
6630
6631 ;
6632 return 0;
6633}
6634_ACEOF
6635if ac_fn_c_try_link "$LINENO"; then :
6636 lt_cv_cc_needs_belf=yes
6637else
6638 lt_cv_cc_needs_belf=no
6639fi
6640rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
6642 ac_ext=c
6643ac_cpp='$CPP $CPPFLAGS'
6644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6650$as_echo "$lt_cv_cc_needs_belf" >&6; }
6651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6653 CFLAGS="$SAVE_CFLAGS"
6654 fi
6655 ;;
6656sparc*-*solaris*)
6657 # Find out which ABI we are using.
6658 echo 'int i;' > conftest.$ac_ext
6659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6660 (eval $ac_compile) 2>&5
6661 ac_status=$?
6662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6663 test $ac_status = 0; }; then
6664 case `/usr/bin/file conftest.o` in
6665 *64-bit*)
6666 case $lt_cv_prog_gnu_ld in
6667 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6668 *)
6669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6670 LD="${LD-ld} -64"
6671 fi
6672 ;;
6673 esac
6674 ;;
6675 esac
6676 fi
6677 rm -rf conftest*
6678 ;;
6679esac
6680
6681need_locks="$enable_libtool_lock"
6682
6683
6684 case $host_os in
6685 rhapsody* | darwin*)
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6688set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6691if ${ac_cv_prog_DSYMUTIL+:} false; then :
ddc8de03
PM
6692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$DSYMUTIL"; then
6695 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6704 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714DSYMUTIL=$ac_cv_prog_DSYMUTIL
6715if test -n "$DSYMUTIL"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6717$as_echo "$DSYMUTIL" >&6; }
6718else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723
6724fi
6725if test -z "$ac_cv_prog_DSYMUTIL"; then
6726 ac_ct_DSYMUTIL=$DSYMUTIL
6727 # Extract the first word of "dsymutil", so it can be a program name with args.
6728set dummy dsymutil; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6731if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
ddc8de03
PM
6732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$ac_ct_DSYMUTIL"; then
6735 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6744 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749 done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6755if test -n "$ac_ct_DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6757$as_echo "$ac_ct_DSYMUTIL" >&6; }
6758else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763 if test "x$ac_ct_DSYMUTIL" = x; then
6764 DSYMUTIL=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767yes:)
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770ac_tool_warned=yes ;;
6771esac
6772 DSYMUTIL=$ac_ct_DSYMUTIL
6773 fi
6774else
6775 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6776fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6783if ${ac_cv_prog_NMEDIT+:} false; then :
ddc8de03
PM
6784 $as_echo_n "(cached) " >&6
6785else
6786 if test -n "$NMEDIT"; then
6787 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6796 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801 done
6802IFS=$as_save_IFS
6803
6804fi
6805fi
6806NMEDIT=$ac_cv_prog_NMEDIT
6807if test -n "$NMEDIT"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6809$as_echo "$NMEDIT" >&6; }
6810else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815
6816fi
6817if test -z "$ac_cv_prog_NMEDIT"; then
6818 ac_ct_NMEDIT=$NMEDIT
6819 # Extract the first word of "nmedit", so it can be a program name with args.
6820set dummy nmedit; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6823if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
ddc8de03
PM
6824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$ac_ct_NMEDIT"; then
6827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6836 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841 done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6847if test -n "$ac_ct_NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6849$as_echo "$ac_ct_NMEDIT" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855 if test "x$ac_ct_NMEDIT" = x; then
6856 NMEDIT=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862ac_tool_warned=yes ;;
6863esac
6864 NMEDIT=$ac_ct_NMEDIT
6865 fi
6866else
6867 NMEDIT="$ac_cv_prog_NMEDIT"
6868fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6872set dummy ${ac_tool_prefix}lipo; ac_word=$2
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6875if ${ac_cv_prog_LIPO+:} false; then :
ddc8de03
PM
6876 $as_echo_n "(cached) " >&6
6877else
6878 if test -n "$LIPO"; then
6879 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6888 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892done
6893 done
6894IFS=$as_save_IFS
6895
6896fi
6897fi
6898LIPO=$ac_cv_prog_LIPO
6899if test -n "$LIPO"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6901$as_echo "$LIPO" >&6; }
6902else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904$as_echo "no" >&6; }
6905fi
6906
6907
6908fi
6909if test -z "$ac_cv_prog_LIPO"; then
6910 ac_ct_LIPO=$LIPO
6911 # Extract the first word of "lipo", so it can be a program name with args.
6912set dummy lipo; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6915if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
ddc8de03
PM
6916 $as_echo_n "(cached) " >&6
6917else
6918 if test -n "$ac_ct_LIPO"; then
6919 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6928 ac_cv_prog_ac_ct_LIPO="lipo"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933 done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6939if test -n "$ac_ct_LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6941$as_echo "$ac_ct_LIPO" >&6; }
6942else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947 if test "x$ac_ct_LIPO" = x; then
6948 LIPO=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951yes:)
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954ac_tool_warned=yes ;;
6955esac
6956 LIPO=$ac_ct_LIPO
6957 fi
6958else
6959 LIPO="$ac_cv_prog_LIPO"
6960fi
6961
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6964set dummy ${ac_tool_prefix}otool; ac_word=$2
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6967if ${ac_cv_prog_OTOOL+:} false; then :
ddc8de03
PM
6968 $as_echo_n "(cached) " >&6
6969else
6970 if test -n "$OTOOL"; then
6971 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6972else
6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974for as_dir in $PATH
6975do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
6980 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984done
6985 done
6986IFS=$as_save_IFS
6987
6988fi
6989fi
6990OTOOL=$ac_cv_prog_OTOOL
6991if test -n "$OTOOL"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6993$as_echo "$OTOOL" >&6; }
6994else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996$as_echo "no" >&6; }
6997fi
6998
6999
7000fi
7001if test -z "$ac_cv_prog_OTOOL"; then
7002 ac_ct_OTOOL=$OTOOL
7003 # Extract the first word of "otool", so it can be a program name with args.
7004set dummy otool; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7007if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
ddc8de03
PM
7008 $as_echo_n "(cached) " >&6
7009else
7010 if test -n "$ac_ct_OTOOL"; then
7011 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
7020 ac_cv_prog_ac_ct_OTOOL="otool"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025 done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7031if test -n "$ac_ct_OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7033$as_echo "$ac_ct_OTOOL" >&6; }
7034else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039 if test "x$ac_ct_OTOOL" = x; then
7040 OTOOL=":"
7041 else
7042 case $cross_compiling:$ac_tool_warned in
7043yes:)
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046ac_tool_warned=yes ;;
7047esac
7048 OTOOL=$ac_ct_OTOOL
7049 fi
7050else
7051 OTOOL="$ac_cv_prog_OTOOL"
7052fi
7053
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7056set dummy ${ac_tool_prefix}otool64; ac_word=$2
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7059if ${ac_cv_prog_OTOOL64+:} false; then :
ddc8de03
PM
7060 $as_echo_n "(cached) " >&6
7061else
7062 if test -n "$OTOOL64"; then
7063 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
7072 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076done
7077 done
7078IFS=$as_save_IFS
7079
7080fi
7081fi
7082OTOOL64=$ac_cv_prog_OTOOL64
7083if test -n "$OTOOL64"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7085$as_echo "$OTOOL64" >&6; }
7086else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091
7092fi
7093if test -z "$ac_cv_prog_OTOOL64"; then
7094 ac_ct_OTOOL64=$OTOOL64
7095 # Extract the first word of "otool64", so it can be a program name with args.
7096set dummy otool64; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7099if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
ddc8de03
PM
7100 $as_echo_n "(cached) " >&6
7101else
7102 if test -n "$ac_ct_OTOOL64"; then
7103 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
7112 ac_cv_prog_ac_ct_OTOOL64="otool64"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117 done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7123if test -n "$ac_ct_OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7125$as_echo "$ac_ct_OTOOL64" >&6; }
7126else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131 if test "x$ac_ct_OTOOL64" = x; then
7132 OTOOL64=":"
7133 else
7134 case $cross_compiling:$ac_tool_warned in
7135yes:)
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138ac_tool_warned=yes ;;
7139esac
7140 OTOOL64=$ac_ct_OTOOL64
7141 fi
7142else
7143 OTOOL64="$ac_cv_prog_OTOOL64"
7144fi
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7173$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7174if ${lt_cv_apple_cc_single_mod+:} false; then :
ddc8de03
PM
7175 $as_echo_n "(cached) " >&6
7176else
7177 lt_cv_apple_cc_single_mod=no
7178 if test -z "${LT_MULTI_MODULE}"; then
7179 # By default we will add the -single_module flag. You can override
7180 # by either setting the environment variable LT_MULTI_MODULE
7181 # non-empty at configure time, or by adding -multi_module to the
7182 # link flags.
7183 rm -rf libconftest.dylib*
7184 echo "int foo(void){return 1;}" > conftest.c
7185 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7186-dynamiclib -Wl,-single_module conftest.c" >&5
7187 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7188 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7189 _lt_result=$?
7190 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7191 lt_cv_apple_cc_single_mod=yes
7192 else
7193 cat conftest.err >&5
7194 fi
7195 rm -rf libconftest.dylib*
7196 rm -f conftest.*
7197 fi
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7200$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7202$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7203if ${lt_cv_ld_exported_symbols_list+:} false; then :
ddc8de03
PM
7204 $as_echo_n "(cached) " >&6
7205else
7206 lt_cv_ld_exported_symbols_list=no
7207 save_LDFLAGS=$LDFLAGS
7208 echo "_main" > conftest.sym
7209 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h. */
7212
7213int
7214main ()
7215{
7216
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221if ac_fn_c_try_link "$LINENO"; then :
7222 lt_cv_ld_exported_symbols_list=yes
7223else
7224 lt_cv_ld_exported_symbols_list=no
7225fi
7226rm -f core conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228 LDFLAGS="$save_LDFLAGS"
7229
7230fi
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7232$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7234$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7235if ${lt_cv_ld_force_load+:} false; then :
ddc8de03
PM
7236 $as_echo_n "(cached) " >&6
7237else
7238 lt_cv_ld_force_load=no
7239 cat > conftest.c << _LT_EOF
7240int forced_loaded() { return 2;}
7241_LT_EOF
7242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7244 echo "$AR cru libconftest.a conftest.o" >&5
7245 $AR cru libconftest.a conftest.o 2>&5
7246 cat > conftest.c << _LT_EOF
7247int main() { return 0;}
7248_LT_EOF
7249 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7250 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7251 _lt_result=$?
7252 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7253 lt_cv_ld_force_load=yes
7254 else
7255 cat conftest.err >&5
7256 fi
7257 rm -f conftest.err libconftest.a conftest conftest.c
7258 rm -rf conftest.dSYM
7259
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7262$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
7263 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7264 # build without first building modern cctools / linker.
7265 case $host_cpu-$host_os in
7266 *-rhapsody* | *-darwin1.[012])
ddc8de03 7267 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 7268 *-darwin1.*)
ddc8de03 7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
7270 *-darwin*)
7271 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7272 # deployment target is forced to an earlier version.
7273 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7274 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7275 ;;
ebf6d33b 7276 10.[012][,.]*)
1352bc88
IS
7277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7278 ;;
7279 *)
7280 ;;
7281 esac
ddc8de03
PM
7282 ;;
7283 esac
7284 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7285 _lt_dar_single_mod='$single_module'
7286 fi
7287 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7288 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7289 else
7290 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7291 fi
7292 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7293 _lt_dsymutil='~$DSYMUTIL $lib || :'
7294 else
7295 _lt_dsymutil=
7296 fi
7297 ;;
7298 esac
7299
7300for ac_header in dlfcn.h
7301do :
7302 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7303"
22e05272 7304if test "x$ac_cv_header_dlfcn_h" = xyes; then :
ddc8de03
PM
7305 cat >>confdefs.h <<_ACEOF
7306#define HAVE_DLFCN_H 1
7307_ACEOF
7308
7309fi
7310
7311done
7312
7313
7314
7315
7316
7317# Set options
7318# Check whether --enable-static was given.
7319if test "${enable_static+set}" = set; then :
7320 enableval=$enable_static; p=${PACKAGE-default}
7321 case $enableval in
7322 yes) enable_static=yes ;;
7323 no) enable_static=no ;;
7324 *)
7325 enable_static=no
7326 # Look at the argument we got. We use all the common list separators.
7327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7328 for pkg in $enableval; do
7329 IFS="$lt_save_ifs"
7330 if test "X$pkg" = "X$p"; then
7331 enable_static=yes
7332 fi
7333 done
7334 IFS="$lt_save_ifs"
7335 ;;
7336 esac
7337else
7338 enable_static=no
7339fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 enable_dlopen=no
7351
7352
7353 enable_win32_dll=no
7354
7355
7356 # Check whether --enable-shared was given.
7357if test "${enable_shared+set}" = set; then :
7358 enableval=$enable_shared; p=${PACKAGE-default}
7359 case $enableval in
7360 yes) enable_shared=yes ;;
7361 no) enable_shared=no ;;
7362 *)
7363 enable_shared=no
7364 # Look at the argument we got. We use all the common list separators.
7365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366 for pkg in $enableval; do
7367 IFS="$lt_save_ifs"
7368 if test "X$pkg" = "X$p"; then
7369 enable_shared=yes
7370 fi
7371 done
7372 IFS="$lt_save_ifs"
7373 ;;
7374 esac
7375else
7376 enable_shared=yes
7377fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389# Check whether --with-pic was given.
7390if test "${with_pic+set}" = set; then :
7391 withval=$with_pic; pic_mode="$withval"
7392else
7393 pic_mode=default
7394fi
7395
7396
7397test -z "$pic_mode" && pic_mode=default
7398
7399
7400
7401
7402
7403
7404
7405 # Check whether --enable-fast-install was given.
7406if test "${enable_fast_install+set}" = set; then :
7407 enableval=$enable_fast_install; p=${PACKAGE-default}
7408 case $enableval in
7409 yes) enable_fast_install=yes ;;
7410 no) enable_fast_install=no ;;
7411 *)
7412 enable_fast_install=no
7413 # Look at the argument we got. We use all the common list separators.
7414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415 for pkg in $enableval; do
7416 IFS="$lt_save_ifs"
7417 if test "X$pkg" = "X$p"; then
7418 enable_fast_install=yes
7419 fi
7420 done
7421 IFS="$lt_save_ifs"
7422 ;;
7423 esac
7424else
7425 enable_fast_install=yes
7426fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438# This can be used to rebuild libtool when needed
7439LIBTOOL_DEPS="$ltmain"
7440
7441# Always use our own libtool.
7442LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469test -z "$LN_S" && LN_S="ln -s"
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484if test -n "${ZSH_VERSION+set}" ; then
7485 setopt NO_GLOB_SUBST
7486fi
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7489$as_echo_n "checking for objdir... " >&6; }
22e05272 7490if ${lt_cv_objdir+:} false; then :
ddc8de03
PM
7491 $as_echo_n "(cached) " >&6
7492else
7493 rm -f .libs 2>/dev/null
7494mkdir .libs 2>/dev/null
7495if test -d .libs; then
7496 lt_cv_objdir=.libs
7497else
7498 # MS-DOS does not allow filenames that begin with a dot.
7499 lt_cv_objdir=_libs
7500fi
7501rmdir .libs 2>/dev/null
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7504$as_echo "$lt_cv_objdir" >&6; }
7505objdir=$lt_cv_objdir
7506
7507
7508
7509
7510
7511cat >>confdefs.h <<_ACEOF
7512#define LT_OBJDIR "$lt_cv_objdir/"
7513_ACEOF
7514
7515
7516
7517
7518case $host_os in
7519aix3*)
7520 # AIX sometimes has problems with the GCC collect2 program. For some
7521 # reason, if we set the COLLECT_NAMES environment variable, the problems
7522 # vanish in a puff of smoke.
7523 if test "X${COLLECT_NAMES+set}" != Xset; then
7524 COLLECT_NAMES=
7525 export COLLECT_NAMES
7526 fi
7527 ;;
7528esac
7529
7530# Global variables:
7531ofile=libtool
7532can_build_shared=yes
7533
7534# All known linkers require a `.a' archive for static linking (except MSVC,
7535# which needs '.lib').
7536libext=a
7537
7538with_gnu_ld="$lt_cv_prog_gnu_ld"
7539
7540old_CC="$CC"
7541old_CFLAGS="$CFLAGS"
7542
7543# Set sane defaults for various variables
7544test -z "$CC" && CC=cc
7545test -z "$LTCC" && LTCC=$CC
7546test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7547test -z "$LD" && LD=ld
7548test -z "$ac_objext" && ac_objext=o
7549
7550for cc_temp in $compiler""; do
7551 case $cc_temp in
7552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7554 \-*) ;;
7555 *) break;;
7556 esac
7557done
7558cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7559
7560
7561# Only perform the check for file, if the check method requires it
7562test -z "$MAGIC_CMD" && MAGIC_CMD=file
7563case $deplibs_check_method in
7564file_magic*)
7565 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7567$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 7568if ${lt_cv_path_MAGIC_CMD+:} false; then :
ddc8de03
PM
7569 $as_echo_n "(cached) " >&6
7570else
7571 case $MAGIC_CMD in
7572[\\/*] | ?:[\\/]*)
7573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7574 ;;
7575*)
7576 lt_save_MAGIC_CMD="$MAGIC_CMD"
7577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7579 for ac_dir in $ac_dummy; do
7580 IFS="$lt_save_ifs"
7581 test -z "$ac_dir" && ac_dir=.
7582 if test -f $ac_dir/${ac_tool_prefix}file; then
7583 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7584 if test -n "$file_magic_test_file"; then
7585 case $deplibs_check_method in
7586 "file_magic "*)
7587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7590 $EGREP "$file_magic_regex" > /dev/null; then
7591 :
7592 else
7593 cat <<_LT_EOF 1>&2
7594
7595*** Warning: the command libtool uses to detect shared libraries,
7596*** $file_magic_cmd, produces output that libtool cannot recognize.
7597*** The result is that libtool may fail to recognize shared libraries
7598*** as such. This will affect the creation of libtool libraries that
7599*** depend on shared libraries, but programs linked with such libtool
7600*** libraries will work regardless of this problem. Nevertheless, you
7601*** may want to report the problem to your system manager and/or to
7602*** bug-libtool@gnu.org
7603
7604_LT_EOF
7605 fi ;;
7606 esac
7607 fi
7608 break
7609 fi
7610 done
7611 IFS="$lt_save_ifs"
7612 MAGIC_CMD="$lt_save_MAGIC_CMD"
7613 ;;
7614esac
7615fi
7616
7617MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618if test -n "$MAGIC_CMD"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7620$as_echo "$MAGIC_CMD" >&6; }
7621else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627
7628
7629
7630if test -z "$lt_cv_path_MAGIC_CMD"; then
7631 if test -n "$ac_tool_prefix"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7633$as_echo_n "checking for file... " >&6; }
22e05272 7634if ${lt_cv_path_MAGIC_CMD+:} false; then :
ddc8de03
PM
7635 $as_echo_n "(cached) " >&6
7636else
7637 case $MAGIC_CMD in
7638[\\/*] | ?:[\\/]*)
7639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7640 ;;
7641*)
7642 lt_save_MAGIC_CMD="$MAGIC_CMD"
7643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645 for ac_dir in $ac_dummy; do
7646 IFS="$lt_save_ifs"
7647 test -z "$ac_dir" && ac_dir=.
7648 if test -f $ac_dir/file; then
7649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7650 if test -n "$file_magic_test_file"; then
7651 case $deplibs_check_method in
7652 "file_magic "*)
7653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656 $EGREP "$file_magic_regex" > /dev/null; then
7657 :
7658 else
7659 cat <<_LT_EOF 1>&2
7660
7661*** Warning: the command libtool uses to detect shared libraries,
7662*** $file_magic_cmd, produces output that libtool cannot recognize.
7663*** The result is that libtool may fail to recognize shared libraries
7664*** as such. This will affect the creation of libtool libraries that
7665*** depend on shared libraries, but programs linked with such libtool
7666*** libraries will work regardless of this problem. Nevertheless, you
7667*** may want to report the problem to your system manager and/or to
7668*** bug-libtool@gnu.org
7669
7670_LT_EOF
7671 fi ;;
7672 esac
7673 fi
7674 break
7675 fi
7676 done
7677 IFS="$lt_save_ifs"
7678 MAGIC_CMD="$lt_save_MAGIC_CMD"
7679 ;;
7680esac
7681fi
7682
7683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684if test -n "$MAGIC_CMD"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686$as_echo "$MAGIC_CMD" >&6; }
7687else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689$as_echo "no" >&6; }
7690fi
7691
7692
7693 else
7694 MAGIC_CMD=:
7695 fi
7696fi
7697
7698 fi
7699 ;;
7700esac
7701
7702# Use C for the default configuration in the libtool script
7703
7704lt_save_CC="$CC"
7705ac_ext=c
7706ac_cpp='$CPP $CPPFLAGS'
7707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
7711
7712# Source file extension for C test sources.
7713ac_ext=c
7714
7715# Object file extension for compiled C test sources.
7716objext=o
7717objext=$objext
7718
7719# Code to be used in simple compile tests
7720lt_simple_compile_test_code="int some_variable = 0;"
7721
7722# Code to be used in simple link tests
7723lt_simple_link_test_code='int main(){return(0);}'
7724
7725
7726
7727
7728
7729
7730
7731# If no C compiler was specified, use CC.
7732LTCC=${LTCC-"$CC"}
7733
7734# If no C compiler flags were specified, use CFLAGS.
7735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7736
7737# Allow CC to be a program name with arguments.
7738compiler=$CC
7739
7740# Save the default compiler, since it gets overwritten when the other
7741# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7742compiler_DEFAULT=$CC
7743
7744# save warnings/boilerplate of simple test code
7745ac_outfile=conftest.$ac_objext
7746echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7747eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7748_lt_compiler_boilerplate=`cat conftest.err`
7749$RM conftest*
7750
7751ac_outfile=conftest.$ac_objext
7752echo "$lt_simple_link_test_code" >conftest.$ac_ext
7753eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7754_lt_linker_boilerplate=`cat conftest.err`
7755$RM -r conftest*
7756
7757
7758## CAVEAT EMPTOR:
7759## There is no encapsulation within the following macros, do not change
7760## the running order or otherwise move them around unless you know exactly
7761## what you are doing...
7762if test -n "$compiler"; then
7763
7764lt_prog_compiler_no_builtin_flag=
7765
7766if test "$GCC" = yes; then
7767 case $cc_basename in
7768 nvcc*)
7769 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7770 *)
7771 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7772 esac
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7775$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 7776if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
ddc8de03
PM
7777 $as_echo_n "(cached) " >&6
7778else
7779 lt_cv_prog_compiler_rtti_exceptions=no
7780 ac_outfile=conftest.$ac_objext
7781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782 lt_compiler_flag="-fno-rtti -fno-exceptions"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 # The option is referenced via a variable to avoid confusing sed.
7788 lt_compile=`echo "$ac_compile" | $SED \
7789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791 -e 's:$: $lt_compiler_flag:'`
7792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7793 (eval "$lt_compile" 2>conftest.err)
7794 ac_status=$?
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 if (exit $ac_status) && test -s "$ac_outfile"; then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings other than the usual output.
7800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_rtti_exceptions=yes
7804 fi
7805 fi
7806 $RM conftest*
7807
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7810$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7811
7812if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7813 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7814else
7815 :
7816fi
7817
7818fi
7819
7820
7821
7822
7823
7824
7825 lt_prog_compiler_wl=
7826lt_prog_compiler_pic=
7827lt_prog_compiler_static=
7828
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7830$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7831
7832 if test "$GCC" = yes; then
7833 lt_prog_compiler_wl='-Wl,'
7834 lt_prog_compiler_static='-static'
7835
7836 case $host_os in
7837 aix*)
7838 # All AIX code is PIC.
7839 if test "$host_cpu" = ia64; then
7840 # AIX 5 now supports IA64 processor
7841 lt_prog_compiler_static='-Bstatic'
7842 fi
7843 lt_prog_compiler_pic='-fPIC'
7844 ;;
7845
7846 amigaos*)
7847 case $host_cpu in
7848 powerpc)
7849 # see comment about AmigaOS4 .so support
7850 lt_prog_compiler_pic='-fPIC'
7851 ;;
7852 m68k)
7853 # FIXME: we need at least 68020 code to build shared libraries, but
7854 # adding the `-m68020' flag to GCC prevents building anything better,
7855 # like `-m68040'.
7856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7857 ;;
7858 esac
7859 ;;
7860
7861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7862 # PIC is the default for these OSes.
7863 ;;
7864
7865 mingw* | cygwin* | pw32* | os2* | cegcc*)
7866 # This hack is so that the source file can tell whether it is being
7867 # built for inclusion in a dll (and should export symbols for example).
7868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7869 # (--disable-auto-import) libraries
7870 lt_prog_compiler_pic='-DDLL_EXPORT'
7871 ;;
7872
7873 darwin* | rhapsody*)
7874 # PIC is the default on this platform
7875 # Common symbols not allowed in MH_DYLIB files
7876 lt_prog_compiler_pic='-fno-common'
7877 ;;
7878
7879 haiku*)
7880 # PIC is the default for Haiku.
7881 # The "-static" flag exists, but is broken.
7882 lt_prog_compiler_static=
7883 ;;
7884
7885 hpux*)
7886 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7887 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7888 # sets the default TLS model and affects inlining.
7889 case $host_cpu in
7890 hppa*64*)
7891 # +Z the default
7892 ;;
7893 *)
7894 lt_prog_compiler_pic='-fPIC'
7895 ;;
7896 esac
7897 ;;
7898
7899 interix[3-9]*)
7900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7901 # Instead, we relocate shared libraries at runtime.
7902 ;;
7903
7904 msdosdjgpp*)
7905 # Just because we use GCC doesn't mean we suddenly get shared libraries
7906 # on systems that don't support them.
7907 lt_prog_compiler_can_build_shared=no
7908 enable_shared=no
7909 ;;
7910
7911 *nto* | *qnx*)
7912 # QNX uses GNU C++, but need to define -shared option too, otherwise
7913 # it will coredump.
7914 lt_prog_compiler_pic='-fPIC -shared'
7915 ;;
7916
7917 sysv4*MP*)
7918 if test -d /usr/nec; then
7919 lt_prog_compiler_pic=-Kconform_pic
7920 fi
7921 ;;
7922
7923 *)
7924 lt_prog_compiler_pic='-fPIC'
7925 ;;
7926 esac
7927
7928 case $cc_basename in
7929 nvcc*) # Cuda Compiler Driver 2.2
7930 lt_prog_compiler_wl='-Xlinker '
7931 lt_prog_compiler_pic='-Xcompiler -fPIC'
7932 ;;
7933 esac
7934 else
7935 # PORTME Check for flag to pass linker flags through the system compiler.
7936 case $host_os in
7937 aix*)
7938 lt_prog_compiler_wl='-Wl,'
7939 if test "$host_cpu" = ia64; then
7940 # AIX 5 now supports IA64 processor
7941 lt_prog_compiler_static='-Bstatic'
7942 else
7943 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7944 fi
7945 ;;
7946
7947 mingw* | cygwin* | pw32* | os2* | cegcc*)
7948 # This hack is so that the source file can tell whether it is being
7949 # built for inclusion in a dll (and should export symbols for example).
7950 lt_prog_compiler_pic='-DDLL_EXPORT'
7951 ;;
7952
7953 hpux9* | hpux10* | hpux11*)
7954 lt_prog_compiler_wl='-Wl,'
7955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7956 # not for PA HP-UX.
7957 case $host_cpu in
7958 hppa*64*|ia64*)
7959 # +Z the default
7960 ;;
7961 *)
7962 lt_prog_compiler_pic='+Z'
7963 ;;
7964 esac
7965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7966 lt_prog_compiler_static='${wl}-a ${wl}archive'
7967 ;;
7968
7969 irix5* | irix6* | nonstopux*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # PIC (with -KPIC) is the default.
7972 lt_prog_compiler_static='-non_shared'
7973 ;;
7974
7975 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7976 case $cc_basename in
7977 # old Intel for x86_64 which still supported -KPIC.
7978 ecc*)
7979 lt_prog_compiler_wl='-Wl,'
7980 lt_prog_compiler_pic='-KPIC'
7981 lt_prog_compiler_static='-static'
7982 ;;
7983 # icc used to be incompatible with GCC.
7984 # ICC 10 doesn't accept -KPIC any more.
7985 icc* | ifort*)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-fPIC'
7988 lt_prog_compiler_static='-static'
7989 ;;
7990 # Lahey Fortran 8.1.
7991 lf95*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='--shared'
7994 lt_prog_compiler_static='--static'
7995 ;;
7996 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7997 # Portland Group compilers (*not* the Pentium gcc compiler,
7998 # which looks to be a dead project)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-fpic'
8001 lt_prog_compiler_static='-Bstatic'
8002 ;;
8003 ccc*)
8004 lt_prog_compiler_wl='-Wl,'
8005 # All Alpha code is PIC.
8006 lt_prog_compiler_static='-non_shared'
8007 ;;
8008 xl* | bgxl* | bgf* | mpixl*)
8009 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-qpic'
8012 lt_prog_compiler_static='-qstaticlink'
8013 ;;
8014 *)
8015 case `$CC -V 2>&1 | sed 5q` in
8016 *Sun\ F* | *Sun*Fortran*)
8017 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 lt_prog_compiler_wl=''
8021 ;;
8022 *Sun\ C*)
8023 # Sun C 5.9
8024 lt_prog_compiler_pic='-KPIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 lt_prog_compiler_wl='-Wl,'
8027 ;;
8028 esac
8029 ;;
8030 esac
8031 ;;
8032
8033 newsos6)
8034 lt_prog_compiler_pic='-KPIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 ;;
8037
8038 *nto* | *qnx*)
8039 # QNX uses GNU C++, but need to define -shared option too, otherwise
8040 # it will coredump.
8041 lt_prog_compiler_pic='-fPIC -shared'
8042 ;;
8043
8044 osf3* | osf4* | osf5*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # All OSF/1 code is PIC.
8047 lt_prog_compiler_static='-non_shared'
8048 ;;
8049
8050 rdos*)
8051 lt_prog_compiler_static='-non_shared'
8052 ;;
8053
8054 solaris*)
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 case $cc_basename in
8058 f77* | f90* | f95*)
8059 lt_prog_compiler_wl='-Qoption ld ';;
8060 *)
8061 lt_prog_compiler_wl='-Wl,';;
8062 esac
8063 ;;
8064
8065 sunos4*)
8066 lt_prog_compiler_wl='-Qoption ld '
8067 lt_prog_compiler_pic='-PIC'
8068 lt_prog_compiler_static='-Bstatic'
8069 ;;
8070
8071 sysv4 | sysv4.2uw2* | sysv4.3*)
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-KPIC'
8074 lt_prog_compiler_static='-Bstatic'
8075 ;;
8076
8077 sysv4*MP*)
8078 if test -d /usr/nec ;then
8079 lt_prog_compiler_pic='-Kconform_pic'
8080 lt_prog_compiler_static='-Bstatic'
8081 fi
8082 ;;
8083
8084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8085 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8088 ;;
8089
8090 unicos*)
8091 lt_prog_compiler_wl='-Wl,'
8092 lt_prog_compiler_can_build_shared=no
8093 ;;
8094
8095 uts4*)
8096 lt_prog_compiler_pic='-pic'
8097 lt_prog_compiler_static='-Bstatic'
8098 ;;
8099
8100 *)
8101 lt_prog_compiler_can_build_shared=no
8102 ;;
8103 esac
8104 fi
8105
8106case $host_os in
8107 # For platforms which do not support PIC, -DPIC is meaningless:
8108 *djgpp*)
8109 lt_prog_compiler_pic=
8110 ;;
8111 *)
8112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8113 ;;
8114esac
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8116$as_echo "$lt_prog_compiler_pic" >&6; }
8117
8118
8119
8120
8121
8122
8123#
8124# Check to make sure the PIC flag actually works.
8125#
8126if test -n "$lt_prog_compiler_pic"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8128$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8129if ${lt_cv_prog_compiler_pic_works+:} false; then :
ddc8de03
PM
8130 $as_echo_n "(cached) " >&6
8131else
8132 lt_cv_prog_compiler_pic_works=no
8133 ac_outfile=conftest.$ac_objext
8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8136 # Insert the option either (1) after the last *FLAGS variable, or
8137 # (2) before a word containing "conftest.", or (3) at the end.
8138 # Note that $ac_compile itself does not contain backslashes and begins
8139 # with a dollar sign (not a hyphen), so the echo should work correctly.
8140 # The option is referenced via a variable to avoid confusing sed.
8141 lt_compile=`echo "$ac_compile" | $SED \
8142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144 -e 's:$: $lt_compiler_flag:'`
8145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8146 (eval "$lt_compile" 2>conftest.err)
8147 ac_status=$?
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 if (exit $ac_status) && test -s "$ac_outfile"; then
8151 # The compiler can only warn and ignore the option if not recognized
8152 # So say no if there are warnings other than the usual output.
8153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8156 lt_cv_prog_compiler_pic_works=yes
8157 fi
8158 fi
8159 $RM conftest*
8160
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8163$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8164
8165if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8166 case $lt_prog_compiler_pic in
8167 "" | " "*) ;;
8168 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8169 esac
8170else
8171 lt_prog_compiler_pic=
8172 lt_prog_compiler_can_build_shared=no
8173fi
8174
8175fi
8176
8177
8178
8179
8180
8181
8182#
8183# Check to make sure the static flag actually works.
8184#
8185wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8187$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8188if ${lt_cv_prog_compiler_static_works+:} false; then :
ddc8de03
PM
8189 $as_echo_n "(cached) " >&6
8190else
8191 lt_cv_prog_compiler_static_works=no
8192 save_LDFLAGS="$LDFLAGS"
8193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8194 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196 # The linker can only warn and ignore the option if not recognized
8197 # So say no if there are warnings
8198 if test -s conftest.err; then
8199 # Append any errors to the config.log.
8200 cat conftest.err 1>&5
8201 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_static_works=yes
8205 fi
8206 else
8207 lt_cv_prog_compiler_static_works=yes
8208 fi
8209 fi
8210 $RM -r conftest*
8211 LDFLAGS="$save_LDFLAGS"
8212
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8215$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8216
8217if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8218 :
8219else
8220 lt_prog_compiler_static=
8221fi
8222
8223
8224
8225
8226
8227
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8231if ${lt_cv_prog_compiler_c_o+:} false; then :
ddc8de03
PM
8232 $as_echo_n "(cached) " >&6
8233else
8234 lt_cv_prog_compiler_c_o=no
8235 $RM -r conftest 2>/dev/null
8236 mkdir conftest
8237 cd conftest
8238 mkdir out
8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
8241 lt_compiler_flag="-o out/conftest2.$ac_objext"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 lt_compile=`echo "$ac_compile" | $SED \
8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249 -e 's:$: $lt_compiler_flag:'`
8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251 (eval "$lt_compile" 2>out/conftest.err)
8252 ac_status=$?
8253 cat out/conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256 then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_c_o=yes
8263 fi
8264 fi
8265 chmod u+w . 2>&5
8266 $RM conftest*
8267 # SGI C++ compiler will create directory out/ii_files/ for
8268 # template instantiation
8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270 $RM out/* && rmdir out
8271 cd ..
8272 $RM -r conftest
8273 $RM conftest*
8274
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8278
8279
8280
8281
8282
8283
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8286if ${lt_cv_prog_compiler_c_o+:} false; then :
ddc8de03
PM
8287 $as_echo_n "(cached) " >&6
8288else
8289 lt_cv_prog_compiler_c_o=no
8290 $RM -r conftest 2>/dev/null
8291 mkdir conftest
8292 cd conftest
8293 mkdir out
8294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8295
8296 lt_compiler_flag="-o out/conftest2.$ac_objext"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 lt_compile=`echo "$ac_compile" | $SED \
8302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304 -e 's:$: $lt_compiler_flag:'`
8305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8306 (eval "$lt_compile" 2>out/conftest.err)
8307 ac_status=$?
8308 cat out/conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8311 then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_c_o=yes
8318 fi
8319 fi
8320 chmod u+w . 2>&5
8321 $RM conftest*
8322 # SGI C++ compiler will create directory out/ii_files/ for
8323 # template instantiation
8324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325 $RM out/* && rmdir out
8326 cd ..
8327 $RM -r conftest
8328 $RM conftest*
8329
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8333
8334
8335
8336
8337hard_links="nottested"
8338if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8339 # do not overwrite the value of need_locks provided by the user
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8341$as_echo_n "checking if we can lock with hard links... " >&6; }
8342 hard_links=yes
8343 $RM conftest*
8344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8345 touch conftest.a
8346 ln conftest.a conftest.b 2>&5 || hard_links=no
8347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8349$as_echo "$hard_links" >&6; }
8350 if test "$hard_links" = no; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8352$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8353 need_locks=warn
8354 fi
8355else
8356 need_locks=no
8357fi
8358
8359
8360
8361
8362
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8365$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8366
8367 runpath_var=
8368 allow_undefined_flag=
8369 always_export_symbols=no
8370 archive_cmds=
8371 archive_expsym_cmds=
8372 compiler_needs_object=no
8373 enable_shared_with_static_runtimes=no
8374 export_dynamic_flag_spec=
8375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8376 hardcode_automatic=no
8377 hardcode_direct=no
8378 hardcode_direct_absolute=no
8379 hardcode_libdir_flag_spec=
8380 hardcode_libdir_flag_spec_ld=
8381 hardcode_libdir_separator=
8382 hardcode_minus_L=no
8383 hardcode_shlibpath_var=unsupported
8384 inherit_rpath=no
8385 link_all_deplibs=unknown
8386 module_cmds=
8387 module_expsym_cmds=
8388 old_archive_from_new_cmds=
8389 old_archive_from_expsyms_cmds=
8390 thread_safe_flag_spec=
8391 whole_archive_flag_spec=
8392 # include_expsyms should be a list of space-separated symbols to be *always*
8393 # included in the symbol list
8394 include_expsyms=
8395 # exclude_expsyms can be an extended regexp of symbols to exclude
8396 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8398 # as well as any symbol that contains `d'.
8399 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8401 # platforms (ab)use it in PIC code, but their linkers get confused if
8402 # the symbol is explicitly referenced. Since portable code cannot
8403 # rely on this symbol name, it's probably fine to never include it in
8404 # preloaded symbol tables.
8405 # Exclude shared library initialization/finalization symbols.
8406 extract_expsyms_cmds=
8407
8408 case $host_os in
8409 cygwin* | mingw* | pw32* | cegcc*)
8410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8411 # When not using gcc, we currently assume that we are using
8412 # Microsoft Visual C++.
8413 if test "$GCC" != yes; then
8414 with_gnu_ld=no
8415 fi
8416 ;;
8417 interix*)
8418 # we just hope/assume this is gcc and not c89 (= MSVC++)
8419 with_gnu_ld=yes
8420 ;;
8421 openbsd*)
8422 with_gnu_ld=no
8423 ;;
8424 esac
8425
8426 ld_shlibs=yes
8427
8428 # On some targets, GNU ld is compatible enough with the native linker
8429 # that we're better off using the native interface for both.
8430 lt_use_gnu_ld_interface=no
8431 if test "$with_gnu_ld" = yes; then
8432 case $host_os in
8433 aix*)
8434 # The AIX port of GNU ld has always aspired to compatibility
8435 # with the native linker. However, as the warning in the GNU ld
8436 # block says, versions before 2.19.5* couldn't really create working
8437 # shared libraries, regardless of the interface used.
8438 case `$LD -v 2>&1` in
8439 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8440 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8441 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8442 *)
8443 lt_use_gnu_ld_interface=yes
8444 ;;
8445 esac
8446 ;;
8447 *)
8448 lt_use_gnu_ld_interface=yes
8449 ;;
8450 esac
8451 fi
8452
8453 if test "$lt_use_gnu_ld_interface" = yes; then
8454 # If archive_cmds runs LD, not CC, wlarc should be empty
8455 wlarc='${wl}'
8456
8457 # Set some defaults for GNU ld with shared library support. These
8458 # are reset later if shared libraries are not supported. Putting them
8459 # here allows them to be overridden if necessary.
8460 runpath_var=LD_RUN_PATH
8461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462 export_dynamic_flag_spec='${wl}--export-dynamic'
8463 # ancient GNU ld didn't support --whole-archive et. al.
8464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8465 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8466 else
8467 whole_archive_flag_spec=
8468 fi
8469 supports_anon_versioning=no
8470 case `$LD -v 2>&1` in
8471 *GNU\ gold*) supports_anon_versioning=yes ;;
8472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8475 *\ 2.11.*) ;; # other 2.11 versions
8476 *) supports_anon_versioning=yes ;;
8477 esac
8478
8479 # See if GNU ld supports shared libraries.
8480 case $host_os in
8481 aix[3-9]*)
8482 # On AIX/PPC, the GNU linker is very broken
8483 if test "$host_cpu" != ia64; then
8484 ld_shlibs=no
8485 cat <<_LT_EOF 1>&2
8486
8487*** Warning: the GNU linker, at least up to release 2.19, is reported
8488*** to be unable to reliably create shared libraries on AIX.
8489*** Therefore, libtool is disabling shared libraries support. If you
8490*** really care for shared libraries, you may want to install binutils
8491*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8492*** You will then need to restart the configuration process.
8493
8494_LT_EOF
8495 fi
8496 ;;
8497
8498 amigaos*)
8499 case $host_cpu in
8500 powerpc)
8501 # see comment about AmigaOS4 .so support
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds=''
8504 ;;
8505 m68k)
8506 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)'
8507 hardcode_libdir_flag_spec='-L$libdir'
8508 hardcode_minus_L=yes
8509 ;;
8510 esac
8511 ;;
8512
8513 beos*)
8514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8515 allow_undefined_flag=unsupported
8516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8517 # support --undefined. This deserves some investigation. FIXME
8518 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 else
8520 ld_shlibs=no
8521 fi
8522 ;;
8523
8524 cygwin* | mingw* | pw32* | cegcc*)
8525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8526 # as there is no search path for DLLs.
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 export_dynamic_flag_spec='${wl}--export-all-symbols'
8529 allow_undefined_flag=unsupported
8530 always_export_symbols=no
8531 enable_shared_with_static_runtimes=yes
8532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8533
8534 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536 # If the export-symbols file already is a .def file (1st line
8537 # is EXPORTS), use it as is; otherwise, prepend...
8538 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8539 cp $export_symbols $output_objdir/$soname.def;
8540 else
8541 echo EXPORTS > $output_objdir/$soname.def;
8542 cat $export_symbols >> $output_objdir/$soname.def;
8543 fi~
8544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8545 else
8546 ld_shlibs=no
8547 fi
8548 ;;
8549
8550 haiku*)
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 link_all_deplibs=yes
8553 ;;
8554
8555 interix[3-9]*)
8556 hardcode_direct=no
8557 hardcode_shlibpath_var=no
8558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559 export_dynamic_flag_spec='${wl}-E'
8560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8561 # Instead, shared libraries are loaded at an image base (0x10000000 by
8562 # default) and relocated if they conflict, which is a slow very memory
8563 # consuming and fragmenting process. To avoid this, we pick a random,
8564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8565 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8567 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'
8568 ;;
8569
e9085da5 8570 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
ddc8de03
PM
8571 tmp_diet=no
8572 if test "$host_os" = linux-dietlibc; then
8573 case $cc_basename in
8574 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8575 esac
8576 fi
8577 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8578 && test "$tmp_diet" = no
8579 then
a699d672 8580 tmp_addflag=' $pic_flag'
ddc8de03
PM
8581 tmp_sharedflag='-shared'
8582 case $cc_basename,$host_cpu in
8583 pgcc*) # Portland Group C compiler
8584 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'
8585 tmp_addflag=' $pic_flag'
8586 ;;
8587 pgf77* | pgf90* | pgf95* | pgfortran*)
8588 # Portland Group f77 and f90 compilers
8589 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'
8590 tmp_addflag=' $pic_flag -Mnomain' ;;
8591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8592 tmp_addflag=' -i_dynamic' ;;
8593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8594 tmp_addflag=' -i_dynamic -nofor_main' ;;
8595 ifc* | ifort*) # Intel Fortran compiler
8596 tmp_addflag=' -nofor_main' ;;
8597 lf95*) # Lahey Fortran 8.1
8598 whole_archive_flag_spec=
8599 tmp_sharedflag='--shared' ;;
8600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8601 tmp_sharedflag='-qmkshrobj'
8602 tmp_addflag= ;;
8603 nvcc*) # Cuda Compiler Driver 2.2
8604 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'
8605 compiler_needs_object=yes
8606 ;;
8607 esac
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ C*) # Sun C 5.9
8610 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'
8611 compiler_needs_object=yes
8612 tmp_sharedflag='-G' ;;
8613 *Sun\ F*) # Sun Fortran 8.3
8614 tmp_sharedflag='-G' ;;
8615 esac
8616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617
8618 if test "x$supports_anon_versioning" = xyes; then
8619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621 echo "local: *; };" >> $output_objdir/$libname.ver~
8622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8623 fi
8624
8625 case $cc_basename in
8626 xlf* | bgf* | bgxlf* | mpixlf*)
8627 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629 hardcode_libdir_flag_spec=
8630 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8631 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8637 fi
8638 ;;
8639 esac
8640 else
8641 ld_shlibs=no
8642 fi
8643 ;;
8644
8645 netbsd*)
8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8648 wlarc=
8649 else
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8652 fi
8653 ;;
8654
8655 solaris*)
8656 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8657 ld_shlibs=no
8658 cat <<_LT_EOF 1>&2
8659
8660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8661*** create shared libraries on Solaris systems. Therefore, libtool
8662*** is disabling shared libraries support. We urge you to upgrade GNU
8663*** binutils to release 2.9.1 or newer. Another option is to modify
8664*** your PATH or compiler configuration so that the native linker is
8665*** used, and then restart.
8666
8667_LT_EOF
8668 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671 else
8672 ld_shlibs=no
8673 fi
8674 ;;
8675
8676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8677 case `$LD -v 2>&1` in
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8679 ld_shlibs=no
8680 cat <<_LT_EOF 1>&2
8681
8682*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8683*** reliably create shared libraries on SCO systems. Therefore, libtool
8684*** is disabling shared libraries support. We urge you to upgrade GNU
8685*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8686*** your PATH or compiler configuration so that the native linker is
8687*** used, and then restart.
8688
8689_LT_EOF
8690 ;;
8691 *)
8692 # For security reasons, it is highly recommended that you always
8693 # use absolute paths for naming shared libraries, and exclude the
8694 # DT_RUNPATH tag from executables and libraries. But doing so
8695 # requires that you compile everything twice, which is a pain.
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704 esac
8705 ;;
8706
8707 sunos4*)
8708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8709 wlarc=
8710 hardcode_direct=yes
8711 hardcode_shlibpath_var=no
8712 ;;
8713
8714 *)
8715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718 else
8719 ld_shlibs=no
8720 fi
8721 ;;
8722 esac
8723
8724 if test "$ld_shlibs" = no; then
8725 runpath_var=
8726 hardcode_libdir_flag_spec=
8727 export_dynamic_flag_spec=
8728 whole_archive_flag_spec=
8729 fi
8730 else
8731 # PORTME fill in a description of your system's linker (not GNU ld)
8732 case $host_os in
8733 aix3*)
8734 allow_undefined_flag=unsupported
8735 always_export_symbols=yes
8736 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'
8737 # Note: this linker hardcodes the directories in LIBPATH if there
8738 # are no directories specified by -L.
8739 hardcode_minus_L=yes
8740 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8741 # Neither direct hardcoding nor static linking is supported with a
8742 # broken collect2.
8743 hardcode_direct=unsupported
8744 fi
8745 ;;
8746
8747 aix[4-9]*)
8748 if test "$host_cpu" = ia64; then
8749 # On IA64, the linker does run time linking by default, so we don't
8750 # have to do anything special.
8751 aix_use_runtimelinking=no
8752 exp_sym_flag='-Bexport'
8753 no_entry_flag=""
8754 else
8755 # If we're using GNU nm, then we don't want the "-C" option.
8756 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8757 # Also, AIX nm treats weak defined symbols like other global
8758 # defined symbols, whereas GNU nm marks them as "W".
8759 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8760 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'
8761 else
ca37d49a 8762 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'
ddc8de03
PM
8763 fi
8764 aix_use_runtimelinking=no
8765
8766 # Test if we are trying to use run time linking or normal
8767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8768 # need to do runtime linking.
8769 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8770 for ld_flag in $LDFLAGS; do
8771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8772 aix_use_runtimelinking=yes
8773 break
8774 fi
8775 done
8776 ;;
8777 esac
8778
8779 exp_sym_flag='-bexport'
8780 no_entry_flag='-bnoentry'
8781 fi
8782
8783 # When large executables or shared objects are built, AIX ld can
8784 # have problems creating the table of contents. If linking a library
8785 # or program results in "error TOC overflow" add -mminimal-toc to
8786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8788
8789 archive_cmds=''
8790 hardcode_direct=yes
8791 hardcode_direct_absolute=yes
8792 hardcode_libdir_separator=':'
8793 link_all_deplibs=yes
8794 file_list_spec='${wl}-f,'
8795
8796 if test "$GCC" = yes; then
8797 case $host_os in aix4.[012]|aix4.[012].*)
8798 # We only want to do this on AIX 4.2 and lower, the check
8799 # below for broken collect2 doesn't work under 4.3+
8800 collect2name=`${CC} -print-prog-name=collect2`
8801 if test -f "$collect2name" &&
8802 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8803 then
8804 # We have reworked collect2
8805 :
8806 else
8807 # We have old collect2
8808 hardcode_direct=unsupported
8809 # It fails to find uninstalled libraries when the uninstalled
8810 # path is not listed in the libpath. Setting hardcode_minus_L
8811 # to unsupported forces relinking
8812 hardcode_minus_L=yes
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_libdir_separator=
8815 fi
8816 ;;
8817 esac
8818 shared_flag='-shared'
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag="$shared_flag "'${wl}-G'
8821 fi
8822 else
8823 # not using gcc
8824 if test "$host_cpu" = ia64; then
8825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8826 # chokes on -Wl,-G. The following line is correct:
8827 shared_flag='-G'
8828 else
8829 if test "$aix_use_runtimelinking" = yes; then
8830 shared_flag='${wl}-G'
8831 else
8832 shared_flag='${wl}-bM:SRE'
8833 fi
8834 fi
8835 fi
8836
8837 export_dynamic_flag_spec='${wl}-bexpall'
8838 # It seems that -bexpall does not export symbols beginning with
8839 # underscore (_), so it is better to generate a list of symbols to export.
8840 always_export_symbols=yes
8841 if test "$aix_use_runtimelinking" = yes; then
8842 # Warning - without using the other runtime loading flags (-brtl),
8843 # -berok will link without error, but may produce a broken library.
8844 allow_undefined_flag='-berok'
8845 # Determine the default libpath from the value encoded in an
8846 # empty executable.
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h. */
8849
8850int
8851main ()
8852{
8853
8854 ;
8855 return 0;
8856}
8857_ACEOF
8858if ac_fn_c_try_link "$LINENO"; then :
8859
8860lt_aix_libpath_sed='
8861 /Import File Strings/,/^$/ {
8862 /^0/ {
8863 s/^0 *\(.*\)$/\1/
8864 p
8865 }
8866 }'
8867aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868# Check for a 64-bit object if we didn't find anything.
8869if test -z "$aix_libpath"; then
8870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871fi
8872fi
8873rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8876
8877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8878 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"
8879 else
8880 if test "$host_cpu" = ia64; then
8881 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8882 allow_undefined_flag="-z nodefs"
8883 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"
8884 else
8885 # Determine the default libpath from the value encoded in an
8886 # empty executable.
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h. */
8889
8890int
8891main ()
8892{
8893
8894 ;
8895 return 0;
8896}
8897_ACEOF
8898if ac_fn_c_try_link "$LINENO"; then :
8899
8900lt_aix_libpath_sed='
8901 /Import File Strings/,/^$/ {
8902 /^0/ {
8903 s/^0 *\(.*\)$/\1/
8904 p
8905 }
8906 }'
8907aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8908# Check for a 64-bit object if we didn't find anything.
8909if test -z "$aix_libpath"; then
8910 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8911fi
8912fi
8913rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8916
8917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8918 # Warning - without using the other run time loading flags,
8919 # -berok will link without error, but may produce a broken library.
8920 no_undefined_flag=' ${wl}-bernotok'
8921 allow_undefined_flag=' ${wl}-berok'
8922 if test "$with_gnu_ld" = yes; then
8923 # We only use this code for GNU lds that support --whole-archive.
8924 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8925 else
8926 # Exported symbols can be pulled into shared objects from archives
8927 whole_archive_flag_spec='$convenience'
8928 fi
8929 archive_cmds_need_lc=yes
8930 # This is similar to how AIX traditionally builds its shared libraries.
8931 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'
8932 fi
8933 fi
8934 ;;
8935
8936 amigaos*)
8937 case $host_cpu in
8938 powerpc)
8939 # see comment about AmigaOS4 .so support
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds=''
8942 ;;
8943 m68k)
8944 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)'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_minus_L=yes
8947 ;;
8948 esac
8949 ;;
8950
8951 bsdi[45]*)
8952 export_dynamic_flag_spec=-rdynamic
8953 ;;
8954
8955 cygwin* | mingw* | pw32* | cegcc*)
8956 # When not using gcc, we currently assume that we are using
8957 # Microsoft Visual C++.
8958 # hardcode_libdir_flag_spec is actually meaningless, as there is
8959 # no search path for DLLs.
8960 hardcode_libdir_flag_spec=' '
8961 allow_undefined_flag=unsupported
8962 # Tell ltmain to make .lib files, not .a files.
8963 libext=lib
8964 # Tell ltmain to make .dll files, not .so files.
8965 shrext_cmds=".dll"
8966 # FIXME: Setting linknames here is a bad hack.
8967 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8968 # The linker will automatically build a .lib file if we build a DLL.
8969 old_archive_from_new_cmds='true'
8970 # FIXME: Should let the user specify the lib program.
8971 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8972 fix_srcfile_path='`cygpath -w "$srcfile"`'
8973 enable_shared_with_static_runtimes=yes
8974 ;;
8975
8976 darwin* | rhapsody*)
8977
8978
8979 archive_cmds_need_lc=no
8980 hardcode_direct=no
8981 hardcode_automatic=yes
8982 hardcode_shlibpath_var=unsupported
8983 if test "$lt_cv_ld_force_load" = "yes"; then
8984 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\"`'
8985 else
8986 whole_archive_flag_spec=''
8987 fi
8988 link_all_deplibs=yes
8989 allow_undefined_flag="$_lt_dar_allow_undefined"
8990 case $cc_basename in
8991 ifort*) _lt_dar_can_shared=yes ;;
8992 *) _lt_dar_can_shared=$GCC ;;
8993 esac
8994 if test "$_lt_dar_can_shared" = "yes"; then
8995 output_verbose_link_cmd=func_echo_all
8996 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8997 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8998 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}"
8999 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}"
9000
9001 else
9002 ld_shlibs=no
9003 fi
9004
9005 ;;
9006
9007 dgux*)
9008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009 hardcode_libdir_flag_spec='-L$libdir'
9010 hardcode_shlibpath_var=no
9011 ;;
9012
9013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9014 # support. Future versions do this automatically, but an explicit c++rt0.o
9015 # does not break anything, and helps significantly (at the cost of a little
9016 # extra space).
9017 freebsd2.2*)
9018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9019 hardcode_libdir_flag_spec='-R$libdir'
9020 hardcode_direct=yes
9021 hardcode_shlibpath_var=no
9022 ;;
9023
9024 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9025 freebsd2.*)
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_direct=yes
9028 hardcode_minus_L=yes
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9033 freebsd* | dragonfly*)
9034 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9035 hardcode_libdir_flag_spec='-R$libdir'
9036 hardcode_direct=yes
9037 hardcode_shlibpath_var=no
9038 ;;
9039
9040 hpux9*)
9041 if test "$GCC" = yes; then
9042 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'
9043 else
9044 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'
9045 fi
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_separator=:
9048 hardcode_direct=yes
9049
9050 # hardcode_minus_L: Not really in the search PATH,
9051 # but as the default location of the library.
9052 hardcode_minus_L=yes
9053 export_dynamic_flag_spec='${wl}-E'
9054 ;;
9055
9056 hpux10*)
9057 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9059 else
9060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9061 fi
9062 if test "$with_gnu_ld" = no; then
9063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064 hardcode_libdir_flag_spec_ld='+b $libdir'
9065 hardcode_libdir_separator=:
9066 hardcode_direct=yes
9067 hardcode_direct_absolute=yes
9068 export_dynamic_flag_spec='${wl}-E'
9069 # hardcode_minus_L: Not really in the search PATH,
9070 # but as the default location of the library.
9071 hardcode_minus_L=yes
9072 fi
9073 ;;
9074
9075 hpux11*)
9076 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9077 case $host_cpu in
9078 hppa*64*)
4e4ba647 9079 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ddc8de03
PM
9080 ;;
9081 ia64*)
9082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9083 ;;
9084 *)
9085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9086 ;;
9087 esac
9088 else
9089 case $host_cpu in
9090 hppa*64*)
4e4ba647 9091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ddc8de03
PM
9092 ;;
9093 ia64*)
9094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9095 ;;
9096 *)
9097
9098 # Older versions of the 11.00 compiler do not understand -b yet
9099 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9101$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9102if ${lt_cv_prog_compiler__b+:} false; then :
ddc8de03
PM
9103 $as_echo_n "(cached) " >&6
9104else
9105 lt_cv_prog_compiler__b=no
9106 save_LDFLAGS="$LDFLAGS"
9107 LDFLAGS="$LDFLAGS -b"
9108 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110 # The linker can only warn and ignore the option if not recognized
9111 # So say no if there are warnings
9112 if test -s conftest.err; then
9113 # Append any errors to the config.log.
9114 cat conftest.err 1>&5
9115 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117 if diff conftest.exp conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler__b=yes
9119 fi
9120 else
9121 lt_cv_prog_compiler__b=yes
9122 fi
9123 fi
9124 $RM -r conftest*
9125 LDFLAGS="$save_LDFLAGS"
9126
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9129$as_echo "$lt_cv_prog_compiler__b" >&6; }
9130
9131if test x"$lt_cv_prog_compiler__b" = xyes; then
9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9133else
9134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9135fi
9136
9137 ;;
9138 esac
9139 fi
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143
9144 case $host_cpu in
9145 hppa*64*|ia64*)
9146 hardcode_direct=no
9147 hardcode_shlibpath_var=no
9148 ;;
9149 *)
9150 hardcode_direct=yes
9151 hardcode_direct_absolute=yes
9152 export_dynamic_flag_spec='${wl}-E'
9153
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L=yes
9157 ;;
9158 esac
9159 fi
9160 ;;
9161
9162 irix5* | irix6* | nonstopux*)
9163 if test "$GCC" = yes; then
9164 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'
9165 # Try to use the -exported_symbol ld option, if it does not
9166 # work, assume that -exports_file does not work either and
9167 # implicitly export all symbols.
9168 save_LDFLAGS="$LDFLAGS"
9169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171/* end confdefs.h. */
9172int foo(void) {}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"; then :
9175 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'
9176
9177fi
9178rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 LDFLAGS="$save_LDFLAGS"
9181 else
9182 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'
9183 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'
9184 fi
9185 archive_cmds_need_lc='no'
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 hardcode_libdir_separator=:
9188 inherit_rpath=yes
9189 link_all_deplibs=yes
9190 ;;
9191
9192 netbsd*)
9193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9195 else
9196 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9197 fi
9198 hardcode_libdir_flag_spec='-R$libdir'
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9201 ;;
9202
9203 newsos6)
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_direct=yes
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 hardcode_libdir_separator=:
9208 hardcode_shlibpath_var=no
9209 ;;
9210
9211 *nto* | *qnx*)
9212 ;;
9213
9214 openbsd*)
9215 if test -f /usr/libexec/ld.so; then
9216 hardcode_direct=yes
9217 hardcode_shlibpath_var=no
9218 hardcode_direct_absolute=yes
9219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9221 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223 export_dynamic_flag_spec='${wl}-E'
9224 else
9225 case $host_os in
9226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_libdir_flag_spec='-R$libdir'
9229 ;;
9230 *)
9231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233 ;;
9234 esac
9235 fi
9236 else
9237 ld_shlibs=no
9238 fi
9239 ;;
9240
9241 os2*)
9242 hardcode_libdir_flag_spec='-L$libdir'
9243 hardcode_minus_L=yes
9244 allow_undefined_flag=unsupported
9245 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'
9246 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9247 ;;
9248
9249 osf3*)
9250 if test "$GCC" = yes; then
9251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9252 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'
9253 else
9254 allow_undefined_flag=' -expect_unresolved \*'
9255 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'
9256 fi
9257 archive_cmds_need_lc='no'
9258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259 hardcode_libdir_separator=:
9260 ;;
9261
9262 osf4* | osf5*) # as osf3* with the addition of -msym flag
9263 if test "$GCC" = yes; then
9264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9265 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'
9266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267 else
9268 allow_undefined_flag=' -expect_unresolved \*'
9269 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'
9270 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~
9271 $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'
9272
9273 # Both c and cxx compiler support -rpath directly
9274 hardcode_libdir_flag_spec='-rpath $libdir'
9275 fi
9276 archive_cmds_need_lc='no'
9277 hardcode_libdir_separator=:
9278 ;;
9279
9280 solaris*)
9281 no_undefined_flag=' -z defs'
9282 if test "$GCC" = yes; then
9283 wlarc='${wl}'
9284 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9286 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9287 else
9288 case `$CC -V 2>&1` in
9289 *"Compilers 5.0"*)
9290 wlarc=''
9291 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9294 ;;
9295 *)
9296 wlarc='${wl}'
9297 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9299 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9300 ;;
9301 esac
9302 fi
9303 hardcode_libdir_flag_spec='-R$libdir'
9304 hardcode_shlibpath_var=no
9305 case $host_os in
9306 solaris2.[0-5] | solaris2.[0-5].*) ;;
9307 *)
9308 # The compiler driver will combine and reorder linker options,
9309 # but understands `-z linker_flag'. GCC discards it without `$wl',
9310 # but is careful enough not to reorder.
9311 # Supported since Solaris 2.6 (maybe 2.5.1?)
9312 if test "$GCC" = yes; then
9313 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9314 else
9315 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9316 fi
9317 ;;
9318 esac
9319 link_all_deplibs=yes
9320 ;;
9321
9322 sunos4*)
9323 if test "x$host_vendor" = xsequent; then
9324 # Use $CC to link under sequent, because it throws in some extra .o
9325 # files that make .init and .fini sections work.
9326 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9329 fi
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_direct=yes
9332 hardcode_minus_L=yes
9333 hardcode_shlibpath_var=no
9334 ;;
9335
9336 sysv4)
9337 case $host_vendor in
9338 sni)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_direct=yes # is this really true???
9341 ;;
9342 siemens)
9343 ## LD is ld it makes a PLAMLIB
9344 ## CC just makes a GrossModule.
9345 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9346 reload_cmds='$CC -r -o $output$reload_objs'
9347 hardcode_direct=no
9348 ;;
9349 motorola)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9352 ;;
9353 esac
9354 runpath_var='LD_RUN_PATH'
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 sysv4.3*)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_shlibpath_var=no
9361 export_dynamic_flag_spec='-Bexport'
9362 ;;
9363
9364 sysv4*MP*)
9365 if test -d /usr/nec; then
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_shlibpath_var=no
9368 runpath_var=LD_RUN_PATH
9369 hardcode_runpath_var=yes
9370 ld_shlibs=yes
9371 fi
9372 ;;
9373
9374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9375 no_undefined_flag='${wl}-z,text'
9376 archive_cmds_need_lc=no
9377 hardcode_shlibpath_var=no
9378 runpath_var='LD_RUN_PATH'
9379
9380 if test "$GCC" = yes; then
9381 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 fi
9387 ;;
9388
9389 sysv5* | sco3.2v5* | sco5v6*)
9390 # Note: We can NOT use -z defs as we might desire, because we do not
9391 # link with -lc, and that would cause any symbols used from libc to
9392 # always be unresolved, which means just about no library would
9393 # ever link correctly. If we're not using GNU ld we use -z text
9394 # though, which does catch some bad symbols but isn't as heavy-handed
9395 # as -z defs.
9396 no_undefined_flag='${wl}-z,text'
9397 allow_undefined_flag='${wl}-z,nodefs'
9398 archive_cmds_need_lc=no
9399 hardcode_shlibpath_var=no
9400 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9401 hardcode_libdir_separator=':'
9402 link_all_deplibs=yes
9403 export_dynamic_flag_spec='${wl}-Bexport'
9404 runpath_var='LD_RUN_PATH'
9405
9406 if test "$GCC" = yes; then
9407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 else
9410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 fi
9413 ;;
9414
9415 uts4*)
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 *)
9422 ld_shlibs=no
9423 ;;
9424 esac
9425
9426 if test x$host_vendor = xsni; then
9427 case $host in
9428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9429 export_dynamic_flag_spec='${wl}-Blargedynsym'
9430 ;;
9431 esac
9432 fi
9433 fi
9434
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9436$as_echo "$ld_shlibs" >&6; }
9437test "$ld_shlibs" = no && can_build_shared=no
9438
9439with_gnu_ld=$with_gnu_ld
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455#
9456# Do we need to explicitly link libc?
9457#
9458case "x$archive_cmds_need_lc" in
9459x|xyes)
9460 # Assume -lc should be added
9461 archive_cmds_need_lc=yes
9462
9463 if test "$enable_shared" = yes && test "$GCC" = yes; then
9464 case $archive_cmds in
9465 *'~'*)
9466 # FIXME: we may have to deal with multi-command sequences.
9467 ;;
9468 '$CC '*)
9469 # Test whether the compiler implicitly links with -lc since on some
9470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9471 # to ld, don't add -lc before -lgcc.
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9473$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 9474if ${lt_cv_archive_cmds_need_lc+:} false; then :
ddc8de03
PM
9475 $as_echo_n "(cached) " >&6
9476else
9477 $RM conftest*
9478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9479
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9481 (eval $ac_compile) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; } 2>conftest.err; then
9485 soname=conftest
9486 lib=conftest
9487 libobjs=conftest.$ac_objext
9488 deplibs=
9489 wl=$lt_prog_compiler_wl
9490 pic_flag=$lt_prog_compiler_pic
9491 compiler_flags=-v
9492 linker_flags=-v
9493 verstring=
9494 output_objdir=.
9495 libname=conftest
9496 lt_save_allow_undefined_flag=$allow_undefined_flag
9497 allow_undefined_flag=
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9499 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }
9503 then
9504 lt_cv_archive_cmds_need_lc=no
9505 else
9506 lt_cv_archive_cmds_need_lc=yes
9507 fi
9508 allow_undefined_flag=$lt_save_allow_undefined_flag
9509 else
9510 cat conftest.err 1>&5
9511 fi
9512 $RM conftest*
9513
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9516$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9517 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9518 ;;
9519 esac
9520 fi
9521 ;;
9522esac
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
9673
9674
9675
9676
9677
9678
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9681$as_echo_n "checking dynamic linker characteristics... " >&6; }
9682
9683if test "$GCC" = yes; then
9684 case $host_os in
9685 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9686 *) lt_awk_arg="/^libraries:/" ;;
9687 esac
9688 case $host_os in
9689 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9690 *) lt_sed_strip_eq="s,=/,/,g" ;;
9691 esac
9692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9693 case $lt_search_path_spec in
9694 *\;*)
9695 # if the path contains ";" then we assume it to be the separator
9696 # otherwise default to the standard path separator (i.e. ":") - it is
9697 # assumed that no part of a normal pathname contains ";" but that should
9698 # okay in the real world where ";" in dirpaths is itself problematic.
9699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9700 ;;
9701 *)
9702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9703 ;;
9704 esac
9705 # Ok, now we have the path, separated by spaces, we can step through it
9706 # and add multilib dir if necessary.
9707 lt_tmp_lt_search_path_spec=
9708 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9709 for lt_sys_path in $lt_search_path_spec; do
9710 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9712 else
9713 test -d "$lt_sys_path" && \
9714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9715 fi
9716 done
9717 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9718BEGIN {RS=" "; FS="/|\n";} {
9719 lt_foo="";
9720 lt_count=0;
9721 for (lt_i = NF; lt_i > 0; lt_i--) {
9722 if ($lt_i != "" && $lt_i != ".") {
9723 if ($lt_i == "..") {
9724 lt_count++;
9725 } else {
9726 if (lt_count == 0) {
9727 lt_foo="/" $lt_i lt_foo;
9728 } else {
9729 lt_count--;
9730 }
9731 }
9732 }
9733 }
9734 if (lt_foo != "") { lt_freq[lt_foo]++; }
9735 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9736}'`
9737 # AWK program above erroneously prepends '/' to C:/dos/paths
9738 # for these hosts.
9739 case $host_os in
9740 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9741 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9742 esac
9743 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9744else
9745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9746fi
9747library_names_spec=
9748libname_spec='lib$name'
9749soname_spec=
9750shrext_cmds=".so"
9751postinstall_cmds=
9752postuninstall_cmds=
9753finish_cmds=
9754finish_eval=
9755shlibpath_var=
9756shlibpath_overrides_runpath=unknown
9757version_type=none
9758dynamic_linker="$host_os ld.so"
9759sys_lib_dlsearch_path_spec="/lib /usr/lib"
9760need_lib_prefix=unknown
9761hardcode_into_libs=no
9762
9763# when you set need_version to no, make sure it does not cause -set_version
9764# flags to be left without arguments
9765need_version=unknown
9766
9767case $host_os in
9768aix3*)
9769 version_type=linux
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9771 shlibpath_var=LIBPATH
9772
9773 # AIX 3 has no versioning support, so we append a major version to the name.
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 ;;
9776
9777aix[4-9]*)
9778 version_type=linux
9779 need_lib_prefix=no
9780 need_version=no
9781 hardcode_into_libs=yes
9782 if test "$host_cpu" = ia64; then
9783 # AIX 5 supports IA64
9784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 else
9787 # With GCC up to 2.95.x, collect2 would create an import file
9788 # for dependence libraries. The import file would start with
9789 # the line `#! .'. This would cause the generated library to
9790 # depend on `.', always an invalid library. This was fixed in
9791 # development snapshots of GCC prior to 3.0.
9792 case $host_os in
9793 aix4 | aix4.[01] | aix4.[01].*)
9794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9795 echo ' yes '
9796 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9797 :
9798 else
9799 can_build_shared=no
9800 fi
9801 ;;
9802 esac
9803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9804 # soname into executable. Probably we can add versioning support to
9805 # collect2, so additional links can be useful in future.
9806 if test "$aix_use_runtimelinking" = yes; then
9807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9808 # instead of lib<name>.a to let people know that these are not
9809 # typical AIX shared libraries.
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 else
9812 # We preserve .a as extension for shared libraries through AIX4.2
9813 # and later when we are not doing run time linking.
9814 library_names_spec='${libname}${release}.a $libname.a'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 fi
9817 shlibpath_var=LIBPATH
9818 fi
9819 ;;
9820
9821amigaos*)
9822 case $host_cpu in
9823 powerpc)
9824 # Since July 2007 AmigaOS4 officially supports .so libraries.
9825 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827 ;;
9828 m68k)
9829 library_names_spec='$libname.ixlibrary $libname.a'
9830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9831 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'
9832 ;;
9833 esac
9834 ;;
9835
9836beos*)
9837 library_names_spec='${libname}${shared_ext}'
9838 dynamic_linker="$host_os ld.so"
9839 shlibpath_var=LIBRARY_PATH
9840 ;;
9841
9842bsdi[45]*)
9843 version_type=linux
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9848 shlibpath_var=LD_LIBRARY_PATH
9849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9851 # the default ld.so.conf also contains /usr/contrib/lib and
9852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9853 # libtool to hard-code these into programs
9854 ;;
9855
9856cygwin* | mingw* | pw32* | cegcc*)
9857 version_type=windows
9858 shrext_cmds=".dll"
9859 need_version=no
9860 need_lib_prefix=no
9861
9862 case $GCC,$host_os in
9863 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9864 library_names_spec='$libname.dll.a'
9865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9866 postinstall_cmds='base_file=`basename \${file}`~
9867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9868 dldir=$destdir/`dirname \$dlpath`~
9869 test -d \$dldir || mkdir -p \$dldir~
9870 $install_prog $dir/$dlname \$dldir/$dlname~
9871 chmod a+x \$dldir/$dlname~
9872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9874 fi'
9875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876 dlpath=$dir/\$dldll~
9877 $RM \$dlpath'
9878 shlibpath_overrides_runpath=yes
9879
9880 case $host_os in
9881 cygwin*)
9882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884
9885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9886 ;;
9887 mingw* | cegcc*)
9888 # MinGW DLLs use traditional 'lib' prefix
9889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 ;;
9891 pw32*)
9892 # pw32 DLLs use 'pw' prefix rather than 'lib'
9893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894 ;;
9895 esac
9896 ;;
9897
9898 *)
9899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9900 ;;
9901 esac
9902 dynamic_linker='Win32 ld.exe'
9903 # FIXME: first we should search . and the directory the executable is in
9904 shlibpath_var=PATH
9905 ;;
9906
9907darwin* | rhapsody*)
9908 dynamic_linker="$host_os dyld"
9909 version_type=darwin
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913 soname_spec='${libname}${release}${major}$shared_ext'
9914 shlibpath_overrides_runpath=yes
9915 shlibpath_var=DYLD_LIBRARY_PATH
9916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9917
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9920 ;;
9921
9922dgux*)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 ;;
9930
9931freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9936 else
9937 case $host_os in
9938 freebsd[23].*) objformat=aout ;;
9939 *) objformat=elf ;;
9940 esac
9941 fi
9942 version_type=freebsd-$objformat
9943 case $version_type in
9944 freebsd-elf*)
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946 need_version=no
9947 need_lib_prefix=no
9948 ;;
9949 freebsd-*)
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951 need_version=yes
9952 ;;
9953 esac
9954 shlibpath_var=LD_LIBRARY_PATH
9955 case $host_os in
9956 freebsd2.*)
9957 shlibpath_overrides_runpath=yes
9958 ;;
9959 freebsd3.[01]* | freebsdelf3.[01]*)
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9967 ;;
9968 *) # from 4.6 on, and DragonFly
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9971 ;;
9972 esac
9973 ;;
9974
ddc8de03
PM
9975haiku*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 dynamic_linker="$host_os runtime_loader"
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LIBRARY_PATH
9983 shlibpath_overrides_runpath=yes
9984 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9985 hardcode_into_libs=yes
9986 ;;
9987
9988hpux9* | hpux10* | hpux11*)
9989 # Give a soname corresponding to the major version so that dld.sl refuses to
9990 # link against other versions.
9991 version_type=sunos
9992 need_lib_prefix=no
9993 need_version=no
9994 case $host_cpu in
9995 ia64*)
9996 shrext_cmds='.so'
9997 hardcode_into_libs=yes
9998 dynamic_linker="$host_os dld.so"
9999 shlibpath_var=LD_LIBRARY_PATH
10000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 if test "X$HPUX_IA64_MODE" = X32; then
10004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10005 else
10006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10007 fi
10008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10009 ;;
10010 hppa*64*)
10011 shrext_cmds='.sl'
10012 hardcode_into_libs=yes
10013 dynamic_linker="$host_os dld.sl"
10014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020 ;;
10021 *)
10022 shrext_cmds='.sl'
10023 dynamic_linker="$host_os dld.sl"
10024 shlibpath_var=SHLIB_PATH
10025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 ;;
10029 esac
10030 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10031 postinstall_cmds='chmod 555 $lib'
10032 # or fails outright, so override atomically:
10033 install_override_mode=555
10034 ;;
10035
10036interix[3-9]*)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=no
10045 hardcode_into_libs=yes
10046 ;;
10047
10048irix5* | irix6* | nonstopux*)
10049 case $host_os in
10050 nonstopux*) version_type=nonstopux ;;
10051 *)
10052 if test "$lt_cv_prog_gnu_ld" = yes; then
10053 version_type=linux
10054 else
10055 version_type=irix
10056 fi ;;
10057 esac
10058 need_lib_prefix=no
10059 need_version=no
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10062 case $host_os in
10063 irix5* | nonstopux*)
10064 libsuff= shlibsuff=
10065 ;;
10066 *)
10067 case $LD in # libtool.m4 will add one of these switches to LD
10068 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10069 libsuff= shlibsuff= libmagic=32-bit;;
10070 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10071 libsuff=32 shlibsuff=N32 libmagic=N32;;
10072 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10073 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10074 *) libsuff= shlibsuff= libmagic=never-match;;
10075 esac
10076 ;;
10077 esac
10078 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10079 shlibpath_overrides_runpath=no
10080 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10081 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10082 hardcode_into_libs=yes
10083 ;;
10084
10085# No shared lib support for Linux oldld, aout, or coff.
10086linux*oldld* | linux*aout* | linux*coff*)
10087 dynamic_linker=no
10088 ;;
10089
10090# This must be Linux ELF.
e9085da5
MR
10091
10092# uclinux* changes (here and below) have been submitted to the libtool
10093# project, but have not yet been accepted: they are GCC-local changes
10094# for the time being. (See
10095# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10096linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
ddc8de03
PM
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=no
10105
10106 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10107 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
ddc8de03
PM
10108 $as_echo_n "(cached) " >&6
10109else
10110 lt_cv_shlibpath_overrides_runpath=no
10111 save_LDFLAGS=$LDFLAGS
10112 save_libdir=$libdir
10113 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10114 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116/* end confdefs.h. */
10117
10118int
10119main ()
10120{
10121
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126if ac_fn_c_try_link "$LINENO"; then :
10127 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10128 lt_cv_shlibpath_overrides_runpath=yes
10129fi
10130fi
10131rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LDFLAGS=$save_LDFLAGS
10134 libdir=$save_libdir
10135
10136fi
10137
10138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10139
10140 # This implies no fast_install, which is unacceptable.
10141 # Some rework will be needed to allow for fast_install
10142 # before this can be enabled.
10143 hardcode_into_libs=yes
10144
10145 # Append ld.so.conf contents to the search path
10146 if test -f /etc/ld.so.conf; then
10147 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' ' '`
10148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10149 fi
10150
10151 # We used to test for /lib/ld.so.1 and disable shared libraries on
10152 # powerpc, because MkLinux only supported shared libraries with the
10153 # GNU dynamic linker. Since this was broken with cross compilers,
10154 # most powerpc-linux boxes support dynamic linking these days and
10155 # people can always --disable-shared, the test was removed, and we
10156 # assume the GNU/Linux dynamic linker is in use.
10157 dynamic_linker='GNU/Linux ld.so'
10158 ;;
10159
10160netbsd*)
10161 version_type=sunos
10162 need_lib_prefix=no
10163 need_version=no
10164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10167 dynamic_linker='NetBSD (a.out) ld.so'
10168 else
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 dynamic_linker='NetBSD ld.elf_so'
10172 fi
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 hardcode_into_libs=yes
10176 ;;
10177
10178newsos6)
10179 version_type=linux
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 shlibpath_overrides_runpath=yes
10183 ;;
10184
10185*nto* | *qnx*)
10186 version_type=qnx
10187 need_lib_prefix=no
10188 need_version=no
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=no
10193 hardcode_into_libs=yes
10194 dynamic_linker='ldqnx.so'
10195 ;;
10196
10197openbsd*)
10198 version_type=sunos
10199 sys_lib_dlsearch_path_spec="/usr/lib"
10200 need_lib_prefix=no
10201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10202 case $host_os in
10203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10204 *) need_version=no ;;
10205 esac
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210 case $host_os in
10211 openbsd2.[89] | openbsd2.[89].*)
10212 shlibpath_overrides_runpath=no
10213 ;;
10214 *)
10215 shlibpath_overrides_runpath=yes
10216 ;;
10217 esac
10218 else
10219 shlibpath_overrides_runpath=yes
10220 fi
10221 ;;
10222
10223os2*)
10224 libname_spec='$name'
10225 shrext_cmds=".dll"
10226 need_lib_prefix=no
10227 library_names_spec='$libname${shared_ext} $libname.a'
10228 dynamic_linker='OS/2 ld.exe'
10229 shlibpath_var=LIBPATH
10230 ;;
10231
10232osf3* | osf4* | osf5*)
10233 version_type=osf
10234 need_lib_prefix=no
10235 need_version=no
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10241 ;;
10242
10243rdos*)
10244 dynamic_linker=no
10245 ;;
10246
10247solaris*)
10248 version_type=linux
10249 need_lib_prefix=no
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=yes
10255 hardcode_into_libs=yes
10256 # ldd complains unless libraries are executable
10257 postinstall_cmds='chmod +x $lib'
10258 ;;
10259
10260sunos4*)
10261 version_type=sunos
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 shlibpath_overrides_runpath=yes
10266 if test "$with_gnu_ld" = yes; then
10267 need_lib_prefix=no
10268 fi
10269 need_version=yes
10270 ;;
10271
10272sysv4 | sysv4.3*)
10273 version_type=linux
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 case $host_vendor in
10278 sni)
10279 shlibpath_overrides_runpath=no
10280 need_lib_prefix=no
10281 runpath_var=LD_RUN_PATH
10282 ;;
10283 siemens)
10284 need_lib_prefix=no
10285 ;;
10286 motorola)
10287 need_lib_prefix=no
10288 need_version=no
10289 shlibpath_overrides_runpath=no
10290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10291 ;;
10292 esac
10293 ;;
10294
10295sysv4*MP*)
10296 if test -d /usr/nec ;then
10297 version_type=linux
10298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10299 soname_spec='$libname${shared_ext}.$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 fi
10302 ;;
10303
10304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10305 version_type=freebsd-elf
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 hardcode_into_libs=yes
10313 if test "$with_gnu_ld" = yes; then
10314 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10315 else
10316 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10317 case $host_os in
10318 sco3.2v5*)
10319 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10320 ;;
10321 esac
10322 fi
10323 sys_lib_dlsearch_path_spec='/usr/lib'
10324 ;;
10325
10326tpf*)
10327 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10328 version_type=linux
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10335 ;;
10336
10337uts4*)
10338 version_type=linux
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 ;;
10343
0ecd0f1c
OH
10344# Shared libraries for VwWorks, >= 7 only at this stage
10345# and (fpic) still incompatible with "large" code models
10346# in a few configurations. Only for RTP mode in any case,
10347# and upon explicit request at configure time.
10348vxworks7*)
10349 dynamic_linker=no
10350 case ${with_multisubdir}-${enable_shared} in
10351 *large*)
10352 ;;
10353 *mrtp*-yes)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 dynamic_linker="$host_os module_loader"
10360 ;;
10361 esac
10362 ;;
ddc8de03
PM
10363*)
10364 dynamic_linker=no
10365 ;;
10366esac
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10368$as_echo "$dynamic_linker" >&6; }
10369test "$dynamic_linker" = no && can_build_shared=no
10370
10371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10372if test "$GCC" = yes; then
10373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10374fi
10375
10376if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10377 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10378fi
10379if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10380 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10381fi
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10475$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10476hardcode_action=
10477if test -n "$hardcode_libdir_flag_spec" ||
10478 test -n "$runpath_var" ||
10479 test "X$hardcode_automatic" = "Xyes" ; then
10480
10481 # We can hardcode non-existent directories.
10482 if test "$hardcode_direct" != no &&
10483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10484 # have to relink, otherwise we might link with an installed library
10485 # when we should be linking with a yet-to-be-installed one
10486 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10487 test "$hardcode_minus_L" != no; then
10488 # Linking always hardcodes the temporary library directory.
10489 hardcode_action=relink
10490 else
10491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10492 hardcode_action=immediate
10493 fi
10494else
10495 # We cannot hardcode anything, or else we can only hardcode existing
10496 # directories.
10497 hardcode_action=unsupported
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10500$as_echo "$hardcode_action" >&6; }
10501
10502if test "$hardcode_action" = relink ||
10503 test "$inherit_rpath" = yes; then
10504 # Fast installation is not supported
10505 enable_fast_install=no
10506elif test "$shlibpath_overrides_runpath" = yes ||
10507 test "$enable_shared" = no; then
10508 # Fast installation is not necessary
10509 enable_fast_install=needless
10510fi
10511
10512
10513
10514
10515
10516
10517 if test "x$enable_dlopen" != xyes; then
10518 enable_dlopen=unknown
10519 enable_dlopen_self=unknown
10520 enable_dlopen_self_static=unknown
10521else
10522 lt_cv_dlopen=no
10523 lt_cv_dlopen_libs=
10524
10525 case $host_os in
10526 beos*)
10527 lt_cv_dlopen="load_add_on"
10528 lt_cv_dlopen_libs=
10529 lt_cv_dlopen_self=yes
10530 ;;
10531
10532 mingw* | pw32* | cegcc*)
10533 lt_cv_dlopen="LoadLibrary"
10534 lt_cv_dlopen_libs=
10535 ;;
10536
10537 cygwin*)
10538 lt_cv_dlopen="dlopen"
10539 lt_cv_dlopen_libs=
10540 ;;
10541
10542 darwin*)
10543 # if libdl is installed we need to link against it
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10545$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10546if ${ac_cv_lib_dl_dlopen+:} false; then :
ddc8de03
PM
10547 $as_echo_n "(cached) " >&6
10548else
10549 ac_check_lib_save_LIBS=$LIBS
10550LIBS="-ldl $LIBS"
10551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h. */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557#ifdef __cplusplus
10558extern "C"
10559#endif
10560char dlopen ();
10561int
10562main ()
10563{
10564return dlopen ();
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569if ac_fn_c_try_link "$LINENO"; then :
10570 ac_cv_lib_dl_dlopen=yes
10571else
10572 ac_cv_lib_dl_dlopen=no
10573fi
10574rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576LIBS=$ac_check_lib_save_LIBS
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10579$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10580if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ddc8de03
PM
10581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10582else
10583
10584 lt_cv_dlopen="dyld"
10585 lt_cv_dlopen_libs=
10586 lt_cv_dlopen_self=yes
10587
10588fi
10589
10590 ;;
10591
10592 *)
10593 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 10594if test "x$ac_cv_func_shl_load" = xyes; then :
ddc8de03
PM
10595 lt_cv_dlopen="shl_load"
10596else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10598$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 10599if ${ac_cv_lib_dld_shl_load+:} false; then :
ddc8de03
PM
10600 $as_echo_n "(cached) " >&6
10601else
10602 ac_check_lib_save_LIBS=$LIBS
10603LIBS="-ldld $LIBS"
10604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h. */
10606
10607/* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char shl_load ();
10614int
10615main ()
10616{
10617return shl_load ();
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622if ac_fn_c_try_link "$LINENO"; then :
10623 ac_cv_lib_dld_shl_load=yes
10624else
10625 ac_cv_lib_dld_shl_load=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629LIBS=$ac_check_lib_save_LIBS
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10632$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 10633if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
ddc8de03
PM
10634 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10635else
10636 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 10637if test "x$ac_cv_func_dlopen" = xyes; then :
ddc8de03
PM
10638 lt_cv_dlopen="dlopen"
10639else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10641$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10642if ${ac_cv_lib_dl_dlopen+:} false; then :
ddc8de03
PM
10643 $as_echo_n "(cached) " >&6
10644else
10645 ac_check_lib_save_LIBS=$LIBS
10646LIBS="-ldl $LIBS"
10647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h. */
10649
10650/* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653#ifdef __cplusplus
10654extern "C"
10655#endif
10656char dlopen ();
10657int
10658main ()
10659{
10660return dlopen ();
10661 ;
10662 return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_link "$LINENO"; then :
10666 ac_cv_lib_dl_dlopen=yes
10667else
10668 ac_cv_lib_dl_dlopen=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672LIBS=$ac_check_lib_save_LIBS
10673fi
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10675$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10676if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ddc8de03
PM
10677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10678else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10680$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 10681if ${ac_cv_lib_svld_dlopen+:} false; then :
ddc8de03
PM
10682 $as_echo_n "(cached) " >&6
10683else
10684 ac_check_lib_save_LIBS=$LIBS
10685LIBS="-lsvld $LIBS"
10686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h. */
10688
10689/* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695char dlopen ();
10696int
10697main ()
10698{
10699return dlopen ();
10700 ;
10701 return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"; then :
10705 ac_cv_lib_svld_dlopen=yes
10706else
10707 ac_cv_lib_svld_dlopen=no
10708fi
10709rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711LIBS=$ac_check_lib_save_LIBS
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10714$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 10715if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ddc8de03
PM
10716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10717else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10719$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 10720if ${ac_cv_lib_dld_dld_link+:} false; then :
ddc8de03
PM
10721 $as_echo_n "(cached) " >&6
10722else
10723 ac_check_lib_save_LIBS=$LIBS
10724LIBS="-ldld $LIBS"
10725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727
10728/* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731#ifdef __cplusplus
10732extern "C"
10733#endif
10734char dld_link ();
10735int
10736main ()
10737{
10738return dld_link ();
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"; then :
10744 ac_cv_lib_dld_dld_link=yes
10745else
10746 ac_cv_lib_dld_dld_link=no
10747fi
10748rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750LIBS=$ac_check_lib_save_LIBS
10751fi
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10753$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 10754if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
ddc8de03
PM
10755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10756fi
10757
10758
10759fi
10760
10761
10762fi
10763
10764
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773 ;;
10774 esac
10775
10776 if test "x$lt_cv_dlopen" != xno; then
10777 enable_dlopen=yes
10778 else
10779 enable_dlopen=no
10780 fi
10781
10782 case $lt_cv_dlopen in
10783 dlopen)
10784 save_CPPFLAGS="$CPPFLAGS"
10785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10786
10787 save_LDFLAGS="$LDFLAGS"
10788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10789
10790 save_LIBS="$LIBS"
10791 LIBS="$lt_cv_dlopen_libs $LIBS"
10792
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10794$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 10795if ${lt_cv_dlopen_self+:} false; then :
ddc8de03
PM
10796 $as_echo_n "(cached) " >&6
10797else
10798 if test "$cross_compiling" = yes; then :
10799 lt_cv_dlopen_self=cross
10800else
10801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10802 lt_status=$lt_dlunknown
10803 cat > conftest.$ac_ext <<_LT_EOF
6d2294a8 10804#line 10804 "configure"
ddc8de03
PM
10805#include "confdefs.h"
10806
10807#if HAVE_DLFCN_H
10808#include <dlfcn.h>
10809#endif
10810
10811#include <stdio.h>
10812
10813#ifdef RTLD_GLOBAL
10814# define LT_DLGLOBAL RTLD_GLOBAL
10815#else
10816# ifdef DL_GLOBAL
10817# define LT_DLGLOBAL DL_GLOBAL
10818# else
10819# define LT_DLGLOBAL 0
10820# endif
10821#endif
10822
10823/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10824 find out it does not work in some platform. */
10825#ifndef LT_DLLAZY_OR_NOW
10826# ifdef RTLD_LAZY
10827# define LT_DLLAZY_OR_NOW RTLD_LAZY
10828# else
10829# ifdef DL_LAZY
10830# define LT_DLLAZY_OR_NOW DL_LAZY
10831# else
10832# ifdef RTLD_NOW
10833# define LT_DLLAZY_OR_NOW RTLD_NOW
10834# else
10835# ifdef DL_NOW
10836# define LT_DLLAZY_OR_NOW DL_NOW
10837# else
10838# define LT_DLLAZY_OR_NOW 0
10839# endif
10840# endif
10841# endif
10842# endif
10843#endif
10844
10845/* When -fvisbility=hidden is used, assume the code has been annotated
10846 correspondingly for the symbols needed. */
10847#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10848void fnord () __attribute__((visibility("default")));
10849#endif
10850
10851void fnord () { int i=42; }
10852int main ()
10853{
10854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10855 int status = $lt_dlunknown;
10856
10857 if (self)
10858 {
10859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10860 else
10861 {
10862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10863 else puts (dlerror ());
10864 }
10865 /* dlclose (self); */
10866 }
10867 else
10868 puts (dlerror ());
10869
10870 return status;
10871}
10872_LT_EOF
10873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10874 (eval $ac_link) 2>&5
10875 ac_status=$?
10876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10877 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10878 (./conftest; exit; ) >&5 2>/dev/null
10879 lt_status=$?
10880 case x$lt_status in
10881 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10882 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10883 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10884 esac
10885 else :
10886 # compilation failed
10887 lt_cv_dlopen_self=no
10888 fi
10889fi
10890rm -fr conftest*
10891
10892
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10895$as_echo "$lt_cv_dlopen_self" >&6; }
10896
10897 if test "x$lt_cv_dlopen_self" = xyes; then
10898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10900$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 10901if ${lt_cv_dlopen_self_static+:} false; then :
ddc8de03
PM
10902 $as_echo_n "(cached) " >&6
10903else
10904 if test "$cross_compiling" = yes; then :
10905 lt_cv_dlopen_self_static=cross
10906else
10907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908 lt_status=$lt_dlunknown
10909 cat > conftest.$ac_ext <<_LT_EOF
6d2294a8 10910#line 10910 "configure"
ddc8de03
PM
10911#include "confdefs.h"
10912
10913#if HAVE_DLFCN_H
10914#include <dlfcn.h>
10915#endif
10916
10917#include <stdio.h>
10918
10919#ifdef RTLD_GLOBAL
10920# define LT_DLGLOBAL RTLD_GLOBAL
10921#else
10922# ifdef DL_GLOBAL
10923# define LT_DLGLOBAL DL_GLOBAL
10924# else
10925# define LT_DLGLOBAL 0
10926# endif
10927#endif
10928
10929/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930 find out it does not work in some platform. */
10931#ifndef LT_DLLAZY_OR_NOW
10932# ifdef RTLD_LAZY
10933# define LT_DLLAZY_OR_NOW RTLD_LAZY
10934# else
10935# ifdef DL_LAZY
10936# define LT_DLLAZY_OR_NOW DL_LAZY
10937# else
10938# ifdef RTLD_NOW
10939# define LT_DLLAZY_OR_NOW RTLD_NOW
10940# else
10941# ifdef DL_NOW
10942# define LT_DLLAZY_OR_NOW DL_NOW
10943# else
10944# define LT_DLLAZY_OR_NOW 0
10945# endif
10946# endif
10947# endif
10948# endif
10949#endif
10950
10951/* When -fvisbility=hidden is used, assume the code has been annotated
10952 correspondingly for the symbols needed. */
10953#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10954void fnord () __attribute__((visibility("default")));
10955#endif
10956
10957void fnord () { int i=42; }
10958int main ()
10959{
10960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10961 int status = $lt_dlunknown;
10962
10963 if (self)
10964 {
10965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10966 else
10967 {
10968 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10969 else puts (dlerror ());
10970 }
10971 /* dlclose (self); */
10972 }
10973 else
10974 puts (dlerror ());
10975
10976 return status;
10977}
10978_LT_EOF
10979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10983 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10984 (./conftest; exit; ) >&5 2>/dev/null
10985 lt_status=$?
10986 case x$lt_status in
10987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10990 esac
10991 else :
10992 # compilation failed
10993 lt_cv_dlopen_self_static=no
10994 fi
10995fi
10996rm -fr conftest*
10997
10998
10999fi
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11001$as_echo "$lt_cv_dlopen_self_static" >&6; }
11002 fi
11003
11004 CPPFLAGS="$save_CPPFLAGS"
11005 LDFLAGS="$save_LDFLAGS"
11006 LIBS="$save_LIBS"
11007 ;;
11008 esac
11009
11010 case $lt_cv_dlopen_self in
11011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11012 *) enable_dlopen_self=unknown ;;
11013 esac
11014
11015 case $lt_cv_dlopen_self_static in
11016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11017 *) enable_dlopen_self_static=unknown ;;
11018 esac
11019fi
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037striplib=
11038old_striplib=
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11040$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11041if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11043 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045$as_echo "yes" >&6; }
11046else
11047# FIXME - insert some real tests, host_os isn't really good enough
11048 case $host_os in
11049 darwin*)
11050 if test -n "$STRIP" ; then
11051 striplib="$STRIP -x"
11052 old_striplib="$STRIP -S"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054$as_echo "yes" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057$as_echo "no" >&6; }
11058 fi
11059 ;;
11060 *)
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063 ;;
11064 esac
11065fi
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 # Report which library types will actually be built
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11080$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11082$as_echo "$can_build_shared" >&6; }
11083
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11085$as_echo_n "checking whether to build shared libraries... " >&6; }
11086 test "$can_build_shared" = "no" && enable_shared=no
11087
11088 # On AIX, shared libraries and static libraries use the same namespace, and
11089 # are all built from PIC.
11090 case $host_os in
11091 aix3*)
11092 test "$enable_shared" = yes && enable_static=no
11093 if test -n "$RANLIB"; then
11094 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11095 postinstall_cmds='$RANLIB $lib'
11096 fi
11097 ;;
11098
11099 aix[4-9]*)
11100 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11101 test "$enable_shared" = yes && enable_static=no
11102 fi
11103 ;;
11104 esac
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11106$as_echo "$enable_shared" >&6; }
11107
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11109$as_echo_n "checking whether to build static libraries... " >&6; }
11110 # Make sure either enable_shared or enable_static is yes.
11111 test "$enable_shared" = yes || enable_static=yes
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11113$as_echo "$enable_static" >&6; }
11114
11115
11116
11117
11118fi
11119ac_ext=c
11120ac_cpp='$CPP $CPPFLAGS'
11121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11123ac_compiler_gnu=$ac_cv_c_compiler_gnu
11124
11125CC="$lt_save_CC"
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 ac_config_commands="$ac_config_commands libtool"
11140
11141
11142
11143
11144# Only expand once:
11145
11146
11147
11148ac_ext=cpp
11149ac_cpp='$CXXCPP $CPPFLAGS'
11150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11153if test -z "$CXX"; then
11154 if test -n "$CCC"; then
11155 CXX=$CCC
11156 else
11157 if test -n "$ac_tool_prefix"; then
11158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11159 do
11160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11164if ${ac_cv_prog_CXX+:} false; then :
ddc8de03
PM
11165 $as_echo_n "(cached) " >&6
11166else
11167 if test -n "$CXX"; then
11168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11169else
11170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171for as_dir in $PATH
11172do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
11177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11180 fi
11181done
11182 done
11183IFS=$as_save_IFS
11184
11185fi
11186fi
11187CXX=$ac_cv_prog_CXX
11188if test -n "$CXX"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11190$as_echo "$CXX" >&6; }
11191else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
11194fi
11195
11196
11197 test -n "$CXX" && break
11198 done
11199fi
11200if test -z "$CXX"; then
11201 ac_ct_CXX=$CXX
11202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11203do
11204 # Extract the first word of "$ac_prog", so it can be a program name with args.
11205set dummy $ac_prog; ac_word=$2
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11208if ${ac_cv_prog_ac_ct_CXX+:} false; then :
ddc8de03
PM
11209 $as_echo_n "(cached) " >&6
11210else
11211 if test -n "$ac_ct_CXX"; then
11212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11213else
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddc8de03
PM
11221 ac_cv_prog_ac_ct_CXX="$ac_prog"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226 done
11227IFS=$as_save_IFS
11228
11229fi
11230fi
11231ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11232if test -n "$ac_ct_CXX"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11234$as_echo "$ac_ct_CXX" >&6; }
11235else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
11238fi
11239
11240
11241 test -n "$ac_ct_CXX" && break
11242done
11243
11244 if test "x$ac_ct_CXX" = x; then
11245 CXX="g++"
11246 else
11247 case $cross_compiling:$ac_tool_warned in
11248yes:)
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11251ac_tool_warned=yes ;;
11252esac
11253 CXX=$ac_ct_CXX
11254 fi
11255fi
11256
11257 fi
11258fi
11259# Provide some information about the compiler.
11260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11261set X $ac_compile
11262ac_compiler=$2
11263for ac_option in --version -v -V -qversion; do
11264 { { ac_try="$ac_compiler $ac_option >&5"
11265case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11270$as_echo "$ac_try_echo"; } >&5
11271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11272 ac_status=$?
11273 if test -s conftest.err; then
11274 sed '10a\
11275... rest of stderr output deleted ...
11276 10q' conftest.err >conftest.er1
11277 cat conftest.er1 >&5
ddc8de03 11278 fi
22e05272 11279 rm -f conftest.er1 conftest.err
ddc8de03
PM
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; }
11282done
11283
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11285$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 11286if ${ac_cv_cxx_compiler_gnu+:} false; then :
ddc8de03
PM
11287 $as_echo_n "(cached) " >&6
11288else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290/* end confdefs.h. */
11291
11292int
11293main ()
11294{
11295#ifndef __GNUC__
11296 choke me
11297#endif
11298
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_cxx_try_compile "$LINENO"; then :
11304 ac_compiler_gnu=yes
11305else
11306 ac_compiler_gnu=no
11307fi
11308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11310
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11313$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11314if test $ac_compiler_gnu = yes; then
11315 GXX=yes
11316else
11317 GXX=
11318fi
11319ac_test_CXXFLAGS=${CXXFLAGS+set}
11320ac_save_CXXFLAGS=$CXXFLAGS
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11322$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 11323if ${ac_cv_prog_cxx_g+:} false; then :
ddc8de03
PM
11324 $as_echo_n "(cached) " >&6
11325else
11326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11327 ac_cxx_werror_flag=yes
11328 ac_cv_prog_cxx_g=no
11329 CXXFLAGS="-g"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331/* end confdefs.h. */
11332
11333int
11334main ()
11335{
11336
11337 ;
11338 return 0;
11339}
11340_ACEOF
11341if ac_fn_cxx_try_compile "$LINENO"; then :
11342 ac_cv_prog_cxx_g=yes
11343else
11344 CXXFLAGS=""
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348int
11349main ()
11350{
11351
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356if ac_fn_cxx_try_compile "$LINENO"; then :
11357
11358else
11359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11360 CXXFLAGS="-g"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
11363
11364int
11365main ()
11366{
11367
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372if ac_fn_cxx_try_compile "$LINENO"; then :
11373 ac_cv_prog_cxx_g=yes
11374fi
11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376fi
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378fi
11379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11381fi
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11383$as_echo "$ac_cv_prog_cxx_g" >&6; }
11384if test "$ac_test_CXXFLAGS" = set; then
11385 CXXFLAGS=$ac_save_CXXFLAGS
11386elif test $ac_cv_prog_cxx_g = yes; then
11387 if test "$GXX" = yes; then
11388 CXXFLAGS="-g -O2"
11389 else
11390 CXXFLAGS="-g"
11391 fi
11392else
11393 if test "$GXX" = yes; then
11394 CXXFLAGS="-O2"
11395 else
11396 CXXFLAGS=
11397 fi
11398fi
11399ac_ext=c
11400ac_cpp='$CPP $CPPFLAGS'
11401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404
11405depcc="$CXX" am_compiler_list=
11406
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11408$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 11409if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
ddc8de03
PM
11410 $as_echo_n "(cached) " >&6
11411else
11412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11413 # We make a subdir and do the tests there. Otherwise we can end up
11414 # making bogus files that we don't know about and never remove. For
11415 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
11416 # making a dummy file named 'D' -- because '-MD' means "put the output
11417 # in D".
4709a6d2 11418 rm -rf conftest.dir
ddc8de03
PM
11419 mkdir conftest.dir
11420 # Copy depcomp to subdir because otherwise we won't find it if we're
11421 # using a relative directory.
11422 cp "$am_depcomp" conftest.dir
11423 cd conftest.dir
11424 # We will build objects and dependencies in a subdirectory because
11425 # it helps to detect inapplicable dependency modes. For instance
11426 # both Tru64's cc and ICC support -MD to output dependencies as a
11427 # side effect of compilation, but ICC will put the dependencies in
11428 # the current directory while Tru64 will put them in the object
11429 # directory.
11430 mkdir sub
11431
11432 am_cv_CXX_dependencies_compiler_type=none
11433 if test "$am_compiler_list" = ""; then
11434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11435 fi
11436 am__universal=false
11437 case " $depcc " in #(
11438 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11439 esac
11440
11441 for depmode in $am_compiler_list; do
11442 # Setup a source with many dependencies, because some compilers
11443 # like to wrap large dependency lists on column 80 (with \), and
11444 # we should not choose a depcomp mode which is confused by this.
11445 #
11446 # We need to recreate these files for each test, as the compiler may
11447 # overwrite some of them when testing with obscure command lines.
11448 # This happens at least with the AIX C compiler.
11449 : > sub/conftest.c
11450 for i in 1 2 3 4 5 6; do
11451 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
11452 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11453 # Solaris 10 /bin/sh.
11454 echo '/* dummy */' > sub/conftst$i.h
ddc8de03
PM
11455 done
11456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11457
22e05272 11458 # We check with '-c' and '-o' for the sake of the "dashmstdout"
ddc8de03 11459 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
11460 # handle '-M -o', and we need to detect this. Also, some Intel
11461 # versions had trouble with output in subdirs.
ddc8de03
PM
11462 am__obj=sub/conftest.${OBJEXT-o}
11463 am__minus_obj="-o $am__obj"
11464 case $depmode in
11465 gcc)
11466 # This depmode causes a compiler race in universal mode.
11467 test "$am__universal" = false || continue
11468 ;;
11469 nosideeffect)
22e05272
JM
11470 # After this tag, mechanisms are not by side-effect, so they'll
11471 # only be used when explicitly requested.
ddc8de03
PM
11472 if test "x$enable_dependency_tracking" = xyes; then
11473 continue
11474 else
11475 break
11476 fi
11477 ;;
4709a6d2 11478 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 11479 # This compiler won't grok '-c -o', but also, the minuso test has
ddc8de03
PM
11480 # not run yet. These depmodes are late enough in the game, and
11481 # so weak that their functioning should not be impacted.
11482 am__obj=conftest.${OBJEXT-o}
11483 am__minus_obj=
11484 ;;
11485 none) break ;;
11486 esac
11487 if depmode=$depmode \
11488 source=sub/conftest.c object=$am__obj \
11489 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11490 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11491 >/dev/null 2>conftest.err &&
11492 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11493 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11494 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11495 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11496 # icc doesn't choke on unknown options, it will just issue warnings
11497 # or remarks (even with -Werror). So we grep stderr for any message
11498 # that says an option was ignored or not supported.
11499 # When given -MP, icc 7.0 and 7.1 complain thusly:
11500 # icc: Command line warning: ignoring option '-M'; no argument required
11501 # The diagnosis changed in icc 8.0:
11502 # icc: Command line remark: option '-MP' not supported
11503 if (grep 'ignoring option' conftest.err ||
11504 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11505 am_cv_CXX_dependencies_compiler_type=$depmode
11506 break
11507 fi
11508 fi
11509 done
11510
11511 cd ..
11512 rm -rf conftest.dir
11513else
11514 am_cv_CXX_dependencies_compiler_type=none
11515fi
11516
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11519$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11520CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11521
11522 if
11523 test "x$enable_dependency_tracking" != xno \
11524 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11525 am__fastdepCXX_TRUE=
11526 am__fastdepCXX_FALSE='#'
11527else
11528 am__fastdepCXX_TRUE='#'
11529 am__fastdepCXX_FALSE=
11530fi
11531
11532
11533 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11534 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11535 (test "X$CXX" != "Xg++"))) ; then
11536 ac_ext=cpp
11537ac_cpp='$CXXCPP $CPPFLAGS'
11538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11542$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11543if test -z "$CXXCPP"; then
22e05272 11544 if ${ac_cv_prog_CXXCPP+:} false; then :
ddc8de03
PM
11545 $as_echo_n "(cached) " >&6
11546else
11547 # Double quotes because CXXCPP needs to be expanded
11548 for CXXCPP in "$CXX -E" "/lib/cpp"
11549 do
11550 ac_preproc_ok=false
11551for ac_cxx_preproc_warn_flag in '' yes
11552do
11553 # Use a header file that comes with gcc, so configuring glibc
11554 # with a fresh cross-compiler works.
11555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 # <limits.h> exists even on freestanding compilers.
11557 # On the NeXT, cc -E runs the code through the compiler's parser,
11558 # not just through cpp. "Syntax error" is here to catch this case.
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h. */
11561#ifdef __STDC__
11562# include <limits.h>
11563#else
11564# include <assert.h>
11565#endif
11566 Syntax error
11567_ACEOF
11568if ac_fn_cxx_try_cpp "$LINENO"; then :
11569
11570else
11571 # Broken: fails on valid input.
11572continue
11573fi
22e05272 11574rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
11575
11576 # OK, works on sane cases. Now check whether nonexistent headers
11577 # can be detected and how.
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579/* end confdefs.h. */
11580#include <ac_nonexistent.h>
11581_ACEOF
11582if ac_fn_cxx_try_cpp "$LINENO"; then :
11583 # Broken: success on invalid input.
11584continue
11585else
11586 # Passes both tests.
11587ac_preproc_ok=:
11588break
11589fi
22e05272 11590rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
11591
11592done
11593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11594rm -f conftest.i conftest.err conftest.$ac_ext
ddc8de03
PM
11595if $ac_preproc_ok; then :
11596 break
11597fi
11598
11599 done
11600 ac_cv_prog_CXXCPP=$CXXCPP
11601
11602fi
11603 CXXCPP=$ac_cv_prog_CXXCPP
11604else
11605 ac_cv_prog_CXXCPP=$CXXCPP
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11608$as_echo "$CXXCPP" >&6; }
11609ac_preproc_ok=false
11610for ac_cxx_preproc_warn_flag in '' yes
11611do
11612 # Use a header file that comes with gcc, so configuring glibc
11613 # with a fresh cross-compiler works.
11614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615 # <limits.h> exists even on freestanding compilers.
11616 # On the NeXT, cc -E runs the code through the compiler's parser,
11617 # not just through cpp. "Syntax error" is here to catch this case.
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h. */
11620#ifdef __STDC__
11621# include <limits.h>
11622#else
11623# include <assert.h>
11624#endif
11625 Syntax error
11626_ACEOF
11627if ac_fn_cxx_try_cpp "$LINENO"; then :
11628
11629else
11630 # Broken: fails on valid input.
11631continue
11632fi
22e05272 11633rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
11634
11635 # OK, works on sane cases. Now check whether nonexistent headers
11636 # can be detected and how.
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638/* end confdefs.h. */
11639#include <ac_nonexistent.h>
11640_ACEOF
11641if ac_fn_cxx_try_cpp "$LINENO"; then :
11642 # Broken: success on invalid input.
11643continue
11644else
11645 # Passes both tests.
11646ac_preproc_ok=:
11647break
11648fi
22e05272 11649rm -f conftest.err conftest.i conftest.$ac_ext
ddc8de03
PM
11650
11651done
11652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11653rm -f conftest.i conftest.err conftest.$ac_ext
ddc8de03
PM
11654if $ac_preproc_ok; then :
11655
11656else
11657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11659as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11660See \`config.log' for more details" "$LINENO" 5; }
ddc8de03
PM
11661fi
11662
11663ac_ext=c
11664ac_cpp='$CPP $CPPFLAGS'
11665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
11669else
11670 _lt_caught_CXX_error=yes
11671fi
11672
11673ac_ext=cpp
11674ac_cpp='$CXXCPP $CPPFLAGS'
11675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11678
11679archive_cmds_need_lc_CXX=no
11680allow_undefined_flag_CXX=
11681always_export_symbols_CXX=no
11682archive_expsym_cmds_CXX=
11683compiler_needs_object_CXX=no
11684export_dynamic_flag_spec_CXX=
11685hardcode_direct_CXX=no
11686hardcode_direct_absolute_CXX=no
11687hardcode_libdir_flag_spec_CXX=
11688hardcode_libdir_flag_spec_ld_CXX=
11689hardcode_libdir_separator_CXX=
11690hardcode_minus_L_CXX=no
11691hardcode_shlibpath_var_CXX=unsupported
11692hardcode_automatic_CXX=no
11693inherit_rpath_CXX=no
11694module_cmds_CXX=
11695module_expsym_cmds_CXX=
11696link_all_deplibs_CXX=unknown
11697old_archive_cmds_CXX=$old_archive_cmds
11698reload_flag_CXX=$reload_flag
11699reload_cmds_CXX=$reload_cmds
11700no_undefined_flag_CXX=
11701whole_archive_flag_spec_CXX=
11702enable_shared_with_static_runtimes_CXX=no
11703
11704# Source file extension for C++ test sources.
11705ac_ext=cpp
11706
11707# Object file extension for compiled C++ test sources.
11708objext=o
11709objext_CXX=$objext
11710
11711# No sense in running all these tests if we already determined that
11712# the CXX compiler isn't working. Some variables (like enable_shared)
11713# are currently assumed to apply to all compilers on this platform,
11714# and will be corrupted by setting them based on a non-working compiler.
11715if test "$_lt_caught_CXX_error" != yes; then
11716 # Code to be used in simple compile tests
11717 lt_simple_compile_test_code="int some_variable = 0;"
11718
11719 # Code to be used in simple link tests
11720 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11721
11722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11723
11724
11725
11726
11727
11728
11729# If no C compiler was specified, use CC.
11730LTCC=${LTCC-"$CC"}
11731
11732# If no C compiler flags were specified, use CFLAGS.
11733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11734
11735# Allow CC to be a program name with arguments.
11736compiler=$CC
11737
11738
11739 # save warnings/boilerplate of simple test code
11740 ac_outfile=conftest.$ac_objext
11741echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11743_lt_compiler_boilerplate=`cat conftest.err`
11744$RM conftest*
11745
11746 ac_outfile=conftest.$ac_objext
11747echo "$lt_simple_link_test_code" >conftest.$ac_ext
11748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11749_lt_linker_boilerplate=`cat conftest.err`
11750$RM -r conftest*
11751
11752
11753 # Allow CC to be a program name with arguments.
11754 lt_save_CC=$CC
11755 lt_save_LD=$LD
11756 lt_save_GCC=$GCC
11757 GCC=$GXX
11758 lt_save_with_gnu_ld=$with_gnu_ld
11759 lt_save_path_LD=$lt_cv_path_LD
11760 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11761 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11762 else
11763 $as_unset lt_cv_prog_gnu_ld
11764 fi
11765 if test -n "${lt_cv_path_LDCXX+set}"; then
11766 lt_cv_path_LD=$lt_cv_path_LDCXX
11767 else
11768 $as_unset lt_cv_path_LD
11769 fi
11770 test -z "${LDCXX+set}" || LD=$LDCXX
11771 CC=${CXX-"c++"}
11772 compiler=$CC
11773 compiler_CXX=$CC
11774 for cc_temp in $compiler""; do
11775 case $cc_temp in
11776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11778 \-*) ;;
11779 *) break;;
11780 esac
11781done
11782cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11783
11784
11785 if test -n "$compiler"; then
11786 # We don't want -fno-exception when compiling C++ code, so set the
11787 # no_builtin_flag separately
11788 if test "$GXX" = yes; then
11789 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11790 else
11791 lt_prog_compiler_no_builtin_flag_CXX=
11792 fi
11793
11794 if test "$GXX" = yes; then
11795 # Set up default GNU C++ configuration
11796
11797
11798
11799# Check whether --with-gnu-ld was given.
11800if test "${with_gnu_ld+set}" = set; then :
11801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11802else
11803 with_gnu_ld=no
11804fi
11805
11806ac_prog=ld
11807if test "$GCC" = yes; then
11808 # Check if gcc -print-prog-name=ld gives a path.
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11810$as_echo_n "checking for ld used by $CC... " >&6; }
11811 case $host in
11812 *-*-mingw*)
11813 # gcc leaves a trailing carriage return which upsets mingw
11814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11815 *)
11816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11817 esac
11818 case $ac_prog in
11819 # Accept absolute paths.
11820 [\\/]* | ?:[\\/]*)
11821 re_direlt='/[^/][^/]*/\.\./'
11822 # Canonicalize the pathname of ld
11823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11826 done
11827 test -z "$LD" && LD="$ac_prog"
11828 ;;
11829 "")
11830 # If it fails, then pretend we aren't using GCC.
11831 ac_prog=ld
11832 ;;
11833 *)
11834 # If it is relative, then search for the first ld in PATH.
11835 with_gnu_ld=unknown
11836 ;;
11837 esac
11838elif test "$with_gnu_ld" = yes; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11840$as_echo_n "checking for GNU ld... " >&6; }
11841else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11843$as_echo_n "checking for non-GNU ld... " >&6; }
11844fi
22e05272 11845if ${lt_cv_path_LD+:} false; then :
ddc8de03
PM
11846 $as_echo_n "(cached) " >&6
11847else
11848 if test -z "$LD"; then
11849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11850 for ac_dir in $PATH; do
11851 IFS="$lt_save_ifs"
11852 test -z "$ac_dir" && ac_dir=.
11853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11854 lt_cv_path_LD="$ac_dir/$ac_prog"
11855 # Check to see if the program is GNU ld. I'd rather use --version,
11856 # but apparently some variants of GNU ld only accept -v.
11857 # Break only if it was the GNU/non-GNU ld that we prefer.
11858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11859 *GNU* | *'with BFD'*)
11860 test "$with_gnu_ld" != no && break
11861 ;;
11862 *)
11863 test "$with_gnu_ld" != yes && break
11864 ;;
11865 esac
11866 fi
11867 done
11868 IFS="$lt_save_ifs"
11869else
11870 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11871fi
11872fi
11873
11874LD="$lt_cv_path_LD"
11875if test -n "$LD"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11877$as_echo "$LD" >&6; }
11878else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881fi
22e05272 11882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
ddc8de03
PM
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11884$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 11885if ${lt_cv_prog_gnu_ld+:} false; then :
ddc8de03
PM
11886 $as_echo_n "(cached) " >&6
11887else
11888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11889case `$LD -v 2>&1 </dev/null` in
11890*GNU* | *'with BFD'*)
11891 lt_cv_prog_gnu_ld=yes
11892 ;;
11893*)
11894 lt_cv_prog_gnu_ld=no
11895 ;;
11896esac
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11899$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11900with_gnu_ld=$lt_cv_prog_gnu_ld
11901
11902
11903
11904
11905
11906
11907
11908 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11909 # archiving commands below assume that GNU ld is being used.
11910 if test "$with_gnu_ld" = yes; then
a699d672
L
11911 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11912 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'
ddc8de03
PM
11913
11914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11916
11917 # If archive_cmds runs LD, not CC, wlarc should be empty
11918 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11919 # investigate it a little bit more. (MM)
11920 wlarc='${wl}'
11921
11922 # ancient GNU ld didn't support --whole-archive et. al.
11923 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11924 $GREP 'no-whole-archive' > /dev/null; then
11925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11926 else
11927 whole_archive_flag_spec_CXX=
11928 fi
11929 else
11930 with_gnu_ld=no
11931 wlarc=
11932
11933 # A generic and very simple default shared library creation
11934 # command for GNU C++ for the case where it uses the native
11935 # linker, instead of GNU ld. If possible, this setting should
11936 # overridden to take advantage of the native linker features on
11937 # the platform it is being used on.
11938 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11939 fi
11940
11941 # Commands to make compiler produce verbose output that lists
11942 # what "hidden" libraries, object files and flags are used when
11943 # linking a shared library.
11944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11945
11946 else
11947 GXX=no
11948 with_gnu_ld=no
11949 wlarc=
11950 fi
11951
11952 # PORTME: fill in a description of your system's C++ link characteristics
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11955 ld_shlibs_CXX=yes
11956 case $host_os in
11957 aix3*)
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11960 ;;
11961 aix[4-9]*)
11962 if test "$host_cpu" = ia64; then
11963 # On IA64, the linker does run time linking by default, so we don't
11964 # have to do anything special.
11965 aix_use_runtimelinking=no
11966 exp_sym_flag='-Bexport'
11967 no_entry_flag=""
11968 else
11969 aix_use_runtimelinking=no
11970
11971 # Test if we are trying to use run time linking or normal
11972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11973 # need to do runtime linking.
11974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11975 for ld_flag in $LDFLAGS; do
11976 case $ld_flag in
11977 *-brtl*)
11978 aix_use_runtimelinking=yes
11979 break
11980 ;;
11981 esac
11982 done
11983 ;;
11984 esac
11985
11986 exp_sym_flag='-bexport'
11987 no_entry_flag='-bnoentry'
11988 fi
11989
11990 # When large executables or shared objects are built, AIX ld can
11991 # have problems creating the table of contents. If linking a library
11992 # or program results in "error TOC overflow" add -mminimal-toc to
11993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11995
11996 archive_cmds_CXX=''
11997 hardcode_direct_CXX=yes
11998 hardcode_direct_absolute_CXX=yes
11999 hardcode_libdir_separator_CXX=':'
12000 link_all_deplibs_CXX=yes
12001 file_list_spec_CXX='${wl}-f,'
12002
12003 if test "$GXX" = yes; then
12004 case $host_os in aix4.[012]|aix4.[012].*)
12005 # We only want to do this on AIX 4.2 and lower, the check
12006 # below for broken collect2 doesn't work under 4.3+
12007 collect2name=`${CC} -print-prog-name=collect2`
12008 if test -f "$collect2name" &&
12009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12010 then
12011 # We have reworked collect2
12012 :
12013 else
12014 # We have old collect2
12015 hardcode_direct_CXX=unsupported
12016 # It fails to find uninstalled libraries when the uninstalled
12017 # path is not listed in the libpath. Setting hardcode_minus_L
12018 # to unsupported forces relinking
12019 hardcode_minus_L_CXX=yes
12020 hardcode_libdir_flag_spec_CXX='-L$libdir'
12021 hardcode_libdir_separator_CXX=
12022 fi
12023 esac
12024 shared_flag='-shared'
12025 if test "$aix_use_runtimelinking" = yes; then
12026 shared_flag="$shared_flag "'${wl}-G'
12027 fi
12028 else
12029 # not using gcc
12030 if test "$host_cpu" = ia64; then
12031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12032 # chokes on -Wl,-G. The following line is correct:
12033 shared_flag='-G'
12034 else
12035 if test "$aix_use_runtimelinking" = yes; then
12036 shared_flag='${wl}-G'
12037 else
12038 shared_flag='${wl}-bM:SRE'
12039 fi
12040 fi
12041 fi
12042
12043 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12044 # It seems that -bexpall does not export symbols beginning with
12045 # underscore (_), so it is better to generate a list of symbols to
12046 # export.
12047 always_export_symbols_CXX=yes
12048 if test "$aix_use_runtimelinking" = yes; then
12049 # Warning - without using the other runtime loading flags (-brtl),
12050 # -berok will link without error, but may produce a broken library.
12051 allow_undefined_flag_CXX='-berok'
12052 # Determine the default libpath from the value encoded in an empty
12053 # executable.
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h. */
12056
12057int
12058main ()
12059{
12060
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065if ac_fn_cxx_try_link "$LINENO"; then :
12066
12067lt_aix_libpath_sed='
12068 /Import File Strings/,/^$/ {
12069 /^0/ {
12070 s/^0 *\(.*\)$/\1/
12071 p
12072 }
12073 }'
12074aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12075# Check for a 64-bit object if we didn't find anything.
12076if test -z "$aix_libpath"; then
12077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12078fi
12079fi
12080rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12083
12084 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12085
12086 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"
12087 else
12088 if test "$host_cpu" = ia64; then
12089 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12090 allow_undefined_flag_CXX="-z nodefs"
12091 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"
12092 else
12093 # Determine the default libpath from the value encoded in an
12094 # empty executable.
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h. */
12097
12098int
12099main ()
12100{
12101
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_cxx_try_link "$LINENO"; then :
12107
12108lt_aix_libpath_sed='
12109 /Import File Strings/,/^$/ {
12110 /^0/ {
12111 s/^0 *\(.*\)$/\1/
12112 p
12113 }
12114 }'
12115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12116# Check for a 64-bit object if we didn't find anything.
12117if test -z "$aix_libpath"; then
12118 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12119fi
12120fi
12121rm -f core conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12123if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12124
12125 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12126 # Warning - without using the other run time loading flags,
12127 # -berok will link without error, but may produce a broken library.
12128 no_undefined_flag_CXX=' ${wl}-bernotok'
12129 allow_undefined_flag_CXX=' ${wl}-berok'
12130 if test "$with_gnu_ld" = yes; then
12131 # We only use this code for GNU lds that support --whole-archive.
12132 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12133 else
12134 # Exported symbols can be pulled into shared objects from archives
12135 whole_archive_flag_spec_CXX='$convenience'
12136 fi
12137 archive_cmds_need_lc_CXX=yes
12138 # This is similar to how AIX traditionally builds its shared
12139 # libraries.
12140 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'
12141 fi
12142 fi
12143 ;;
12144
12145 beos*)
12146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12147 allow_undefined_flag_CXX=unsupported
12148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12149 # support --undefined. This deserves some investigation. FIXME
12150 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 else
12152 ld_shlibs_CXX=no
12153 fi
12154 ;;
12155
12156 chorus*)
12157 case $cc_basename in
12158 *)
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12161 ;;
12162 esac
12163 ;;
12164
12165 cygwin* | mingw* | pw32* | cegcc*)
12166 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12167 # as there is no search path for DLLs.
12168 hardcode_libdir_flag_spec_CXX='-L$libdir'
12169 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12170 allow_undefined_flag_CXX=unsupported
12171 always_export_symbols_CXX=no
12172 enable_shared_with_static_runtimes_CXX=yes
12173
12174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12175 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'
12176 # If the export-symbols file already is a .def file (1st line
12177 # is EXPORTS), use it as is; otherwise, prepend...
12178 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12179 cp $export_symbols $output_objdir/$soname.def;
12180 else
12181 echo EXPORTS > $output_objdir/$soname.def;
12182 cat $export_symbols >> $output_objdir/$soname.def;
12183 fi~
12184 $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'
12185 else
12186 ld_shlibs_CXX=no
12187 fi
12188 ;;
12189 darwin* | rhapsody*)
12190
12191
12192 archive_cmds_need_lc_CXX=no
12193 hardcode_direct_CXX=no
12194 hardcode_automatic_CXX=yes
12195 hardcode_shlibpath_var_CXX=unsupported
12196 if test "$lt_cv_ld_force_load" = "yes"; then
12197 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\"`'
12198 else
12199 whole_archive_flag_spec_CXX=''
12200 fi
12201 link_all_deplibs_CXX=yes
12202 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12203 case $cc_basename in
12204 ifort*) _lt_dar_can_shared=yes ;;
12205 *) _lt_dar_can_shared=$GCC ;;
12206 esac
12207 if test "$_lt_dar_can_shared" = "yes"; then
12208 output_verbose_link_cmd=func_echo_all
12209 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}"
12210 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12211 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}"
12212 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}"
12213 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12214 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}"
12215 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}"
12216 fi
12217
12218 else
12219 ld_shlibs_CXX=no
12220 fi
12221
12222 ;;
12223
12224 dgux*)
12225 case $cc_basename in
12226 ec++*)
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12229 ;;
12230 ghcx*)
12231 # Green Hills C++ Compiler
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12234 ;;
12235 *)
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12238 ;;
12239 esac
12240 ;;
12241
12242 freebsd2.*)
12243 # C++ shared libraries reported to be fairly broken before
12244 # switch to ELF
12245 ld_shlibs_CXX=no
12246 ;;
12247
12248 freebsd-elf*)
12249 archive_cmds_need_lc_CXX=no
12250 ;;
12251
12252 freebsd* | dragonfly*)
12253 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12254 # conventions
12255 ld_shlibs_CXX=yes
12256 ;;
12257
12258 gnu*)
12259 ;;
12260
12261 haiku*)
12262 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 link_all_deplibs_CXX=yes
12264 ;;
12265
12266 hpux9*)
12267 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12268 hardcode_libdir_separator_CXX=:
12269 export_dynamic_flag_spec_CXX='${wl}-E'
12270 hardcode_direct_CXX=yes
12271 hardcode_minus_L_CXX=yes # Not in the search PATH,
12272 # but as the default
12273 # location of the library.
12274
12275 case $cc_basename in
12276 CC*)
12277 # FIXME: insert proper C++ library support
12278 ld_shlibs_CXX=no
12279 ;;
12280 aCC*)
12281 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'
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12285 #
12286 # There doesn't appear to be a way to prevent this compiler from
12287 # explicitly linking system object files so we need to strip them
12288 # from the output so that they don't get included in the library
12289 # dependencies.
12290 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"'
12291 ;;
12292 *)
12293 if test "$GXX" = yes; then
12294 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'
12295 else
12296 # FIXME: insert proper C++ library support
12297 ld_shlibs_CXX=no
12298 fi
12299 ;;
12300 esac
12301 ;;
12302
12303 hpux10*|hpux11*)
12304 if test $with_gnu_ld = no; then
12305 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12306 hardcode_libdir_separator_CXX=:
12307
12308 case $host_cpu in
12309 hppa*64*|ia64*)
12310 ;;
12311 *)
12312 export_dynamic_flag_spec_CXX='${wl}-E'
12313 ;;
12314 esac
12315 fi
12316 case $host_cpu in
12317 hppa*64*|ia64*)
12318 hardcode_direct_CXX=no
12319 hardcode_shlibpath_var_CXX=no
12320 ;;
12321 *)
12322 hardcode_direct_CXX=yes
12323 hardcode_direct_absolute_CXX=yes
12324 hardcode_minus_L_CXX=yes # Not in the search PATH,
12325 # but as the default
12326 # location of the library.
12327 ;;
12328 esac
12329
12330 case $cc_basename in
12331 CC*)
12332 # FIXME: insert proper C++ library support
12333 ld_shlibs_CXX=no
12334 ;;
12335 aCC*)
12336 case $host_cpu in
12337 hppa*64*)
4e4ba647 12338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
ddc8de03
PM
12339 ;;
12340 ia64*)
12341 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342 ;;
12343 *)
12344 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 ;;
12346 esac
12347 # Commands to make compiler produce verbose output that lists
12348 # what "hidden" libraries, object files and flags are used when
12349 # linking a shared library.
12350 #
12351 # There doesn't appear to be a way to prevent this compiler from
12352 # explicitly linking system object files so we need to strip them
12353 # from the output so that they don't get included in the library
12354 # dependencies.
12355 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"'
12356 ;;
12357 *)
12358 if test "$GXX" = yes; then
12359 if test $with_gnu_ld = no; then
12360 case $host_cpu in
12361 hppa*64*)
4e4ba647 12362 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
ddc8de03
PM
12363 ;;
12364 ia64*)
12365 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12366 ;;
12367 *)
12368 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'
12369 ;;
12370 esac
12371 fi
12372 else
12373 # FIXME: insert proper C++ library support
12374 ld_shlibs_CXX=no
12375 fi
12376 ;;
12377 esac
12378 ;;
12379
12380 interix[3-9]*)
12381 hardcode_direct_CXX=no
12382 hardcode_shlibpath_var_CXX=no
12383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12384 export_dynamic_flag_spec_CXX='${wl}-E'
12385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12386 # Instead, shared libraries are loaded at an image base (0x10000000 by
12387 # default) and relocated if they conflict, which is a slow very memory
12388 # consuming and fragmenting process. To avoid this, we pick a random,
12389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12391 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'
12392 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'
12393 ;;
12394 irix5* | irix6*)
12395 case $cc_basename in
12396 CC*)
12397 # SGI C++
12398 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'
12399
12400 # Archives containing C++ object files must be created using
12401 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12402 # necessary to make sure instantiated templates are included
12403 # in the archive.
12404 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12405 ;;
12406 *)
12407 if test "$GXX" = yes; then
12408 if test "$with_gnu_ld" = no; then
12409 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'
12410 else
12411 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'
12412 fi
12413 fi
12414 link_all_deplibs_CXX=yes
12415 ;;
12416 esac
12417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12418 hardcode_libdir_separator_CXX=:
12419 inherit_rpath_CXX=yes
12420 ;;
12421
12422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12423 case $cc_basename in
12424 KCC*)
12425 # Kuck and Associates, Inc. (KAI) C++ Compiler
12426
12427 # KCC will only create a shared library if the output file
12428 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12429 # to its proper name (with version) after linking.
12430 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'
12431 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'
12432 # Commands to make compiler produce verbose output that lists
12433 # what "hidden" libraries, object files and flags are used when
12434 # linking a shared library.
12435 #
12436 # There doesn't appear to be a way to prevent this compiler from
12437 # explicitly linking system object files so we need to strip them
12438 # from the output so that they don't get included in the library
12439 # dependencies.
12440 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"'
12441
12442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12444
12445 # Archives containing C++ object files must be created using
12446 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12447 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12448 ;;
12449 icpc* | ecpc* )
12450 # Intel C++
12451 with_gnu_ld=yes
12452 # version 8.0 and above of icpc choke on multiply defined symbols
12453 # if we add $predep_objects and $postdep_objects, however 7.1 and
12454 # earlier do not add the objects themselves.
12455 case `$CC -V 2>&1` in
12456 *"Version 7."*)
12457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458 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'
12459 ;;
12460 *) # Version 8.0 or newer
12461 tmp_idyn=
12462 case $host_cpu in
12463 ia64*) tmp_idyn=' -i_dynamic';;
12464 esac
12465 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12466 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'
12467 ;;
12468 esac
12469 archive_cmds_need_lc_CXX=no
12470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12472 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12473 ;;
12474 pgCC* | pgcpp*)
12475 # Portland Group C++ compiler
12476 case `$CC -V` in
12477 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12478 prelink_cmds_CXX='tpldir=Template.dir~
12479 rm -rf $tpldir~
12480 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22e05272 12481 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
ddc8de03
PM
12482 old_archive_cmds_CXX='tpldir=Template.dir~
12483 rm -rf $tpldir~
12484 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22e05272 12485 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
ddc8de03
PM
12486 $RANLIB $oldlib'
12487 archive_cmds_CXX='tpldir=Template.dir~
12488 rm -rf $tpldir~
12489 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12490 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
ddc8de03
PM
12491 archive_expsym_cmds_CXX='tpldir=Template.dir~
12492 rm -rf $tpldir~
12493 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12494 $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'
ddc8de03
PM
12495 ;;
12496 *) # Version 6 and above use weak symbols
12497 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12498 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'
12499 ;;
12500 esac
12501
12502 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12504 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'
12505 ;;
12506 cxx*)
12507 # Compaq C++
12508 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 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'
12510
12511 runpath_var=LD_RUN_PATH
12512 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12513 hardcode_libdir_separator_CXX=:
12514
12515 # Commands to make compiler produce verbose output that lists
12516 # what "hidden" libraries, object files and flags are used when
12517 # linking a shared library.
12518 #
12519 # There doesn't appear to be a way to prevent this compiler from
12520 # explicitly linking system object files so we need to strip them
12521 # from the output so that they don't get included in the library
12522 # dependencies.
12523 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'
12524 ;;
12525 xl* | mpixl* | bgxl*)
12526 # IBM XL 8.0 on PPC, with GNU ld
12527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12529 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12530 if test "x$supports_anon_versioning" = xyes; then
12531 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12533 echo "local: *; };" >> $output_objdir/$libname.ver~
12534 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12535 fi
12536 ;;
12537 *)
12538 case `$CC -V 2>&1 | sed 5q` in
12539 *Sun\ C*)
12540 # Sun C++ 5.9
12541 no_undefined_flag_CXX=' -zdefs'
12542 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12543 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'
12544 hardcode_libdir_flag_spec_CXX='-R$libdir'
12545 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'
12546 compiler_needs_object_CXX=yes
12547
12548 # Not sure whether something based on
12549 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12550 # would be better.
12551 output_verbose_link_cmd='func_echo_all'
12552
12553 # Archives containing C++ object files must be created using
12554 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12555 # necessary to make sure instantiated templates are included
12556 # in the archive.
12557 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12558 ;;
12559 esac
12560 ;;
12561 esac
12562 ;;
12563
12564 lynxos*)
12565 # FIXME: insert proper C++ library support
12566 ld_shlibs_CXX=no
12567 ;;
12568
12569 m88k*)
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12572 ;;
12573
12574 mvs*)
12575 case $cc_basename in
12576 cxx*)
12577 # FIXME: insert proper C++ library support
12578 ld_shlibs_CXX=no
12579 ;;
12580 *)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 ;;
12584 esac
12585 ;;
12586
12587 netbsd*)
12588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12589 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12590 wlarc=
12591 hardcode_libdir_flag_spec_CXX='-R$libdir'
12592 hardcode_direct_CXX=yes
12593 hardcode_shlibpath_var_CXX=no
12594 fi
12595 # Workaround some broken pre-1.5 toolchains
12596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12597 ;;
12598
12599 *nto* | *qnx*)
12600 ld_shlibs_CXX=yes
12601 ;;
12602
12603 openbsd2*)
12604 # C++ shared libraries are fairly broken
12605 ld_shlibs_CXX=no
12606 ;;
12607
12608 openbsd*)
12609 if test -f /usr/libexec/ld.so; then
12610 hardcode_direct_CXX=yes
12611 hardcode_shlibpath_var_CXX=no
12612 hardcode_direct_absolute_CXX=yes
12613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12616 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12617 export_dynamic_flag_spec_CXX='${wl}-E'
12618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12619 fi
12620 output_verbose_link_cmd=func_echo_all
12621 else
12622 ld_shlibs_CXX=no
12623 fi
12624 ;;
12625
12626 osf3* | osf4* | osf5*)
12627 case $cc_basename in
12628 KCC*)
12629 # Kuck and Associates, Inc. (KAI) C++ Compiler
12630
12631 # KCC will only create a shared library if the output file
12632 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12633 # to its proper name (with version) after linking.
12634 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'
12635
12636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12637 hardcode_libdir_separator_CXX=:
12638
12639 # Archives containing C++ object files must be created using
12640 # the KAI C++ compiler.
12641 case $host in
12642 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12643 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12644 esac
12645 ;;
12646 RCC*)
12647 # Rational C++ 2.4.1
12648 # FIXME: insert proper C++ library support
12649 ld_shlibs_CXX=no
12650 ;;
12651 cxx*)
12652 case $host in
12653 osf3*)
12654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12655 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'
12656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12657 ;;
12658 *)
12659 allow_undefined_flag_CXX=' -expect_unresolved \*'
12660 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'
12661 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12662 echo "-hidden">> $lib.exp~
12663 $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~
12664 $RM $lib.exp'
12665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12666 ;;
12667 esac
12668
12669 hardcode_libdir_separator_CXX=:
12670
12671 # Commands to make compiler produce verbose output that lists
12672 # what "hidden" libraries, object files and flags are used when
12673 # linking a shared library.
12674 #
12675 # There doesn't appear to be a way to prevent this compiler from
12676 # explicitly linking system object files so we need to strip them
12677 # from the output so that they don't get included in the library
12678 # dependencies.
12679 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"'
12680 ;;
12681 *)
12682 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12684 case $host in
12685 osf3*)
12686 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'
12687 ;;
12688 *)
12689 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'
12690 ;;
12691 esac
12692
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694 hardcode_libdir_separator_CXX=:
12695
12696 # Commands to make compiler produce verbose output that lists
12697 # what "hidden" libraries, object files and flags are used when
12698 # linking a shared library.
12699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12700
12701 else
12702 # FIXME: insert proper C++ library support
12703 ld_shlibs_CXX=no
12704 fi
12705 ;;
12706 esac
12707 ;;
12708
12709 psos*)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12712 ;;
12713
12714 sunos4*)
12715 case $cc_basename in
12716 CC*)
12717 # Sun C++ 4.x
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 ;;
12721 lcc*)
12722 # Lucid
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12725 ;;
12726 *)
12727 # FIXME: insert proper C++ library support
12728 ld_shlibs_CXX=no
12729 ;;
12730 esac
12731 ;;
12732
12733 solaris*)
12734 case $cc_basename in
12735 CC*)
12736 # Sun C++ 4.2, 5.x and Centerline C++
12737 archive_cmds_need_lc_CXX=yes
12738 no_undefined_flag_CXX=' -zdefs'
12739 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12740 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12741 $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'
12742
12743 hardcode_libdir_flag_spec_CXX='-R$libdir'
12744 hardcode_shlibpath_var_CXX=no
12745 case $host_os in
12746 solaris2.[0-5] | solaris2.[0-5].*) ;;
12747 *)
12748 # The compiler driver will combine and reorder linker options,
12749 # but understands `-z linker_flag'.
12750 # Supported since Solaris 2.6 (maybe 2.5.1?)
12751 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12752 ;;
12753 esac
12754 link_all_deplibs_CXX=yes
12755
12756 output_verbose_link_cmd='func_echo_all'
12757
12758 # Archives containing C++ object files must be created using
12759 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12760 # necessary to make sure instantiated templates are included
12761 # in the archive.
12762 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12763 ;;
12764 gcx*)
12765 # Green Hills C++ Compiler
12766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12767
12768 # The C++ compiler must be used to create the archive.
12769 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12770 ;;
12771 *)
12772 # GNU C++ compiler with Solaris linker
12773 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12774 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12775 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12776 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12777 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12778 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12779
12780 # Commands to make compiler produce verbose output that lists
12781 # what "hidden" libraries, object files and flags are used when
12782 # linking a shared library.
12783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12784 else
12785 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12786 # platform.
12787 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12788 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12789 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12790
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12794 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12795 fi
12796
12797 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12798 case $host_os in
12799 solaris2.[0-5] | solaris2.[0-5].*) ;;
12800 *)
12801 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12802 ;;
12803 esac
12804 fi
12805 ;;
12806 esac
12807 ;;
12808
12809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12810 no_undefined_flag_CXX='${wl}-z,text'
12811 archive_cmds_need_lc_CXX=no
12812 hardcode_shlibpath_var_CXX=no
12813 runpath_var='LD_RUN_PATH'
12814
12815 case $cc_basename in
12816 CC*)
12817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12818 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12819 ;;
12820 *)
12821 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 ;;
12824 esac
12825 ;;
12826
12827 sysv5* | sco3.2v5* | sco5v6*)
12828 # Note: We can NOT use -z defs as we might desire, because we do not
12829 # link with -lc, and that would cause any symbols used from libc to
12830 # always be unresolved, which means just about no library would
12831 # ever link correctly. If we're not using GNU ld we use -z text
12832 # though, which does catch some bad symbols but isn't as heavy-handed
12833 # as -z defs.
12834 no_undefined_flag_CXX='${wl}-z,text'
12835 allow_undefined_flag_CXX='${wl}-z,nodefs'
12836 archive_cmds_need_lc_CXX=no
12837 hardcode_shlibpath_var_CXX=no
12838 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12839 hardcode_libdir_separator_CXX=':'
12840 link_all_deplibs_CXX=yes
12841 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12842 runpath_var='LD_RUN_PATH'
12843
12844 case $cc_basename in
12845 CC*)
12846 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12849 '"$old_archive_cmds_CXX"
12850 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12851 '"$reload_cmds_CXX"
12852 ;;
12853 *)
12854 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12855 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12856 ;;
12857 esac
12858 ;;
12859
12860 tandem*)
12861 case $cc_basename in
12862 NCC*)
12863 # NonStop-UX NCC 3.20
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12866 ;;
12867 *)
12868 # FIXME: insert proper C++ library support
12869 ld_shlibs_CXX=no
12870 ;;
12871 esac
12872 ;;
12873
12874 vxworks*)
0ecd0f1c
OH
12875 # For VxWorks ports, we assume the use of a GNU linker with
12876 # standard elf conventions.
12877 ld_shlibs_CXX=yes
ddc8de03
PM
12878 ;;
12879
12880 *)
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 ;;
12884 esac
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12887$as_echo "$ld_shlibs_CXX" >&6; }
12888 test "$ld_shlibs_CXX" = no && can_build_shared=no
12889
12890 GCC_CXX="$GXX"
12891 LD_CXX="$LD"
12892
12893 ## CAVEAT EMPTOR:
12894 ## There is no encapsulation within the following macros, do not change
12895 ## the running order or otherwise move them around unless you know exactly
12896 ## what you are doing...
12897 # Dependencies to place before and after the object being linked:
12898predep_objects_CXX=
12899postdep_objects_CXX=
12900predeps_CXX=
12901postdeps_CXX=
12902compiler_lib_search_path_CXX=
12903
12904cat > conftest.$ac_ext <<_LT_EOF
12905class Foo
12906{
12907public:
12908 Foo (void) { a = 0; }
12909private:
12910 int a;
12911};
12912_LT_EOF
12913
12914if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12915 (eval $ac_compile) 2>&5
12916 ac_status=$?
12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12918 test $ac_status = 0; }; then
12919 # Parse the compiler output and extract the necessary
12920 # objects, libraries and library flags.
12921
12922 # Sentinel used to keep track of whether or not we are before
12923 # the conftest object file.
12924 pre_test_object_deps_done=no
12925
12926 for p in `eval "$output_verbose_link_cmd"`; do
12927 case $p in
12928
12929 -L* | -R* | -l*)
12930 # Some compilers place space between "-{L,R}" and the path.
12931 # Remove the space.
12932 if test $p = "-L" ||
12933 test $p = "-R"; then
12934 prev=$p
12935 continue
12936 else
12937 prev=
12938 fi
12939
12940 if test "$pre_test_object_deps_done" = no; then
12941 case $p in
12942 -L* | -R*)
12943 # Internal compiler library paths should come after those
12944 # provided the user. The postdeps already come after the
12945 # user supplied libs so there is no need to process them.
12946 if test -z "$compiler_lib_search_path_CXX"; then
12947 compiler_lib_search_path_CXX="${prev}${p}"
12948 else
12949 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12950 fi
12951 ;;
12952 # The "-l" case would never come before the object being
12953 # linked, so don't bother handling this case.
12954 esac
12955 else
12956 if test -z "$postdeps_CXX"; then
12957 postdeps_CXX="${prev}${p}"
12958 else
12959 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12960 fi
12961 fi
12962 ;;
12963
12964 *.$objext)
12965 # This assumes that the test object file only shows up
12966 # once in the compiler output.
12967 if test "$p" = "conftest.$objext"; then
12968 pre_test_object_deps_done=yes
12969 continue
12970 fi
12971
12972 if test "$pre_test_object_deps_done" = no; then
12973 if test -z "$predep_objects_CXX"; then
12974 predep_objects_CXX="$p"
12975 else
12976 predep_objects_CXX="$predep_objects_CXX $p"
12977 fi
12978 else
12979 if test -z "$postdep_objects_CXX"; then
12980 postdep_objects_CXX="$p"
12981 else
12982 postdep_objects_CXX="$postdep_objects_CXX $p"
12983 fi
12984 fi
12985 ;;
12986
12987 *) ;; # Ignore the rest.
12988
12989 esac
12990 done
12991
12992 # Clean up.
12993 rm -f a.out a.exe
12994else
12995 echo "libtool.m4: error: problem compiling CXX test program"
12996fi
12997
12998$RM -f confest.$objext
12999
13000# PORTME: override above test on systems where it is broken
13001case $host_os in
13002interix[3-9]*)
13003 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13004 # hack all around it, let's just trust "g++" to DTRT.
13005 predep_objects_CXX=
13006 postdep_objects_CXX=
13007 postdeps_CXX=
13008 ;;
13009
13010linux*)
13011 case `$CC -V 2>&1 | sed 5q` in
13012 *Sun\ C*)
13013 # Sun C++ 5.9
13014
13015 # The more standards-conforming stlport4 library is
13016 # incompatible with the Cstd library. Avoid specifying
13017 # it if it's in CXXFLAGS. Ignore libCrun as
13018 # -library=stlport4 depends on it.
13019 case " $CXX $CXXFLAGS " in
13020 *" -library=stlport4 "*)
13021 solaris_use_stlport4=yes
13022 ;;
13023 esac
13024
13025 if test "$solaris_use_stlport4" != yes; then
13026 postdeps_CXX='-library=Cstd -library=Crun'
13027 fi
13028 ;;
13029 esac
13030 ;;
13031
13032solaris*)
13033 case $cc_basename in
13034 CC*)
13035 # The more standards-conforming stlport4 library is
13036 # incompatible with the Cstd library. Avoid specifying
13037 # it if it's in CXXFLAGS. Ignore libCrun as
13038 # -library=stlport4 depends on it.
13039 case " $CXX $CXXFLAGS " in
13040 *" -library=stlport4 "*)
13041 solaris_use_stlport4=yes
13042 ;;
13043 esac
13044
13045 # Adding this requires a known-good setup of shared libraries for
13046 # Sun compiler versions before 5.6, else PIC objects from an old
13047 # archive will be linked into the output, leading to subtle bugs.
13048 if test "$solaris_use_stlport4" != yes; then
13049 postdeps_CXX='-library=Cstd -library=Crun'
13050 fi
13051 ;;
13052 esac
13053 ;;
13054esac
13055
13056
13057case " $postdeps_CXX " in
13058*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13059esac
13060 compiler_lib_search_dirs_CXX=
13061if test -n "${compiler_lib_search_path_CXX}"; then
13062 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13063fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095 lt_prog_compiler_wl_CXX=
13096lt_prog_compiler_pic_CXX=
13097lt_prog_compiler_static_CXX=
13098
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13100$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13101
13102 # C++ specific cases for pic, static, wl, etc.
13103 if test "$GXX" = yes; then
13104 lt_prog_compiler_wl_CXX='-Wl,'
13105 lt_prog_compiler_static_CXX='-static'
13106
13107 case $host_os in
13108 aix*)
13109 # All AIX code is PIC.
13110 if test "$host_cpu" = ia64; then
13111 # AIX 5 now supports IA64 processor
13112 lt_prog_compiler_static_CXX='-Bstatic'
13113 fi
13114 lt_prog_compiler_pic_CXX='-fPIC'
13115 ;;
13116
13117 amigaos*)
13118 case $host_cpu in
13119 powerpc)
13120 # see comment about AmigaOS4 .so support
13121 lt_prog_compiler_pic_CXX='-fPIC'
13122 ;;
13123 m68k)
13124 # FIXME: we need at least 68020 code to build shared libraries, but
13125 # adding the `-m68020' flag to GCC prevents building anything better,
13126 # like `-m68040'.
13127 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13128 ;;
13129 esac
13130 ;;
13131
13132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13133 # PIC is the default for these OSes.
13134 ;;
13135 mingw* | cygwin* | os2* | pw32* | cegcc*)
13136 # This hack is so that the source file can tell whether it is being
13137 # built for inclusion in a dll (and should export symbols for example).
13138 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13139 # (--disable-auto-import) libraries
13140 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13141 ;;
13142 darwin* | rhapsody*)
13143 # PIC is the default on this platform
13144 # Common symbols not allowed in MH_DYLIB files
13145 lt_prog_compiler_pic_CXX='-fno-common'
13146 ;;
13147 *djgpp*)
13148 # DJGPP does not support shared libraries at all
13149 lt_prog_compiler_pic_CXX=
13150 ;;
13151 haiku*)
13152 # PIC is the default for Haiku.
13153 # The "-static" flag exists, but is broken.
13154 lt_prog_compiler_static_CXX=
13155 ;;
13156 interix[3-9]*)
13157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13158 # Instead, we relocate shared libraries at runtime.
13159 ;;
13160 sysv4*MP*)
13161 if test -d /usr/nec; then
13162 lt_prog_compiler_pic_CXX=-Kconform_pic
13163 fi
13164 ;;
13165 hpux*)
13166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13168 # sets the default TLS model and affects inlining.
13169 case $host_cpu in
13170 hppa*64*)
13171 ;;
13172 *)
13173 lt_prog_compiler_pic_CXX='-fPIC'
13174 ;;
13175 esac
13176 ;;
13177 *qnx* | *nto*)
13178 # QNX uses GNU C++, but need to define -shared option too, otherwise
13179 # it will coredump.
13180 lt_prog_compiler_pic_CXX='-fPIC -shared'
13181 ;;
13182 *)
13183 lt_prog_compiler_pic_CXX='-fPIC'
13184 ;;
13185 esac
13186 else
13187 case $host_os in
13188 aix[4-9]*)
13189 # All AIX code is PIC.
13190 if test "$host_cpu" = ia64; then
13191 # AIX 5 now supports IA64 processor
13192 lt_prog_compiler_static_CXX='-Bstatic'
13193 else
13194 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13195 fi
13196 ;;
13197 chorus*)
13198 case $cc_basename in
13199 cxch68*)
13200 # Green Hills C++ Compiler
13201 # _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"
13202 ;;
13203 esac
13204 ;;
13205 dgux*)
13206 case $cc_basename in
13207 ec++*)
13208 lt_prog_compiler_pic_CXX='-KPIC'
13209 ;;
13210 ghcx*)
13211 # Green Hills C++ Compiler
13212 lt_prog_compiler_pic_CXX='-pic'
13213 ;;
13214 *)
13215 ;;
13216 esac
13217 ;;
13218 freebsd* | dragonfly*)
13219 # FreeBSD uses GNU C++
13220 ;;
13221 hpux9* | hpux10* | hpux11*)
13222 case $cc_basename in
13223 CC*)
13224 lt_prog_compiler_wl_CXX='-Wl,'
13225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13226 if test "$host_cpu" != ia64; then
13227 lt_prog_compiler_pic_CXX='+Z'
13228 fi
13229 ;;
13230 aCC*)
13231 lt_prog_compiler_wl_CXX='-Wl,'
13232 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13233 case $host_cpu in
13234 hppa*64*|ia64*)
13235 # +Z the default
13236 ;;
13237 *)
13238 lt_prog_compiler_pic_CXX='+Z'
13239 ;;
13240 esac
13241 ;;
13242 *)
13243 ;;
13244 esac
13245 ;;
13246 interix*)
13247 # This is c89, which is MS Visual C++ (no shared libs)
13248 # Anyone wants to do a port?
13249 ;;
13250 irix5* | irix6* | nonstopux*)
13251 case $cc_basename in
13252 CC*)
13253 lt_prog_compiler_wl_CXX='-Wl,'
13254 lt_prog_compiler_static_CXX='-non_shared'
13255 # CC pic flag -KPIC is the default.
13256 ;;
13257 *)
13258 ;;
13259 esac
13260 ;;
13261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13262 case $cc_basename in
13263 KCC*)
13264 # KAI C++ Compiler
13265 lt_prog_compiler_wl_CXX='--backend -Wl,'
13266 lt_prog_compiler_pic_CXX='-fPIC'
13267 ;;
13268 ecpc* )
13269 # old Intel C++ for x86_64 which still supported -KPIC.
13270 lt_prog_compiler_wl_CXX='-Wl,'
13271 lt_prog_compiler_pic_CXX='-KPIC'
13272 lt_prog_compiler_static_CXX='-static'
13273 ;;
13274 icpc* )
13275 # Intel C++, used to be incompatible with GCC.
13276 # ICC 10 doesn't accept -KPIC any more.
13277 lt_prog_compiler_wl_CXX='-Wl,'
13278 lt_prog_compiler_pic_CXX='-fPIC'
13279 lt_prog_compiler_static_CXX='-static'
13280 ;;
13281 pgCC* | pgcpp*)
13282 # Portland Group C++ compiler
13283 lt_prog_compiler_wl_CXX='-Wl,'
13284 lt_prog_compiler_pic_CXX='-fpic'
13285 lt_prog_compiler_static_CXX='-Bstatic'
13286 ;;
13287 cxx*)
13288 # Compaq C++
13289 # Make sure the PIC flag is empty. It appears that all Alpha
13290 # Linux and Compaq Tru64 Unix objects are PIC.
13291 lt_prog_compiler_pic_CXX=
13292 lt_prog_compiler_static_CXX='-non_shared'
13293 ;;
13294 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13295 # IBM XL 8.0, 9.0 on PPC and BlueGene
13296 lt_prog_compiler_wl_CXX='-Wl,'
13297 lt_prog_compiler_pic_CXX='-qpic'
13298 lt_prog_compiler_static_CXX='-qstaticlink'
13299 ;;
13300 *)
13301 case `$CC -V 2>&1 | sed 5q` in
13302 *Sun\ C*)
13303 # Sun C++ 5.9
13304 lt_prog_compiler_pic_CXX='-KPIC'
13305 lt_prog_compiler_static_CXX='-Bstatic'
13306 lt_prog_compiler_wl_CXX='-Qoption ld '
13307 ;;
13308 esac
13309 ;;
13310 esac
13311 ;;
13312 lynxos*)
13313 ;;
13314 m88k*)
13315 ;;
13316 mvs*)
13317 case $cc_basename in
13318 cxx*)
13319 lt_prog_compiler_pic_CXX='-W c,exportall'
13320 ;;
13321 *)
13322 ;;
13323 esac
13324 ;;
13325 netbsd*)
13326 ;;
13327 *qnx* | *nto*)
13328 # QNX uses GNU C++, but need to define -shared option too, otherwise
13329 # it will coredump.
13330 lt_prog_compiler_pic_CXX='-fPIC -shared'
13331 ;;
13332 osf3* | osf4* | osf5*)
13333 case $cc_basename in
13334 KCC*)
13335 lt_prog_compiler_wl_CXX='--backend -Wl,'
13336 ;;
13337 RCC*)
13338 # Rational C++ 2.4.1
13339 lt_prog_compiler_pic_CXX='-pic'
13340 ;;
13341 cxx*)
13342 # Digital/Compaq C++
13343 lt_prog_compiler_wl_CXX='-Wl,'
13344 # Make sure the PIC flag is empty. It appears that all Alpha
13345 # Linux and Compaq Tru64 Unix objects are PIC.
13346 lt_prog_compiler_pic_CXX=
13347 lt_prog_compiler_static_CXX='-non_shared'
13348 ;;
13349 *)
13350 ;;
13351 esac
13352 ;;
13353 psos*)
13354 ;;
13355 solaris*)
13356 case $cc_basename in
13357 CC*)
13358 # Sun C++ 4.2, 5.x and Centerline C++
13359 lt_prog_compiler_pic_CXX='-KPIC'
13360 lt_prog_compiler_static_CXX='-Bstatic'
13361 lt_prog_compiler_wl_CXX='-Qoption ld '
13362 ;;
13363 gcx*)
13364 # Green Hills C++ Compiler
13365 lt_prog_compiler_pic_CXX='-PIC'
13366 ;;
13367 *)
13368 ;;
13369 esac
13370 ;;
13371 sunos4*)
13372 case $cc_basename in
13373 CC*)
13374 # Sun C++ 4.x
13375 lt_prog_compiler_pic_CXX='-pic'
13376 lt_prog_compiler_static_CXX='-Bstatic'
13377 ;;
13378 lcc*)
13379 # Lucid
13380 lt_prog_compiler_pic_CXX='-pic'
13381 ;;
13382 *)
13383 ;;
13384 esac
13385 ;;
13386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13387 case $cc_basename in
13388 CC*)
13389 lt_prog_compiler_wl_CXX='-Wl,'
13390 lt_prog_compiler_pic_CXX='-KPIC'
13391 lt_prog_compiler_static_CXX='-Bstatic'
13392 ;;
13393 esac
13394 ;;
13395 tandem*)
13396 case $cc_basename in
13397 NCC*)
13398 # NonStop-UX NCC 3.20
13399 lt_prog_compiler_pic_CXX='-KPIC'
13400 ;;
13401 *)
13402 ;;
13403 esac
13404 ;;
13405 vxworks*)
13406 ;;
13407 *)
13408 lt_prog_compiler_can_build_shared_CXX=no
13409 ;;
13410 esac
13411 fi
13412
13413case $host_os in
13414 # For platforms which do not support PIC, -DPIC is meaningless:
13415 *djgpp*)
13416 lt_prog_compiler_pic_CXX=
13417 ;;
13418 *)
13419 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13420 ;;
13421esac
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13423$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13424
13425
13426
13427#
13428# Check to make sure the PIC flag actually works.
13429#
13430if test -n "$lt_prog_compiler_pic_CXX"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13432$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 13433if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
ddc8de03
PM
13434 $as_echo_n "(cached) " >&6
13435else
13436 lt_cv_prog_compiler_pic_works_CXX=no
13437 ac_outfile=conftest.$ac_objext
13438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13439 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13440 # Insert the option either (1) after the last *FLAGS variable, or
13441 # (2) before a word containing "conftest.", or (3) at the end.
13442 # Note that $ac_compile itself does not contain backslashes and begins
13443 # with a dollar sign (not a hyphen), so the echo should work correctly.
13444 # The option is referenced via a variable to avoid confusing sed.
13445 lt_compile=`echo "$ac_compile" | $SED \
13446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448 -e 's:$: $lt_compiler_flag:'`
13449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13450 (eval "$lt_compile" 2>conftest.err)
13451 ac_status=$?
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 if (exit $ac_status) && test -s "$ac_outfile"; then
13455 # The compiler can only warn and ignore the option if not recognized
13456 # So say no if there are warnings other than the usual output.
13457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13460 lt_cv_prog_compiler_pic_works_CXX=yes
13461 fi
13462 fi
13463 $RM conftest*
13464
13465fi
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13467$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13468
13469if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13470 case $lt_prog_compiler_pic_CXX in
13471 "" | " "*) ;;
13472 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13473 esac
13474else
13475 lt_prog_compiler_pic_CXX=
13476 lt_prog_compiler_can_build_shared_CXX=no
13477fi
13478
13479fi
13480
13481
13482
13483#
13484# Check to make sure the static flag actually works.
13485#
13486wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13488$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 13489if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
ddc8de03
PM
13490 $as_echo_n "(cached) " >&6
13491else
13492 lt_cv_prog_compiler_static_works_CXX=no
13493 save_LDFLAGS="$LDFLAGS"
13494 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13497 # The linker can only warn and ignore the option if not recognized
13498 # So say no if there are warnings
13499 if test -s conftest.err; then
13500 # Append any errors to the config.log.
13501 cat conftest.err 1>&5
13502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13504 if diff conftest.exp conftest.er2 >/dev/null; then
13505 lt_cv_prog_compiler_static_works_CXX=yes
13506 fi
13507 else
13508 lt_cv_prog_compiler_static_works_CXX=yes
13509 fi
13510 fi
13511 $RM -r conftest*
13512 LDFLAGS="$save_LDFLAGS"
13513
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13516$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13517
13518if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13519 :
13520else
13521 lt_prog_compiler_static_CXX=
13522fi
13523
13524
13525
13526
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13529if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
ddc8de03
PM
13530 $as_echo_n "(cached) " >&6
13531else
13532 lt_cv_prog_compiler_c_o_CXX=no
13533 $RM -r conftest 2>/dev/null
13534 mkdir conftest
13535 cd conftest
13536 mkdir out
13537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13538
13539 lt_compiler_flag="-o out/conftest2.$ac_objext"
13540 # Insert the option either (1) after the last *FLAGS variable, or
13541 # (2) before a word containing "conftest.", or (3) at the end.
13542 # Note that $ac_compile itself does not contain backslashes and begins
13543 # with a dollar sign (not a hyphen), so the echo should work correctly.
13544 lt_compile=`echo "$ac_compile" | $SED \
13545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13547 -e 's:$: $lt_compiler_flag:'`
13548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13549 (eval "$lt_compile" 2>out/conftest.err)
13550 ac_status=$?
13551 cat out/conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13554 then
13555 # The compiler can only warn and ignore the option if not recognized
13556 # So say no if there are warnings
13557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13560 lt_cv_prog_compiler_c_o_CXX=yes
13561 fi
13562 fi
13563 chmod u+w . 2>&5
13564 $RM conftest*
13565 # SGI C++ compiler will create directory out/ii_files/ for
13566 # template instantiation
13567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13568 $RM out/* && rmdir out
13569 cd ..
13570 $RM -r conftest
13571 $RM conftest*
13572
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13575$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13576
13577
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13581if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
ddc8de03
PM
13582 $as_echo_n "(cached) " >&6
13583else
13584 lt_cv_prog_compiler_c_o_CXX=no
13585 $RM -r conftest 2>/dev/null
13586 mkdir conftest
13587 cd conftest
13588 mkdir out
13589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13590
13591 lt_compiler_flag="-o out/conftest2.$ac_objext"
13592 # Insert the option either (1) after the last *FLAGS variable, or
13593 # (2) before a word containing "conftest.", or (3) at the end.
13594 # Note that $ac_compile itself does not contain backslashes and begins
13595 # with a dollar sign (not a hyphen), so the echo should work correctly.
13596 lt_compile=`echo "$ac_compile" | $SED \
13597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13599 -e 's:$: $lt_compiler_flag:'`
13600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13601 (eval "$lt_compile" 2>out/conftest.err)
13602 ac_status=$?
13603 cat out/conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13606 then
13607 # The compiler can only warn and ignore the option if not recognized
13608 # So say no if there are warnings
13609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13612 lt_cv_prog_compiler_c_o_CXX=yes
13613 fi
13614 fi
13615 chmod u+w . 2>&5
13616 $RM conftest*
13617 # SGI C++ compiler will create directory out/ii_files/ for
13618 # template instantiation
13619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13620 $RM out/* && rmdir out
13621 cd ..
13622 $RM -r conftest
13623 $RM conftest*
13624
13625fi
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13627$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13628
13629
13630
13631
13632hard_links="nottested"
13633if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13634 # do not overwrite the value of need_locks provided by the user
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13636$as_echo_n "checking if we can lock with hard links... " >&6; }
13637 hard_links=yes
13638 $RM conftest*
13639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13640 touch conftest.a
13641 ln conftest.a conftest.b 2>&5 || hard_links=no
13642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13644$as_echo "$hard_links" >&6; }
13645 if test "$hard_links" = no; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13647$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13648 need_locks=warn
13649 fi
13650else
13651 need_locks=no
13652fi
13653
13654
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13657$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13658
13659 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13660 case $host_os in
13661 aix[4-9]*)
13662 # If we're using GNU nm, then we don't want the "-C" option.
13663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13664 # Also, AIX nm treats weak defined symbols like other global defined
13665 # symbols, whereas GNU nm marks them as "W".
13666 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13667 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'
13668 else
ca37d49a 13669 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'
ddc8de03
PM
13670 fi
13671 ;;
13672 pw32*)
13673 export_symbols_cmds_CXX="$ltdll_cmds"
13674 ;;
13675 cygwin* | mingw* | cegcc*)
13676 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'
13677 ;;
13678 *)
13679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13680 ;;
13681 esac
13682 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13683
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13685$as_echo "$ld_shlibs_CXX" >&6; }
13686test "$ld_shlibs_CXX" = no && can_build_shared=no
13687
13688with_gnu_ld_CXX=$with_gnu_ld
13689
13690
13691
13692
13693
13694
13695#
13696# Do we need to explicitly link libc?
13697#
13698case "x$archive_cmds_need_lc_CXX" in
13699x|xyes)
13700 # Assume -lc should be added
13701 archive_cmds_need_lc_CXX=yes
13702
13703 if test "$enable_shared" = yes && test "$GCC" = yes; then
13704 case $archive_cmds_CXX in
13705 *'~'*)
13706 # FIXME: we may have to deal with multi-command sequences.
13707 ;;
13708 '$CC '*)
13709 # Test whether the compiler implicitly links with -lc since on some
13710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13711 # to ld, don't add -lc before -lgcc.
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13713$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13714if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
ddc8de03
PM
13715 $as_echo_n "(cached) " >&6
13716else
13717 $RM conftest*
13718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
13720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13721 (eval $ac_compile) 2>&5
13722 ac_status=$?
13723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13724 test $ac_status = 0; } 2>conftest.err; then
13725 soname=conftest
13726 lib=conftest
13727 libobjs=conftest.$ac_objext
13728 deplibs=
13729 wl=$lt_prog_compiler_wl_CXX
13730 pic_flag=$lt_prog_compiler_pic_CXX
13731 compiler_flags=-v
13732 linker_flags=-v
13733 verstring=
13734 output_objdir=.
13735 libname=conftest
13736 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13737 allow_undefined_flag_CXX=
13738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13739 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }
13743 then
13744 lt_cv_archive_cmds_need_lc_CXX=no
13745 else
13746 lt_cv_archive_cmds_need_lc_CXX=yes
13747 fi
13748 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13749 else
13750 cat conftest.err 1>&5
13751 fi
13752 $RM conftest*
13753
13754fi
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13756$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13757 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13758 ;;
13759 esac
13760 fi
13761 ;;
13762esac
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
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13828$as_echo_n "checking dynamic linker characteristics... " >&6; }
13829
13830library_names_spec=
13831libname_spec='lib$name'
13832soname_spec=
13833shrext_cmds=".so"
13834postinstall_cmds=
13835postuninstall_cmds=
13836finish_cmds=
13837finish_eval=
13838shlibpath_var=
13839shlibpath_overrides_runpath=unknown
13840version_type=none
13841dynamic_linker="$host_os ld.so"
13842sys_lib_dlsearch_path_spec="/lib /usr/lib"
13843need_lib_prefix=unknown
13844hardcode_into_libs=no
13845
13846# when you set need_version to no, make sure it does not cause -set_version
13847# flags to be left without arguments
13848need_version=unknown
13849
13850case $host_os in
13851aix3*)
13852 version_type=linux
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13854 shlibpath_var=LIBPATH
13855
13856 # AIX 3 has no versioning support, so we append a major version to the name.
13857 soname_spec='${libname}${release}${shared_ext}$major'
13858 ;;
13859
13860aix[4-9]*)
13861 version_type=linux
13862 need_lib_prefix=no
13863 need_version=no
13864 hardcode_into_libs=yes
13865 if test "$host_cpu" = ia64; then
13866 # AIX 5 supports IA64
13867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 else
13870 # With GCC up to 2.95.x, collect2 would create an import file
13871 # for dependence libraries. The import file would start with
13872 # the line `#! .'. This would cause the generated library to
13873 # depend on `.', always an invalid library. This was fixed in
13874 # development snapshots of GCC prior to 3.0.
13875 case $host_os in
13876 aix4 | aix4.[01] | aix4.[01].*)
13877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13878 echo ' yes '
13879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13880 :
13881 else
13882 can_build_shared=no
13883 fi
13884 ;;
13885 esac
13886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13887 # soname into executable. Probably we can add versioning support to
13888 # collect2, so additional links can be useful in future.
13889 if test "$aix_use_runtimelinking" = yes; then
13890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13891 # instead of lib<name>.a to let people know that these are not
13892 # typical AIX shared libraries.
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 else
13895 # We preserve .a as extension for shared libraries through AIX4.2
13896 # and later when we are not doing run time linking.
13897 library_names_spec='${libname}${release}.a $libname.a'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 fi
13900 shlibpath_var=LIBPATH
13901 fi
13902 ;;
13903
13904amigaos*)
13905 case $host_cpu in
13906 powerpc)
13907 # Since July 2007 AmigaOS4 officially supports .so libraries.
13908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 ;;
13911 m68k)
13912 library_names_spec='$libname.ixlibrary $libname.a'
13913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13914 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'
13915 ;;
13916 esac
13917 ;;
13918
13919beos*)
13920 library_names_spec='${libname}${shared_ext}'
13921 dynamic_linker="$host_os ld.so"
13922 shlibpath_var=LIBRARY_PATH
13923 ;;
13924
13925bsdi[45]*)
13926 version_type=linux
13927 need_version=no
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13931 shlibpath_var=LD_LIBRARY_PATH
13932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13934 # the default ld.so.conf also contains /usr/contrib/lib and
13935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13936 # libtool to hard-code these into programs
13937 ;;
13938
13939cygwin* | mingw* | pw32* | cegcc*)
13940 version_type=windows
13941 shrext_cmds=".dll"
13942 need_version=no
13943 need_lib_prefix=no
13944
13945 case $GCC,$host_os in
13946 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13947 library_names_spec='$libname.dll.a'
13948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13949 postinstall_cmds='base_file=`basename \${file}`~
13950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13951 dldir=$destdir/`dirname \$dlpath`~
13952 test -d \$dldir || mkdir -p \$dldir~
13953 $install_prog $dir/$dlname \$dldir/$dlname~
13954 chmod a+x \$dldir/$dlname~
13955 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13956 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13957 fi'
13958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13959 dlpath=$dir/\$dldll~
13960 $RM \$dlpath'
13961 shlibpath_overrides_runpath=yes
13962
13963 case $host_os in
13964 cygwin*)
13965 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13967
13968 ;;
13969 mingw* | cegcc*)
13970 # MinGW DLLs use traditional 'lib' prefix
13971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13972 ;;
13973 pw32*)
13974 # pw32 DLLs use 'pw' prefix rather than 'lib'
13975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13976 ;;
13977 esac
13978 ;;
13979
13980 *)
13981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13982 ;;
13983 esac
13984 dynamic_linker='Win32 ld.exe'
13985 # FIXME: first we should search . and the directory the executable is in
13986 shlibpath_var=PATH
13987 ;;
13988
13989darwin* | rhapsody*)
13990 dynamic_linker="$host_os dyld"
13991 version_type=darwin
13992 need_lib_prefix=no
13993 need_version=no
13994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13995 soname_spec='${libname}${release}${major}$shared_ext'
13996 shlibpath_overrides_runpath=yes
13997 shlibpath_var=DYLD_LIBRARY_PATH
13998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13999
14000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14001 ;;
14002
14003dgux*)
14004 version_type=linux
14005 need_lib_prefix=no
14006 need_version=no
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 ;;
14011
14012freebsd* | dragonfly*)
14013 # DragonFly does not have aout. When/if they implement a new
14014 # versioning mechanism, adjust this.
14015 if test -x /usr/bin/objformat; then
14016 objformat=`/usr/bin/objformat`
14017 else
14018 case $host_os in
14019 freebsd[23].*) objformat=aout ;;
14020 *) objformat=elf ;;
14021 esac
14022 fi
14023 version_type=freebsd-$objformat
14024 case $version_type in
14025 freebsd-elf*)
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14027 need_version=no
14028 need_lib_prefix=no
14029 ;;
14030 freebsd-*)
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14032 need_version=yes
14033 ;;
14034 esac
14035 shlibpath_var=LD_LIBRARY_PATH
14036 case $host_os in
14037 freebsd2.*)
14038 shlibpath_overrides_runpath=yes
14039 ;;
14040 freebsd3.[01]* | freebsdelf3.[01]*)
14041 shlibpath_overrides_runpath=yes
14042 hardcode_into_libs=yes
14043 ;;
14044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14046 shlibpath_overrides_runpath=no
14047 hardcode_into_libs=yes
14048 ;;
14049 *) # from 4.6 on, and DragonFly
14050 shlibpath_overrides_runpath=yes
14051 hardcode_into_libs=yes
14052 ;;
14053 esac
14054 ;;
14055
ddc8de03
PM
14056haiku*)
14057 version_type=linux
14058 need_lib_prefix=no
14059 need_version=no
14060 dynamic_linker="$host_os runtime_loader"
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 shlibpath_var=LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14066 hardcode_into_libs=yes
14067 ;;
14068
14069hpux9* | hpux10* | hpux11*)
14070 # Give a soname corresponding to the major version so that dld.sl refuses to
14071 # link against other versions.
14072 version_type=sunos
14073 need_lib_prefix=no
14074 need_version=no
14075 case $host_cpu in
14076 ia64*)
14077 shrext_cmds='.so'
14078 hardcode_into_libs=yes
14079 dynamic_linker="$host_os dld.so"
14080 shlibpath_var=LD_LIBRARY_PATH
14081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 if test "X$HPUX_IA64_MODE" = X32; then
14085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14086 else
14087 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14088 fi
14089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14090 ;;
14091 hppa*64*)
14092 shrext_cmds='.sl'
14093 hardcode_into_libs=yes
14094 dynamic_linker="$host_os dld.sl"
14095 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14101 ;;
14102 *)
14103 shrext_cmds='.sl'
14104 dynamic_linker="$host_os dld.sl"
14105 shlibpath_var=SHLIB_PATH
14106 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 ;;
14110 esac
14111 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14112 postinstall_cmds='chmod 555 $lib'
14113 # or fails outright, so override atomically:
14114 install_override_mode=555
14115 ;;
14116
14117interix[3-9]*)
14118 version_type=linux
14119 need_lib_prefix=no
14120 need_version=no
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=no
14126 hardcode_into_libs=yes
14127 ;;
14128
14129irix5* | irix6* | nonstopux*)
14130 case $host_os in
14131 nonstopux*) version_type=nonstopux ;;
14132 *)
14133 if test "$lt_cv_prog_gnu_ld" = yes; then
14134 version_type=linux
14135 else
14136 version_type=irix
14137 fi ;;
14138 esac
14139 need_lib_prefix=no
14140 need_version=no
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14143 case $host_os in
14144 irix5* | nonstopux*)
14145 libsuff= shlibsuff=
14146 ;;
14147 *)
14148 case $LD in # libtool.m4 will add one of these switches to LD
14149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14150 libsuff= shlibsuff= libmagic=32-bit;;
14151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14152 libsuff=32 shlibsuff=N32 libmagic=N32;;
14153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14154 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14155 *) libsuff= shlibsuff= libmagic=never-match;;
14156 esac
14157 ;;
14158 esac
14159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14160 shlibpath_overrides_runpath=no
14161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14163 hardcode_into_libs=yes
14164 ;;
14165
14166# No shared lib support for Linux oldld, aout, or coff.
14167linux*oldld* | linux*aout* | linux*coff*)
14168 dynamic_linker=no
14169 ;;
14170
14171# This must be Linux ELF.
e9085da5
MR
14172
14173# uclinux* changes (here and below) have been submitted to the libtool
14174# project, but have not yet been accepted: they are GCC-local changes
14175# for the time being. (See
14176# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
3f570621 14177linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
ddc8de03
PM
14178 version_type=linux
14179 need_lib_prefix=no
14180 need_version=no
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182 soname_spec='${libname}${release}${shared_ext}$major'
14183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=no
14186
14187 # Some binutils ld are patched to set DT_RUNPATH
22e05272 14188 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
ddc8de03
PM
14189 $as_echo_n "(cached) " >&6
14190else
14191 lt_cv_shlibpath_overrides_runpath=no
14192 save_LDFLAGS=$LDFLAGS
14193 save_libdir=$libdir
14194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197/* end confdefs.h. */
14198
14199int
14200main ()
14201{
14202
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207if ac_fn_cxx_try_link "$LINENO"; then :
14208 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14209 lt_cv_shlibpath_overrides_runpath=yes
14210fi
14211fi
14212rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
14214 LDFLAGS=$save_LDFLAGS
14215 libdir=$save_libdir
14216
14217fi
14218
14219 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14220
14221 # This implies no fast_install, which is unacceptable.
14222 # Some rework will be needed to allow for fast_install
14223 # before this can be enabled.
14224 hardcode_into_libs=yes
14225
14226 # Append ld.so.conf contents to the search path
14227 if test -f /etc/ld.so.conf; then
14228 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' ' '`
14229 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14230 fi
14231
14232 # We used to test for /lib/ld.so.1 and disable shared libraries on
14233 # powerpc, because MkLinux only supported shared libraries with the
14234 # GNU dynamic linker. Since this was broken with cross compilers,
14235 # most powerpc-linux boxes support dynamic linking these days and
14236 # people can always --disable-shared, the test was removed, and we
14237 # assume the GNU/Linux dynamic linker is in use.
14238 dynamic_linker='GNU/Linux ld.so'
14239 ;;
14240
14241netbsd*)
14242 version_type=sunos
14243 need_lib_prefix=no
14244 need_version=no
14245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14248 dynamic_linker='NetBSD (a.out) ld.so'
14249 else
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 dynamic_linker='NetBSD ld.elf_so'
14253 fi
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=yes
14256 hardcode_into_libs=yes
14257 ;;
14258
14259newsos6)
14260 version_type=linux
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14264 ;;
14265
14266*nto* | *qnx*)
14267 version_type=qnx
14268 need_lib_prefix=no
14269 need_version=no
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 shlibpath_var=LD_LIBRARY_PATH
14273 shlibpath_overrides_runpath=no
14274 hardcode_into_libs=yes
14275 dynamic_linker='ldqnx.so'
14276 ;;
14277
14278openbsd*)
14279 version_type=sunos
14280 sys_lib_dlsearch_path_spec="/usr/lib"
14281 need_lib_prefix=no
14282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14283 case $host_os in
14284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14285 *) need_version=no ;;
14286 esac
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14289 shlibpath_var=LD_LIBRARY_PATH
14290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14291 case $host_os in
14292 openbsd2.[89] | openbsd2.[89].*)
14293 shlibpath_overrides_runpath=no
14294 ;;
14295 *)
14296 shlibpath_overrides_runpath=yes
14297 ;;
14298 esac
14299 else
14300 shlibpath_overrides_runpath=yes
14301 fi
14302 ;;
14303
14304os2*)
14305 libname_spec='$name'
14306 shrext_cmds=".dll"
14307 need_lib_prefix=no
14308 library_names_spec='$libname${shared_ext} $libname.a'
14309 dynamic_linker='OS/2 ld.exe'
14310 shlibpath_var=LIBPATH
14311 ;;
14312
14313osf3* | osf4* | osf5*)
14314 version_type=osf
14315 need_lib_prefix=no
14316 need_version=no
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14322 ;;
14323
14324rdos*)
14325 dynamic_linker=no
14326 ;;
14327
14328solaris*)
14329 version_type=linux
14330 need_lib_prefix=no
14331 need_version=no
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 shlibpath_var=LD_LIBRARY_PATH
14335 shlibpath_overrides_runpath=yes
14336 hardcode_into_libs=yes
14337 # ldd complains unless libraries are executable
14338 postinstall_cmds='chmod +x $lib'
14339 ;;
14340
14341sunos4*)
14342 version_type=sunos
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 shlibpath_overrides_runpath=yes
14347 if test "$with_gnu_ld" = yes; then
14348 need_lib_prefix=no
14349 fi
14350 need_version=yes
14351 ;;
14352
14353sysv4 | sysv4.3*)
14354 version_type=linux
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 case $host_vendor in
14359 sni)
14360 shlibpath_overrides_runpath=no
14361 need_lib_prefix=no
14362 runpath_var=LD_RUN_PATH
14363 ;;
14364 siemens)
14365 need_lib_prefix=no
14366 ;;
14367 motorola)
14368 need_lib_prefix=no
14369 need_version=no
14370 shlibpath_overrides_runpath=no
14371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14372 ;;
14373 esac
14374 ;;
14375
14376sysv4*MP*)
14377 if test -d /usr/nec ;then
14378 version_type=linux
14379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14380 soname_spec='$libname${shared_ext}.$major'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 fi
14383 ;;
14384
14385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14386 version_type=freebsd-elf
14387 need_lib_prefix=no
14388 need_version=no
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 shlibpath_var=LD_LIBRARY_PATH
14392 shlibpath_overrides_runpath=yes
14393 hardcode_into_libs=yes
14394 if test "$with_gnu_ld" = yes; then
14395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14396 else
14397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14398 case $host_os in
14399 sco3.2v5*)
14400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14401 ;;
14402 esac
14403 fi
14404 sys_lib_dlsearch_path_spec='/usr/lib'
14405 ;;
14406
14407tpf*)
14408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14409 version_type=linux
14410 need_lib_prefix=no
14411 need_version=no
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 shlibpath_var=LD_LIBRARY_PATH
14414 shlibpath_overrides_runpath=no
14415 hardcode_into_libs=yes
14416 ;;
14417
14418uts4*)
14419 version_type=linux
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 ;;
14424
0ecd0f1c
OH
14425# Shared libraries for VwWorks, >= 7 only at this stage
14426# and (fpic) still incompatible with "large" code models
14427# in a few configurations. Only for RTP mode in any case,
14428# and upon explicit request at configure time.
14429vxworks7*)
14430 dynamic_linker=no
14431 case ${with_multisubdir}-${enable_shared} in
14432 *large*)
14433 ;;
14434 *mrtp*-yes)
14435 version_type=linux
14436 need_lib_prefix=no
14437 need_version=no
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 dynamic_linker="$host_os module_loader"
14441 ;;
14442 esac
14443 ;;
ddc8de03
PM
14444*)
14445 dynamic_linker=no
14446 ;;
14447esac
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14449$as_echo "$dynamic_linker" >&6; }
14450test "$dynamic_linker" = no && can_build_shared=no
14451
14452variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14453if test "$GCC" = yes; then
14454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14455fi
14456
14457if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14458 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14459fi
14460if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14461 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14462fi
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14502$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14503hardcode_action_CXX=
14504if test -n "$hardcode_libdir_flag_spec_CXX" ||
14505 test -n "$runpath_var_CXX" ||
14506 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14507
14508 # We can hardcode non-existent directories.
14509 if test "$hardcode_direct_CXX" != no &&
14510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14511 # have to relink, otherwise we might link with an installed library
14512 # when we should be linking with a yet-to-be-installed one
14513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14514 test "$hardcode_minus_L_CXX" != no; then
14515 # Linking always hardcodes the temporary library directory.
14516 hardcode_action_CXX=relink
14517 else
14518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14519 hardcode_action_CXX=immediate
14520 fi
14521else
14522 # We cannot hardcode anything, or else we can only hardcode existing
14523 # directories.
14524 hardcode_action_CXX=unsupported
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14527$as_echo "$hardcode_action_CXX" >&6; }
14528
14529if test "$hardcode_action_CXX" = relink ||
14530 test "$inherit_rpath_CXX" = yes; then
14531 # Fast installation is not supported
14532 enable_fast_install=no
14533elif test "$shlibpath_overrides_runpath" = yes ||
14534 test "$enable_shared" = no; then
14535 # Fast installation is not necessary
14536 enable_fast_install=needless
14537fi
14538
14539
14540
14541
14542
14543
14544
14545 fi # test -n "$compiler"
14546
14547 CC=$lt_save_CC
14548 LDCXX=$LD
14549 LD=$lt_save_LD
14550 GCC=$lt_save_GCC
14551 with_gnu_ld=$lt_save_with_gnu_ld
14552 lt_cv_path_LDCXX=$lt_cv_path_LD
14553 lt_cv_path_LD=$lt_save_path_LD
14554 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14555 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14556fi # test "$_lt_caught_CXX_error" != yes
14557
14558ac_ext=c
14559ac_cpp='$CPP $CPPFLAGS'
14560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14562ac_compiler_gnu=$ac_cv_c_compiler_gnu
14563
14564
14565
14566visibility=
14567if test "$GXX" = yes; then
14568 visibility=-fvisibility=hidden
14569fi
14570
14571
af3bef0e
L
14572 # Check whether --enable-cet was given.
14573if test "${enable_cet+set}" = set; then :
14574 enableval=$enable_cet;
14575 case "$enableval" in
14576 yes|no|auto) ;;
14577 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
14578 esac
14579
14580else
14581 enable_cet=auto
14582fi
14583
14584
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
14586$as_echo_n "checking for CET support... " >&6; }
14587
14588case "$host" in
14589 i[34567]86-*-linux* | x86_64-*-linux*)
14590 may_have_cet=yes
9051b548 14591 cet_save_CFLAGS="$CFLAGS"
af3bef0e
L
14592 CFLAGS="$CFLAGS -fcf-protection"
14593 case "$enable_cet" in
14594 auto)
14595 # Check if target supports multi-byte NOPs
4712bde3 14596 # and if compiler and assembler support CET.
af3bef0e
L
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598/* end confdefs.h. */
14599
14600int
14601main ()
14602{
14603
14604#if !defined(__SSE2__)
14605#error target does not support multi-byte NOPs
14606#else
14607asm ("setssbsy");
14608#endif
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614if ac_fn_c_try_compile "$LINENO"; then :
14615 enable_cet=yes
14616else
14617 enable_cet=no
14618fi
14619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 ;;
14621 yes)
4712bde3 14622 # Check if compiler and assembler support CET.
af3bef0e
L
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h. */
14625
14626int
14627main ()
14628{
14629asm ("setssbsy");
14630 ;
14631 return 0;
14632}
14633_ACEOF
14634if ac_fn_c_try_compile "$LINENO"; then :
4712bde3 14635 support_cet=yes
af3bef0e 14636else
4712bde3 14637 support_cet=no
af3bef0e
L
14638fi
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712bde3
L
14640 if test $support_cet = "no"; then
14641 if test x$enable_bootstrap != xno \
14642 && test -z "${with_build_subdir}" \
14643 && (test ! -f ../stage_current \
14644 || test `cat ../stage_current` != "stage1"); then
14645 # Require CET support only for the final GCC build.
14646 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
14647 else
14648 # Don't enable CET without CET support for non-bootstrap
14649 # build, in stage1 nor for build support.
14650 enable_cet=no
14651 fi
14652 fi
af3bef0e
L
14653 ;;
14654 esac
9051b548 14655 CFLAGS="$cet_save_CFLAGS"
af3bef0e
L
14656 ;;
14657 *)
14658 may_have_cet=no
14659 enable_cet=no
14660 ;;
14661esac
14662
9051b548 14663cet_save_CFLAGS="$CFLAGS"
8d286dd1 14664CFLAGS="$CFLAGS -fcf-protection=none"
9051b548 14665cet_save_LDFLAGS="$LDFLAGS"
8d286dd1 14666LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
af3bef0e 14667if test x$may_have_cet = xyes; then
8d286dd1
L
14668 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h. */
14671
14672int
14673main ()
14674{
14675return 0;
14676 ;
14677 return 0;
14678}
14679_ACEOF
14680if ac_fn_c_try_link "$LINENO"; then :
14681 may_have_cet=yes
14682else
14683 may_have_cet=no
14684fi
14685rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687fi
14688
14689if test x$may_have_cet = xyes; then
14690 if test x$cross_compiling = xno; then
14691 if test "$cross_compiling" = yes; then :
af3bef0e
L
14692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14694as_fn_error $? "cannot run test program while cross compiling
14695See \`config.log' for more details" "$LINENO" 5; }
14696else
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698/* end confdefs.h. */
14699
3f570621
L
14700int
14701main ()
14702{
14703 asm ("endbr32");
14704 return 0;
14705}
14706
14707_ACEOF
14708if ac_fn_c_try_run "$LINENO"; then :
14709 have_multi_byte_nop=yes
14710else
14711 have_multi_byte_nop=no
14712fi
14713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14714 conftest.$ac_objext conftest.beam conftest.$ac_ext
14715fi
14716
14717 have_cet=no
14718 if test x$have_multi_byte_nop = xyes; then
14719 if test "$cross_compiling" = yes; then :
14720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14722as_fn_error $? "cannot run test program while cross compiling
14723See \`config.log' for more details" "$LINENO" 5; }
14724else
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h. */
14727
af3bef0e
L
14728static void
14729foo (void)
14730{
14731}
14732
14733static void
14734__attribute__ ((noinline, noclone))
14735xxx (void (*f) (void))
14736{
14737 f ();
14738}
14739
14740static void
14741__attribute__ ((noinline, noclone))
14742bar (void)
14743{
14744 xxx (foo);
14745}
14746
14747int
14748main ()
14749{
14750 bar ();
14751 return 0;
14752}
14753
14754_ACEOF
14755if ac_fn_c_try_run "$LINENO"; then :
14756 have_cet=no
14757else
14758 have_cet=yes
14759fi
14760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14761 conftest.$ac_objext conftest.beam conftest.$ac_ext
14762fi
14763
3f570621 14764 fi
8d286dd1
L
14765 if test x$enable_cet = xno -a x$have_cet = xyes; then
14766 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14767 fi
af3bef0e 14768 fi
8d286dd1
L
14769else
14770 # Enable CET in cross compiler if possible so that it will run on both
14771 # CET and non-CET hosts.
14772 have_cet=yes
af3bef0e
L
14773fi
14774if test x$enable_cet = xyes; then
14775 CET_HOST_FLAGS="-fcf-protection"
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777$as_echo "yes" >&6; }
14778else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780$as_echo "no" >&6; }
14781fi
9051b548
L
14782CFLAGS="$cet_save_CFLAGS"
14783LDFLAGS="$cet_save_LDFLAGS"
af3bef0e
L
14784
14785
14786
ddc8de03 14787ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
22e05272 14788if test "x$ac_cv_have_decl_basename" = xyes; then :
ddc8de03
PM
14789 ac_have_decl=1
14790else
14791 ac_have_decl=0
14792fi
14793
14794cat >>confdefs.h <<_ACEOF
14795#define HAVE_DECL_BASENAME $ac_have_decl
14796_ACEOF
14797
14798
3c36aa6b
JJ
14799
14800 get_gcc_base_ver="cat"
14801
14802# Check whether --with-gcc-major-version-only was given.
14803if test "${with_gcc_major_version_only+set}" = set; then :
14804 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 14805 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
14806 fi
14807
14808fi
14809
14810
14811
14812
14813if test x$with_gcc_major_version_only = xyes ; then
14814 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14815 else
14816 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14817fi
ddc8de03 14818
ca37d49a
AS
14819CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14820
14821
14822ac_ext=c
14823ac_cpp='$CPP $CPPFLAGS'
14824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826ac_compiler_gnu=$ac_cv_c_compiler_gnu
ddc8de03
PM
14827
14828WARN_FLAGS=
14829save_CFLAGS="$CFLAGS"
14830for real_option in -W -Wall; do
14831 # Do the check with the no- prefix removed since gcc silently
14832 # accepts any -Wno-* option on purpose
14833 case $real_option in
14834 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14835 *) option=$real_option ;;
14836 esac
14837 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14840$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 14841if eval \${$as_acx_Woption+:} false; then :
ddc8de03
PM
14842 $as_echo_n "(cached) " >&6
14843else
14844 CFLAGS="$option"
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h. */
14847
14848int
14849main ()
14850{
14851
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856if ac_fn_c_try_compile "$LINENO"; then :
14857 eval "$as_acx_Woption=yes"
14858else
14859 eval "$as_acx_Woption=no"
14860fi
14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862
14863fi
14864eval ac_res=\$$as_acx_Woption
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14866$as_echo "$ac_res" >&6; }
14867 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14868 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14869fi
14870 done
14871CFLAGS="$save_CFLAGS"
ca37d49a
AS
14872ac_ext=c
14873ac_cpp='$CPP $CPPFLAGS'
14874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14876ac_compiler_gnu=$ac_cv_c_compiler_gnu
14877
ddc8de03 14878
ca557f53 14879
ca37d49a
AS
14880ac_ext=c
14881ac_cpp='$CPP $CPPFLAGS'
14882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885
ca557f53
JJ
14886WERROR=
14887# Check whether --enable-werror-always was given.
14888if test "${enable_werror_always+set}" = set; then :
14889 enableval=$enable_werror_always;
14890else
14891 enable_werror_always=no
14892fi
14893
14894if test $enable_werror_always = yes; then :
14895 WERROR="$WERROR${WERROR:+ }-Werror"
14896fi
14897
ca37d49a
AS
14898ac_ext=c
14899ac_cpp='$CPP $CPPFLAGS'
14900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14902ac_compiler_gnu=$ac_cv_c_compiler_gnu
14903
ca557f53
JJ
14904
14905
ddc8de03
PM
14906
14907
14908libsuffix=
14909if test "$GXX" = yes; then
14910 libsuffix=`$CXX -print-multi-os-directory`
14911fi
14912
14913
0ed4f879
RO
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14915$as_echo_n "checking for socket libraries... " >&6; }
22e05272 14916if ${libcc1_cv_lib_sockets+:} false; then :
0ed4f879
RO
14917 $as_echo_n "(cached) " >&6
14918else
14919 libcc1_cv_lib_sockets=
14920 libcc1_check_both=no
14921 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22e05272 14922if test "x$ac_cv_func_connect" = xyes; then :
0ed4f879
RO
14923 libcc1_check_socket=no
14924else
14925 libcc1_check_socket=yes
14926fi
14927
14928 if test "$libcc1_check_socket" = "yes"; then
14929 unset ac_cv_func_connect
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14931$as_echo_n "checking for main in -lsocket... " >&6; }
22e05272 14932if ${ac_cv_lib_socket_main+:} false; then :
0ed4f879
RO
14933 $as_echo_n "(cached) " >&6
14934else
14935 ac_check_lib_save_LIBS=$LIBS
14936LIBS="-lsocket $LIBS"
14937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h. */
14939
14940
14941int
14942main ()
14943{
14944return main ();
14945 ;
14946 return 0;
14947}
14948_ACEOF
14949if ac_fn_c_try_link "$LINENO"; then :
14950 ac_cv_lib_socket_main=yes
14951else
14952 ac_cv_lib_socket_main=no
14953fi
14954rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956LIBS=$ac_check_lib_save_LIBS
14957fi
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14959$as_echo "$ac_cv_lib_socket_main" >&6; }
22e05272 14960if test "x$ac_cv_lib_socket_main" = xyes; then :
0ed4f879
RO
14961 libcc1_cv_lib_sockets="-lsocket"
14962else
14963 libcc1_check_both=yes
14964fi
14965
14966 fi
14967 if test "$libcc1_check_both" = "yes"; then
14968 libcc1_old_libs=$LIBS
14969 LIBS="$LIBS -lsocket -lnsl"
14970 unset ac_cv_func_accept
14971 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22e05272 14972if test "x$ac_cv_func_accept" = xyes; then :
0ed4f879
RO
14973 libcc1_check_nsl=no
14974 libcc1_cv_lib_sockets="-lsocket -lnsl"
14975fi
14976
14977 unset ac_cv_func_accept
14978 LIBS=$libcc1_old_libs
14979 fi
14980 unset ac_cv_func_gethostbyname
14981 libcc1_old_libs="$LIBS"
14982 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22e05272 14983if test "x$ac_cv_func_gethostbyname" = xyes; then :
0ed4f879
RO
14984
14985else
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14987$as_echo_n "checking for main in -lnsl... " >&6; }
22e05272 14988if ${ac_cv_lib_nsl_main+:} false; then :
0ed4f879
RO
14989 $as_echo_n "(cached) " >&6
14990else
14991 ac_check_lib_save_LIBS=$LIBS
14992LIBS="-lnsl $LIBS"
14993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994/* end confdefs.h. */
14995
14996
14997int
14998main ()
14999{
15000return main ();
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005if ac_fn_c_try_link "$LINENO"; then :
15006 ac_cv_lib_nsl_main=yes
15007else
15008 ac_cv_lib_nsl_main=no
15009fi
15010rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012LIBS=$ac_check_lib_save_LIBS
15013fi
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15015$as_echo "$ac_cv_lib_nsl_main" >&6; }
22e05272 15016if test "x$ac_cv_lib_nsl_main" = xyes; then :
0ed4f879
RO
15017 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
15018fi
15019
15020fi
15021
15022 unset ac_cv_func_gethostbyname
15023 LIBS=$libcc1_old_libs
15024
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
15027$as_echo "$libcc1_cv_lib_sockets" >&6; }
15028LIBS="$LIBS $libcc1_cv_lib_sockets"
15029
1352bc88
IS
15030case "$host" in
15031 *-*-darwin*) darwin_dynamic_lookup=yes ;;
5dc99893 15032 *) darwin_dynamic_lookup=no ;;
1352bc88
IS
15033esac
15034 if test $darwin_dynamic_lookup = yes; then
15035 DARWIN_DYNAMIC_LOOKUP_TRUE=
15036 DARWIN_DYNAMIC_LOOKUP_FALSE='#'
15037else
15038 DARWIN_DYNAMIC_LOOKUP_TRUE='#'
15039 DARWIN_DYNAMIC_LOOKUP_FALSE=
15040fi
15041
15042
ddc8de03
PM
15043# If any of these functions are missing, simply don't bother building
15044# this plugin.
15045# Check for plugin support
15046 # Check whether --enable-plugin was given.
15047if test "${enable_plugin+set}" = set; then :
15048 enableval=$enable_plugin; enable_plugin=$enableval
15049else
15050 enable_plugin=yes; default_plugin=yes
15051fi
15052
15053
15054 pluginlibs=
8c7dbea9 15055 plugin_check=yes
ddc8de03
PM
15056
15057 case "${host}" in
8c7dbea9
BK
15058 *-*-mingw*)
15059 # Since plugin support under MinGW is not as straightforward as on
15060 # other platforms (e.g., we have to link import library, etc), we
15061 # only enable it if explicitly requested.
15062 if test x"$default_plugin" = x"yes"; then
15063 enable_plugin=no
15064 elif test x"$enable_plugin" = x"yes"; then
15065 # Use make's target variable to derive import library name.
15066 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
15067 plugin_check=no
15068 fi
15069 ;;
ddc8de03
PM
15070 *-*-darwin*)
15071 if test x$build = x$host; then
15072 export_sym_check="nm${exeext} -g"
15073 elif test x$host = x$target; then
15074 export_sym_check="$gcc_cv_nm -g"
15075 else
15076 export_sym_check=
15077 fi
15078 ;;
15079 *)
15080 if test x$build = x$host; then
c4c3cd5c 15081 export_sym_check="$ac_cv_prog_OBJDUMP -T"
ddc8de03
PM
15082 elif test x$host = x$target; then
15083 export_sym_check="$gcc_cv_objdump -T"
15084 else
15085 export_sym_check=
15086 fi
15087 ;;
15088 esac
15089
8c7dbea9 15090 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
ddc8de03
PM
15091
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
15093$as_echo_n "checking for exported symbols... " >&6; }
15094 if test "x$export_sym_check" != x; then
15095 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
15096 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
001ddaa8 15097 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
ddc8de03
PM
15098 : # No need to use a flag
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15100$as_echo "yes" >&6; }
15101 else
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15103$as_echo "yes" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
15105$as_echo_n "checking for -rdynamic... " >&6; }
15106 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
001ddaa8 15107 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
ddc8de03
PM
15108 plugin_rdynamic=yes
15109 pluginlibs="-rdynamic"
15110 else
15111 plugin_rdynamic=no
15112 enable_plugin=no
15113 fi
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
15115$as_echo "$plugin_rdynamic" >&6; }
15116 fi
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
15119$as_echo "unable to check" >&6; }
15120 fi
15121
15122 # Check -ldl
15123 saved_LIBS="$LIBS"
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15125$as_echo_n "checking for library containing dlopen... " >&6; }
22e05272 15126if ${ac_cv_search_dlopen+:} false; then :
ddc8de03
PM
15127 $as_echo_n "(cached) " >&6
15128else
15129 ac_func_search_save_LIBS=$LIBS
15130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131/* end confdefs.h. */
15132
15133/* Override any GCC internal prototype to avoid an error.
15134 Use char because int might match the return type of a GCC
15135 builtin and then its argument prototype would still apply. */
15136#ifdef __cplusplus
15137extern "C"
15138#endif
15139char dlopen ();
15140int
15141main ()
15142{
15143return dlopen ();
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148for ac_lib in '' dl; do
15149 if test -z "$ac_lib"; then
15150 ac_res="none required"
15151 else
15152 ac_res=-l$ac_lib
15153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15154 fi
15155 if ac_fn_c_try_link "$LINENO"; then :
15156 ac_cv_search_dlopen=$ac_res
15157fi
15158rm -f core conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext
22e05272 15160 if ${ac_cv_search_dlopen+:} false; then :
ddc8de03
PM
15161 break
15162fi
15163done
22e05272 15164if ${ac_cv_search_dlopen+:} false; then :
ddc8de03
PM
15165
15166else
15167 ac_cv_search_dlopen=no
15168fi
15169rm conftest.$ac_ext
15170LIBS=$ac_func_search_save_LIBS
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15173$as_echo "$ac_cv_search_dlopen" >&6; }
15174ac_res=$ac_cv_search_dlopen
15175if test "$ac_res" != no; then :
15176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15177
15178fi
15179
15180 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
15181 pluginlibs="$pluginlibs -ldl"
15182 fi
15183 LIBS="$saved_LIBS"
15184
15185 # Check that we can build shared objects with -fPIC -shared
15186 saved_LDFLAGS="$LDFLAGS"
15187 saved_CFLAGS="$CFLAGS"
3e714cc5 15188 saved_CXXFLAGS="$CXXFLAGS"
ddc8de03
PM
15189 case "${host}" in
15190 *-*-darwin*)
15191 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
15192 CFLAGS="$CFLAGS -fPIC"
3e714cc5
IS
15193 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
15194 CXXFLAGS="$CXXFLAGS -fPIC"
ddc8de03
PM
15195 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
15196 ;;
15197 *)
15198 CFLAGS="$CFLAGS -fPIC"
3e714cc5 15199 CXXFLAGS="$CXXFLAGS -fPIC"
ddc8de03
PM
15200 LDFLAGS="$LDFLAGS -fPIC -shared"
15201 ;;
15202 esac
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
15204$as_echo_n "checking for -fPIC -shared... " >&6; }
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h. */
15207extern int X;
15208int
15209main ()
15210{
15211return X == 0;
15212 ;
15213 return 0;
15214}
15215_ACEOF
15216if ac_fn_c_try_link "$LINENO"; then :
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15218$as_echo "yes" >&6; }; have_pic_shared=yes
15219else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221$as_echo "no" >&6; }; have_pic_shared=no
15222fi
15223rm -f core conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
15225 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
15226 pluginlibs=
15227 enable_plugin=no
15228 fi
15229 LDFLAGS="$saved_LDFLAGS"
15230 CFLAGS="$saved_CFLAGS"
3e714cc5 15231 CXXFLAGS="$saved_CXXFLAGS"
ddc8de03
PM
15232
15233 # If plugin support had been requested but not available, fail.
15234 if test x"$enable_plugin" = x"no" ; then
15235 if test x"$default_plugin" != x"yes"; then
22e05272 15236 as_fn_error $? "
ddc8de03
PM
15237 Building GCC with plugin support requires a host that supports
15238 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
15239 fi
15240 fi
15241 fi
15242
15243ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22e05272 15244if test "x$ac_cv_func_socketpair" = xyes; then :
ddc8de03
PM
15245
15246else
15247 enable_plugin=no
15248fi
15249
15250ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
22e05272 15251if test "x$ac_cv_func_select" = xyes; then :
ddc8de03
PM
15252
15253else
15254 enable_plugin=no
15255fi
15256
15257ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22e05272 15258if test "x$ac_cv_func_fork" = xyes; then :
ddc8de03
PM
15259
15260else
15261 enable_plugin=no
15262fi
15263
15264 if test $enable_plugin = yes; then
15265 ENABLE_PLUGIN_TRUE=
15266 ENABLE_PLUGIN_FALSE='#'
15267else
15268 ENABLE_PLUGIN_TRUE='#'
15269 ENABLE_PLUGIN_FALSE=
15270fi
15271
15272
15273ac_config_files="$ac_config_files Makefile"
15274
15275cat >confcache <<\_ACEOF
15276# This file is a shell script that caches the results of configure
15277# tests run on this system so they can be shared between configure
15278# scripts and configure runs, see configure's option --config-cache.
15279# It is not useful on other systems. If it contains results you don't
15280# want to keep, you may remove or edit it.
15281#
15282# config.status only pays attention to the cache file if you give it
15283# the --recheck option to rerun configure.
15284#
15285# `ac_cv_env_foo' variables (set or unset) will be overridden when
15286# loading this file, other *unset* `ac_cv_foo' will be assigned the
15287# following values.
15288
15289_ACEOF
15290
15291# The following way of writing the cache mishandles newlines in values,
15292# but we know of no workaround that is simple, portable, and efficient.
15293# So, we kill variables containing newlines.
15294# Ultrix sh set writes to stderr and can't be redirected directly,
15295# and sets the high bit in the cache file unless we assign to the vars.
15296(
15297 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15298 eval ac_val=\$$ac_var
15299 case $ac_val in #(
15300 *${as_nl}*)
15301 case $ac_var in #(
15302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15303$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15304 esac
15305 case $ac_var in #(
15306 _ | IFS | as_nl) ;; #(
15307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15308 *) { eval $ac_var=; unset $ac_var;} ;;
15309 esac ;;
15310 esac
15311 done
15312
15313 (set) 2>&1 |
15314 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15315 *${as_nl}ac_space=\ *)
15316 # `set' does not quote correctly, so add quotes: double-quote
15317 # substitution turns \\\\ into \\, and sed turns \\ into \.
15318 sed -n \
15319 "s/'/'\\\\''/g;
15320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15321 ;; #(
15322 *)
15323 # `set' quotes correctly as required by POSIX, so do not add quotes.
15324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15325 ;;
15326 esac |
15327 sort
15328) |
15329 sed '
15330 /^ac_cv_env_/b end
15331 t clear
15332 :clear
15333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15334 t end
15335 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15336 :end' >>confcache
15337if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15338 if test -w "$cache_file"; then
22e05272 15339 if test "x$cache_file" != "x/dev/null"; then
ddc8de03
PM
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15341$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15342 if test ! -f "$cache_file" || test -h "$cache_file"; then
15343 cat confcache >"$cache_file"
15344 else
15345 case $cache_file in #(
15346 */* | ?:*)
15347 mv -f confcache "$cache_file"$$ &&
15348 mv -f "$cache_file"$$ "$cache_file" ;; #(
15349 *)
15350 mv -f confcache "$cache_file" ;;
15351 esac
15352 fi
15353 fi
ddc8de03
PM
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15356$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15357 fi
15358fi
15359rm -f confcache
15360
15361test "x$prefix" = xNONE && prefix=$ac_default_prefix
15362# Let make expand exec_prefix.
15363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15364
15365DEFS=-DHAVE_CONFIG_H
15366
15367ac_libobjs=
15368ac_ltlibobjs=
22e05272 15369U=
ddc8de03
PM
15370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15371 # 1. Remove the extension, and $U if already installed.
15372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15375 # will be set to the directory where LIBOBJS objects are built.
15376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15378done
15379LIBOBJS=$ac_libobjs
15380
15381LTLIBOBJS=$ac_ltlibobjs
15382
15383
22e05272
JM
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15385$as_echo_n "checking that generated files are newer than configure... " >&6; }
15386 if test -n "$am_sleep_pid"; then
15387 # Hide warnings about reused PIDs.
15388 wait $am_sleep_pid 2>/dev/null
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15391$as_echo "done" >&6; }
ddc8de03 15392if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 15393 as_fn_error $? "conditional \"AMDEP\" was never defined.
ddc8de03
PM
15394Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395fi
15396if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 15397 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
ddc8de03
PM
15398Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399fi
15400 if test -n "$EXEEXT"; then
15401 am__EXEEXT_TRUE=
15402 am__EXEEXT_FALSE='#'
15403else
15404 am__EXEEXT_TRUE='#'
15405 am__EXEEXT_FALSE=
15406fi
15407
15408if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15409 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
ddc8de03
PM
15410Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411fi
15412if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 15413 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
ddc8de03
PM
15414Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415fi
1352bc88
IS
15416if test -z "${DARWIN_DYNAMIC_LOOKUP_TRUE}" && test -z "${DARWIN_DYNAMIC_LOOKUP_FALSE}"; then
15417 as_fn_error $? "conditional \"DARWIN_DYNAMIC_LOOKUP\" was never defined.
15418Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419fi
ddc8de03 15420if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
22e05272 15421 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
ddc8de03
PM
15422Usually this means the macro was only invoked conditionally." "$LINENO" 5
15423fi
15424
22e05272 15425: "${CONFIG_STATUS=./config.status}"
ddc8de03
PM
15426ac_write_fail=0
15427ac_clean_files_save=$ac_clean_files
15428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15430$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15431as_write_fail=0
15432cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15433#! $SHELL
15434# Generated by $as_me.
15435# Run this file to recreate the current configuration.
15436# Compiler output produced by configure, useful for debugging
15437# configure, is in config.log if it exists.
15438
15439debug=false
15440ac_cs_recheck=false
15441ac_cs_silent=false
15442
15443SHELL=\${CONFIG_SHELL-$SHELL}
15444export SHELL
15445_ASEOF
15446cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15447## -------------------- ##
15448## M4sh Initialization. ##
15449## -------------------- ##
15450
15451# Be more Bourne compatible
15452DUALCASE=1; export DUALCASE # for MKS sh
15453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15454 emulate sh
15455 NULLCMD=:
15456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15457 # is contrary to our usage. Disable this feature.
15458 alias -g '${1+"$@"}'='"$@"'
15459 setopt NO_GLOB_SUBST
15460else
15461 case `(set -o) 2>/dev/null` in #(
15462 *posix*) :
15463 set -o posix ;; #(
15464 *) :
15465 ;;
15466esac
15467fi
15468
15469
15470as_nl='
15471'
15472export as_nl
15473# Printing a long string crashes Solaris 7 /usr/bin/printf.
15474as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15475as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15476as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15477# Prefer a ksh shell builtin over an external printf program on Solaris,
15478# but without wasting forks for bash or zsh.
15479if test -z "$BASH_VERSION$ZSH_VERSION" \
15480 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15481 as_echo='print -r --'
15482 as_echo_n='print -rn --'
15483elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15484 as_echo='printf %s\n'
15485 as_echo_n='printf %s'
15486else
15487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15488 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15489 as_echo_n='/usr/ucb/echo -n'
15490 else
15491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15492 as_echo_n_body='eval
15493 arg=$1;
15494 case $arg in #(
15495 *"$as_nl"*)
15496 expr "X$arg" : "X\\(.*\\)$as_nl";
15497 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15498 esac;
15499 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15500 '
15501 export as_echo_n_body
15502 as_echo_n='sh -c $as_echo_n_body as_echo'
15503 fi
15504 export as_echo_body
15505 as_echo='sh -c $as_echo_body as_echo'
15506fi
15507
15508# The user is always right.
15509if test "${PATH_SEPARATOR+set}" != set; then
15510 PATH_SEPARATOR=:
15511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15512 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15513 PATH_SEPARATOR=';'
15514 }
15515fi
15516
15517
15518# IFS
15519# We need space, tab and new line, in precisely that order. Quoting is
15520# there to prevent editors from complaining about space-tab.
15521# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15522# splitting by setting IFS to empty value.)
15523IFS=" "" $as_nl"
15524
15525# Find who we are. Look in the path if we contain no directory separator.
22e05272 15526as_myself=
ddc8de03
PM
15527case $0 in #((
15528 *[\\/]* ) as_myself=$0 ;;
15529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15530for as_dir in $PATH
15531do
15532 IFS=$as_save_IFS
15533 test -z "$as_dir" && as_dir=.
15534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15535 done
15536IFS=$as_save_IFS
15537
15538 ;;
15539esac
15540# We did not find ourselves, most probably we were run as `sh COMMAND'
15541# in which case we are not to be found in the path.
15542if test "x$as_myself" = x; then
15543 as_myself=$0
15544fi
15545if test ! -f "$as_myself"; then
15546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15547 exit 1
15548fi
15549
15550# Unset variables that we do not need and which cause bugs (e.g. in
15551# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15552# suppresses any "Segmentation fault" message there. '((' could
15553# trigger a bug in pdksh 5.2.14.
15554for as_var in BASH_ENV ENV MAIL MAILPATH
15555do eval test x\${$as_var+set} = xset \
15556 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15557done
15558PS1='$ '
15559PS2='> '
15560PS4='+ '
15561
15562# NLS nuisances.
15563LC_ALL=C
15564export LC_ALL
15565LANGUAGE=C
15566export LANGUAGE
15567
15568# CDPATH.
15569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15570
15571
22e05272
JM
15572# as_fn_error STATUS ERROR [LINENO LOG_FD]
15573# ----------------------------------------
ddc8de03
PM
15574# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15575# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15576# script with STATUS, using 1 if that was 0.
ddc8de03
PM
15577as_fn_error ()
15578{
22e05272
JM
15579 as_status=$1; test $as_status -eq 0 && as_status=1
15580 if test "$4"; then
15581 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15582 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
ddc8de03 15583 fi
22e05272 15584 $as_echo "$as_me: error: $2" >&2
ddc8de03
PM
15585 as_fn_exit $as_status
15586} # as_fn_error
15587
15588
15589# as_fn_set_status STATUS
15590# -----------------------
15591# Set $? to STATUS, without forking.
15592as_fn_set_status ()
15593{
15594 return $1
15595} # as_fn_set_status
15596
15597# as_fn_exit STATUS
15598# -----------------
15599# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15600as_fn_exit ()
15601{
15602 set +e
15603 as_fn_set_status $1
15604 exit $1
15605} # as_fn_exit
15606
15607# as_fn_unset VAR
15608# ---------------
15609# Portably unset VAR.
15610as_fn_unset ()
15611{
15612 { eval $1=; unset $1;}
15613}
15614as_unset=as_fn_unset
15615# as_fn_append VAR VALUE
15616# ----------------------
15617# Append the text in VALUE to the end of the definition contained in VAR. Take
15618# advantage of any shell optimizations that allow amortized linear growth over
15619# repeated appends, instead of the typical quadratic growth present in naive
15620# implementations.
15621if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15622 eval 'as_fn_append ()
15623 {
15624 eval $1+=\$2
15625 }'
15626else
15627 as_fn_append ()
15628 {
15629 eval $1=\$$1\$2
15630 }
15631fi # as_fn_append
15632
15633# as_fn_arith ARG...
15634# ------------------
15635# Perform arithmetic evaluation on the ARGs, and store the result in the
15636# global $as_val. Take advantage of shells that can avoid forks. The arguments
15637# must be portable across $(()) and expr.
15638if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15639 eval 'as_fn_arith ()
15640 {
15641 as_val=$(( $* ))
15642 }'
15643else
15644 as_fn_arith ()
15645 {
15646 as_val=`expr "$@" || test $? -eq 1`
15647 }
15648fi # as_fn_arith
15649
15650
15651if expr a : '\(a\)' >/dev/null 2>&1 &&
15652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15653 as_expr=expr
15654else
15655 as_expr=false
15656fi
15657
15658if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15659 as_basename=basename
15660else
15661 as_basename=false
15662fi
15663
15664if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15665 as_dirname=dirname
15666else
15667 as_dirname=false
15668fi
15669
15670as_me=`$as_basename -- "$0" ||
15671$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15672 X"$0" : 'X\(//\)$' \| \
15673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15674$as_echo X/"$0" |
15675 sed '/^.*\/\([^/][^/]*\)\/*$/{
15676 s//\1/
15677 q
15678 }
15679 /^X\/\(\/\/\)$/{
15680 s//\1/
15681 q
15682 }
15683 /^X\/\(\/\).*/{
15684 s//\1/
15685 q
15686 }
15687 s/.*/./; q'`
15688
15689# Avoid depending upon Character Ranges.
15690as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15691as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15692as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15693as_cr_digits='0123456789'
15694as_cr_alnum=$as_cr_Letters$as_cr_digits
15695
15696ECHO_C= ECHO_N= ECHO_T=
15697case `echo -n x` in #(((((
15698-n*)
15699 case `echo 'xy\c'` in
15700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15701 xy) ECHO_C='\c';;
15702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15703 ECHO_T=' ';;
15704 esac;;
15705*)
15706 ECHO_N='-n';;
15707esac
15708
15709rm -f conf$$ conf$$.exe conf$$.file
15710if test -d conf$$.dir; then
15711 rm -f conf$$.dir/conf$$.file
15712else
15713 rm -f conf$$.dir
15714 mkdir conf$$.dir 2>/dev/null
15715fi
15716if (echo >conf$$.file) 2>/dev/null; then
15717 if ln -s conf$$.file conf$$ 2>/dev/null; then
15718 as_ln_s='ln -s'
15719 # ... but there are two gotchas:
15720 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15721 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15722 # In both cases, we have to default to `cp -pR'.
ddc8de03 15723 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15724 as_ln_s='cp -pR'
ddc8de03
PM
15725 elif ln conf$$.file conf$$ 2>/dev/null; then
15726 as_ln_s=ln
15727 else
22e05272 15728 as_ln_s='cp -pR'
ddc8de03
PM
15729 fi
15730else
22e05272 15731 as_ln_s='cp -pR'
ddc8de03
PM
15732fi
15733rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15734rmdir conf$$.dir 2>/dev/null
15735
15736
15737# as_fn_mkdir_p
15738# -------------
15739# Create "$as_dir" as a directory, including parents if necessary.
15740as_fn_mkdir_p ()
15741{
15742
15743 case $as_dir in #(
15744 -*) as_dir=./$as_dir;;
15745 esac
15746 test -d "$as_dir" || eval $as_mkdir_p || {
15747 as_dirs=
15748 while :; do
15749 case $as_dir in #(
15750 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15751 *) as_qdir=$as_dir;;
15752 esac
15753 as_dirs="'$as_qdir' $as_dirs"
15754 as_dir=`$as_dirname -- "$as_dir" ||
15755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15756 X"$as_dir" : 'X\(//\)[^/]' \| \
15757 X"$as_dir" : 'X\(//\)$' \| \
15758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15759$as_echo X"$as_dir" |
15760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15761 s//\1/
15762 q
15763 }
15764 /^X\(\/\/\)[^/].*/{
15765 s//\1/
15766 q
15767 }
15768 /^X\(\/\/\)$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\).*/{
15773 s//\1/
15774 q
15775 }
15776 s/.*/./; q'`
15777 test -d "$as_dir" && break
15778 done
15779 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15780 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
ddc8de03
PM
15781
15782
15783} # as_fn_mkdir_p
15784if mkdir -p . 2>/dev/null; then
15785 as_mkdir_p='mkdir -p "$as_dir"'
15786else
15787 test -d ./-p && rmdir ./-p
15788 as_mkdir_p=false
15789fi
15790
22e05272
JM
15791
15792# as_fn_executable_p FILE
15793# -----------------------
15794# Test if FILE is an executable regular file.
15795as_fn_executable_p ()
15796{
15797 test -f "$1" && test -x "$1"
15798} # as_fn_executable_p
15799as_test_x='test -x'
15800as_executable_p=as_fn_executable_p
ddc8de03
PM
15801
15802# Sed expression to map a string onto a valid CPP name.
15803as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15804
15805# Sed expression to map a string onto a valid variable name.
15806as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15807
15808
15809exec 6>&1
15810## ----------------------------------- ##
15811## Main body of $CONFIG_STATUS script. ##
15812## ----------------------------------- ##
15813_ASEOF
15814test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15815
15816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15817# Save the log message, to keep $0 and so on meaningful, and to
15818# report actual input values of CONFIG_FILES etc. instead of their
15819# values after options handling.
15820ac_log="
15821This file was extended by libcc1 $as_me version-unused, which was
22e05272 15822generated by GNU Autoconf 2.69. Invocation command line was
ddc8de03
PM
15823
15824 CONFIG_FILES = $CONFIG_FILES
15825 CONFIG_HEADERS = $CONFIG_HEADERS
15826 CONFIG_LINKS = $CONFIG_LINKS
15827 CONFIG_COMMANDS = $CONFIG_COMMANDS
15828 $ $0 $@
15829
15830on `(hostname || uname -n) 2>/dev/null | sed 1q`
15831"
15832
15833_ACEOF
15834
15835case $ac_config_files in *"
15836"*) set x $ac_config_files; shift; ac_config_files=$*;;
15837esac
15838
15839case $ac_config_headers in *"
15840"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15841esac
15842
15843
15844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845# Files that config.status was made for.
15846config_files="$ac_config_files"
15847config_headers="$ac_config_headers"
15848config_commands="$ac_config_commands"
15849
15850_ACEOF
15851
15852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853ac_cs_usage="\
15854\`$as_me' instantiates files and other configuration actions
15855from templates according to the current configuration. Unless the files
15856and actions are specified as TAGs, all are instantiated by default.
15857
15858Usage: $0 [OPTION]... [TAG]...
15859
15860 -h, --help print this help, then exit
15861 -V, --version print version number and configuration settings, then exit
22e05272 15862 --config print configuration, then exit
ddc8de03
PM
15863 -q, --quiet, --silent
15864 do not print progress messages
15865 -d, --debug don't remove temporary files
15866 --recheck update $as_me by reconfiguring in the same conditions
15867 --file=FILE[:TEMPLATE]
15868 instantiate the configuration file FILE
15869 --header=FILE[:TEMPLATE]
15870 instantiate the configuration header FILE
15871
15872Configuration files:
15873$config_files
15874
15875Configuration headers:
15876$config_headers
15877
15878Configuration commands:
15879$config_commands
15880
15881Report bugs to the package provider."
15882
15883_ACEOF
15884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15885ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ddc8de03
PM
15886ac_cs_version="\\
15887libcc1 config.status version-unused
22e05272
JM
15888configured by $0, generated by GNU Autoconf 2.69,
15889 with options \\"\$ac_cs_config\\"
ddc8de03 15890
22e05272 15891Copyright (C) 2012 Free Software Foundation, Inc.
ddc8de03
PM
15892This config.status script is free software; the Free Software Foundation
15893gives unlimited permission to copy, distribute and modify it."
15894
15895ac_pwd='$ac_pwd'
15896srcdir='$srcdir'
15897INSTALL='$INSTALL'
15898MKDIR_P='$MKDIR_P'
15899AWK='$AWK'
15900test -n "\$AWK" || AWK=awk
15901_ACEOF
15902
15903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15904# The default lists apply if the user does not specify any file.
15905ac_need_defaults=:
15906while test $# != 0
15907do
15908 case $1 in
22e05272 15909 --*=?*)
ddc8de03
PM
15910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15912 ac_shift=:
15913 ;;
22e05272
JM
15914 --*=)
15915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15916 ac_optarg=
15917 ac_shift=:
15918 ;;
ddc8de03
PM
15919 *)
15920 ac_option=$1
15921 ac_optarg=$2
15922 ac_shift=shift
15923 ;;
15924 esac
15925
15926 case $ac_option in
15927 # Handling of the options.
15928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15929 ac_cs_recheck=: ;;
15930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15931 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15932 --config | --confi | --conf | --con | --co | --c )
15933 $as_echo "$ac_cs_config"; exit ;;
ddc8de03
PM
15934 --debug | --debu | --deb | --de | --d | -d )
15935 debug=: ;;
15936 --file | --fil | --fi | --f )
15937 $ac_shift
15938 case $ac_optarg in
15939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15940 '') as_fn_error $? "missing file argument" ;;
ddc8de03
PM
15941 esac
15942 as_fn_append CONFIG_FILES " '$ac_optarg'"
15943 ac_need_defaults=false;;
15944 --header | --heade | --head | --hea )
15945 $ac_shift
15946 case $ac_optarg in
15947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15948 esac
15949 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15950 ac_need_defaults=false;;
15951 --he | --h)
15952 # Conflict between --help and --header
22e05272 15953 as_fn_error $? "ambiguous option: \`$1'
ddc8de03
PM
15954Try \`$0 --help' for more information.";;
15955 --help | --hel | -h )
15956 $as_echo "$ac_cs_usage"; exit ;;
15957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15959 ac_cs_silent=: ;;
15960
15961 # This is an error.
22e05272 15962 -*) as_fn_error $? "unrecognized option: \`$1'
ddc8de03
PM
15963Try \`$0 --help' for more information." ;;
15964
15965 *) as_fn_append ac_config_targets " $1"
15966 ac_need_defaults=false ;;
15967
15968 esac
15969 shift
15970done
15971
15972ac_configure_extra_args=
15973
15974if $ac_cs_silent; then
15975 exec 6>/dev/null
15976 ac_configure_extra_args="$ac_configure_extra_args --silent"
15977fi
15978
15979_ACEOF
15980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981if \$ac_cs_recheck; then
22e05272 15982 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ddc8de03
PM
15983 shift
15984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15985 CONFIG_SHELL='$SHELL'
15986 export CONFIG_SHELL
15987 exec "\$@"
15988fi
15989
15990_ACEOF
15991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992exec 5>>config.log
15993{
15994 echo
15995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15996## Running $as_me. ##
15997_ASBOX
15998 $as_echo "$ac_log"
15999} >&5
16000
16001_ACEOF
16002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003#
16004# INIT-COMMANDS
16005#
16006AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16007
16008
16009# The HP-UX ksh and POSIX shell print the target directory to stdout
16010# if CDPATH is set.
16011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16012
16013sed_quote_subst='$sed_quote_subst'
16014double_quote_subst='$double_quote_subst'
16015delay_variable_subst='$delay_variable_subst'
16016macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16017macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16018enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16019enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16020pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16021enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16022SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16023ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16024host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16025host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16026host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16027build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16028build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16029build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16030SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16031Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16032GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16033EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16034FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16035LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16036NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16037LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16038max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16039ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16040exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16041lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16042lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16043lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16044reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16045reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16046OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16047deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16048file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16049AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16050AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16051STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16052RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16053old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16054old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16055old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16056lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16057CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16058CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16059compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16060GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16061lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16062lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16063lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16064lt_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"`'
16065objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16066MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16067lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16068lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16069lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16070lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16071lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16072need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16073DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16074NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16075LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16076OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16077OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16078libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16079shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16080extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16081archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16082enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16083export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16084whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16085compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16086old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16087old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16088archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16089archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16090module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16091module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16092with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16093allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16094no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16095hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16096hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16097hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16098hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16099hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16100hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16101hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16102hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16103inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16104link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16105fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16106always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16107export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16108exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16109include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16110prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16111file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16112variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16113need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16114need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16115version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16116runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16117shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16118shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16119libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16120library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16121soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16122install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16123postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16124postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16125finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16126finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16127hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16128sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16129sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16130hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16131enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16132enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16133enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16134old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16135striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16136compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16137predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16138postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16139predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16140postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16141compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16142LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16143reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16144reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16145old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16146compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16147GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16148lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16149lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16150lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16151lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16152lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16153archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16154enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16155export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16156whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16157compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16158old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16159old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16160archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16161archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16162module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16163module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16164with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16165allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16166no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16167hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16168hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16169hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16170hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16171hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16172hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16173hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16174hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16175inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16176link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16177fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16178always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16179export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16180exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16181include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16182prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16183file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16184hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16185compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16186predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16187postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16188predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16189postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16190compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16191
16192LTCC='$LTCC'
16193LTCFLAGS='$LTCFLAGS'
16194compiler='$compiler_DEFAULT'
16195
16196# A function that is used when there is no print builtin or printf.
16197func_fallback_echo ()
16198{
16199 eval 'cat <<_LTECHO_EOF
16200\$1
16201_LTECHO_EOF'
16202}
16203
16204# Quote evaled strings.
16205for var in SHELL \
16206ECHO \
16207SED \
16208GREP \
16209EGREP \
16210FGREP \
16211LD \
16212NM \
16213LN_S \
16214lt_SP2NL \
16215lt_NL2SP \
16216reload_flag \
16217OBJDUMP \
16218deplibs_check_method \
16219file_magic_cmd \
16220AR \
16221AR_FLAGS \
16222STRIP \
16223RANLIB \
16224CC \
16225CFLAGS \
16226compiler \
16227lt_cv_sys_global_symbol_pipe \
16228lt_cv_sys_global_symbol_to_cdecl \
16229lt_cv_sys_global_symbol_to_c_name_address \
16230lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16231lt_prog_compiler_no_builtin_flag \
16232lt_prog_compiler_wl \
16233lt_prog_compiler_pic \
16234lt_prog_compiler_static \
16235lt_cv_prog_compiler_c_o \
16236need_locks \
16237DSYMUTIL \
16238NMEDIT \
16239LIPO \
16240OTOOL \
16241OTOOL64 \
16242shrext_cmds \
16243export_dynamic_flag_spec \
16244whole_archive_flag_spec \
16245compiler_needs_object \
16246with_gnu_ld \
16247allow_undefined_flag \
16248no_undefined_flag \
16249hardcode_libdir_flag_spec \
16250hardcode_libdir_flag_spec_ld \
16251hardcode_libdir_separator \
16252fix_srcfile_path \
16253exclude_expsyms \
16254include_expsyms \
16255file_list_spec \
16256variables_saved_for_relink \
16257libname_spec \
16258library_names_spec \
16259soname_spec \
16260install_override_mode \
16261finish_eval \
16262old_striplib \
16263striplib \
16264compiler_lib_search_dirs \
16265predep_objects \
16266postdep_objects \
16267predeps \
16268postdeps \
16269compiler_lib_search_path \
16270LD_CXX \
16271reload_flag_CXX \
16272compiler_CXX \
16273lt_prog_compiler_no_builtin_flag_CXX \
16274lt_prog_compiler_wl_CXX \
16275lt_prog_compiler_pic_CXX \
16276lt_prog_compiler_static_CXX \
16277lt_cv_prog_compiler_c_o_CXX \
16278export_dynamic_flag_spec_CXX \
16279whole_archive_flag_spec_CXX \
16280compiler_needs_object_CXX \
16281with_gnu_ld_CXX \
16282allow_undefined_flag_CXX \
16283no_undefined_flag_CXX \
16284hardcode_libdir_flag_spec_CXX \
16285hardcode_libdir_flag_spec_ld_CXX \
16286hardcode_libdir_separator_CXX \
16287fix_srcfile_path_CXX \
16288exclude_expsyms_CXX \
16289include_expsyms_CXX \
16290file_list_spec_CXX \
16291compiler_lib_search_dirs_CXX \
16292predep_objects_CXX \
16293postdep_objects_CXX \
16294predeps_CXX \
16295postdeps_CXX \
16296compiler_lib_search_path_CXX; do
16297 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16298 *[\\\\\\\`\\"\\\$]*)
16299 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16300 ;;
16301 *)
16302 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16303 ;;
16304 esac
16305done
16306
16307# Double-quote double-evaled strings.
16308for var in reload_cmds \
16309old_postinstall_cmds \
16310old_postuninstall_cmds \
16311old_archive_cmds \
16312extract_expsyms_cmds \
16313old_archive_from_new_cmds \
16314old_archive_from_expsyms_cmds \
16315archive_cmds \
16316archive_expsym_cmds \
16317module_cmds \
16318module_expsym_cmds \
16319export_symbols_cmds \
16320prelink_cmds \
16321postinstall_cmds \
16322postuninstall_cmds \
16323finish_cmds \
16324sys_lib_search_path_spec \
16325sys_lib_dlsearch_path_spec \
16326reload_cmds_CXX \
16327old_archive_cmds_CXX \
16328old_archive_from_new_cmds_CXX \
16329old_archive_from_expsyms_cmds_CXX \
16330archive_cmds_CXX \
16331archive_expsym_cmds_CXX \
16332module_cmds_CXX \
16333module_expsym_cmds_CXX \
16334export_symbols_cmds_CXX \
16335prelink_cmds_CXX; do
16336 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16337 *[\\\\\\\`\\"\\\$]*)
16338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16339 ;;
16340 *)
16341 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16342 ;;
16343 esac
16344done
16345
16346ac_aux_dir='$ac_aux_dir'
16347xsi_shell='$xsi_shell'
16348lt_shell_append='$lt_shell_append'
16349
16350# See if we are running on zsh, and set the options which allow our
16351# commands through without removal of \ escapes INIT.
16352if test -n "\${ZSH_VERSION+set}" ; then
16353 setopt NO_GLOB_SUBST
16354fi
16355
16356
16357 PACKAGE='$PACKAGE'
16358 VERSION='$VERSION'
16359 TIMESTAMP='$TIMESTAMP'
16360 RM='$RM'
16361 ofile='$ofile'
16362
16363
16364
16365
16366
16367
16368_ACEOF
16369
16370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371
16372# Handling of arguments.
16373for ac_config_target in $ac_config_targets
16374do
16375 case $ac_config_target in
16376 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16377 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16378 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16379 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16380
22e05272 16381 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
ddc8de03
PM
16382 esac
16383done
16384
16385
16386# If the user did not use the arguments to specify the items to instantiate,
16387# then the envvar interface is used. Set only those that are not.
16388# We use the long form for the default assignment because of an extremely
16389# bizarre bug on SunOS 4.1.3.
16390if $ac_need_defaults; then
16391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16394fi
16395
16396# Have a temporary directory for convenience. Make it in the build tree
16397# simply because there is no reason against having it here, and in addition,
16398# creating and moving files from /tmp can sometimes cause problems.
16399# Hook for its removal unless debugging.
16400# Note that there is a small window in which the directory will not be cleaned:
16401# after its creation but before its name has been assigned to `$tmp'.
16402$debug ||
16403{
22e05272 16404 tmp= ac_tmp=
ddc8de03 16405 trap 'exit_status=$?
22e05272
JM
16406 : "${ac_tmp:=$tmp}"
16407 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
ddc8de03
PM
16408' 0
16409 trap 'as_fn_exit 1' 1 2 13 15
16410}
16411# Create a (secure) tmp directory for tmp files.
16412
16413{
16414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16415 test -d "$tmp"
ddc8de03
PM
16416} ||
16417{
16418 tmp=./conf$$-$RANDOM
16419 (umask 077 && mkdir "$tmp")
22e05272
JM
16420} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16421ac_tmp=$tmp
ddc8de03
PM
16422
16423# Set up the scripts for CONFIG_FILES section.
16424# No need to generate them if there are no CONFIG_FILES.
16425# This happens for instance with `./config.status config.h'.
16426if test -n "$CONFIG_FILES"; then
16427
16428
16429ac_cr=`echo X | tr X '\015'`
16430# On cygwin, bash can eat \r inside `` if the user requested igncr.
16431# But we know of no other shell where ac_cr would be empty at this
16432# point, so we can use a bashism as a fallback.
16433if test "x$ac_cr" = x; then
16434 eval ac_cr=\$\'\\r\'
16435fi
16436ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16437if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16438 ac_cs_awk_cr='\\r'
ddc8de03
PM
16439else
16440 ac_cs_awk_cr=$ac_cr
16441fi
16442
22e05272 16443echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
ddc8de03
PM
16444_ACEOF
16445
16446
16447{
16448 echo "cat >conf$$subs.awk <<_ACEOF" &&
16449 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16450 echo "_ACEOF"
16451} >conf$$subs.sh ||
22e05272
JM
16452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16453ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ddc8de03
PM
16454ac_delim='%!_!# '
16455for ac_last_try in false false false false false :; do
16456 . ./conf$$subs.sh ||
22e05272 16457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ddc8de03
PM
16458
16459 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16460 if test $ac_delim_n = $ac_delim_num; then
16461 break
16462 elif $ac_last_try; then
22e05272 16463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ddc8de03
PM
16464 else
16465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16466 fi
16467done
16468rm -f conf$$subs.sh
16469
16470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16471cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
ddc8de03
PM
16472_ACEOF
16473sed -n '
16474h
16475s/^/S["/; s/!.*/"]=/
16476p
16477g
16478s/^[^!]*!//
16479:repl
16480t repl
16481s/'"$ac_delim"'$//
16482t delim
16483:nl
16484h
22e05272 16485s/\(.\{148\}\)..*/\1/
ddc8de03
PM
16486t more1
16487s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16488p
16489n
16490b repl
16491:more1
16492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16493p
16494g
16495s/.\{148\}//
16496t nl
16497:delim
16498h
22e05272 16499s/\(.\{148\}\)..*/\1/
ddc8de03
PM
16500t more2
16501s/["\\]/\\&/g; s/^/"/; s/$/"/
16502p
16503b
16504:more2
16505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16506p
16507g
16508s/.\{148\}//
16509t delim
16510' <conf$$subs.awk | sed '
16511/^[^""]/{
16512 N
16513 s/\n//
16514}
16515' >>$CONFIG_STATUS || ac_write_fail=1
16516rm -f conf$$subs.awk
16517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518_ACAWK
22e05272 16519cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
ddc8de03
PM
16520 for (key in S) S_is_set[key] = 1
16521 FS = "\a"
16522
16523}
16524{
16525 line = $ 0
16526 nfields = split(line, field, "@")
16527 substed = 0
16528 len = length(field[1])
16529 for (i = 2; i < nfields; i++) {
16530 key = field[i]
16531 keylen = length(key)
16532 if (S_is_set[key]) {
16533 value = S[key]
16534 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16535 len += length(value) + length(field[++i])
16536 substed = 1
16537 } else
16538 len += 1 + keylen
16539 }
16540
16541 print line
16542}
16543
16544_ACAWK
16545_ACEOF
16546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16547if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16548 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16549else
16550 cat
22e05272
JM
16551fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16552 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
ddc8de03
PM
16553_ACEOF
16554
22e05272
JM
16555# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16556# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
ddc8de03
PM
16557# trailing colons and then remove the whole line if VPATH becomes empty
16558# (actually we leave an empty line to preserve line numbers).
16559if test "x$srcdir" = x.; then
22e05272
JM
16560 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16561h
16562s///
16563s/^/:/
16564s/[ ]*$/:/
16565s/:\$(srcdir):/:/g
16566s/:\${srcdir}:/:/g
16567s/:@srcdir@:/:/g
16568s/^:*//
ddc8de03 16569s/:*$//
22e05272
JM
16570x
16571s/\(=[ ]*\).*/\1/
16572G
16573s/\n//
ddc8de03
PM
16574s/^[^=]*=[ ]*$//
16575}'
16576fi
16577
16578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16579fi # test -n "$CONFIG_FILES"
16580
16581# Set up the scripts for CONFIG_HEADERS section.
16582# No need to generate them if there are no CONFIG_HEADERS.
16583# This happens for instance with `./config.status Makefile'.
16584if test -n "$CONFIG_HEADERS"; then
22e05272 16585cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
ddc8de03
PM
16586BEGIN {
16587_ACEOF
16588
16589# Transform confdefs.h into an awk script `defines.awk', embedded as
16590# here-document in config.status, that substitutes the proper values into
16591# config.h.in to produce config.h.
16592
16593# Create a delimiter string that does not exist in confdefs.h, to ease
16594# handling of long lines.
16595ac_delim='%!_!# '
16596for ac_last_try in false false :; do
22e05272
JM
16597 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16598 if test -z "$ac_tt"; then
ddc8de03
PM
16599 break
16600 elif $ac_last_try; then
22e05272 16601 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ddc8de03
PM
16602 else
16603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16604 fi
16605done
16606
16607# For the awk script, D is an array of macro values keyed by name,
16608# likewise P contains macro parameters if any. Preserve backslash
16609# newline sequences.
16610
16611ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16612sed -n '
16613s/.\{148\}/&'"$ac_delim"'/g
16614t rset
16615:rset
16616s/^[ ]*#[ ]*define[ ][ ]*/ /
16617t def
16618d
16619:def
16620s/\\$//
16621t bsnl
16622s/["\\]/\\&/g
16623s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16624D["\1"]=" \3"/p
16625s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16626d
16627:bsnl
16628s/["\\]/\\&/g
16629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16630D["\1"]=" \3\\\\\\n"\\/p
16631t cont
16632s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16633t cont
16634d
16635:cont
16636n
16637s/.\{148\}/&'"$ac_delim"'/g
16638t clear
16639:clear
16640s/\\$//
16641t bsnlc
16642s/["\\]/\\&/g; s/^/"/; s/$/"/p
16643d
16644:bsnlc
16645s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16646b cont
16647' <confdefs.h | sed '
16648s/'"$ac_delim"'/"\\\
16649"/g' >>$CONFIG_STATUS || ac_write_fail=1
16650
16651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16652 for (key in D) D_is_set[key] = 1
16653 FS = "\a"
16654}
16655/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16656 line = \$ 0
16657 split(line, arg, " ")
16658 if (arg[1] == "#") {
16659 defundef = arg[2]
16660 mac1 = arg[3]
16661 } else {
16662 defundef = substr(arg[1], 2)
16663 mac1 = arg[2]
16664 }
16665 split(mac1, mac2, "(") #)
16666 macro = mac2[1]
16667 prefix = substr(line, 1, index(line, defundef) - 1)
16668 if (D_is_set[macro]) {
16669 # Preserve the white space surrounding the "#".
16670 print prefix "define", macro P[macro] D[macro]
16671 next
16672 } else {
16673 # Replace #undef with comments. This is necessary, for example,
16674 # in the case of _POSIX_SOURCE, which is predefined and required
16675 # on some systems where configure will not decide to define it.
16676 if (defundef == "undef") {
16677 print "/*", prefix defundef, macro, "*/"
16678 next
16679 }
16680 }
16681}
16682{ print }
16683_ACAWK
16684_ACEOF
16685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 16686 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ddc8de03
PM
16687fi # test -n "$CONFIG_HEADERS"
16688
16689
16690eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16691shift
16692for ac_tag
16693do
16694 case $ac_tag in
16695 :[FHLC]) ac_mode=$ac_tag; continue;;
16696 esac
16697 case $ac_mode$ac_tag in
16698 :[FHL]*:*);;
22e05272 16699 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
ddc8de03
PM
16700 :[FH]-) ac_tag=-:-;;
16701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16702 esac
16703 ac_save_IFS=$IFS
16704 IFS=:
16705 set x $ac_tag
16706 IFS=$ac_save_IFS
16707 shift
16708 ac_file=$1
16709 shift
16710
16711 case $ac_mode in
16712 :L) ac_source=$1;;
16713 :[FH])
16714 ac_file_inputs=
16715 for ac_f
16716 do
16717 case $ac_f in
22e05272 16718 -) ac_f="$ac_tmp/stdin";;
ddc8de03
PM
16719 *) # Look for the file first in the build tree, then in the source tree
16720 # (if the path is not absolute). The absolute path cannot be DOS-style,
16721 # because $ac_f cannot contain `:'.
16722 test -f "$ac_f" ||
16723 case $ac_f in
16724 [\\/$]*) false;;
16725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16726 esac ||
22e05272 16727 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
ddc8de03
PM
16728 esac
16729 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16730 as_fn_append ac_file_inputs " '$ac_f'"
16731 done
16732
16733 # Let's still pretend it is `configure' which instantiates (i.e., don't
16734 # use $as_me), people would be surprised to read:
16735 # /* config.h. Generated by config.status. */
16736 configure_input='Generated from '`
16737 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16738 `' by configure.'
16739 if test x"$ac_file" != x-; then
16740 configure_input="$ac_file. $configure_input"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16742$as_echo "$as_me: creating $ac_file" >&6;}
16743 fi
16744 # Neutralize special characters interpreted by sed in replacement strings.
16745 case $configure_input in #(
16746 *\&* | *\|* | *\\* )
16747 ac_sed_conf_input=`$as_echo "$configure_input" |
16748 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16749 *) ac_sed_conf_input=$configure_input;;
16750 esac
16751
16752 case $ac_tag in
22e05272
JM
16753 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
ddc8de03
PM
16755 esac
16756 ;;
16757 esac
16758
16759 ac_dir=`$as_dirname -- "$ac_file" ||
16760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16761 X"$ac_file" : 'X\(//\)[^/]' \| \
16762 X"$ac_file" : 'X\(//\)$' \| \
16763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16764$as_echo X"$ac_file" |
16765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16766 s//\1/
16767 q
16768 }
16769 /^X\(\/\/\)[^/].*/{
16770 s//\1/
16771 q
16772 }
16773 /^X\(\/\/\)$/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\).*/{
16778 s//\1/
16779 q
16780 }
16781 s/.*/./; q'`
16782 as_dir="$ac_dir"; as_fn_mkdir_p
16783 ac_builddir=.
16784
16785case "$ac_dir" in
16786.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16787*)
16788 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16789 # A ".." for each directory in $ac_dir_suffix.
16790 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16791 case $ac_top_builddir_sub in
16792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16794 esac ;;
16795esac
16796ac_abs_top_builddir=$ac_pwd
16797ac_abs_builddir=$ac_pwd$ac_dir_suffix
16798# for backward compatibility:
16799ac_top_builddir=$ac_top_build_prefix
16800
16801case $srcdir in
16802 .) # We are building in place.
16803 ac_srcdir=.
16804 ac_top_srcdir=$ac_top_builddir_sub
16805 ac_abs_top_srcdir=$ac_pwd ;;
16806 [\\/]* | ?:[\\/]* ) # Absolute name.
16807 ac_srcdir=$srcdir$ac_dir_suffix;
16808 ac_top_srcdir=$srcdir
16809 ac_abs_top_srcdir=$srcdir ;;
16810 *) # Relative name.
16811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16812 ac_top_srcdir=$ac_top_build_prefix$srcdir
16813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16814esac
16815ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16816
16817
16818 case $ac_mode in
16819 :F)
16820 #
16821 # CONFIG_FILE
16822 #
16823
16824 case $INSTALL in
16825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16826 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16827 esac
16828 ac_MKDIR_P=$MKDIR_P
16829 case $MKDIR_P in
16830 [\\/$]* | ?:[\\/]* ) ;;
16831 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16832 esac
16833_ACEOF
16834
16835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836# If the template does not know about datarootdir, expand it.
16837# FIXME: This hack should be removed a few years after 2.60.
16838ac_datarootdir_hack=; ac_datarootdir_seen=
16839ac_sed_dataroot='
16840/datarootdir/ {
16841 p
16842 q
16843}
16844/@datadir@/p
16845/@docdir@/p
16846/@infodir@/p
16847/@localedir@/p
16848/@mandir@/p'
16849case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16850*datarootdir*) ac_datarootdir_seen=yes;;
16851*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16853$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16854_ACEOF
16855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856 ac_datarootdir_hack='
16857 s&@datadir@&$datadir&g
16858 s&@docdir@&$docdir&g
16859 s&@infodir@&$infodir&g
16860 s&@localedir@&$localedir&g
16861 s&@mandir@&$mandir&g
16862 s&\\\${datarootdir}&$datarootdir&g' ;;
16863esac
16864_ACEOF
16865
16866# Neutralize VPATH when `$srcdir' = `.'.
16867# Shell code in configure.ac might set extrasub.
16868# FIXME: do we really want to maintain this feature?
16869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870ac_sed_extra="$ac_vpsub
16871$extrasub
16872_ACEOF
16873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16874:t
16875/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16876s|@configure_input@|$ac_sed_conf_input|;t t
16877s&@top_builddir@&$ac_top_builddir_sub&;t t
16878s&@top_build_prefix@&$ac_top_build_prefix&;t t
16879s&@srcdir@&$ac_srcdir&;t t
16880s&@abs_srcdir@&$ac_abs_srcdir&;t t
16881s&@top_srcdir@&$ac_top_srcdir&;t t
16882s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16883s&@builddir@&$ac_builddir&;t t
16884s&@abs_builddir@&$ac_abs_builddir&;t t
16885s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16886s&@INSTALL@&$ac_INSTALL&;t t
16887s&@MKDIR_P@&$ac_MKDIR_P&;t t
16888$ac_datarootdir_hack
16889"
22e05272
JM
16890eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16891 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ddc8de03
PM
16892
16893test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16894 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16896 "$ac_tmp/out"`; test -z "$ac_out"; } &&
ddc8de03 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16898which seems to be undefined. Please make sure it is defined" >&5
ddc8de03 16899$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16900which seems to be undefined. Please make sure it is defined" >&2;}
ddc8de03 16901
22e05272 16902 rm -f "$ac_tmp/stdin"
ddc8de03 16903 case $ac_file in
22e05272
JM
16904 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16905 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
ddc8de03 16906 esac \
22e05272 16907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ddc8de03
PM
16908 ;;
16909 :H)
16910 #
16911 # CONFIG_HEADER
16912 #
16913 if test x"$ac_file" != x-; then
16914 {
16915 $as_echo "/* $configure_input */" \
22e05272
JM
16916 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16917 } >"$ac_tmp/config.h" \
16918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16919 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
ddc8de03
PM
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16921$as_echo "$as_me: $ac_file is unchanged" >&6;}
16922 else
16923 rm -f "$ac_file"
22e05272
JM
16924 mv "$ac_tmp/config.h" "$ac_file" \
16925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ddc8de03
PM
16926 fi
16927 else
16928 $as_echo "/* $configure_input */" \
22e05272
JM
16929 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16930 || as_fn_error $? "could not create -" "$LINENO" 5
ddc8de03
PM
16931 fi
16932# Compute "$ac_file"'s index in $config_headers.
16933_am_arg="$ac_file"
16934_am_stamp_count=1
16935for _am_header in $config_headers :; do
16936 case $_am_header in
16937 $_am_arg | $_am_arg:* )
16938 break ;;
16939 * )
16940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16941 esac
16942done
16943echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16944$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16945 X"$_am_arg" : 'X\(//\)[^/]' \| \
16946 X"$_am_arg" : 'X\(//\)$' \| \
16947 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16948$as_echo X"$_am_arg" |
16949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16950 s//\1/
16951 q
16952 }
16953 /^X\(\/\/\)[^/].*/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\/\)$/{
16958 s//\1/
16959 q
16960 }
16961 /^X\(\/\).*/{
16962 s//\1/
16963 q
16964 }
16965 s/.*/./; q'`/stamp-h$_am_stamp_count
16966 ;;
16967
16968 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16969$as_echo "$as_me: executing $ac_file commands" >&6;}
16970 ;;
16971 esac
16972
16973
16974 case $ac_file$ac_mode in
16975 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 16976 # Older Autoconf quotes --file arguments for eval, but not when files
ddc8de03
PM
16977 # are listed without --file. Let's play safe and only enable the eval
16978 # if we detect the quoting.
16979 case $CONFIG_FILES in
16980 *\'*) eval set x "$CONFIG_FILES" ;;
16981 *) set x $CONFIG_FILES ;;
16982 esac
16983 shift
16984 for mf
16985 do
16986 # Strip MF so we end up with the name of the file.
16987 mf=`echo "$mf" | sed -e 's/:.*$//'`
16988 # Check whether this is an Automake generated Makefile or not.
22e05272 16989 # We used to match only the files named 'Makefile.in', but
ddc8de03
PM
16990 # some people rename them; so instead we look at the file content.
16991 # Grep'ing the first line is not enough: some people post-process
16992 # each Makefile.in and add a new line on top of each file to say so.
16993 # Grep'ing the whole file is not good either: AIX grep has a line
16994 # limit of 2048, but all sed's we know have understand at least 4000.
16995 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16996 dirpart=`$as_dirname -- "$mf" ||
16997$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998 X"$mf" : 'X\(//\)[^/]' \| \
16999 X"$mf" : 'X\(//\)$' \| \
17000 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17001$as_echo X"$mf" |
17002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003 s//\1/
17004 q
17005 }
17006 /^X\(\/\/\)[^/].*/{
17007 s//\1/
17008 q
17009 }
17010 /^X\(\/\/\)$/{
17011 s//\1/
17012 q
17013 }
17014 /^X\(\/\).*/{
17015 s//\1/
17016 q
17017 }
17018 s/.*/./; q'`
17019 else
17020 continue
17021 fi
17022 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17023 # from the Makefile without running 'make'.
ddc8de03
PM
17024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17025 test -z "$DEPDIR" && continue
17026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17027 test -z "$am__include" && continue
ddc8de03 17028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
ddc8de03
PM
17029 # Find all dependency output files, they are included files with
17030 # $(DEPDIR) in their names. We invoke sed twice because it is the
17031 # simplest approach to changing $(DEPDIR) to its actual value in the
17032 # expansion.
17033 for file in `sed -n "
17034 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17035 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
ddc8de03
PM
17036 # Make sure the directory exists.
17037 test -f "$dirpart/$file" && continue
17038 fdir=`$as_dirname -- "$file" ||
17039$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17040 X"$file" : 'X\(//\)[^/]' \| \
17041 X"$file" : 'X\(//\)$' \| \
17042 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17043$as_echo X"$file" |
17044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17045 s//\1/
17046 q
17047 }
17048 /^X\(\/\/\)[^/].*/{
17049 s//\1/
17050 q
17051 }
17052 /^X\(\/\/\)$/{
17053 s//\1/
17054 q
17055 }
17056 /^X\(\/\).*/{
17057 s//\1/
17058 q
17059 }
17060 s/.*/./; q'`
17061 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17062 # echo "creating $dirpart/$file"
17063 echo '# dummy' > "$dirpart/$file"
17064 done
17065 done
17066}
17067 ;;
17068 "libtool":C)
17069
17070 # See if we are running on zsh, and set the options which allow our
17071 # commands through without removal of \ escapes.
17072 if test -n "${ZSH_VERSION+set}" ; then
17073 setopt NO_GLOB_SUBST
17074 fi
17075
17076 cfgfile="${ofile}T"
17077 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17078 $RM "$cfgfile"
17079
17080 cat <<_LT_EOF >> "$cfgfile"
17081#! $SHELL
17082
17083# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17084# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17085# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17086# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17087#
17088# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17089# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17090# Written by Gordon Matzigkeit, 1996
17091#
17092# This file is part of GNU Libtool.
17093#
17094# GNU Libtool is free software; you can redistribute it and/or
17095# modify it under the terms of the GNU General Public License as
17096# published by the Free Software Foundation; either version 2 of
17097# the License, or (at your option) any later version.
17098#
17099# As a special exception to the GNU General Public License,
17100# if you distribute this file as part of a program or library that
17101# is built using GNU Libtool, you may include this file under the
17102# same distribution terms that you use for the rest of that program.
17103#
17104# GNU Libtool is distributed in the hope that it will be useful,
17105# but WITHOUT ANY WARRANTY; without even the implied warranty of
17106# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17107# GNU General Public License for more details.
17108#
17109# You should have received a copy of the GNU General Public License
17110# along with GNU Libtool; see the file COPYING. If not, a copy
17111# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17112# obtained by writing to the Free Software Foundation, Inc.,
17113# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17114
17115
17116# The names of the tagged configurations supported by this script.
17117available_tags="CXX "
17118
17119# ### BEGIN LIBTOOL CONFIG
17120
17121# Which release of libtool.m4 was used?
17122macro_version=$macro_version
17123macro_revision=$macro_revision
17124
17125# Whether or not to build static libraries.
17126build_old_libs=$enable_static
17127
17128# Whether or not to build shared libraries.
17129build_libtool_libs=$enable_shared
17130
17131# What type of objects to build.
17132pic_mode=$pic_mode
17133
17134# Whether or not to optimize for fast installation.
17135fast_install=$enable_fast_install
17136
17137# Shell to use when invoking shell scripts.
17138SHELL=$lt_SHELL
17139
17140# An echo program that protects backslashes.
17141ECHO=$lt_ECHO
17142
17143# The host system.
17144host_alias=$host_alias
17145host=$host
17146host_os=$host_os
17147
17148# The build system.
17149build_alias=$build_alias
17150build=$build
17151build_os=$build_os
17152
17153# A sed program that does not truncate output.
17154SED=$lt_SED
17155
17156# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17157Xsed="\$SED -e 1s/^X//"
17158
17159# A grep program that handles long lines.
17160GREP=$lt_GREP
17161
17162# An ERE matcher.
17163EGREP=$lt_EGREP
17164
17165# A literal string matcher.
17166FGREP=$lt_FGREP
17167
17168# A BSD- or MS-compatible name lister.
17169NM=$lt_NM
17170
17171# Whether we need soft or hard links.
17172LN_S=$lt_LN_S
17173
17174# What is the maximum length of a command?
17175max_cmd_len=$max_cmd_len
17176
17177# Object file suffix (normally "o").
17178objext=$ac_objext
17179
17180# Executable file suffix (normally "").
17181exeext=$exeext
17182
17183# whether the shell understands "unset".
17184lt_unset=$lt_unset
17185
17186# turn spaces into newlines.
17187SP2NL=$lt_lt_SP2NL
17188
17189# turn newlines into spaces.
17190NL2SP=$lt_lt_NL2SP
17191
17192# An object symbol dumper.
17193OBJDUMP=$lt_OBJDUMP
17194
17195# Method to check whether dependent libraries are shared objects.
17196deplibs_check_method=$lt_deplibs_check_method
17197
17198# Command to use when deplibs_check_method == "file_magic".
17199file_magic_cmd=$lt_file_magic_cmd
17200
17201# The archiver.
17202AR=$lt_AR
17203AR_FLAGS=$lt_AR_FLAGS
17204
17205# A symbol stripping program.
17206STRIP=$lt_STRIP
17207
17208# Commands used to install an old-style archive.
17209RANLIB=$lt_RANLIB
17210old_postinstall_cmds=$lt_old_postinstall_cmds
17211old_postuninstall_cmds=$lt_old_postuninstall_cmds
17212
17213# Whether to use a lock for old archive extraction.
17214lock_old_archive_extraction=$lock_old_archive_extraction
17215
17216# A C compiler.
17217LTCC=$lt_CC
17218
17219# LTCC compiler flags.
17220LTCFLAGS=$lt_CFLAGS
17221
17222# Take the output of nm and produce a listing of raw symbols and C names.
17223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17224
17225# Transform the output of nm in a proper C declaration.
17226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17227
17228# Transform the output of nm in a C name address pair.
17229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17230
17231# Transform the output of nm in a C name address pair when lib prefix is needed.
17232global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17233
17234# The name of the directory that contains temporary libtool files.
17235objdir=$objdir
17236
17237# Used to examine libraries when file_magic_cmd begins with "file".
17238MAGIC_CMD=$MAGIC_CMD
17239
17240# Must we lock files when doing compilation?
17241need_locks=$lt_need_locks
17242
17243# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17244DSYMUTIL=$lt_DSYMUTIL
17245
17246# Tool to change global to local symbols on Mac OS X.
17247NMEDIT=$lt_NMEDIT
17248
17249# Tool to manipulate fat objects and archives on Mac OS X.
17250LIPO=$lt_LIPO
17251
17252# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17253OTOOL=$lt_OTOOL
17254
17255# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17256OTOOL64=$lt_OTOOL64
17257
17258# Old archive suffix (normally "a").
17259libext=$libext
17260
17261# Shared library suffix (normally ".so").
17262shrext_cmds=$lt_shrext_cmds
17263
17264# The commands to extract the exported symbol list from a shared archive.
17265extract_expsyms_cmds=$lt_extract_expsyms_cmds
17266
17267# Variables whose values should be saved in libtool wrapper scripts and
17268# restored at link time.
17269variables_saved_for_relink=$lt_variables_saved_for_relink
17270
17271# Do we need the "lib" prefix for modules?
17272need_lib_prefix=$need_lib_prefix
17273
17274# Do we need a version for libraries?
17275need_version=$need_version
17276
17277# Library versioning type.
17278version_type=$version_type
17279
17280# Shared library runtime path variable.
17281runpath_var=$runpath_var
17282
17283# Shared library path variable.
17284shlibpath_var=$shlibpath_var
17285
17286# Is shlibpath searched before the hard-coded library search path?
17287shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17288
17289# Format of library name prefix.
17290libname_spec=$lt_libname_spec
17291
17292# List of archive names. First name is the real one, the rest are links.
17293# The last name is the one that the linker finds with -lNAME
17294library_names_spec=$lt_library_names_spec
17295
17296# The coded name of the library, if different from the real name.
17297soname_spec=$lt_soname_spec
17298
17299# Permission mode override for installation of shared libraries.
17300install_override_mode=$lt_install_override_mode
17301
17302# Command to use after installation of a shared archive.
17303postinstall_cmds=$lt_postinstall_cmds
17304
17305# Command to use after uninstallation of a shared archive.
17306postuninstall_cmds=$lt_postuninstall_cmds
17307
17308# Commands used to finish a libtool library installation in a directory.
17309finish_cmds=$lt_finish_cmds
17310
17311# As "finish_cmds", except a single script fragment to be evaled but
17312# not shown.
17313finish_eval=$lt_finish_eval
17314
17315# Whether we should hardcode library paths into libraries.
17316hardcode_into_libs=$hardcode_into_libs
17317
17318# Compile-time system search path for libraries.
17319sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17320
17321# Run-time system search path for libraries.
17322sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17323
17324# Whether dlopen is supported.
17325dlopen_support=$enable_dlopen
17326
17327# Whether dlopen of programs is supported.
17328dlopen_self=$enable_dlopen_self
17329
17330# Whether dlopen of statically linked programs is supported.
17331dlopen_self_static=$enable_dlopen_self_static
17332
17333# Commands to strip libraries.
17334old_striplib=$lt_old_striplib
17335striplib=$lt_striplib
17336
17337
17338# The linker used to build libraries.
17339LD=$lt_LD
17340
17341# How to create reloadable object files.
17342reload_flag=$lt_reload_flag
17343reload_cmds=$lt_reload_cmds
17344
17345# Commands used to build an old-style archive.
17346old_archive_cmds=$lt_old_archive_cmds
17347
17348# A language specific compiler.
17349CC=$lt_compiler
17350
17351# Is the compiler the GNU compiler?
17352with_gcc=$GCC
17353
17354# Compiler flag to turn off builtin functions.
17355no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17356
17357# How to pass a linker flag through the compiler.
17358wl=$lt_lt_prog_compiler_wl
17359
17360# Additional compiler flags for building library objects.
17361pic_flag=$lt_lt_prog_compiler_pic
17362
17363# Compiler flag to prevent dynamic linking.
17364link_static_flag=$lt_lt_prog_compiler_static
17365
17366# Does compiler simultaneously support -c and -o options?
17367compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17368
17369# Whether or not to add -lc for building shared libraries.
17370build_libtool_need_lc=$archive_cmds_need_lc
17371
17372# Whether or not to disallow shared libs when runtime libs are static.
17373allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17374
17375# Compiler flag to allow reflexive dlopens.
17376export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17377
17378# Compiler flag to generate shared objects directly from archives.
17379whole_archive_flag_spec=$lt_whole_archive_flag_spec
17380
17381# Whether the compiler copes with passing no objects directly.
17382compiler_needs_object=$lt_compiler_needs_object
17383
17384# Create an old-style archive from a shared archive.
17385old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17386
17387# Create a temporary old-style archive to link instead of a shared archive.
17388old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17389
17390# Commands used to build a shared archive.
17391archive_cmds=$lt_archive_cmds
17392archive_expsym_cmds=$lt_archive_expsym_cmds
17393
17394# Commands used to build a loadable module if different from building
17395# a shared archive.
17396module_cmds=$lt_module_cmds
17397module_expsym_cmds=$lt_module_expsym_cmds
17398
17399# Whether we are building with GNU ld or not.
17400with_gnu_ld=$lt_with_gnu_ld
17401
17402# Flag that allows shared libraries with undefined symbols to be built.
17403allow_undefined_flag=$lt_allow_undefined_flag
17404
17405# Flag that enforces no undefined symbols.
17406no_undefined_flag=$lt_no_undefined_flag
17407
17408# Flag to hardcode \$libdir into a binary during linking.
17409# This must work even if \$libdir does not exist
17410hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17411
17412# If ld is used when linking, flag to hardcode \$libdir into a binary
17413# during linking. This must work even if \$libdir does not exist.
17414hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17415
17416# Whether we need a single "-rpath" flag with a separated argument.
17417hardcode_libdir_separator=$lt_hardcode_libdir_separator
17418
17419# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17420# DIR into the resulting binary.
17421hardcode_direct=$hardcode_direct
17422
17423# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17424# DIR into the resulting binary and the resulting library dependency is
17425# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17426# library is relocated.
17427hardcode_direct_absolute=$hardcode_direct_absolute
17428
17429# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17430# into the resulting binary.
17431hardcode_minus_L=$hardcode_minus_L
17432
17433# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17434# into the resulting binary.
17435hardcode_shlibpath_var=$hardcode_shlibpath_var
17436
17437# Set to "yes" if building a shared library automatically hardcodes DIR
17438# into the library and all subsequent libraries and executables linked
17439# against it.
17440hardcode_automatic=$hardcode_automatic
17441
17442# Set to yes if linker adds runtime paths of dependent libraries
17443# to runtime path list.
17444inherit_rpath=$inherit_rpath
17445
17446# Whether libtool must link a program against all its dependency libraries.
17447link_all_deplibs=$link_all_deplibs
17448
17449# Fix the shell variable \$srcfile for the compiler.
17450fix_srcfile_path=$lt_fix_srcfile_path
17451
17452# Set to "yes" if exported symbols are required.
17453always_export_symbols=$always_export_symbols
17454
17455# The commands to list exported symbols.
17456export_symbols_cmds=$lt_export_symbols_cmds
17457
17458# Symbols that should not be listed in the preloaded symbols.
17459exclude_expsyms=$lt_exclude_expsyms
17460
17461# Symbols that must always be exported.
17462include_expsyms=$lt_include_expsyms
17463
17464# Commands necessary for linking programs (against libraries) with templates.
17465prelink_cmds=$lt_prelink_cmds
17466
17467# Specify filename containing input files.
17468file_list_spec=$lt_file_list_spec
17469
17470# How to hardcode a shared library path into an executable.
17471hardcode_action=$hardcode_action
17472
17473# The directories searched by this compiler when creating a shared library.
17474compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17475
17476# Dependencies to place before and after the objects being linked to
17477# create a shared library.
17478predep_objects=$lt_predep_objects
17479postdep_objects=$lt_postdep_objects
17480predeps=$lt_predeps
17481postdeps=$lt_postdeps
17482
17483# The library search path used internally by the compiler when linking
17484# a shared library.
17485compiler_lib_search_path=$lt_compiler_lib_search_path
17486
17487# ### END LIBTOOL CONFIG
17488
17489_LT_EOF
17490
17491 case $host_os in
17492 aix3*)
17493 cat <<\_LT_EOF >> "$cfgfile"
17494# AIX sometimes has problems with the GCC collect2 program. For some
17495# reason, if we set the COLLECT_NAMES environment variable, the problems
17496# vanish in a puff of smoke.
17497if test "X${COLLECT_NAMES+set}" != Xset; then
17498 COLLECT_NAMES=
17499 export COLLECT_NAMES
17500fi
17501_LT_EOF
17502 ;;
17503 esac
17504
17505
17506ltmain="$ac_aux_dir/ltmain.sh"
17507
17508
17509 # We use sed instead of cat because bash on DJGPP gets confused if
17510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17511 # text mode, it properly converts lines to CR/LF. This bash problem
17512 # is reportedly fixed, but why not run on old versions too?
17513 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17514 || (rm -f "$cfgfile"; exit 1)
17515
17516 case $xsi_shell in
17517 yes)
17518 cat << \_LT_EOF >> "$cfgfile"
17519
17520# func_dirname file append nondir_replacement
17521# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17522# otherwise set result to NONDIR_REPLACEMENT.
17523func_dirname ()
17524{
17525 case ${1} in
17526 */*) func_dirname_result="${1%/*}${2}" ;;
17527 * ) func_dirname_result="${3}" ;;
17528 esac
17529}
17530
17531# func_basename file
17532func_basename ()
17533{
17534 func_basename_result="${1##*/}"
17535}
17536
17537# func_dirname_and_basename file append nondir_replacement
17538# perform func_basename and func_dirname in a single function
17539# call:
17540# dirname: Compute the dirname of FILE. If nonempty,
17541# add APPEND to the result, otherwise set result
17542# to NONDIR_REPLACEMENT.
17543# value returned in "$func_dirname_result"
17544# basename: Compute filename of FILE.
17545# value retuned in "$func_basename_result"
17546# Implementation must be kept synchronized with func_dirname
17547# and func_basename. For efficiency, we do not delegate to
17548# those functions but instead duplicate the functionality here.
17549func_dirname_and_basename ()
17550{
17551 case ${1} in
17552 */*) func_dirname_result="${1%/*}${2}" ;;
17553 * ) func_dirname_result="${3}" ;;
17554 esac
17555 func_basename_result="${1##*/}"
17556}
17557
17558# func_stripname prefix suffix name
17559# strip PREFIX and SUFFIX off of NAME.
17560# PREFIX and SUFFIX must not contain globbing or regex special
17561# characters, hashes, percent signs, but SUFFIX may contain a leading
17562# dot (in which case that matches only a dot).
17563func_stripname ()
17564{
17565 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17566 # positional parameters, so assign one to ordinary parameter first.
17567 func_stripname_result=${3}
17568 func_stripname_result=${func_stripname_result#"${1}"}
17569 func_stripname_result=${func_stripname_result%"${2}"}
17570}
17571
17572# func_opt_split
17573func_opt_split ()
17574{
17575 func_opt_split_opt=${1%%=*}
17576 func_opt_split_arg=${1#*=}
17577}
17578
17579# func_lo2o object
17580func_lo2o ()
17581{
17582 case ${1} in
17583 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17584 *) func_lo2o_result=${1} ;;
17585 esac
17586}
17587
17588# func_xform libobj-or-source
17589func_xform ()
17590{
17591 func_xform_result=${1%.*}.lo
17592}
17593
17594# func_arith arithmetic-term...
17595func_arith ()
17596{
17597 func_arith_result=$(( $* ))
17598}
17599
17600# func_len string
17601# STRING may not start with a hyphen.
17602func_len ()
17603{
17604 func_len_result=${#1}
17605}
17606
17607_LT_EOF
17608 ;;
17609 *) # Bourne compatible functions.
17610 cat << \_LT_EOF >> "$cfgfile"
17611
17612# func_dirname file append nondir_replacement
17613# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17614# otherwise set result to NONDIR_REPLACEMENT.
17615func_dirname ()
17616{
17617 # Extract subdirectory from the argument.
17618 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17619 if test "X$func_dirname_result" = "X${1}"; then
17620 func_dirname_result="${3}"
17621 else
17622 func_dirname_result="$func_dirname_result${2}"
17623 fi
17624}
17625
17626# func_basename file
17627func_basename ()
17628{
17629 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17630}
17631
17632
17633# func_stripname prefix suffix name
17634# strip PREFIX and SUFFIX off of NAME.
17635# PREFIX and SUFFIX must not contain globbing or regex special
17636# characters, hashes, percent signs, but SUFFIX may contain a leading
17637# dot (in which case that matches only a dot).
17638# func_strip_suffix prefix name
17639func_stripname ()
17640{
17641 case ${2} in
17642 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17643 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17644 esac
17645}
17646
17647# sed scripts:
17648my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17649my_sed_long_arg='1s/^-[^=]*=//'
17650
17651# func_opt_split
17652func_opt_split ()
17653{
17654 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17655 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17656}
17657
17658# func_lo2o object
17659func_lo2o ()
17660{
17661 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17662}
17663
17664# func_xform libobj-or-source
17665func_xform ()
17666{
17667 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17668}
17669
17670# func_arith arithmetic-term...
17671func_arith ()
17672{
17673 func_arith_result=`expr "$@"`
17674}
17675
17676# func_len string
17677# STRING may not start with a hyphen.
17678func_len ()
17679{
17680 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17681}
17682
17683_LT_EOF
17684esac
17685
17686case $lt_shell_append in
17687 yes)
17688 cat << \_LT_EOF >> "$cfgfile"
17689
17690# func_append var value
17691# Append VALUE to the end of shell variable VAR.
17692func_append ()
17693{
17694 eval "$1+=\$2"
17695}
17696_LT_EOF
17697 ;;
17698 *)
17699 cat << \_LT_EOF >> "$cfgfile"
17700
17701# func_append var value
17702# Append VALUE to the end of shell variable VAR.
17703func_append ()
17704{
17705 eval "$1=\$$1\$2"
17706}
17707
17708_LT_EOF
17709 ;;
17710 esac
17711
17712
17713 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17714 || (rm -f "$cfgfile"; exit 1)
17715
17716 mv -f "$cfgfile" "$ofile" ||
17717 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17718 chmod +x "$ofile"
17719
17720
17721 cat <<_LT_EOF >> "$ofile"
17722
17723# ### BEGIN LIBTOOL TAG CONFIG: CXX
17724
17725# The linker used to build libraries.
17726LD=$lt_LD_CXX
17727
17728# How to create reloadable object files.
17729reload_flag=$lt_reload_flag_CXX
17730reload_cmds=$lt_reload_cmds_CXX
17731
17732# Commands used to build an old-style archive.
17733old_archive_cmds=$lt_old_archive_cmds_CXX
17734
17735# A language specific compiler.
17736CC=$lt_compiler_CXX
17737
17738# Is the compiler the GNU compiler?
17739with_gcc=$GCC_CXX
17740
17741# Compiler flag to turn off builtin functions.
17742no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17743
17744# How to pass a linker flag through the compiler.
17745wl=$lt_lt_prog_compiler_wl_CXX
17746
17747# Additional compiler flags for building library objects.
17748pic_flag=$lt_lt_prog_compiler_pic_CXX
17749
17750# Compiler flag to prevent dynamic linking.
17751link_static_flag=$lt_lt_prog_compiler_static_CXX
17752
17753# Does compiler simultaneously support -c and -o options?
17754compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17755
17756# Whether or not to add -lc for building shared libraries.
17757build_libtool_need_lc=$archive_cmds_need_lc_CXX
17758
17759# Whether or not to disallow shared libs when runtime libs are static.
17760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17761
17762# Compiler flag to allow reflexive dlopens.
17763export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17764
17765# Compiler flag to generate shared objects directly from archives.
17766whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17767
17768# Whether the compiler copes with passing no objects directly.
17769compiler_needs_object=$lt_compiler_needs_object_CXX
17770
17771# Create an old-style archive from a shared archive.
17772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17773
17774# Create a temporary old-style archive to link instead of a shared archive.
17775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17776
17777# Commands used to build a shared archive.
17778archive_cmds=$lt_archive_cmds_CXX
17779archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17780
17781# Commands used to build a loadable module if different from building
17782# a shared archive.
17783module_cmds=$lt_module_cmds_CXX
17784module_expsym_cmds=$lt_module_expsym_cmds_CXX
17785
17786# Whether we are building with GNU ld or not.
17787with_gnu_ld=$lt_with_gnu_ld_CXX
17788
17789# Flag that allows shared libraries with undefined symbols to be built.
17790allow_undefined_flag=$lt_allow_undefined_flag_CXX
17791
17792# Flag that enforces no undefined symbols.
17793no_undefined_flag=$lt_no_undefined_flag_CXX
17794
17795# Flag to hardcode \$libdir into a binary during linking.
17796# This must work even if \$libdir does not exist
17797hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17798
17799# If ld is used when linking, flag to hardcode \$libdir into a binary
17800# during linking. This must work even if \$libdir does not exist.
17801hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17802
17803# Whether we need a single "-rpath" flag with a separated argument.
17804hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17805
17806# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17807# DIR into the resulting binary.
17808hardcode_direct=$hardcode_direct_CXX
17809
17810# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17811# DIR into the resulting binary and the resulting library dependency is
17812# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17813# library is relocated.
17814hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17815
17816# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17817# into the resulting binary.
17818hardcode_minus_L=$hardcode_minus_L_CXX
17819
17820# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17821# into the resulting binary.
17822hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17823
17824# Set to "yes" if building a shared library automatically hardcodes DIR
17825# into the library and all subsequent libraries and executables linked
17826# against it.
17827hardcode_automatic=$hardcode_automatic_CXX
17828
17829# Set to yes if linker adds runtime paths of dependent libraries
17830# to runtime path list.
17831inherit_rpath=$inherit_rpath_CXX
17832
17833# Whether libtool must link a program against all its dependency libraries.
17834link_all_deplibs=$link_all_deplibs_CXX
17835
17836# Fix the shell variable \$srcfile for the compiler.
17837fix_srcfile_path=$lt_fix_srcfile_path_CXX
17838
17839# Set to "yes" if exported symbols are required.
17840always_export_symbols=$always_export_symbols_CXX
17841
17842# The commands to list exported symbols.
17843export_symbols_cmds=$lt_export_symbols_cmds_CXX
17844
17845# Symbols that should not be listed in the preloaded symbols.
17846exclude_expsyms=$lt_exclude_expsyms_CXX
17847
17848# Symbols that must always be exported.
17849include_expsyms=$lt_include_expsyms_CXX
17850
17851# Commands necessary for linking programs (against libraries) with templates.
17852prelink_cmds=$lt_prelink_cmds_CXX
17853
17854# Specify filename containing input files.
17855file_list_spec=$lt_file_list_spec_CXX
17856
17857# How to hardcode a shared library path into an executable.
17858hardcode_action=$hardcode_action_CXX
17859
17860# The directories searched by this compiler when creating a shared library.
17861compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17862
17863# Dependencies to place before and after the objects being linked to
17864# create a shared library.
17865predep_objects=$lt_predep_objects_CXX
17866postdep_objects=$lt_postdep_objects_CXX
17867predeps=$lt_predeps_CXX
17868postdeps=$lt_postdeps_CXX
17869
17870# The library search path used internally by the compiler when linking
17871# a shared library.
17872compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17873
17874# ### END LIBTOOL TAG CONFIG: CXX
17875_LT_EOF
17876
17877 ;;
17878
17879 esac
17880done # for ac_tag
17881
17882
17883as_fn_exit 0
17884_ACEOF
17885ac_clean_files=$ac_clean_files_save
17886
17887test $ac_write_fail = 0 ||
22e05272 17888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ddc8de03
PM
17889
17890
17891# configure is writing to config.log, and then calls config.status.
17892# config.status does its own redirection, appending to config.log.
17893# Unfortunately, on DOS this fails, as config.log is still kept open
17894# by configure, so config.status won't be able to write to it; its
17895# output is simply discarded. So we exec the FD to /dev/null,
17896# effectively closing config.log, so it can be properly (re)opened and
17897# appended to by config.status. When coming back to configure, we
17898# need to make the FD available again.
17899if test "$no_create" != yes; then
17900 ac_cs_success=:
17901 ac_config_status_args=
17902 test "$silent" = yes &&
17903 ac_config_status_args="$ac_config_status_args --quiet"
17904 exec 5>/dev/null
17905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17906 exec 5>>config.log
17907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17908 # would make configure fail if this is the last instruction.
22e05272 17909 $ac_cs_success || as_fn_exit 1
ddc8de03
PM
17910fi
17911if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17913$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17914fi
17915