]> git.saurik.com Git - cycript.git/blame - configure
Avoid error caused by passing -pthread to libtool.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30 13#
f95d2598 14# Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
66170b30 643CY_MACH
7eda51e0 644CY_ATTACH_GROUP
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
3615a2f7 653LTLIBGCC
6f9aea2b
JF
654LTLIBTERMCAP
655LTLIBREADLINE
a243b558
JF
656CY_OBJECTIVEC_FALSE
657CY_OBJECTIVEC_TRUE
39ed1631
JF
658CY_JAVA_FALSE
659CY_JAVA_TRUE
babf7fe8 660LTOBJECTIVEC
47aaa820 661GNUSTEP_CONFIG
c823f118 662CY_OBJECTIVEC
39ed1631
JF
663LTJAVA
664CY_JAVA
296ee9a6 665LTLIBFFI
309b0535 666LIBFFI_LIBS
35fa52c0 667LIBFFI_CFLAGS
a243b558
JF
668CY_EXECUTE_FALSE
669CY_EXECUTE_TRUE
a93f15c0
JF
670CY_CONSOLE_FALSE
671CY_CONSOLE_TRUE
babf7fe8 672LTJAVASCRIPTCORE
35fa52c0
DWT
673WEBKIT_LIBS
674WEBKIT_CFLAGS
7eda51e0 675CY_EXECUTE
abc804fa 676CY_ARCH
be2fde87
JF
677PTHREAD_CFLAGS
678PTHREAD_LIBS
679PTHREAD_CC
680ax_pthread_config
e9c9a47c 681GNUTAR
e9c9a47c
DWT
682GPERF
683FLEX
684BISON
685TIME
66170b30 686GIT
12833ad8
JF
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
3fd51f51 689PKG_CONFIG
1771224f 690HAVE_CXX11
a243b558 691CXXCPP
9c60689e 692CPP
9d54db95 693LT_SYS_LIBRARY_PATH
9c60689e
DWT
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
ee134472 699MANIFEST_TOOL
9c60689e 700RANLIB
ee134472 701DLLTOOL
9c60689e
DWT
702OBJDUMP
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
a243b558
JF
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720LIBTOOL
a243b558
JF
721ac_ct_AR
722AR
723am__fastdepOBJCXX_FALSE
724am__fastdepOBJCXX_TRUE
725OBJCXXDEPMODE
726ac_ct_OBJCXX
727OBJCXXFLAGS
728OBJCXX
729am__fastdepCXX_FALSE
730am__fastdepCXX_TRUE
731CXXDEPMODE
a93f15c0
JF
732ac_ct_CXX
733CXXFLAGS
734CXX
735am__fastdepCC_FALSE
736am__fastdepCC_TRUE
737CCDEPMODE
66170b30
JF
738am__nodep
739AMDEPBACKSLASH
740AMDEP_FALSE
741AMDEP_TRUE
742am__quote
743am__include
744DEPDIR
35fa52c0
DWT
745OBJEXT
746EXEEXT
a93f15c0 747ac_ct_CC
35fa52c0
DWT
748CPPFLAGS
749LDFLAGS
a93f15c0
JF
750CFLAGS
751CC
babf7fe8
JF
752MAINT
753MAINTAINER_MODE_FALSE
754MAINTAINER_MODE_TRUE
66170b30
JF
755AM_BACKSLASH
756AM_DEFAULT_VERBOSITY
757AM_DEFAULT_V
758AM_V
759am__untar
760am__tar
761AMTAR
762am__leading_dot
763SET_MAKE
764AWK
765mkdir_p
766MKDIR_P
767INSTALL_STRIP_PROGRAM
768STRIP
769install_sh
770MAKEINFO
771AUTOHEADER
772AUTOMAKE
773AUTOCONF
774ACLOCAL
775VERSION
776PACKAGE
777CYGPATH_W
778am__isrc
779INSTALL_DATA
780INSTALL_SCRIPT
781INSTALL_PROGRAM
dbadc56a 782target_alias
c7aa54aa
DWT
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL'
820ac_subst_files=''
821ac_user_opts='
822enable_option_checking
66170b30 823enable_silent_rules
babf7fe8 824enable_maintainer_mode
a243b558 825enable_dependency_tracking
9c60689e 826enable_static
549f29b5 827enable_shared
9c60689e
DWT
828with_pic
829enable_fast_install
9d54db95 830with_aix_soname
35fa52c0 831with_gnu_ld
ee134472 832with_sysroot
9c60689e 833enable_libtool_lock
5053a6d1 834enable_javascript
a93f15c0 835enable_console
c7aa54aa
DWT
836'
837 ac_precious_vars='build_alias
838host_alias
dbadc56a 839target_alias
a93f15c0
JF
840CC
841CFLAGS
dbadc56a
DWT
842LDFLAGS
843LIBS
844CPPFLAGS
a93f15c0
JF
845CXX
846CXXFLAGS
a243b558
JF
847CCC
848OBJCXX
849OBJCXXFLAGS
9d54db95 850LT_SYS_LIBRARY_PATH
9c60689e 851CPP
a243b558 852CXXCPP
3fd51f51 853PKG_CONFIG
12833ad8
JF
854PKG_CONFIG_PATH
855PKG_CONFIG_LIBDIR
e9c9a47c
DWT
856BISON
857FLEX
858GPERF
66170b30 859GNUTAR
35fa52c0
DWT
860WEBKIT_CFLAGS
861WEBKIT_LIBS
a667869d 862LIBFFI_CFLAGS
790e5246
DWT
863LIBFFI_LIBS
864GNUSTEP_CONFIG'
c7aa54aa
DWT
865
866
867# Initialize some variables set by options.
868ac_init_help=
869ac_init_version=false
870ac_unrecognized_opts=
871ac_unrecognized_sep=
872# The variables have the same names as the options, with
873# dashes changed to underlines.
874cache_file=/dev/null
875exec_prefix=NONE
876no_create=
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
885verbose=
886x_includes=NONE
887x_libraries=NONE
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
894# (The list follows the same order as the GNU Coding Standards.)
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
914
915ac_prev=
916ac_dashdash=
917for ac_option
918do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
12833ad8
JF
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
c7aa54aa
DWT
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 974 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1000 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005"enable_$ac_useropt"
1006"*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1204 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1220 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
12833ad8
JF
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251Try \`$0 --help' for more information"
c7aa54aa
DWT
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1277 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1278fi
1279
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
12833ad8 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286fi
1287
1288# Check all directory arguments for consistency.
1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
12833ad8 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
c7aa54aa
DWT
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323fi
1324
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
1329
1330
1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1334 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1336 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1337
1338
1339# Find the source files, if location was not specified.
1340if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348$as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370else
1371 ac_srcdir_defaulted=no
1372fi
1373if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1376fi
1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
12833ad8 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1380 pwd)`
1381# When building in place, set srcdir=.
1382if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384fi
1385# Remove unnecessary trailing slashes from srcdir.
1386# Double slashes in file names in object file debugging info
1387# mess up M-x gdb in Emacs.
1388case $srcdir in
1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390esac
1391for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396done
1397
1398#
1399# Report the --help message.
1400#
1401if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1406
1407Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412Defaults for the options are specified in brackets.
1413
1414Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
12833ad8 1419 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431By default, \`make install' will install all the files in
1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434for instance \`--prefix=\$HOME'.
1435
1436For better control, use the options below.
1437
1438Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458_ACEOF
1459
1460 cat <<\_ACEOF
35fa52c0 1461
66170b30
JF
1462Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
35fa52c0
DWT
1467System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of Cycript 0.9:";;
1476 esac
1477 cat <<\_ACEOF
1478
35fa52c0
DWT
1479Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
66170b30
JF
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
a243b558
JF
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
9c60689e 1496 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1497 --enable-javascript[=ENGINE]
790e5246 1498 use a JavaScript runtime (currently the only
b66977f1
DWT
1499 available option for ENGINE is JavaScriptCore)
1500 [default=yes]
a93f15c0 1501 --disable-console disable console
35fa52c0
DWT
1502
1503Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1506 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1507 both]
9d54db95
JF
1508 --with-aix-soname=aix|svr4|both
1509 shared library versioning (aka "SONAME") variant to
1510 provide on AIX, [default=aix].
9c60689e 1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1512 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1513 compiler's sysroot if not specified).
35fa52c0 1514
dbadc56a 1515Some influential environment variables:
a93f15c0
JF
1516 CC C compiler command
1517 CFLAGS C compiler flags
dbadc56a
DWT
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1522 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
a243b558
JF
1525 OBJCXX Objective C++ compiler command
1526 OBJCXXFLAGS Objective C++ compiler flags
9d54db95
JF
1527 LT_SYS_LIBRARY_PATH
1528 User-defined run-time library search path.
9c60689e 1529 CPP C preprocessor
a243b558 1530 CXXCPP C++ preprocessor
3fd51f51 1531 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1532 PKG_CONFIG_PATH
1533 directories to add to pkg-config's search path
1534 PKG_CONFIG_LIBDIR
1535 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1536 BISON GNU Project parser generator (yacc replacement)
1537 FLEX the fast lexical analyser generator
1538 GPERF perfect hash function generator
66170b30 1539 GNUTAR a very sticky lump of files
35fa52c0
DWT
1540 WEBKIT_CFLAGS
1541 C compiler flags for WEBKIT, overriding pkg-config
1542 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1543 GNUSTEP_CONFIG
1544 prints information about the current gnustep installation
dbadc56a
DWT
1545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
c7aa54aa
DWT
1549Report bugs to <saurik@saurik.com>.
1550Cycript home page: <http://www.cycript.org/>.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
1578
1579case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592esac
1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608fi
1609
1610test -n "$ac_init_help" && exit $ac_status
1611if $ac_init_version; then
1612 cat <<\_ACEOF
1613Cycript configure 0.9
53ba6704 1614generated by GNU Autoconf 2.69
c7aa54aa 1615
53ba6704 1616Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1617This configure script is free software; the Free Software Foundation
1618gives unlimited permission to copy, distribute and modify it.
66170b30 1619
f95d2598 1620Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
1621_ACEOF
1622 exit
1623fi
1624
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
dbadc56a 1628
a93f15c0
JF
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
a243b558 1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1632ac_fn_c_try_compile ()
a243b558
JF
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
a93f15c0 1652 test -z "$ac_c_werror_flag" ||
a243b558
JF
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
a93f15c0 1665} # ac_fn_c_try_compile
a243b558 1666
a93f15c0
JF
1667# ac_fn_cxx_try_compile LINENO
1668# ----------------------------
a243b558 1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1670ac_fn_cxx_try_compile ()
a243b558
JF
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
a93f15c0 1690 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
a93f15c0 1703} # ac_fn_cxx_try_compile
a243b558 1704
a93f15c0
JF
1705# ac_fn_objcxx_try_compile LINENO
1706# -------------------------------
35fa52c0 1707# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1708ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
a93f15c0 1728 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737fi
ee134472 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1739 as_fn_set_status $ac_retval
35fa52c0 1740
a93f15c0 1741} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1742
1743# ac_fn_c_try_link LINENO
1744# -----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_link ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
53ba6704 1770 test -x conftest$ac_exeext
35fa52c0
DWT
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1785 as_fn_set_status $ac_retval
35fa52c0
DWT
1786
1787} # ac_fn_c_try_link
1788
9c60689e
DWT
1789# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790# -------------------------------------------------------
1791# Tests whether HEADER exists and can be compiled using the include files in
1792# INCLUDES, setting the cache variable VAR accordingly.
1793ac_fn_c_check_header_compile ()
dbadc56a
DWT
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
ee134472 1798if eval \${$3+:} false; then :
9c60689e
DWT
1799 $as_echo_n "(cached) " >&6
1800else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803$4
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807 eval "$3=yes"
1808else
1809 eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812fi
1813eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
ee134472 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1817
1818} # ac_fn_c_check_header_compile
1819
1820# ac_fn_c_try_cpp LINENO
1821# ----------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_c_try_cpp ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
9c60689e 1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1841 test $ac_status = 0; } > conftest.i && {
9c60689e 1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1843 test ! -s conftest.err
9c60689e 1844 }; then :
dbadc56a
DWT
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
9c60689e 1850 ac_retval=1
dbadc56a 1851fi
ee134472 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1853 as_fn_set_status $ac_retval
dbadc56a 1854
9c60689e 1855} # ac_fn_c_try_cpp
35fa52c0
DWT
1856
1857# ac_fn_c_try_run LINENO
1858# ----------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860# that executables *can* be run.
1861ac_fn_c_try_run ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1895 as_fn_set_status $ac_retval
35fa52c0
DWT
1896
1897} # ac_fn_c_try_run
6b66678a 1898
9c60689e
DWT
1899# ac_fn_c_check_func LINENO FUNC VAR
1900# ----------------------------------
1901# Tests whether FUNC exists, setting the cache variable VAR accordingly
1902ac_fn_c_check_func ()
6b66678a
DWT
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
ee134472 1907if eval \${$3+:} false; then :
9c60689e 1908 $as_echo_n "(cached) " >&6
6b66678a 1909else
9c60689e
DWT
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1914#define $2 innocuous_$2
6b66678a 1915
9c60689e
DWT
1916/* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $2 (); below.
1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919 <limits.h> exists even on freestanding compilers. */
1920
1921#ifdef __STDC__
1922# include <limits.h>
1923#else
1924# include <assert.h>
1925#endif
1926
1927#undef $2
1928
1929/* Override any GCC internal prototype to avoid an error.
1930 Use char because int might match the return type of a GCC
1931 builtin and then its argument prototype would still apply. */
1932#ifdef __cplusplus
1933extern "C"
1934#endif
1935char $2 ();
1936/* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939#if defined __stub_$2 || defined __stub___$2
1940choke me
1941#endif
1942
1943int
1944main ()
1945{
1946return $2 ();
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_link "$LINENO"; then :
1952 eval "$3=yes"
1953else
1954 eval "$3=no"
1955fi
1956rm -f core conftest.err conftest.$ac_objext \
1957 conftest$ac_exeext conftest.$ac_ext
6b66678a 1958fi
9c60689e
DWT
1959eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
ee134472 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1963
9c60689e 1964} # ac_fn_c_check_func
6b66678a 1965
9c60689e
DWT
1966# ac_fn_cxx_try_cpp LINENO
1967# ------------------------
1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969ac_fn_cxx_try_cpp ()
1970{
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1973case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1985 fi
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1987 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1989 test ! -s conftest.err
1990 }; then :
1991 ac_retval=0
1992else
1993 $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=1
1997fi
ee134472 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1999 as_fn_set_status $ac_retval
2000
2001} # ac_fn_cxx_try_cpp
2002
2003# ac_fn_cxx_try_link LINENO
2004# -------------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_cxx_try_link ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2023 fi
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
53ba6704 2030 test -x conftest$ac_exeext
9c60689e
DWT
2031 }; then :
2032 ac_retval=0
2033else
2034 $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038fi
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2045 as_fn_set_status $ac_retval
2046
2047} # ac_fn_cxx_try_link
2048
47aaa820
DWT
2049# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2050# ---------------------------------------------------------
2051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2052# the include files in INCLUDES and setting the cache variable VAR
2053# accordingly.
2054ac_fn_cxx_check_header_mongrel ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2057 if eval \${$3+:} false; then :
47aaa820
DWT
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
ee134472 2060if eval \${$3+:} false; then :
47aaa820
DWT
2061 $as_echo_n "(cached) " >&6
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066else
2067 # Is the header compilable?
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2069$as_echo_n "checking $2 usability... " >&6; }
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073#include <$2>
2074_ACEOF
2075if ac_fn_cxx_try_compile "$LINENO"; then :
2076 ac_header_compiler=yes
2077else
2078 ac_header_compiler=no
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2082$as_echo "$ac_header_compiler" >&6; }
2083
2084# Is the header present?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2086$as_echo_n "checking $2 presence... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089#include <$2>
2090_ACEOF
2091if ac_fn_cxx_try_cpp "$LINENO"; then :
2092 ac_header_preproc=yes
2093else
2094 ac_header_preproc=no
2095fi
12833ad8 2096rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2098$as_echo "$ac_header_preproc" >&6; }
2099
2100# So? What about this header?
2101case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2102 yes:no: )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107 ;;
2108 no:yes:* )
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2112$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2116$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2119( $as_echo "## -------------------------------- ##
47aaa820 2120## Report this to saurik@saurik.com ##
12833ad8 2121## -------------------------------- ##"
47aaa820
DWT
2122 ) | sed "s/^/$as_me: WARNING: /" >&2
2123 ;;
2124esac
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
ee134472 2127if eval \${$3+:} false; then :
47aaa820
DWT
2128 $as_echo_n "(cached) " >&6
2129else
2130 eval "$3=\$ac_header_compiler"
2131fi
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135fi
ee134472 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2137
2138} # ac_fn_cxx_check_header_mongrel
2139
c823f118
DWT
2140# ac_fn_objcxx_try_link LINENO
2141# ----------------------------
2142# Try to link conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_objcxx_try_link ()
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext conftest$ac_exeext
2147 if { { ac_try="$ac_link"
2148case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151esac
2152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153$as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_link") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2160 fi
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_objcxx_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest$ac_exeext && {
2166 test "$cross_compiling" = yes ||
53ba6704 2167 test -x conftest$ac_exeext
c823f118
DWT
2168 }; then :
2169 ac_retval=0
2170else
2171 $as_echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174 ac_retval=1
2175fi
2176 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2177 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2178 # interfere with the next link command; also delete a directory that is
2179 # left behind by Apple's compiler. We do this before executing the actions.
2180 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2182 as_fn_set_status $ac_retval
2183
2184} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2185cat >config.log <<_ACEOF
2186This file contains any messages produced by compilers while
2187running configure, to aid debugging if configure makes a mistake.
2188
2189It was created by Cycript $as_me 0.9, which was
53ba6704 2190generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2191
2192 $ $0 $@
2193
2194_ACEOF
2195exec 5>>config.log
2196{
2197cat <<_ASUNAME
2198## --------- ##
2199## Platform. ##
2200## --------- ##
2201
2202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210
2211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218
2219_ASUNAME
2220
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228IFS=$as_save_IFS
2229
2230} >&5
2231
2232cat >&5 <<_ACEOF
2233
2234
2235## ----------- ##
2236## Core tests. ##
2237## ----------- ##
2238
2239_ACEOF
2240
2241
2242# Keep a trace of the command line.
2243# Strip out --no-create and --no-recursion so they do not pile up.
2244# Strip out --silent because we don't want to record it for future runs.
2245# Also quote any args containing shell meta-characters.
2246# Make two passes to allow for proper duplicate-argument suppression.
2247ac_configure_args=
2248ac_configure_args0=
2249ac_configure_args1=
2250ac_must_keep_next=false
2251for ac_pass in 1 2
2252do
2253 for ac_arg
2254 do
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 2)
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2278 ;;
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2281 fi
2282 as_fn_append ac_configure_args " '$ac_arg'"
2283 ;;
2284 esac
2285 done
2286done
2287{ ac_configure_args0=; unset ac_configure_args0;}
2288{ ac_configure_args1=; unset ac_configure_args1;}
2289
2290# When interrupted or exit'd, cleanup temporary files, and complete
2291# config.log. We remove comments because anyway the quotes in there
2292# would cause problems or look ugly.
2293# WARNING: Use '\'' to represent an apostrophe within the trap.
2294# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
12833ad8 2300 $as_echo "## ---------------- ##
c7aa54aa 2301## Cache variables. ##
12833ad8 2302## ---------------- ##"
c7aa54aa
DWT
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305(
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333)
2334 echo
2335
12833ad8 2336 $as_echo "## ----------------- ##
c7aa54aa 2337## Output variables. ##
12833ad8 2338## ----------------- ##"
c7aa54aa
DWT
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
12833ad8 2351 $as_echo "## ------------------- ##
c7aa54aa 2352## File substitutions. ##
12833ad8 2353## ------------------- ##"
c7aa54aa
DWT
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
12833ad8 2367 $as_echo "## ----------- ##
c7aa54aa 2368## confdefs.h. ##
12833ad8 2369## ----------- ##"
c7aa54aa
DWT
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381' 0
2382for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384done
2385ac_signal=0
2386
2387# confdefs.h avoids OS command line length limits that DEFS can exceed.
2388rm -f -r conftest* confdefs.h
2389
2390$as_echo "/* confdefs.h */" > confdefs.h
2391
2392# Predefined preprocessor variables.
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_NAME "$PACKAGE_NAME"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_VERSION "$PACKAGE_VERSION"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_STRING "$PACKAGE_STRING"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_URL "$PACKAGE_URL"
2416_ACEOF
2417
2418
2419# Let the site file select an alternate cache file if it wants to.
2420# Prefer an explicitly selected file to automatically selected ones.
2421ac_site_file1=NONE
2422ac_site_file2=NONE
2423if test -n "$CONFIG_SITE"; then
12833ad8
JF
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
c7aa54aa
DWT
2430elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2436fi
2437for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438do
2439 test "x$ac_site_file" = xNONE && continue
9c60689e 2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447as_fn_error $? "failed to load site script $ac_site_file
ee134472 2448See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2449 fi
2450done
2451
2452if test -r "$cache_file"; then
9c60689e
DWT
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457$as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2462 fi
2463else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465$as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2467fi
2468
2469# Check that the precious variables saved in the cache have kept the same
2470# value.
2471ac_cache_corrupted=false
2472for ac_var in $ac_precious_vars; do
2473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2474 eval ac_new_set=\$ac_env_${ac_var}_set
2475 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2476 eval ac_new_val=\$ac_env_${ac_var}_value
2477 case $ac_old_set,$ac_new_set in
2478 set,)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2480$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,set)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2484$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,);;
2487 *)
2488 if test "x$ac_old_val" != "x$ac_new_val"; then
2489 # differences in whitespace do not lead to failure.
2490 ac_old_val_w=`echo x $ac_old_val`
2491 ac_new_val_w=`echo x $ac_new_val`
2492 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2494$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2495 ac_cache_corrupted=:
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2498$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2499 eval $ac_var=\$ac_old_val
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2502$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2504$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2505 fi;;
2506 esac
2507 # Pass precious variables to config.status.
2508 if test "$ac_new_set" = set; then
2509 case $ac_new_val in
2510 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2511 *) ac_arg=$ac_var=$ac_new_val ;;
2512 esac
2513 case " $ac_configure_args " in
2514 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2515 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2516 esac
2517 fi
2518done
2519if $ac_cache_corrupted; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2523$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2524 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2525fi
2526## -------------------- ##
2527## Main body of script. ##
2528## -------------------- ##
2529
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
66170b30
JF
2537
2538
35fa52c0 2539
6b66678a
DWT
2540ac_aux_dir=
2541for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2542 if test -f "$ac_dir/install-sh"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/install-sh -c"
2545 break
2546 elif test -f "$ac_dir/install.sh"; then
2547 ac_aux_dir=$ac_dir
2548 ac_install_sh="$ac_aux_dir/install.sh -c"
2549 break
2550 elif test -f "$ac_dir/shtool"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/shtool install -c"
2553 break
2554 fi
6b66678a
DWT
2555done
2556if test -z "$ac_aux_dir"; then
12833ad8 2557 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2558fi
2559
2560# These three variables are undocumented and unsupported,
2561# and are intended to be withdrawn in a future Autoconf release.
2562# They can cause serious problems if a builder's source tree is in a directory
2563# whose full name contains unusual characters.
2564ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2565ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2566ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2567
2568
9c60689e 2569
296ee9a6
JF
2570ac_config_headers="$ac_config_headers config.h"
2571
9c60689e 2572
a93f15c0 2573am__api_version='1.14'
9c60689e 2574
66170b30
JF
2575# Find a good install program. We prefer a C program (faster),
2576# so one script is as good as another. But avoid the broken or
2577# incompatible versions:
2578# SysV /etc/install, /usr/sbin/install
2579# SunOS /usr/etc/install
2580# IRIX /sbin/install
2581# AIX /bin/install
2582# AmigaOS /C/install, which installs bootblocks on floppy discs
2583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2586# OS/2's system install, which has a completely different semantic
2587# ./install, which can be erroneously created by make from ./install.sh.
2588# Reject install programs that cannot install multiple files.
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590$as_echo_n "checking for a BSD-compatible install... " >&6; }
2591if test -z "$INSTALL"; then
2592if ${ac_cv_path_install+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 # Account for people who put trailing slashes in PATH elements.
2601case $as_dir/ in #((
2602 ./ | .// | /[cC]/* | \
2603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2604 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605 /usr/ucb/* ) ;;
2606 *)
2607 # OSF1 and SCO ODT 3.0 have their own names for install.
2608 # Don't use installbsd from OSF since it installs stuff as root
2609 # by default.
2610 for ac_prog in ginstall scoinst install; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2613 if test $ac_prog = install &&
2614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615 # AIX install. It has an incompatible calling convention.
2616 :
2617 elif test $ac_prog = install &&
2618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619 # program-specific install script used by HP pwplus--don't use.
2620 :
2621 else
2622 rm -rf conftest.one conftest.two conftest.dir
2623 echo one > conftest.one
2624 echo two > conftest.two
2625 mkdir conftest.dir
2626 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627 test -s conftest.one && test -s conftest.two &&
2628 test -s conftest.dir/conftest.one &&
2629 test -s conftest.dir/conftest.two
2630 then
2631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632 break 3
2633 fi
2634 fi
2635 fi
2636 done
2637 done
2638 ;;
2639esac
9c60689e 2640
66170b30
JF
2641 done
2642IFS=$as_save_IFS
9c60689e 2643
66170b30 2644rm -rf conftest.one conftest.two conftest.dir
9c60689e 2645
66170b30
JF
2646fi
2647 if test "${ac_cv_path_install+set}" = set; then
2648 INSTALL=$ac_cv_path_install
2649 else
2650 # As a last resort, use the slow shell script. Don't cache a
2651 # value for INSTALL within a source directory, because that will
2652 # break other packages using the cache if that directory is
2653 # removed, or if the value is a relative name.
2654 INSTALL=$ac_install_sh
2655 fi
2656fi
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658$as_echo "$INSTALL" >&6; }
9c60689e 2659
66170b30
JF
2660# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661# It thinks the first close brace ends the variable substitution.
2662test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2663
66170b30 2664test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2665
66170b30 2666test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2667
66170b30
JF
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2669$as_echo_n "checking whether build environment is sane... " >&6; }
2670# Reject unsafe characters in $srcdir or the absolute working directory
2671# name. Accept space and tab only in the latter.
2672am_lf='
2673'
2674case `pwd` in
2675 *[\\\"\#\$\&\'\`$am_lf]*)
2676 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2677esac
2678case $srcdir in
2679 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2680 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2681esac
9c60689e 2682
66170b30
JF
2683# Do 'set' in a subshell so we don't clobber the current shell's
2684# arguments. Must try -L first in case configure is actually a
2685# symlink; some systems play weird games with the mod time of symlinks
2686# (eg FreeBSD returns the mod time of the symlink's containing
2687# directory).
2688if (
2689 am_has_slept=no
2690 for am_try in 1 2; do
2691 echo "timestamp, slept: $am_has_slept" > conftest.file
2692 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2693 if test "$*" = "X"; then
2694 # -L didn't work.
2695 set X `ls -t "$srcdir/configure" conftest.file`
2696 fi
2697 if test "$*" != "X $srcdir/configure conftest.file" \
2698 && test "$*" != "X conftest.file $srcdir/configure"; then
2699
2700 # If neither matched, then we have a broken ls. This can happen
2701 # if, for instance, CONFIG_SHELL is bash and it inherits a
2702 # broken ls alias from the environment. This has actually
2703 # happened. Such a system could not be considered "sane".
2704 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2705 alias in your environment" "$LINENO" 5
2706 fi
2707 if test "$2" = conftest.file || test $am_try -eq 2; then
2708 break
2709 fi
2710 # Just in case.
2711 sleep 1
2712 am_has_slept=yes
2713 done
2714 test "$2" = conftest.file
2715 )
2716then
2717 # Ok.
2718 :
2719else
2720 as_fn_error $? "newly created file is older than distributed files!
2721Check your system clock" "$LINENO" 5
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724$as_echo "yes" >&6; }
2725# If we didn't sleep, we still need to ensure time stamps of config.status and
2726# generated files are strictly newer.
2727am_sleep_pid=
2728if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2729 ( sleep 1 ) &
2730 am_sleep_pid=$!
2731fi
2732
2733rm -f conftest.file
2734
2735test "$program_prefix" != NONE &&
2736 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2737# Use a double $ so make ignores it.
2738test "$program_suffix" != NONE &&
2739 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2740# Double any \ or $.
2741# By default was `s,x,x', remove it if useless.
2742ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2743program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2744
2745# expand $ac_aux_dir to an absolute path
2746am_aux_dir=`cd $ac_aux_dir && pwd`
2747
2748if test x"${MISSING+set}" != xset; then
2749 case $am_aux_dir in
2750 *\ * | *\ *)
2751 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2752 *)
2753 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754 esac
2755fi
2756# Use eval to expand $SHELL
2757if eval "$MISSING --is-lightweight"; then
2758 am_missing_run="$MISSING "
2759else
2760 am_missing_run=
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2762$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763fi
9c60689e 2764
66170b30
JF
2765if test x"${install_sh}" != xset; then
2766 case $am_aux_dir in
2767 *\ * | *\ *)
2768 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2769 *)
2770 install_sh="\${SHELL} $am_aux_dir/install-sh"
2771 esac
2772fi
9c60689e 2773
66170b30
JF
2774# Installed binaries are usually stripped using 'strip' when the user
2775# run "make install-strip". However 'strip' might not be the right
2776# tool to use in cross-compilation environments, therefore Automake
2777# will honor the 'STRIP' environment variable to overrule this program.
2778if test "$cross_compiling" != no; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}strip; ac_word=$2
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if ${ac_cv_prog_STRIP+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786else
2787 if test -n "$STRIP"; then
2788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802 done
2803IFS=$as_save_IFS
9c60689e 2804
66170b30
JF
2805fi
2806fi
2807STRIP=$ac_cv_prog_STRIP
2808if test -n "$STRIP"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2810$as_echo "$STRIP" >&6; }
2811else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
9c60689e 2815
9c60689e 2816
66170b30
JF
2817fi
2818if test -z "$ac_cv_prog_STRIP"; then
2819 ac_ct_STRIP=$STRIP
2820 # Extract the first word of "strip", so it can be a program name with args.
2821set dummy strip; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2825 $as_echo_n "(cached) " >&6
2826else
66170b30
JF
2827 if test -n "$ac_ct_STRIP"; then
2828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_ac_ct_STRIP="strip"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842 done
2843IFS=$as_save_IFS
9c60689e
DWT
2844
2845fi
66170b30
JF
2846fi
2847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2848if test -n "$ac_ct_STRIP"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2850$as_echo "$ac_ct_STRIP" >&6; }
2851else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856 if test "x$ac_ct_STRIP" = x; then
2857 STRIP=":"
2858 else
2859 case $cross_compiling:$ac_tool_warned in
2860yes:)
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863ac_tool_warned=yes ;;
9c60689e 2864esac
66170b30
JF
2865 STRIP=$ac_ct_STRIP
2866 fi
2867else
2868 STRIP="$ac_cv_prog_STRIP"
2869fi
9c60689e 2870
66170b30
JF
2871fi
2872INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2873
66170b30
JF
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2875$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2876if test -z "$MKDIR_P"; then
2877 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2878 $as_echo_n "(cached) " >&6
2879else
66170b30
JF
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_prog in mkdir gmkdir; do
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2888 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2889 'mkdir (GNU coreutils) '* | \
2890 'mkdir (coreutils) '* | \
2891 'mkdir (fileutils) '4.1*)
2892 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2893 break 3;;
2894 esac
2895 done
2896 done
2897 done
2898IFS=$as_save_IFS
2899
2900fi
2901
2902 test -d ./--version && rmdir ./--version
2903 if test "${ac_cv_path_mkdir+set}" = set; then
2904 MKDIR_P="$ac_cv_path_mkdir -p"
2905 else
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for MKDIR_P within a source directory, because that will
2908 # break other packages using the cache if that directory is
2909 # removed, or if the value is a relative name.
2910 MKDIR_P="$ac_install_sh -d"
2911 fi
2912fi
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2914$as_echo "$MKDIR_P" >&6; }
2915
2916for ac_prog in gawk mawk nawk awk
2917do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_AWK+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924else
2925 if test -n "$AWK"; then
2926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_AWK="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939done
2940 done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945AWK=$ac_cv_prog_AWK
2946if test -n "$AWK"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2948$as_echo "$AWK" >&6; }
2949else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955 test -n "$AWK" && break
2956done
2957
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2959$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2960set x ${MAKE-make}
2961ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2962if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964else
2965 cat >conftest.make <<\_ACEOF
2966SHELL = /bin/sh
2967all:
2968 @echo '@@@%%%=$(MAKE)=@@@%%%'
2969_ACEOF
2970# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2971case `${MAKE-make} -f conftest.make 2>/dev/null` in
2972 *@@@%%%=?*=@@@%%%*)
2973 eval ac_cv_prog_make_${ac_make}_set=yes;;
2974 *)
2975 eval ac_cv_prog_make_${ac_make}_set=no;;
2976esac
2977rm -f conftest.make
2978fi
2979if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981$as_echo "yes" >&6; }
2982 SET_MAKE=
2983else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986 SET_MAKE="MAKE=${MAKE-make}"
2987fi
2988
2989rm -rf .tst 2>/dev/null
2990mkdir .tst 2>/dev/null
2991if test -d .tst; then
2992 am__leading_dot=.
2993else
2994 am__leading_dot=_
2995fi
2996rmdir .tst 2>/dev/null
2997
2998# Check whether --enable-silent-rules was given.
2999if test "${enable_silent_rules+set}" = set; then :
3000 enableval=$enable_silent_rules;
3001fi
3002
3003case $enable_silent_rules in # (((
3004 yes) AM_DEFAULT_VERBOSITY=0;;
3005 no) AM_DEFAULT_VERBOSITY=1;;
3006 *) AM_DEFAULT_VERBOSITY=1;;
3007esac
3008am_make=${MAKE-make}
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3010$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3011if ${am_cv_make_support_nested_variables+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 if $as_echo 'TRUE=$(BAR$(V))
3015BAR0=false
3016BAR1=true
3017V=1
3018am__doit:
3019 @$(TRUE)
3020.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3021 am_cv_make_support_nested_variables=yes
3022else
3023 am_cv_make_support_nested_variables=no
3024fi
3025fi
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3027$as_echo "$am_cv_make_support_nested_variables" >&6; }
3028if test $am_cv_make_support_nested_variables = yes; then
3029 AM_V='$(V)'
3030 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3031else
3032 AM_V=$AM_DEFAULT_VERBOSITY
3033 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3034fi
3035AM_BACKSLASH='\'
3036
3037if test "`cd $srcdir && pwd`" != "`pwd`"; then
3038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3039 # is not polluted with repeated "-I."
3040 am__isrc=' -I$(srcdir)'
3041 # test to see if srcdir already configured
3042 if test -f $srcdir/config.status; then
3043 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3044 fi
3045fi
3046
3047# test whether we have cygpath
3048if test -z "$CYGPATH_W"; then
3049 if (cygpath --version) >/dev/null 2>/dev/null; then
3050 CYGPATH_W='cygpath -w'
3051 else
3052 CYGPATH_W=echo
3053 fi
3054fi
3055
3056
3057# Define the identity of the package.
3058 PACKAGE='cycript'
3059 VERSION='0.9'
3060
3061
3062cat >>confdefs.h <<_ACEOF
3063#define PACKAGE "$PACKAGE"
3064_ACEOF
3065
3066
3067cat >>confdefs.h <<_ACEOF
3068#define VERSION "$VERSION"
3069_ACEOF
3070
3071# Some tools Automake needs.
3072
3073ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3074
3075
3076AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3077
3078
3079AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3080
3081
3082AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3083
3084
3085MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3086
3087# For better backward compatibility. To be removed once Automake 1.9.x
3088# dies out for good. For more background, see:
3089# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3090# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3091mkdir_p='$(MKDIR_P)'
3092
3093# We need awk for the "check" target. The system "awk" is bad on
3094# some platforms.
3095# Always define AMTAR for backward compatibility. Yes, it's still used
3096# in the wild :-( We should find a proper way to deprecate it ...
3097AMTAR='$${TAR-tar}'
3098
a93f15c0
JF
3099
3100# We'll loop over all known methods to create a tar archive until one works.
3101_am_tools='gnutar pax cpio none'
3102
66170b30
JF
3103am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3104
3105
3106
3107
3108
66170b30 3109
a93f15c0
JF
3110# POSIX will say in a future version that running "rm -f" with no argument
3111# is OK; and we want to be able to make that assumption in our Makefile
3112# recipes. So use an aggressive probe to check that the usage we want is
3113# actually supported "in the wild" to an acceptable degree.
3114# See automake bug#10828.
3115# To make any issue more visible, cause the running configure to be aborted
3116# by default if the 'rm' program in use doesn't match our expectations; the
3117# user can still override this though.
3118if rm -f && rm -fr && rm -rf; then : OK; else
3119 cat >&2 <<'END'
3120Oops!
3121
3122Your 'rm' program seems unable to run without file operands specified
3123on the command line, even when the '-f' option is present. This is contrary
3124to the behaviour of most rm programs out there, and not conforming with
3125the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3126
3127Please tell bug-automake@gnu.org about your system, including the value
3128of your $PATH and any error possibly output before this message. This
3129can help us improve future automake versions.
3130
3131END
3132 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3133 echo 'Configuration will proceed anyway, since you have set the' >&2
3134 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3135 echo >&2
3136 else
3137 cat >&2 <<'END'
3138Aborting the configuration process, to ensure you take notice of the issue.
3139
3140You can download and install GNU coreutils to get an 'rm' implementation
3141that behaves properly: <http://www.gnu.org/software/coreutils/>.
3142
3143If you want to complete the configuration process using your problematic
3144'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3145to "yes", and re-run configure.
3146
3147END
3148 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3149 fi
3150fi
3151
babf7fe8
JF
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3153$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3154 # Check whether --enable-maintainer-mode was given.
3155if test "${enable_maintainer_mode+set}" = set; then :
3156 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3157else
3158 USE_MAINTAINER_MODE=no
3159fi
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3162$as_echo "$USE_MAINTAINER_MODE" >&6; }
3163 if test $USE_MAINTAINER_MODE = yes; then
3164 MAINTAINER_MODE_TRUE=
3165 MAINTAINER_MODE_FALSE='#'
3166else
3167 MAINTAINER_MODE_TRUE='#'
3168 MAINTAINER_MODE_FALSE=
3169fi
3170
3171 MAINT=$MAINTAINER_MODE_TRUE
3172
3173
3174
a93f15c0
JF
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3185if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3186 $as_echo_n "(cached) " >&6
3187else
a93f15c0
JF
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202done
3203 done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
a93f15c0
JF
3208CC=$ac_cv_prog_CC
3209if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211$as_echo "$CC" >&6; }
35fa52c0
DWT
3212else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
35fa52c0 3218fi
a93f15c0
JF
3219if test -z "$ac_cv_prog_CC"; then
3220 ac_ct_CC=$CC
3221 # Extract the first word of "gcc", so it can be a program name with args.
3222set dummy gcc; ac_word=$2
35fa52c0
DWT
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3225if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3226 $as_echo_n "(cached) " >&6
3227else
a93f15c0
JF
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3238 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242done
3243 done
3244IFS=$as_save_IFS
3245
3246fi
3247fi
a93f15c0
JF
3248ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3252else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255fi
3256
a93f15c0
JF
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
35fa52c0
DWT
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261yes:)
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264ac_tool_warned=yes ;;
3265esac
a93f15c0 3266 CC=$ac_ct_CC
35fa52c0 3267 fi
a93f15c0
JF
3268else
3269 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3270fi
3271
a93f15c0
JF
3272if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275set dummy ${ac_tool_prefix}cc; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
a243b558 3294 fi
35fa52c0 3295done
a93f15c0
JF
3296 done
3297IFS=$as_save_IFS
35fa52c0 3298
a93f15c0
JF
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304$as_echo "$CC" >&6; }
3305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
35fa52c0 3309
35fa52c0 3310
a93f15c0
JF
3311 fi
3312fi
3313if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315set dummy cc; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if ${ac_cv_prog_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320else
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3323else
3324 ac_prog_rejected=no
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
35fa52c0 3327do
a93f15c0
JF
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3334 continue
3335 fi
3336 ac_cv_prog_CC="cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340done
3341 done
3342IFS=$as_save_IFS
3343
3344if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3347 shift
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3352 shift
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354 fi
3355fi
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368fi
3369if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3372 do
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395 done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403$as_echo "$CC" >&6; }
3404else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409
3410 test -n "$CC" && break
3411 done
3412fi
3413if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in cl.exe
3416do
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418set dummy $ac_prog; ac_word=$2
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420$as_echo_n "checking for $ac_word... " >&6; }
3421if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439 done
3440IFS=$as_save_IFS
3441
3442fi
3443fi
3444ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445if test -n "$ac_ct_CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447$as_echo "$ac_ct_CC" >&6; }
3448else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450$as_echo "no" >&6; }
3451fi
3452
3453
3454 test -n "$ac_ct_CC" && break
3455done
3456
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461yes:)
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464ac_tool_warned=yes ;;
3465esac
3466 CC=$ac_ct_CC
3467 fi
3468fi
3469
3470fi
3471
3472
3473test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error $? "no acceptable C compiler found in \$PATH
3476See \`config.log' for more details" "$LINENO" 5; }
3477
3478# Provide some information about the compiler.
3479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3480set X $ac_compile
3481ac_compiler=$2
3482for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491 ac_status=$?
3492 if test -s conftest.err; then
3493 sed '10a\
3494... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3497 fi
3498 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501done
3502
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514ac_clean_files_save=$ac_clean_files
3515ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516# Try to create an executable without -o first, disregard a.out.
3517# It will help us diagnose broken compilers, and finding out an intuition
3518# of exeext.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520$as_echo_n "checking whether the C compiler works... " >&6; }
3521ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522
3523# The possible output files:
3524ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525
3526ac_rmfiles=
3527for ac_file in $ac_files
3528do
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532 esac
3533done
35fa52c0
DWT
3534rm -f $ac_rmfiles
3535
3536if { { ac_try="$ac_link_default"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549# in a Makefile. We should not override ac_cv_exeext if it was cached,
3550# so that the user can short-circuit this test for compilers unknown to
3551# Autoconf.
3552for ac_file in $ac_files ''
3553do
3554 test -f "$ac_file" || continue
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557 ;;
3558 [ab].out )
3559 # We found the default executable, but exeext='' is most
3560 # certainly right.
3561 break;;
3562 *.* )
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564 then :; else
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 fi
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3571 # actually working.
3572 break;;
3573 * )
3574 break;;
3575 esac
3576done
3577test "$ac_cv_exeext" = no && ac_cv_exeext=
3578
3579else
3580 ac_file=''
3581fi
35fa52c0 3582if test -z "$ac_file"; then :
9c60689e
DWT
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3590as_fn_error 77 "C compiler cannot create executables
ee134472 3591See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3592else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
35fa52c0 3595fi
a93f15c0
JF
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3600ac_exeext=$ac_cv_exeext
3601
9c60689e 3602rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3603ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605$as_echo_n "checking for suffix of executables... " >&6; }
3606if { { ac_try="$ac_link"
3607case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619# work properly (i.e., refer to `conftest.exe'), while it won't with
3620# `rm'.
3621for ac_file in conftest.exe conftest conftest.*; do
3622 test -f "$ac_file" || continue
3623 case $ac_file in
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626 break;;
3627 * ) break;;
3628 esac
3629done
3630else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3633as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3634See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3635fi
9c60689e 3636rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638$as_echo "$ac_cv_exeext" >&6; }
3639
3640rm -f conftest.$ac_ext
3641EXEEXT=$ac_cv_exeext
3642ac_exeext=$EXEEXT
9c60689e
DWT
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h. */
3645#include <stdio.h>
3646int
3647main ()
3648{
3649FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656ac_clean_files="$ac_clean_files conftest.out"
3657# Check that the compiler produces executables we can run. If not, either
3658# the compiler is broken, or we cross compile.
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660$as_echo_n "checking whether we are cross compiling... " >&6; }
3661if test "$cross_compiling" != yes; then
3662 { { ac_try="$ac_link"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 if { ac_try='./conftest$ac_cv_exeext'
3674 { { case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; }; then
3684 cross_compiling=no
3685 else
3686 if test "$cross_compiling" = maybe; then
3687 cross_compiling=yes
3688 else
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3691as_fn_error $? "cannot run C compiled programs.
9c60689e 3692If you meant to cross compile, use \`--host'.
ee134472 3693See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3694 fi
3695 fi
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698$as_echo "$cross_compiling" >&6; }
3699
3700rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3704if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3705 $as_echo_n "(cached) " >&6
3706else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709
3710int
3711main ()
3712{
3713
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718rm -f conftest.o conftest.obj
3719if { { ac_try="$ac_compile"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725$as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_compile") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 for ac_file in conftest.o conftest.obj conftest.*; do
3731 test -f "$ac_file" || continue;
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735 break;;
3736 esac
3737done
3738else
3739 $as_echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3744as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3745See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3746fi
3747rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750$as_echo "$ac_cv_objext" >&6; }
3751OBJEXT=$ac_cv_objext
3752ac_objext=$OBJEXT
a93f15c0
JF
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3756 $as_echo_n "(cached) " >&6
3757else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h. */
3760
3761int
3762main ()
3763{
3764#ifndef __GNUC__
3765 choke me
3766#endif
3767
3768 ;
3769 return 0;
3770}
3771_ACEOF
a93f15c0 3772if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3773 ac_compiler_gnu=yes
3774else
3775 ac_compiler_gnu=no
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3778ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3779
3780fi
a93f15c0
JF
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3783if test $ac_compiler_gnu = yes; then
a93f15c0 3784 GCC=yes
35fa52c0 3785else
a93f15c0 3786 GCC=
35fa52c0 3787fi
a93f15c0
JF
3788ac_test_CFLAGS=${CFLAGS+set}
3789ac_save_CFLAGS=$CFLAGS
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791$as_echo_n "checking whether $CC accepts -g... " >&6; }
3792if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3793 $as_echo_n "(cached) " >&6
3794else
a93f15c0
JF
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3797 ac_cv_prog_cc_g=no
3798 CFLAGS="-g"
35fa52c0
DWT
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h. */
3801
3802int
3803main ()
3804{
3805
3806 ;
3807 return 0;
3808}
3809_ACEOF
a93f15c0
JF
3810if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_g=yes
35fa52c0 3812else
a93f15c0 3813 CFLAGS=""
35fa52c0
DWT
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
a93f15c0 3825if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3826
3827else
a93f15c0
JF
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 CFLAGS="-g"
35fa52c0
DWT
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h. */
3832
3833int
3834main ()
3835{
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
a93f15c0
JF
3841if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3843fi
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3849 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3850fi
a93f15c0
JF
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852$as_echo "$ac_cv_prog_cc_g" >&6; }
3853if test "$ac_test_CFLAGS" = set; then
3854 CFLAGS=$ac_save_CFLAGS
3855elif test $ac_cv_prog_cc_g = yes; then
3856 if test "$GCC" = yes; then
3857 CFLAGS="-g -O2"
35fa52c0 3858 else
a93f15c0 3859 CFLAGS="-g"
35fa52c0
DWT
3860 fi
3861else
a93f15c0
JF
3862 if test "$GCC" = yes; then
3863 CFLAGS="-O2"
35fa52c0 3864 else
a93f15c0 3865 CFLAGS=
35fa52c0
DWT
3866 fi
3867fi
a93f15c0
JF
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870if ${ac_cv_prog_cc_c89+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872else
3873 ac_cv_prog_cc_c89=no
3874ac_save_CC=$CC
3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h. */
3877#include <stdarg.h>
3878#include <stdio.h>
3879struct stat;
3880/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881struct buf { int x; };
3882FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883static char *e (p, i)
3884 char **p;
3885 int i;
3886{
3887 return p[i];
3888}
3889static char *f (char * (*g) (char **, int), char **p, ...)
3890{
3891 char *s;
3892 va_list v;
3893 va_start (v,p);
3894 s = g (p, va_arg (v,int));
3895 va_end (v);
3896 return s;
3897}
3898
3899/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3910#define FOO(x) 'x'
3911int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913int test (int i, double x);
3914struct s1 {int (*f) (int a);};
3915struct s2 {int (*f) (double a);};
3916int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917int argc;
3918char **argv;
3919int
3920main ()
3921{
3922return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929do
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3933fi
3934rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3936done
3937rm -f conftest.$ac_ext
3938CC=$ac_save_CC
3939
3940fi
3941# AC_CACHE_VAL
3942case "x$ac_cv_prog_cc_c89" in
3943 x)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945$as_echo "none needed" >&6; } ;;
3946 xno)
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948$as_echo "unsupported" >&6; } ;;
3949 *)
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953esac
3954if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956fi
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971if ${am_cv_prog_cc_c_o+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h. */
3976
3977int
3978main ()
3979{
3980
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985 # Make sure it works both with $CC and with simple cc.
3986 # Following AC_PROG_CC_C_O, we do the test twice because some
3987 # compilers refuse to overwrite an existing .o file with -o,
3988 # though they will create one.
3989 am_cv_prog_cc_c_o=yes
3990 for am_i in 1 2; do
3991 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } \
3996 && test -f conftest2.$ac_objext; then
3997 : OK
3998 else
3999 am_cv_prog_cc_c_o=no
4000 break
4001 fi
4002 done
4003 rm -f core conftest*
4004 unset am_i
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007$as_echo "$am_cv_prog_cc_c_o" >&6; }
4008if test "$am_cv_prog_cc_c_o" != yes; then
4009 # Losing compiler, so override with the script.
4010 # FIXME: It is wrong to rewrite CC.
4011 # But if we don't then we get into trouble of one sort or another.
4012 # A longer-term fix would be to have automake use am__CC in this case,
4013 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014 CC="$am_aux_dir/compile $CC"
4015fi
a243b558
JF
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4021
a243b558 4022DEPDIR="${am__leading_dot}deps"
35fa52c0 4023
a243b558 4024ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4025
35fa52c0 4026
a243b558
JF
4027am_make=${MAKE-make}
4028cat > confinc << 'END'
4029am__doit:
4030 @echo this is the am__doit target
4031.PHONY: am__doit
4032END
4033# If we don't find an include directive, just comment out the code.
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4035$as_echo_n "checking for style of include used by $am_make... " >&6; }
4036am__include="#"
4037am__quote=
4038_am_result=none
4039# First try GNU make style include.
4040echo "include confinc" > confmf
4041# Ignore all kinds of additional output from 'make'.
4042case `$am_make -s -f confmf 2> /dev/null` in #(
4043*the\ am__doit\ target*)
4044 am__include=include
4045 am__quote=
4046 _am_result=GNU
4047 ;;
4048esac
4049# Now try BSD make style include.
4050if test "$am__include" = "#"; then
4051 echo '.include "confinc"' > confmf
4052 case `$am_make -s -f confmf 2> /dev/null` in #(
4053 *the\ am__doit\ target*)
4054 am__include=.include
4055 am__quote="\""
4056 _am_result=BSD
4057 ;;
4058 esac
35fa52c0 4059fi
35fa52c0 4060
a243b558
JF
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4063$as_echo "$_am_result" >&6; }
4064rm -f confinc confmf
4065
4066# Check whether --enable-dependency-tracking was given.
4067if test "${enable_dependency_tracking+set}" = set; then :
4068 enableval=$enable_dependency_tracking;
35fa52c0 4069fi
35fa52c0 4070
a243b558
JF
4071if test "x$enable_dependency_tracking" != xno; then
4072 am_depcomp="$ac_aux_dir/depcomp"
4073 AMDEPBACKSLASH='\'
4074 am__nodep='_no'
4075fi
4076 if test "x$enable_dependency_tracking" != xno; then
4077 AMDEP_TRUE=
4078 AMDEP_FALSE='#'
4079else
4080 AMDEP_TRUE='#'
4081 AMDEP_FALSE=
35fa52c0
DWT
4082fi
4083
35fa52c0 4084
a243b558 4085
a93f15c0 4086depcc="$CC" am_compiler_list=
66170b30
JF
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4089$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4090if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4091 $as_echo_n "(cached) " >&6
4092else
4093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094 # We make a subdir and do the tests there. Otherwise we can end up
4095 # making bogus files that we don't know about and never remove. For
4096 # instance it was reported that on HP-UX the gcc test will end up
4097 # making a dummy file named 'D' -- because '-MD' means "put the output
4098 # in D".
4099 rm -rf conftest.dir
4100 mkdir conftest.dir
4101 # Copy depcomp to subdir because otherwise we won't find it if we're
4102 # using a relative directory.
4103 cp "$am_depcomp" conftest.dir
4104 cd conftest.dir
4105 # We will build objects and dependencies in a subdirectory because
4106 # it helps to detect inapplicable dependency modes. For instance
4107 # both Tru64's cc and ICC support -MD to output dependencies as a
4108 # side effect of compilation, but ICC will put the dependencies in
4109 # the current directory while Tru64 will put them in the object
4110 # directory.
4111 mkdir sub
4112
a93f15c0 4113 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4114 if test "$am_compiler_list" = ""; then
4115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116 fi
4117 am__universal=false
4118 case " $depcc " in #(
4119 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4120 esac
4121
4122 for depmode in $am_compiler_list; do
4123 # Setup a source with many dependencies, because some compilers
4124 # like to wrap large dependency lists on column 80 (with \), and
4125 # we should not choose a depcomp mode which is confused by this.
4126 #
4127 # We need to recreate these files for each test, as the compiler may
4128 # overwrite some of them when testing with obscure command lines.
4129 # This happens at least with the AIX C compiler.
4130 : > sub/conftest.c
4131 for i in 1 2 3 4 5 6; do
4132 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4134 # Solaris 10 /bin/sh.
4135 echo '/* dummy */' > sub/conftst$i.h
4136 done
4137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138
4139 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4140 # mode. It turns out that the SunPro C++ compiler does not properly
4141 # handle '-M -o', and we need to detect this. Also, some Intel
4142 # versions had trouble with output in subdirs.
4143 am__obj=sub/conftest.${OBJEXT-o}
4144 am__minus_obj="-o $am__obj"
4145 case $depmode in
4146 gcc)
4147 # This depmode causes a compiler race in universal mode.
4148 test "$am__universal" = false || continue
4149 ;;
4150 nosideeffect)
4151 # After this tag, mechanisms are not by side-effect, so they'll
4152 # only be used when explicitly requested.
4153 if test "x$enable_dependency_tracking" = xyes; then
4154 continue
4155 else
4156 break
4157 fi
4158 ;;
4159 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4160 # This compiler won't grok '-c -o', but also, the minuso test has
4161 # not run yet. These depmodes are late enough in the game, and
4162 # so weak that their functioning should not be impacted.
4163 am__obj=conftest.${OBJEXT-o}
4164 am__minus_obj=
4165 ;;
4166 none) break ;;
4167 esac
4168 if depmode=$depmode \
4169 source=sub/conftest.c object=$am__obj \
4170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4171 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4172 >/dev/null 2>conftest.err &&
4173 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177 # icc doesn't choke on unknown options, it will just issue warnings
4178 # or remarks (even with -Werror). So we grep stderr for any message
4179 # that says an option was ignored or not supported.
4180 # When given -MP, icc 7.0 and 7.1 complain thusly:
4181 # icc: Command line warning: ignoring option '-M'; no argument required
4182 # The diagnosis changed in icc 8.0:
4183 # icc: Command line remark: option '-MP' not supported
4184 if (grep 'ignoring option' conftest.err ||
4185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4186 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4187 break
4188 fi
4189 fi
4190 done
4191
4192 cd ..
4193 rm -rf conftest.dir
4194else
a93f15c0 4195 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4196fi
4197
4198fi
a93f15c0
JF
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4200$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4201CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4202
4203 if
4204 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4206 am__fastdepCC_TRUE=
4207 am__fastdepCC_FALSE='#'
66170b30 4208else
a93f15c0
JF
4209 am__fastdepCC_TRUE='#'
4210 am__fastdepCC_FALSE=
66170b30
JF
4211fi
4212
4213
a93f15c0
JF
4214ac_ext=cpp
4215ac_cpp='$CXXCPP $CPPFLAGS'
4216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219if test -z "$CXX"; then
4220 if test -n "$CCC"; then
4221 CXX=$CCC
4222 else
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4225 do
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4230if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4231 $as_echo_n "(cached) " >&6
4232else
a93f15c0
JF
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
35fa52c0
DWT
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247done
9c60689e
DWT
4248 done
4249IFS=$as_save_IFS
35fa52c0 4250
9c60689e 4251fi
a243b558 4252fi
a93f15c0
JF
4253CXX=$ac_cv_prog_CXX
4254if test -n "$CXX"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4256$as_echo "$CXX" >&6; }
a243b558
JF
4257else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
4260fi
35fa52c0 4261
35fa52c0 4262
a93f15c0 4263 test -n "$CXX" && break
a243b558
JF
4264 done
4265fi
a93f15c0
JF
4266if test -z "$CXX"; then
4267 ac_ct_CXX=$CXX
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
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; }
a93f15c0 4274if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4275 $as_echo_n "(cached) " >&6
4276else
a93f15c0
JF
4277 if test -n "$ac_ct_CXX"; then
4278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4279else
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
9c60689e
DWT
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
9c60689e 4285 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4287 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
9c60689e
DWT
4292 done
4293IFS=$as_save_IFS
a243b558
JF
4294
4295fi
4296fi
a93f15c0
JF
4297ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4298if test -n "$ac_ct_CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4300$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4301else
a243b558
JF
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
9c60689e 4304fi
6b66678a
DWT
4305
4306
a93f15c0 4307 test -n "$ac_ct_CXX" && break
a243b558 4308done
6b66678a 4309
a93f15c0
JF
4310 if test "x$ac_ct_CXX" = x; then
4311 CXX="g++"
a243b558
JF
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314yes:)
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317ac_tool_warned=yes ;;
9c60689e 4318esac
a93f15c0 4319 CXX=$ac_ct_CXX
9c60689e 4320 fi
9c60689e 4321fi
6b66678a 4322
a93f15c0
JF
4323 fi
4324fi
a243b558 4325# Provide some information about the compiler.
a93f15c0 4326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4327set X $ac_compile
4328ac_compiler=$2
4329for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336$as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 ac_status=$?
4339 if test -s conftest.err; then
4340 sed '10a\
4341... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4344 fi
4345 rm -f conftest.er1 conftest.err
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348done
6b66678a 4349
a93f15c0
JF
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4351$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4352if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4353 $as_echo_n "(cached) " >&6
6b66678a 4354else
a243b558
JF
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h. */
6b66678a 4357
a243b558
JF
4358int
4359main ()
4360{
4361#ifndef __GNUC__
4362 choke me
4363#endif
4364
4365 ;
4366 return 0;
4367}
4368_ACEOF
a93f15c0 4369if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4370 ac_compiler_gnu=yes
9c60689e 4371else
a243b558 4372 ac_compiler_gnu=no
6b66678a 4373fi
a243b558 4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4375ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4376
4377fi
a93f15c0
JF
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4379$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4380if test $ac_compiler_gnu = yes; then
a93f15c0 4381 GXX=yes
a243b558 4382else
a93f15c0 4383 GXX=
a243b558 4384fi
a93f15c0
JF
4385ac_test_CXXFLAGS=${CXXFLAGS+set}
4386ac_save_CXXFLAGS=$CXXFLAGS
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4388$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4389if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4390 $as_echo_n "(cached) " >&6
4391else
a93f15c0
JF
4392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4393 ac_cxx_werror_flag=yes
4394 ac_cv_prog_cxx_g=no
4395 CXXFLAGS="-g"
a243b558
JF
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h. */
309b0535 4398
a243b558
JF
4399int
4400main ()
4401{
309b0535 4402
a243b558
JF
4403 ;
4404 return 0;
4405}
4406_ACEOF
a93f15c0
JF
4407if ac_fn_cxx_try_compile "$LINENO"; then :
4408 ac_cv_prog_cxx_g=yes
a243b558 4409else
a93f15c0 4410 CXXFLAGS=""
a243b558
JF
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h. */
309b0535 4413
a243b558
JF
4414int
4415main ()
4416{
309b0535 4417
a243b558
JF
4418 ;
4419 return 0;
4420}
4421_ACEOF
a93f15c0 4422if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4423
a243b558 4424else
a93f15c0
JF
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426 CXXFLAGS="-g"
a243b558
JF
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
309b0535 4429
a243b558
JF
4430int
4431main ()
4432{
309b0535 4433
a243b558
JF
4434 ;
4435 return 0;
4436}
4437_ACEOF
a93f15c0
JF
4438if ac_fn_cxx_try_compile "$LINENO"; then :
4439 ac_cv_prog_cxx_g=yes
9c60689e 4440fi
a243b558 4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4442fi
a243b558 4443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4444fi
a243b558 4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4447fi
a93f15c0
JF
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4449$as_echo "$ac_cv_prog_cxx_g" >&6; }
4450if test "$ac_test_CXXFLAGS" = set; then
4451 CXXFLAGS=$ac_save_CXXFLAGS
4452elif test $ac_cv_prog_cxx_g = yes; then
4453 if test "$GXX" = yes; then
4454 CXXFLAGS="-g -O2"
a243b558 4455 else
a93f15c0 4456 CXXFLAGS="-g"
a243b558 4457 fi
9c60689e 4458else
a93f15c0
JF
4459 if test "$GXX" = yes; then
4460 CXXFLAGS="-O2"
a243b558 4461 else
a93f15c0 4462 CXXFLAGS=
a243b558 4463 fi
9c60689e 4464fi
a243b558
JF
4465ac_ext=c
4466ac_cpp='$CPP $CPPFLAGS'
4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4470
a93f15c0 4471depcc="$CXX" am_compiler_list=
309b0535 4472
a243b558
JF
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4475if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4476 $as_echo_n "(cached) " >&6
4477else
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4483 # in D".
4484 rm -rf conftest.dir
4485 mkdir conftest.dir
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4489 cd conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4495 # directory.
4496 mkdir sub
309b0535 4497
a93f15c0 4498 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501 fi
4502 am__universal=false
a93f15c0
JF
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 esac
9c60689e 4506
a243b558
JF
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4511 #
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4515 : > sub/conftest.c
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4521 done
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4523
a243b558
JF
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4530 case $depmode in
4531 gcc)
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4534 ;;
4535 nosideeffect)
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4539 continue
4540 else
4541 break
309b0535 4542 fi
a243b558
JF
4543 ;;
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4549 am__minus_obj=
4550 ;;
4551 none) break ;;
4552 esac
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4571 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4572 break
4573 fi
4574 fi
309b0535 4575 done
a243b558
JF
4576
4577 cd ..
4578 rm -rf conftest.dir
4579else
a93f15c0 4580 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4581fi
a243b558 4582
9c60689e 4583fi
a93f15c0
JF
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4585$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4586CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4587
4588 if
4589 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCXX_TRUE=
4592 am__fastdepCXX_FALSE='#'
9c60689e 4593else
a93f15c0
JF
4594 am__fastdepCXX_TRUE='#'
4595 am__fastdepCXX_FALSE=
a243b558
JF
4596fi
4597
4598
a93f15c0
JF
4599ac_ext=mm
4600ac_cpp='$OBJCXXCPP $CPPFLAGS'
4601ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4604if test -n "$ac_tool_prefix"; then
a93f15c0 4605 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4606 do
4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4611if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4612 $as_echo_n "(cached) " >&6
4613else
a93f15c0
JF
4614 if test -n "$OBJCXX"; then
4615 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4624 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
9c60689e 4627 fi
a243b558
JF
4628done
4629 done
4630IFS=$as_save_IFS
9c60689e 4631
a243b558
JF
4632fi
4633fi
a93f15c0
JF
4634OBJCXX=$ac_cv_prog_OBJCXX
4635if test -n "$OBJCXX"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4637$as_echo "$OBJCXX" >&6; }
35fa52c0 4638else
a243b558
JF
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
35fa52c0 4641fi
9c60689e 4642
a243b558 4643
a93f15c0 4644 test -n "$OBJCXX" && break
a243b558
JF
4645 done
4646fi
a93f15c0
JF
4647if test -z "$OBJCXX"; then
4648 ac_ct_OBJCXX=$OBJCXX
4649 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4650do
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652set dummy $ac_prog; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4655if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4656 $as_echo_n "(cached) " >&6
4657else
a93f15c0
JF
4658 if test -n "$ac_ct_OBJCXX"; then
4659 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4668 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673 done
4674IFS=$as_save_IFS
9c60689e 4675
a243b558
JF
4676fi
4677fi
a93f15c0
JF
4678ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4679if test -n "$ac_ct_OBJCXX"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4681$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4682else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
35fa52c0 4686
35fa52c0 4687
a93f15c0 4688 test -n "$ac_ct_OBJCXX" && break
a243b558 4689done
35fa52c0 4690
a93f15c0
JF
4691 if test "x$ac_ct_OBJCXX" = x; then
4692 OBJCXX="g++"
a243b558
JF
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
4699esac
a93f15c0 4700 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4701 fi
4702fi
ee134472 4703
a243b558 4704# Provide some information about the compiler.
a93f15c0 4705$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4706set X $ac_compile
4707ac_compiler=$2
4708for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715$as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4717 ac_status=$?
4718 if test -s conftest.err; then
4719 sed '10a\
4720... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 fi
4724 rm -f conftest.er1 conftest.err
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727done
53ba6704 4728
a93f15c0
JF
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4730$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4731if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4732 $as_echo_n "(cached) " >&6
4733else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h. */
35fa52c0 4736
a243b558
JF
4737int
4738main ()
4739{
4740#ifndef __GNUC__
4741 choke me
4742#endif
9c60689e 4743
a243b558
JF
4744 ;
4745 return 0;
4746}
4747_ACEOF
a93f15c0 4748if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4749 ac_compiler_gnu=yes
35fa52c0 4750else
a243b558 4751 ac_compiler_gnu=no
35fa52c0 4752fi
a243b558 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4754ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4755
a243b558 4756fi
a93f15c0
JF
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4758$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4759if test $ac_compiler_gnu = yes; then
a93f15c0 4760 GOBJCXX=yes
35fa52c0 4761else
a93f15c0 4762 GOBJCXX=
9c60689e 4763fi
a93f15c0
JF
4764ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4765ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4767$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4768if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4769 $as_echo_n "(cached) " >&6
4770else
a93f15c0
JF
4771 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4772 ac_objcxx_werror_flag=yes
4773 ac_cv_prog_objcxx_g=no
4774 OBJCXXFLAGS="-g"
a243b558
JF
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
9c60689e 4777
a243b558
JF
4778int
4779main ()
4780{
9c60689e 4781
a243b558
JF
4782 ;
4783 return 0;
4784}
4785_ACEOF
a93f15c0
JF
4786if ac_fn_objcxx_try_compile "$LINENO"; then :
4787 ac_cv_prog_objcxx_g=yes
a243b558 4788else
a93f15c0 4789 OBJCXXFLAGS=""
a243b558
JF
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
9c60689e 4792
a243b558
JF
4793int
4794main ()
4795{
9c60689e 4796
a243b558
JF
4797 ;
4798 return 0;
4799}
4800_ACEOF
a93f15c0 4801if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4802
a243b558 4803else
a93f15c0
JF
4804 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4805 OBJCXXFLAGS="-g"
a243b558 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4807/* end confdefs.h. */
4808
a243b558
JF
4809int
4810main ()
4811{
a93f15c0 4812
a243b558
JF
4813 ;
4814 return 0;
4815}
4816_ACEOF
a93f15c0
JF
4817if ac_fn_objcxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_objcxx_g=yes
a243b558 4819fi
a93f15c0 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4821fi
a93f15c0
JF
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4828$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4829if test "$ac_test_OBJCXXFLAGS" = set; then
4830 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4831elif test $ac_cv_prog_objcxx_g = yes; then
4832 if test "$GOBJCXX" = yes; then
4833 OBJCXXFLAGS="-g -O2"
4834 else
4835 OBJCXXFLAGS="-g"
4836 fi
4837else
4838 if test "$GOBJCXX" = yes; then
4839 OBJCXXFLAGS="-O2"
4840 else
4841 OBJCXXFLAGS=
4842 fi
35fa52c0 4843fi
a243b558
JF
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
a93f15c0 4850depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4851
a243b558
JF
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4853$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4854if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4855 $as_echo_n "(cached) " >&6
4856else
a243b558
JF
4857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4858 # We make a subdir and do the tests there. Otherwise we can end up
4859 # making bogus files that we don't know about and never remove. For
4860 # instance it was reported that on HP-UX the gcc test will end up
4861 # making a dummy file named 'D' -- because '-MD' means "put the output
4862 # in D".
4863 rm -rf conftest.dir
4864 mkdir conftest.dir
4865 # Copy depcomp to subdir because otherwise we won't find it if we're
4866 # using a relative directory.
4867 cp "$am_depcomp" conftest.dir
4868 cd conftest.dir
4869 # We will build objects and dependencies in a subdirectory because
4870 # it helps to detect inapplicable dependency modes. For instance
4871 # both Tru64's cc and ICC support -MD to output dependencies as a
4872 # side effect of compilation, but ICC will put the dependencies in
4873 # the current directory while Tru64 will put them in the object
4874 # directory.
4875 mkdir sub
4876
a93f15c0 4877 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4878 if test "$am_compiler_list" = ""; then
4879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 fi
4881 am__universal=false
a93f15c0 4882
a243b558
JF
4883
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4888 #
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4892 : > sub/conftest.c
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896 # Solaris 10 /bin/sh.
4897 echo '/* dummy */' > sub/conftst$i.h
4898 done
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle '-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs.
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4907 case $depmode in
4908 gcc)
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4911 ;;
4912 nosideeffect)
4913 # After this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested.
4915 if test "x$enable_dependency_tracking" = xyes; then
4916 continue
4917 else
4918 break
4919 fi
4920 ;;
4921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922 # This compiler won't grok '-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4926 am__minus_obj=
4927 ;;
4928 none) break ;;
4929 esac
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4948 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4949 break
4950 fi
4951 fi
4952 done
9c60689e 4953
a243b558
JF
4954 cd ..
4955 rm -rf conftest.dir
4956else
a93f15c0 4957 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4958fi
a243b558 4959
35fa52c0 4960fi
a93f15c0
JF
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4962$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4963OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4964
4965 if
4966 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4967 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4968 am__fastdepOBJCXX_TRUE=
4969 am__fastdepOBJCXX_FALSE='#'
a243b558 4970else
a93f15c0
JF
4971 am__fastdepOBJCXX_TRUE='#'
4972 am__fastdepOBJCXX_FALSE=
a243b558
JF
4973fi
4974
4975
4976
a93f15c0 4977
a243b558
JF
4978if test -n "$ac_tool_prefix"; then
4979 for ac_prog in ar lib "link -lib"
4980 do
4981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_prog_AR+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$AR"; then
4989 ac_cv_prog_AR="$AR" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008AR=$ac_cv_prog_AR
5009if test -n "$AR"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5011$as_echo "$AR" >&6; }
35fa52c0
DWT
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
9c60689e 5016
a243b558
JF
5017
5018 test -n "$AR" && break
5019 done
5020fi
5021if test -z "$AR"; then
5022 ac_ct_AR=$AR
5023 for ac_prog in ar lib "link -lib"
5024do
5025 # Extract the first word of "$ac_prog", so it can be a program name with args.
5026set dummy $ac_prog; ac_word=$2
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if ${ac_cv_prog_ac_ct_AR+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 if test -n "$ac_ct_AR"; then
5033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5034else
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_ac_ct_AR="$ac_prog"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
5047 done
5048IFS=$as_save_IFS
5049
5050fi
5051fi
5052ac_ct_AR=$ac_cv_prog_ac_ct_AR
5053if test -n "$ac_ct_AR"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5055$as_echo "$ac_ct_AR" >&6; }
5056else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
5059fi
5060
5061
5062 test -n "$ac_ct_AR" && break
5063done
5064
5065 if test "x$ac_ct_AR" = x; then
5066 AR="false"
9c60689e
DWT
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069yes:)
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072ac_tool_warned=yes ;;
35fa52c0 5073esac
a243b558 5074 AR=$ac_ct_AR
9c60689e 5075 fi
a243b558
JF
5076fi
5077
5078: ${AR=ar}
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5081$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5082if ${am_cv_ar_interface+:} false; then :
5083 $as_echo_n "(cached) " >&6
9c60689e 5084else
a93f15c0
JF
5085 ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091 am_cv_ar_interface=ar
a243b558
JF
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094int some_variable = 0;
5095_ACEOF
5096if ac_fn_c_try_compile "$LINENO"; then :
5097 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5099 (eval $am_ar_try) 2>&5
5100 ac_status=$?
5101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5102 test $ac_status = 0; }
5103 if test "$ac_status" -eq 0; then
5104 am_cv_ar_interface=ar
5105 else
5106 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5108 (eval $am_ar_try) 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if test "$ac_status" -eq 0; then
5113 am_cv_ar_interface=lib
5114 else
5115 am_cv_ar_interface=unknown
5116 fi
5117 fi
5118 rm -f conftest.lib libconftest.a
5119
35fa52c0 5120fi
a243b558 5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5122 ac_ext=c
5123ac_cpp='$CPP $CPPFLAGS'
5124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5127
a243b558
JF
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5130$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5131
a243b558
JF
5132case $am_cv_ar_interface in
5133ar)
5134 ;;
5135lib)
5136 # Microsoft lib, so override with the ar-lib wrapper script.
5137 # FIXME: It is wrong to rewrite AR.
5138 # But if we don't then we get into trouble of one sort or another.
5139 # A longer-term fix would be to have automake use am__AR in this case,
5140 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5141 # similar.
5142 AR="$am_aux_dir/ar-lib $AR"
5143 ;;
5144unknown)
5145 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5146 ;;
5147esac
35fa52c0 5148
35fa52c0 5149
35fa52c0 5150
a243b558
JF
5151case `pwd` in
5152 *\ * | *\ *)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5154$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5155esac
35fa52c0
DWT
5156
5157
5158
9d54db95
JF
5159macro_version='2.4.6'
5160macro_revision='2.4.6'
35fa52c0
DWT
5161
5162
5163
5164
5165
5166
5167
5168
5169
35fa52c0 5170
35fa52c0 5171
ee134472 5172
35fa52c0 5173
9d54db95 5174ltmain=$ac_aux_dir/ltmain.sh
35fa52c0 5175
a243b558
JF
5176# Make sure we can run config.sub.
5177$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5178 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5179
a243b558
JF
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5181$as_echo_n "checking build system type... " >&6; }
5182if ${ac_cv_build+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184else
5185 ac_build_alias=$build_alias
5186test "x$ac_build_alias" = x &&
5187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5188test "x$ac_build_alias" = x &&
5189 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5190ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5191 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5192
a243b558
JF
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5195$as_echo "$ac_cv_build" >&6; }
5196case $ac_cv_build in
5197*-*-*) ;;
5198*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5199esac
5200build=$ac_cv_build
5201ac_save_IFS=$IFS; IFS='-'
5202set x $ac_cv_build
5203shift
5204build_cpu=$1
5205build_vendor=$2
5206shift; shift
5207# Remember, the first character of IFS is used to create $*,
5208# except with old shells:
5209build_os=$*
5210IFS=$ac_save_IFS
5211case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5212
35fa52c0 5213
a243b558
JF
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5215$as_echo_n "checking host system type... " >&6; }
5216if ${ac_cv_host+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 if test "x$host_alias" = x; then
5220 ac_cv_host=$ac_cv_build
5221else
5222 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5223 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5224fi
35fa52c0 5225
a243b558
JF
5226fi
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5228$as_echo "$ac_cv_host" >&6; }
5229case $ac_cv_host in
5230*-*-*) ;;
5231*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5232esac
5233host=$ac_cv_host
5234ac_save_IFS=$IFS; IFS='-'
5235set x $ac_cv_host
5236shift
5237host_cpu=$1
5238host_vendor=$2
5239shift; shift
5240# Remember, the first character of IFS is used to create $*,
5241# except with old shells:
5242host_os=$*
5243IFS=$ac_save_IFS
5244case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5245
9c60689e 5246
a243b558
JF
5247# Backslashify metacharacters that are still active within
5248# double-quoted strings.
5249sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5250
a243b558
JF
5251# Same as above, but do not quote variable references.
5252double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5253
a243b558
JF
5254# Sed substitution to delay expansion of an escaped shell variable in a
5255# double_quote_subst'ed string.
5256delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5257
a243b558
JF
5258# Sed substitution to delay expansion of an escaped single quote.
5259delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5260
a243b558
JF
5261# Sed substitution to avoid accidental globbing in evaled expressions
5262no_glob_subst='s/\*/\\\*/g'
35fa52c0 5263
a243b558
JF
5264ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5265ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5266ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5267
a243b558
JF
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5269$as_echo_n "checking how to print strings... " >&6; }
5270# Test print first, because it will be a builtin if present.
5271if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5272 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5273 ECHO='print -r --'
5274elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5275 ECHO='printf %s\n'
5276else
5277 # Use this function as a fallback that always works.
5278 func_fallback_echo ()
5279 {
5280 eval 'cat <<_LTECHO_EOF
5281$1
5282_LTECHO_EOF'
5283 }
5284 ECHO='func_fallback_echo'
ee134472
JF
5285fi
5286
a243b558
JF
5287# func_echo_all arg...
5288# Invoke $ECHO with all args, space-separated.
5289func_echo_all ()
5290{
5291 $ECHO ""
5292}
35fa52c0 5293
9d54db95 5294case $ECHO in
a243b558
JF
5295 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5296$as_echo "printf" >&6; } ;;
5297 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5298$as_echo "print -r" >&6; } ;;
5299 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5300$as_echo "cat" >&6; } ;;
5301esac
35fa52c0 5302
35fa52c0 5303
ee134472
JF
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
35fa52c0 5314
9c60689e 5315
a243b558
JF
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5317$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5318if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5319 $as_echo_n "(cached) " >&6
5320else
a243b558
JF
5321 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5322 for ac_i in 1 2 3 4 5 6 7; do
5323 ac_script="$ac_script$as_nl$ac_script"
5324 done
5325 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5326 { ac_script=; unset ac_script;}
5327 if test -z "$SED"; then
5328 ac_path_SED_found=false
5329 # Loop through the user's path and test for each of PROGNAME-LIST
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
a243b558 5335 for ac_prog in sed gsed; do
9c60689e 5336 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5337 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5338 as_fn_executable_p "$ac_path_SED" || continue
5339# Check for GNU ac_path_SED and select it if it is found.
5340 # Check for GNU $ac_path_SED
5341case `"$ac_path_SED" --version 2>&1` in
5342*GNU*)
5343 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5344*)
5345 ac_count=0
5346 $as_echo_n 0123456789 >"conftest.in"
5347 while :
5348 do
5349 cat "conftest.in" "conftest.in" >"conftest.tmp"
5350 mv "conftest.tmp" "conftest.in"
5351 cp "conftest.in" "conftest.nl"
5352 $as_echo '' >> "conftest.nl"
5353 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5355 as_fn_arith $ac_count + 1 && ac_count=$as_val
5356 if test $ac_count -gt ${ac_path_SED_max-0}; then
5357 # Best one so far, save it but keep looking for a better one
5358 ac_cv_path_SED="$ac_path_SED"
5359 ac_path_SED_max=$ac_count
5360 fi
5361 # 10*(2^10) chars as input seems more than enough
5362 test $ac_count -gt 10 && break
35fa52c0 5363 done
a243b558
JF
5364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5365esac
9c60689e 5366
a243b558
JF
5367 $ac_path_SED_found && break 3
5368 done
5369 done
9c60689e
DWT
5370 done
5371IFS=$as_save_IFS
a243b558
JF
5372 if test -z "$ac_cv_path_SED"; then
5373 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5374 fi
5375else
a243b558 5376 ac_cv_path_SED=$SED
9c60689e
DWT
5377fi
5378
a243b558
JF
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5381$as_echo "$ac_cv_path_SED" >&6; }
5382 SED="$ac_cv_path_SED"
5383 rm -f conftest.sed
9c60689e 5384
a243b558
JF
5385test -z "$SED" && SED=sed
5386Xsed="$SED -e 1s/^X//"
9c60689e 5387
ee134472 5388
ee134472 5389
9c60689e
DWT
5390
5391
5392
5393
5394
5395
5396
5397
a243b558
JF
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5399$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5400if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5401 $as_echo_n "(cached) " >&6
5402else
a243b558
JF
5403 if test -z "$GREP"; then
5404 ac_path_GREP_found=false
5405 # Loop through the user's path and test for each of PROGNAME-LIST
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
a243b558 5411 for ac_prog in grep ggrep; do
9c60689e 5412 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5413 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5414 as_fn_executable_p "$ac_path_GREP" || continue
5415# Check for GNU ac_path_GREP and select it if it is found.
5416 # Check for GNU $ac_path_GREP
5417case `"$ac_path_GREP" --version 2>&1` in
5418*GNU*)
5419 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5420*)
5421 ac_count=0
5422 $as_echo_n 0123456789 >"conftest.in"
5423 while :
5424 do
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 $as_echo 'GREP' >> "conftest.nl"
5429 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_GREP="$ac_path_GREP"
5435 ac_path_GREP_max=$ac_count
5436 fi
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5439 done
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441esac
9c60689e 5442
a243b558
JF
5443 $ac_path_GREP_found && break 3
5444 done
ee134472 5445 done
a243b558
JF
5446 done
5447IFS=$as_save_IFS
5448 if test -z "$ac_cv_path_GREP"; then
5449 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 fi
5451else
5452 ac_cv_path_GREP=$GREP
9c60689e 5453fi
a243b558
JF
5454
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5457$as_echo "$ac_cv_path_GREP" >&6; }
5458 GREP="$ac_cv_path_GREP"
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5462$as_echo_n "checking for egrep... " >&6; }
5463if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5464 $as_echo_n "(cached) " >&6
5465else
a243b558
JF
5466 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5467 then ac_cv_path_EGREP="$GREP -E"
5468 else
5469 if test -z "$EGREP"; then
5470 ac_path_EGREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
a243b558 5477 for ac_prog in egrep; do
9c60689e 5478 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5479 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_EGREP" || continue
5481# Check for GNU ac_path_EGREP and select it if it is found.
5482 # Check for GNU $ac_path_EGREP
5483case `"$ac_path_EGREP" --version 2>&1` in
5484*GNU*)
5485 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5486*)
5487 ac_count=0
5488 $as_echo_n 0123456789 >"conftest.in"
5489 while :
5490 do
5491 cat "conftest.in" "conftest.in" >"conftest.tmp"
5492 mv "conftest.tmp" "conftest.in"
5493 cp "conftest.in" "conftest.nl"
5494 $as_echo 'EGREP' >> "conftest.nl"
5495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497 as_fn_arith $ac_count + 1 && ac_count=$as_val
5498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5499 # Best one so far, save it but keep looking for a better one
5500 ac_cv_path_EGREP="$ac_path_EGREP"
5501 ac_path_EGREP_max=$ac_count
5502 fi
5503 # 10*(2^10) chars as input seems more than enough
5504 test $ac_count -gt 10 && break
9c60689e 5505 done
a243b558
JF
5506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507esac
9c60689e 5508
a243b558
JF
5509 $ac_path_EGREP_found && break 3
5510 done
5511 done
5512 done
5513IFS=$as_save_IFS
5514 if test -z "$ac_cv_path_EGREP"; then
5515 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 fi
9c60689e 5517else
a243b558 5518 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5519fi
5520
a243b558
JF
5521 fi
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5524$as_echo "$ac_cv_path_EGREP" >&6; }
5525 EGREP="$ac_cv_path_EGREP"
ee134472 5526
ee134472 5527
a243b558
JF
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5529$as_echo_n "checking for fgrep... " >&6; }
5530if ${ac_cv_path_FGREP+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532else
5533 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5534 then ac_cv_path_FGREP="$GREP -F"
5535 else
5536 if test -z "$FGREP"; then
5537 ac_path_FGREP_found=false
5538 # Loop through the user's path and test for each of PROGNAME-LIST
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_prog in fgrep; do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5547 as_fn_executable_p "$ac_path_FGREP" || continue
5548# Check for GNU ac_path_FGREP and select it if it is found.
5549 # Check for GNU $ac_path_FGREP
5550case `"$ac_path_FGREP" --version 2>&1` in
5551*GNU*)
5552 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5553*)
5554 ac_count=0
5555 $as_echo_n 0123456789 >"conftest.in"
5556 while :
5557 do
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 $as_echo 'FGREP' >> "conftest.nl"
5562 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_FGREP="$ac_path_FGREP"
5568 ac_path_FGREP_max=$ac_count
5569 fi
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5572 done
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5574esac
a243b558
JF
5575
5576 $ac_path_FGREP_found && break 3
5577 done
5578 done
5579 done
5580IFS=$as_save_IFS
5581 if test -z "$ac_cv_path_FGREP"; then
5582 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5583 fi
a243b558
JF
5584else
5585 ac_cv_path_FGREP=$FGREP
ee134472
JF
5586fi
5587
a243b558
JF
5588 fi
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5591$as_echo "$ac_cv_path_FGREP" >&6; }
5592 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5593
5594
a243b558 5595test -z "$GREP" && GREP=grep
ee134472
JF
5596
5597
5598
5599
5600
5601
5602
ee134472 5603
ee134472 5604
ee134472 5605
ee134472 5606
ee134472 5607
ee134472
JF
5608
5609
5610
5611
5612
5613
5614
a243b558
JF
5615# Check whether --with-gnu-ld was given.
5616if test "${with_gnu_ld+set}" = set; then :
9d54db95 5617 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
5618else
5619 with_gnu_ld=no
5620fi
5621
5622ac_prog=ld
9d54db95 5623if test yes = "$GCC"; then
a243b558
JF
5624 # Check if gcc -print-prog-name=ld gives a path.
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5626$as_echo_n "checking for ld used by $CC... " >&6; }
5627 case $host in
5628 *-*-mingw*)
9d54db95 5629 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
5630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5631 *)
5632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5633 esac
5634 case $ac_prog in
5635 # Accept absolute paths.
5636 [\\/]* | ?:[\\/]*)
5637 re_direlt='/[^/][^/]*/\.\./'
5638 # Canonicalize the pathname of ld
5639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5642 done
9d54db95 5643 test -z "$LD" && LD=$ac_prog
a243b558
JF
5644 ;;
5645 "")
5646 # If it fails, then pretend we aren't using GCC.
5647 ac_prog=ld
5648 ;;
5649 *)
5650 # If it is relative, then search for the first ld in PATH.
5651 with_gnu_ld=unknown
5652 ;;
5653 esac
9d54db95 5654elif test yes = "$with_gnu_ld"; then
a243b558
JF
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5656$as_echo_n "checking for GNU ld... " >&6; }
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5659$as_echo_n "checking for non-GNU ld... " >&6; }
5660fi
5661if ${lt_cv_path_LD+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663else
5664 if test -z "$LD"; then
9d54db95 5665 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5666 for ac_dir in $PATH; do
9d54db95 5667 IFS=$lt_save_ifs
a243b558
JF
5668 test -z "$ac_dir" && ac_dir=.
5669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 5670 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
5671 # Check to see if the program is GNU ld. I'd rather use --version,
5672 # but apparently some variants of GNU ld only accept -v.
5673 # Break only if it was the GNU/non-GNU ld that we prefer.
5674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5675 *GNU* | *'with BFD'*)
9d54db95 5676 test no != "$with_gnu_ld" && break
a243b558
JF
5677 ;;
5678 *)
9d54db95 5679 test yes != "$with_gnu_ld" && break
a243b558
JF
5680 ;;
5681 esac
5682 fi
5683 done
9d54db95 5684 IFS=$lt_save_ifs
a243b558 5685else
9d54db95 5686 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
5687fi
5688fi
5689
9d54db95 5690LD=$lt_cv_path_LD
a243b558
JF
5691if test -n "$LD"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5693$as_echo "$LD" >&6; }
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5700$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5701if ${lt_cv_prog_gnu_ld+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703else
5704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5705case `$LD -v 2>&1 </dev/null` in
5706*GNU* | *'with BFD'*)
5707 lt_cv_prog_gnu_ld=yes
5708 ;;
5709*)
5710 lt_cv_prog_gnu_ld=no
5711 ;;
5712esac
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5715$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5716with_gnu_ld=$lt_cv_prog_gnu_ld
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5727$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5728if ${lt_cv_path_NM+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730else
5731 if test -n "$NM"; then
5732 # Let the user override the test.
9d54db95 5733 lt_cv_path_NM=$NM
a243b558 5734else
9d54db95 5735 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm"
5738 fi
5739 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 5740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 5742 IFS=$lt_save_ifs
a243b558 5743 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
5744 tmp_nm=$ac_dir/$lt_tmp_nm
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 5746 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 5747 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
5748 # nm: unknown option "B" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
5750 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5751 case $build_os in
5752 mingw*) lt_bad_file=conftest.nm/nofile ;;
5753 *) lt_bad_file=/dev/null ;;
5754 esac
5755 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5756 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 5757 lt_cv_path_NM="$tmp_nm -B"
9d54db95 5758 break 2
a243b558
JF
5759 ;;
5760 *)
5761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5762 */dev/null*)
5763 lt_cv_path_NM="$tmp_nm -p"
9d54db95 5764 break 2
a243b558
JF
5765 ;;
5766 *)
5767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5768 continue # so that we can try to find one that supports BSD flags
5769 ;;
5770 esac
5771 ;;
5772 esac
5773 fi
5774 done
9d54db95 5775 IFS=$lt_save_ifs
a243b558
JF
5776 done
5777 : ${lt_cv_path_NM=no}
5778fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5781$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
5782if test no != "$lt_cv_path_NM"; then
5783 NM=$lt_cv_path_NM
a243b558
JF
5784else
5785 # Didn't find any BSD compatible name lister, look for dumpbin.
5786 if test -n "$DUMPBIN"; then :
5787 # Let the user override the test.
5788 else
5789 if test -n "$ac_tool_prefix"; then
5790 for ac_prog in dumpbin "link -dump"
5791 do
5792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5796if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5797 $as_echo_n "(cached) " >&6
5798else
a243b558
JF
5799 if test -n "$DUMPBIN"; then
5800 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5809 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814 done
5815IFS=$as_save_IFS
5816
5817fi
5818fi
a243b558
JF
5819DUMPBIN=$ac_cv_prog_DUMPBIN
5820if test -n "$DUMPBIN"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5822$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5823else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828
a243b558
JF
5829 test -n "$DUMPBIN" && break
5830 done
ee134472 5831fi
a243b558
JF
5832if test -z "$DUMPBIN"; then
5833 ac_ct_DUMPBIN=$DUMPBIN
5834 for ac_prog in dumpbin "link -dump"
5835do
5836 # Extract the first word of "$ac_prog", so it can be a program name with args.
5837set dummy $ac_prog; ac_word=$2
ee134472
JF
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5840if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5841 $as_echo_n "(cached) " >&6
5842else
a243b558
JF
5843 if test -n "$ac_ct_DUMPBIN"; then
5844 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5853 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857done
5858 done
5859IFS=$as_save_IFS
5860
5861fi
5862fi
a243b558
JF
5863ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5864if test -n "$ac_ct_DUMPBIN"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5866$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
a243b558
JF
5872
5873 test -n "$ac_ct_DUMPBIN" && break
5874done
5875
5876 if test "x$ac_ct_DUMPBIN" = x; then
5877 DUMPBIN=":"
ee134472
JF
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880yes:)
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883ac_tool_warned=yes ;;
5884esac
a243b558 5885 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5886 fi
9c60689e
DWT
5887fi
5888
9d54db95 5889 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 5890 *COFF*)
9d54db95 5891 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
5892 ;;
5893 *)
5894 DUMPBIN=:
5895 ;;
5896 esac
5897 fi
9c60689e 5898
9d54db95
JF
5899 if test : != "$DUMPBIN"; then
5900 NM=$DUMPBIN
a243b558
JF
5901 fi
5902fi
5903test -z "$NM" && NM=nm
9c60689e
DWT
5904
5905
5906
5907
5908
a243b558
JF
5909
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5911$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5912if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5913 $as_echo_n "(cached) " >&6
5914else
a243b558
JF
5915 lt_cv_nm_interface="BSD nm"
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5918 (eval "$ac_compile" 2>conftest.err)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5921 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5922 cat conftest.err >&5
5923 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5924 cat conftest.out >&5
5925 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5926 lt_cv_nm_interface="MS dumpbin"
9c60689e 5927 fi
00a96142 5928 rm -rf conftest*
9c60689e 5929fi
a243b558
JF
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5931$as_echo "$lt_cv_nm_interface" >&6; }
5932
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5934$as_echo_n "checking whether ln -s works... " >&6; }
5935LN_S=$as_ln_s
5936if test "$LN_S" = "ln -s"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938$as_echo "yes" >&6; }
9c60689e 5939else
a243b558
JF
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5941$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5942fi
5943
a243b558
JF
5944# find the maximum length of command line arguments
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5946$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5947if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5948 $as_echo_n "(cached) " >&6
5949else
a243b558 5950 i=0
9d54db95 5951 teststring=ABCD
9c60689e 5952
a243b558
JF
5953 case $build_os in
5954 msdosdjgpp*)
5955 # On DJGPP, this test can blow up pretty badly due to problems in libc
5956 # (any single argument exceeding 2000 bytes causes a buffer overrun
5957 # during glob expansion). Even if it were fixed, the result of this
5958 # check would be larger than it should be.
5959 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5960 ;;
9c60689e 5961
a243b558
JF
5962 gnu*)
5963 # Under GNU Hurd, this test is not required because there is
5964 # no limit to the length of command line arguments.
5965 # Libtool will interpret -1 as no limit whatsoever
5966 lt_cv_sys_max_cmd_len=-1;
5967 ;;
9c60689e 5968
a243b558
JF
5969 cygwin* | mingw* | cegcc*)
5970 # On Win9x/ME, this test blows up -- it succeeds, but takes
5971 # about 5 minutes as the teststring grows exponentially.
5972 # Worse, since 9x/ME are not pre-emptively multitasking,
5973 # you end up with a "frozen" computer, even though with patience
5974 # the test eventually succeeds (with a max line length of 256k).
5975 # Instead, let's just punt: use the minimum linelength reported by
5976 # all of the supported platforms: 8192 (on NT/2K/XP).
5977 lt_cv_sys_max_cmd_len=8192;
5978 ;;
9c60689e 5979
a243b558
JF
5980 mint*)
5981 # On MiNT this can take a long time and run out of memory.
5982 lt_cv_sys_max_cmd_len=8192;
5983 ;;
9c60689e 5984
a243b558
JF
5985 amigaos*)
5986 # On AmigaOS with pdksh, this test takes hours, literally.
5987 # So we just punt and use a minimum line length of 8192.
5988 lt_cv_sys_max_cmd_len=8192;
5989 ;;
9c60689e 5990
9d54db95 5991 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
5992 # This has been around since 386BSD, at least. Likely further.
5993 if test -x /sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5995 elif test -x /usr/sbin/sysctl; then
5996 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5997 else
5998 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5999 fi
6000 # And add a safety zone
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6003 ;;
9c60689e 6004
a243b558
JF
6005 interix*)
6006 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6007 lt_cv_sys_max_cmd_len=196608
6008 ;;
9c60689e 6009
a243b558
JF
6010 os2*)
6011 # The test takes a long time on OS/2.
6012 lt_cv_sys_max_cmd_len=8192
6013 ;;
9c60689e 6014
a243b558
JF
6015 osf*)
6016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6018 # nice to cause kernel panics so lets avoid the loop below.
6019 # First set a reasonable default.
6020 lt_cv_sys_max_cmd_len=16384
6021 #
6022 if test -x /sbin/sysconfig; then
6023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6025 esac
6026 fi
6027 ;;
6028 sco3.2v5*)
6029 lt_cv_sys_max_cmd_len=102400
6030 ;;
6031 sysv5* | sco5v6* | sysv4.2uw2*)
6032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6033 if test -n "$kargmax"; then
6034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6035 else
6036 lt_cv_sys_max_cmd_len=32768
6037 fi
9c60689e
DWT
6038 ;;
6039 *)
a243b558 6040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
6041 if test -n "$lt_cv_sys_max_cmd_len" && \
6042 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6045 else
6046 # Make teststring a little bigger before we do anything with it.
6047 # a 1K string should be a reasonable start.
9d54db95 6048 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
6049 teststring=$teststring$teststring
6050 done
6051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6052 # If test is not a shell built-in, we'll probably end up computing a
6053 # maximum length that is only half of the actual maximum length, but
6054 # we can't tell.
9d54db95 6055 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 6056 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 6057 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
6058 do
6059 i=`expr $i + 1`
6060 teststring=$teststring$teststring
6061 done
6062 # Only check the string length outside the loop.
6063 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6064 teststring=
6065 # Add a significant safety factor because C++ compilers can tack on
6066 # massive amounts of additional arguments before passing them to the
6067 # linker. It appears as though 1/2 is a usable value.
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6069 fi
9c60689e
DWT
6070 ;;
6071 esac
ee134472 6072
a243b558 6073fi
ee134472 6074
9d54db95 6075if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6077$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6078else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6080$as_echo "none" >&6; }
6081fi
6082max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6083
6084
9c60689e
DWT
6085
6086
6087
6088
a243b558
JF
6089: ${CP="cp -f"}
6090: ${MV="mv -f"}
6091: ${RM="rm -f"}
9c60689e 6092
a243b558
JF
6093if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6094 lt_unset=unset
6095else
6096 lt_unset=false
6097fi
9c60689e
DWT
6098
6099
6100
6101
6102
a243b558
JF
6103# test EBCDIC or ASCII
6104case `echo X|tr X '\101'` in
6105 A) # ASCII based system
6106 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6107 lt_SP2NL='tr \040 \012'
6108 lt_NL2SP='tr \015\012 \040\040'
6109 ;;
6110 *) # EBCDIC based system
6111 lt_SP2NL='tr \100 \n'
6112 lt_NL2SP='tr \r\n \100\100'
6113 ;;
6114esac
9c60689e
DWT
6115
6116
6117
6118
6119
6120
6121
6122
6123
a243b558
JF
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6125$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6126if ${lt_cv_to_host_file_cmd+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128else
6129 case $host in
6130 *-*-mingw* )
6131 case $build in
6132 *-*-mingw* ) # actually msys
6133 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6134 ;;
6135 *-*-cygwin* )
6136 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6137 ;;
6138 * ) # otherwise, assume *nix
6139 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6140 ;;
6141 esac
6142 ;;
6143 *-*-cygwin* )
6144 case $build in
6145 *-*-mingw* ) # actually msys
6146 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6147 ;;
6148 *-*-cygwin* )
6149 lt_cv_to_host_file_cmd=func_convert_file_noop
6150 ;;
6151 * ) # otherwise, assume *nix
6152 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6153 ;;
6154 esac
6155 ;;
6156 * ) # unhandled hosts (and "normal" native builds)
6157 lt_cv_to_host_file_cmd=func_convert_file_noop
6158 ;;
6159esac
9c60689e 6160
a243b558 6161fi
9c60689e 6162
a243b558
JF
6163to_host_file_cmd=$lt_cv_to_host_file_cmd
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6165$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6166
6167
6168
6169
6170
a243b558
JF
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6172$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6173if ${lt_cv_to_tool_file_cmd+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 #assume ordinary cross tools, or native build.
6177lt_cv_to_tool_file_cmd=func_convert_file_noop
6178case $host in
6179 *-*-mingw* )
6180 case $build in
6181 *-*-mingw* ) # actually msys
6182 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6183 ;;
6184 esac
6185 ;;
6186esac
9c60689e 6187
a243b558 6188fi
9c60689e 6189
a243b558
JF
6190to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6192$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6193
9c60689e 6194
9c60689e 6195
9c60689e
DWT
6196
6197
a243b558
JF
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6199$as_echo_n "checking for $LD option to reload object files... " >&6; }
6200if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6201 $as_echo_n "(cached) " >&6
6202else
a243b558
JF
6203 lt_cv_ld_reload_flag='-r'
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6206$as_echo "$lt_cv_ld_reload_flag" >&6; }
6207reload_flag=$lt_cv_ld_reload_flag
6208case $reload_flag in
6209"" | " "*) ;;
6210*) reload_flag=" $reload_flag" ;;
6211esac
6212reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6213case $host_os in
a243b558 6214 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 6215 if test yes != "$GCC"; then
a243b558
JF
6216 reload_cmds=false
6217 fi
6218 ;;
6219 darwin*)
9d54db95
JF
6220 if test yes = "$GCC"; then
6221 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
6222 else
6223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224 fi
6225 ;;
9c60689e
DWT
6226esac
6227
9c60689e 6228
9c60689e 6229
9c60689e 6230
9c60689e 6231
9c60689e 6232
9c60689e 6233
9c60689e 6234
9c60689e 6235
a243b558
JF
6236if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}objdump; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_OBJDUMP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243else
6244 if test -n "$OBJDUMP"; then
6245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
6259 done
6260IFS=$as_save_IFS
9c60689e 6261
a243b558
JF
6262fi
6263fi
6264OBJDUMP=$ac_cv_prog_OBJDUMP
6265if test -n "$OBJDUMP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6267$as_echo "$OBJDUMP" >&6; }
6268else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
9c60689e 6272
9c60689e 6273
a243b558
JF
6274fi
6275if test -z "$ac_cv_prog_OBJDUMP"; then
6276 ac_ct_OBJDUMP=$OBJDUMP
6277 # Extract the first word of "objdump", so it can be a program name with args.
6278set dummy objdump; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$ac_ct_OBJDUMP"; then
6285 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
9c60689e
DWT
6297 fi
6298done
a243b558
JF
6299 done
6300IFS=$as_save_IFS
9c60689e
DWT
6301
6302fi
9c60689e 6303fi
a243b558
JF
6304ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305if test -n "$ac_ct_OBJDUMP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6307$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6308else
a243b558
JF
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
9c60689e
DWT
6311fi
6312
a243b558
JF
6313 if test "x$ac_ct_OBJDUMP" = x; then
6314 OBJDUMP="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322 OBJDUMP=$ac_ct_OBJDUMP
6323 fi
6324else
6325 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6326fi
6327
a243b558 6328test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6329
6330
6331
6332
6333
6334
6335
6336
6337
a243b558
JF
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6339$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6340if ${lt_cv_deplibs_check_method+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342else
6343 lt_cv_file_magic_cmd='$MAGIC_CMD'
6344lt_cv_file_magic_test_file=
6345lt_cv_deplibs_check_method='unknown'
6346# Need to set the preceding variable on all platforms that support
6347# interlibrary dependencies.
6348# 'none' -- dependencies not supported.
9d54db95 6349# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
6350# 'pass_all' -- all dependencies passed with no checks.
6351# 'test_compile' -- check by making test program.
6352# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
6353# that responds to the $file_magic_cmd with a given extended regex.
6354# If you have 'file' or equivalent on your system and you're not sure
6355# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 6356
a243b558
JF
6357case $host_os in
6358aix[4-9]*)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
9c60689e 6361
a243b558
JF
6362beos*)
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
9c60689e 6365
a243b558
JF
6366bsdi[45]*)
6367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6368 lt_cv_file_magic_cmd='/usr/bin/file -L'
6369 lt_cv_file_magic_test_file=/shlib/libc.so
6370 ;;
9c60689e 6371
a243b558
JF
6372cygwin*)
6373 # func_win32_libid is a shell function defined in ltmain.sh
6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375 lt_cv_file_magic_cmd='func_win32_libid'
6376 ;;
9c60689e 6377
a243b558
JF
6378mingw* | pw32*)
6379 # Base MSYS/MinGW do not provide the 'file' command needed by
6380 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6381 # unless we find 'file', for example because we are cross-compiling.
9d54db95 6382 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
6383 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6384 lt_cv_file_magic_cmd='func_win32_libid'
6385 else
6386 # Keep this pattern in sync with the one in func_win32_libid.
6387 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6388 lt_cv_file_magic_cmd='$OBJDUMP -f'
6389 fi
6390 ;;
9c60689e 6391
a243b558
JF
6392cegcc*)
6393 # use the weaker test based on 'objdump'. See mingw*.
6394 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6395 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 ;;
9c60689e 6397
a243b558
JF
6398darwin* | rhapsody*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
9c60689e 6401
a243b558
JF
6402freebsd* | dragonfly*)
6403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6404 case $host_cpu in
6405 i*86 )
6406 # Not sure whether the presence of OpenBSD here was a mistake.
6407 # Let's accept both of them until this is cleared up.
6408 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6409 lt_cv_file_magic_cmd=/usr/bin/file
6410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6411 ;;
6412 esac
6413 else
6414 lt_cv_deplibs_check_method=pass_all
6415 fi
6416 ;;
9c60689e 6417
a243b558
JF
6418haiku*)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
9c60689e 6421
a243b558
JF
6422hpux10.20* | hpux11*)
6423 lt_cv_file_magic_cmd=/usr/bin/file
6424 case $host_cpu in
6425 ia64*)
6426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6428 ;;
6429 hppa*64*)
6430 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]'
6431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6432 ;;
6433 *)
6434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6436 ;;
6437 esac
6438 ;;
9c60689e 6439
a243b558
JF
6440interix[3-9]*)
6441 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6443 ;;
9c60689e 6444
a243b558
JF
6445irix5* | irix6* | nonstopux*)
6446 case $LD in
6447 *-32|*"-32 ") libmagic=32-bit;;
6448 *-n32|*"-n32 ") libmagic=N32;;
6449 *-64|*"-64 ") libmagic=64-bit;;
6450 *) libmagic=never-match;;
6451 esac
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
9c60689e 6454
a243b558 6455# This must be glibc/ELF.
9d54db95 6456linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
9c60689e 6459
a243b558
JF
6460netbsd*)
6461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6463 else
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6465 fi
6466 ;;
9c60689e 6467
a243b558
JF
6468newos6*)
6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6470 lt_cv_file_magic_cmd=/usr/bin/file
6471 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6472 ;;
9c60689e 6473
a243b558
JF
6474*nto* | *qnx*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
9c60689e 6477
9d54db95
JF
6478openbsd* | bitrig*)
6479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6481 else
6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6483 fi
6484 ;;
9c60689e 6485
a243b558
JF
6486osf3* | osf4* | osf5*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
9c60689e 6489
a243b558
JF
6490rdos*)
6491 lt_cv_deplibs_check_method=pass_all
9c60689e 6492 ;;
a243b558
JF
6493
6494solaris*)
6495 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6496 ;;
6497
a243b558
JF
6498sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6499 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6500 ;;
6501
a243b558
JF
6502sysv4 | sysv4.3*)
6503 case $host_vendor in
6504 motorola)
6505 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]'
6506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6507 ;;
6508 ncr)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511 sequent)
6512 lt_cv_file_magic_cmd='/bin/file'
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6514 ;;
6515 sni)
6516 lt_cv_file_magic_cmd='/bin/file'
6517 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6518 lt_cv_file_magic_test_file=/lib/libc.so
6519 ;;
6520 siemens)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 pc)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 esac
6527 ;;
9c60689e 6528
a243b558
JF
6529tpf*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
9d54db95
JF
6532os2*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
a243b558 6535esac
9c60689e 6536
a243b558
JF
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6539$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6540
a243b558
JF
6541file_magic_glob=
6542want_nocaseglob=no
6543if test "$build" = "$host"; then
6544 case $host_os in
6545 mingw* | pw32*)
6546 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6547 want_nocaseglob=yes
6548 else
6549 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6550 fi
6551 ;;
6552 esac
9c60689e 6553fi
9c60689e 6554
a243b558
JF
6555file_magic_cmd=$lt_cv_file_magic_cmd
6556deplibs_check_method=$lt_cv_deplibs_check_method
6557test -z "$deplibs_check_method" && deplibs_check_method=unknown
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
9c60689e 6578
9c60689e 6579
ee134472 6580if test -n "$ac_tool_prefix"; then
a243b558
JF
6581 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6585if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6586 $as_echo_n "(cached) " >&6
6587else
a243b558
JF
6588 if test -n "$DLLTOOL"; then
6589 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6598 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603 done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
a243b558
JF
6608DLLTOOL=$ac_cv_prog_DLLTOOL
6609if test -n "$DLLTOOL"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6611$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6612else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618fi
a243b558
JF
6619if test -z "$ac_cv_prog_DLLTOOL"; then
6620 ac_ct_DLLTOOL=$DLLTOOL
6621 # Extract the first word of "dlltool", so it can be a program name with args.
6622set dummy dlltool; ac_word=$2
ee134472
JF
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6625if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6626 $as_echo_n "(cached) " >&6
6627else
a243b558
JF
6628 if test -n "$ac_ct_DLLTOOL"; then
6629 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6638 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643 done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
a243b558
JF
6648ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6649if test -n "$ac_ct_DLLTOOL"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6651$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6652else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
a243b558
JF
6657 if test "x$ac_ct_DLLTOOL" = x; then
6658 DLLTOOL="false"
ee134472
JF
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
a243b558 6666 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6667 fi
6668else
a243b558 6669 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6670fi
6671
a243b558
JF
6672test -z "$DLLTOOL" && DLLTOOL=dlltool
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6684$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6685if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6686 $as_echo_n "(cached) " >&6
6687else
a243b558
JF
6688 lt_cv_sharedlib_from_linklib_cmd='unknown'
6689
6690case $host_os in
6691cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
6692 # two different shell functions defined in ltmain.sh;
6693 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
6694 case `$DLLTOOL --help 2>&1` in
6695 *--identify-strict*)
6696 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6697 ;;
6698 *)
6699 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6700 ;;
6701 esac
6702 ;;
6703*)
6704 # fallback: assume linklib IS sharedlib
9d54db95 6705 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
6706 ;;
6707esac
6708
ee134472 6709fi
a243b558
JF
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6711$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6712sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6713test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6714
6715
6716
6717
6718
9c60689e 6719
a243b558
JF
6720
6721if test -n "$ac_tool_prefix"; then
6722 for ac_prog in ar
6723 do
6724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6728if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6729 $as_echo_n "(cached) " >&6
6730else
a243b558
JF
6731 if test -n "$AR"; then
6732 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6741 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746 done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
a243b558
JF
6751AR=$ac_cv_prog_AR
6752if test -n "$AR"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6754$as_echo "$AR" >&6; }
9c60689e
DWT
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760
a243b558
JF
6761 test -n "$AR" && break
6762 done
9c60689e 6763fi
a243b558
JF
6764if test -z "$AR"; then
6765 ac_ct_AR=$AR
6766 for ac_prog in ar
6767do
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6772if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6773 $as_echo_n "(cached) " >&6
6774else
a243b558
JF
6775 if test -n "$ac_ct_AR"; then
6776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6785 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789done
6790 done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
a243b558
JF
6795ac_ct_AR=$ac_cv_prog_ac_ct_AR
6796if test -n "$ac_ct_AR"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6798$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6799else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
a243b558
JF
6804
6805 test -n "$ac_ct_AR" && break
6806done
6807
6808 if test "x$ac_ct_AR" = x; then
6809 AR="false"
9c60689e
DWT
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812yes:)
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815ac_tool_warned=yes ;;
6816esac
a243b558 6817 AR=$ac_ct_AR
9c60689e 6818 fi
a243b558
JF
6819fi
6820
6821: ${AR=ar}
6822: ${AR_FLAGS=cru}
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6835$as_echo_n "checking for archiver @FILE support... " >&6; }
6836if ${lt_cv_ar_at_file+:} false; then :
6837 $as_echo_n "(cached) " >&6
9c60689e 6838else
a243b558
JF
6839 lt_cv_ar_at_file=no
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h. */
6842
6843int
6844main ()
6845{
6846
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"; then :
6852 echo conftest.$ac_objext > conftest.lst
6853 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6855 (eval $lt_ar_try) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }
9d54db95 6859 if test 0 -eq "$ac_status"; then
a243b558
JF
6860 # Ensure the archiver fails upon bogus file names.
6861 rm -f conftest.$ac_objext libconftest.a
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6863 (eval $lt_ar_try) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
9d54db95 6867 if test 0 -ne "$ac_status"; then
a243b558
JF
6868 lt_cv_ar_at_file=@
6869 fi
6870 fi
6871 rm -f conftest.* libconftest.a
6872
9c60689e 6873fi
a243b558 6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6875
a243b558
JF
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6878$as_echo "$lt_cv_ar_at_file" >&6; }
6879
9d54db95 6880if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
6881 archiver_list_spec=
6882else
6883 archiver_list_spec=$lt_cv_ar_at_file
6884fi
6885
6886
6887
6888
6889
6890
6891
6892if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6894set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6897if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6898 $as_echo_n "(cached) " >&6
6899else
a243b558
JF
6900 if test -n "$STRIP"; then
6901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914done
6915 done
6916IFS=$as_save_IFS
6917
6918fi
6919fi
a243b558
JF
6920STRIP=$ac_cv_prog_STRIP
6921if test -n "$STRIP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6923$as_echo "$STRIP" >&6; }
9c60689e
DWT
6924else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929
6930fi
a243b558
JF
6931if test -z "$ac_cv_prog_STRIP"; then
6932 ac_ct_STRIP=$STRIP
6933 # Extract the first word of "strip", so it can be a program name with args.
6934set dummy strip; ac_word=$2
9c60689e
DWT
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6937if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6938 $as_echo_n "(cached) " >&6
6939else
a243b558
JF
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6950 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954done
6955 done
6956IFS=$as_save_IFS
6957
6958fi
6959fi
a243b558
JF
6960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6961if test -n "$ac_ct_STRIP"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6963$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6964else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967fi
6968
a243b558
JF
6969 if test "x$ac_ct_STRIP" = x; then
6970 STRIP=":"
9c60689e
DWT
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973yes:)
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976ac_tool_warned=yes ;;
6977esac
a243b558 6978 STRIP=$ac_ct_STRIP
9c60689e
DWT
6979 fi
6980else
a243b558 6981 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6982fi
6983
a243b558
JF
6984test -z "$STRIP" && STRIP=:
6985
6986
6987
6988
6989
6990
6991if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6996if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6997 $as_echo_n "(cached) " >&6
6998else
a243b558
JF
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014 done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
a243b558
JF
7019RANLIB=$ac_cv_prog_RANLIB
7020if test -n "$RANLIB"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
a243b558
JF
7030if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033set dummy ranlib; ac_word=$2
9c60689e
DWT
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7036if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7037 $as_echo_n "(cached) " >&6
7038else
a243b558
JF
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7049 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054 done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
a243b558
JF
7059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060if test -n "$ac_ct_RANLIB"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7062$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7063else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
a243b558
JF
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
9c60689e
DWT
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
a243b558 7077 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7078 fi
7079else
a243b558 7080 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7081fi
7082
a243b558
JF
7083test -z "$RANLIB" && RANLIB=:
7084
7085
9c60689e 7086
9c60689e
DWT
7087
7088
a243b558
JF
7089
7090# Determine commands to create old-style static archives.
7091old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7092old_postinstall_cmds='chmod 644 $oldlib'
7093old_postuninstall_cmds=
7094
7095if test -n "$RANLIB"; then
7096 case $host_os in
9d54db95 7097 bitrig* | openbsd*)
a243b558
JF
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7099 ;;
7100 *)
7101 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7102 ;;
7103 esac
7104 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7105fi
7106
a243b558
JF
7107case $host_os in
7108 darwin*)
7109 lock_old_archive_extraction=yes ;;
7110 *)
7111 lock_old_archive_extraction=no ;;
9c60689e 7112esac
9c60689e 7113
9c60689e 7114
9c60689e
DWT
7115
7116
9c60689e 7117
9c60689e 7118
9c60689e
DWT
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
53ba6704 7146
9c60689e 7147
9c60689e 7148
9c60689e 7149
53ba6704 7150
a243b558
JF
7151
7152# If no C compiler was specified, use CC.
7153LTCC=${LTCC-"$CC"}
7154
7155# If no C compiler flags were specified, use CFLAGS.
7156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7157
7158# Allow CC to be a program name with arguments.
7159compiler=$CC
7160
7161
7162# Check for command to grab the raw symbol name followed by C symbol from nm.
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7164$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7165if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7166 $as_echo_n "(cached) " >&6
7167else
ee134472 7168
a243b558
JF
7169# These are sane defaults that work on at least a few old systems.
7170# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7171
a243b558
JF
7172# Character class describing NM global symbol codes.
7173symcode='[BCDEGRST]'
9c60689e 7174
a243b558
JF
7175# Regexp to match symbols that can be accessed directly from C.
7176sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7177
a243b558
JF
7178# Define system-specific variables.
7179case $host_os in
7180aix*)
7181 symcode='[BCDT]'
7182 ;;
7183cygwin* | mingw* | pw32* | cegcc*)
7184 symcode='[ABCDGISTW]'
7185 ;;
7186hpux*)
9d54db95 7187 if test ia64 = "$host_cpu"; then
a243b558
JF
7188 symcode='[ABCDEGRST]'
7189 fi
7190 ;;
7191irix* | nonstopux*)
7192 symcode='[BCDEGRST]'
7193 ;;
7194osf*)
7195 symcode='[BCDEGQRST]'
7196 ;;
7197solaris*)
7198 symcode='[BDRT]'
7199 ;;
7200sco3.2v5*)
7201 symcode='[DT]'
7202 ;;
7203sysv4.2uw2*)
7204 symcode='[DT]'
7205 ;;
7206sysv5* | sco5v6* | unixware* | OpenUNIX*)
7207 symcode='[ABDT]'
7208 ;;
7209sysv4)
7210 symcode='[DFNSTU]'
7211 ;;
7212esac
9c60689e 7213
a243b558
JF
7214# If we're using GNU nm, then use its standard symbol codes.
7215case `$NM -V 2>&1` in
7216*GNU* | *'with BFD'*)
7217 symcode='[ABCDGIRSTW]' ;;
7218esac
9c60689e 7219
9d54db95
JF
7220if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7221 # Gets list of data symbols to import.
7222 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7223 # Adjust the below global symbol transforms to fixup imported variables.
7224 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7225 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7226 lt_c_name_lib_hook="\
7227 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7228 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7229else
7230 # Disable hooks by default.
7231 lt_cv_sys_global_symbol_to_import=
7232 lt_cdecl_hook=
7233 lt_c_name_hook=
7234 lt_c_name_lib_hook=
7235fi
7236
a243b558
JF
7237# Transform an extracted symbol line into a proper C declaration.
7238# Some systems (esp. on ia64) link data and code symbols differently,
7239# so use this general approach.
9d54db95
JF
7240lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7241$lt_cdecl_hook\
7242" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7243" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7244
a243b558 7245# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
7246lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7247$lt_c_name_hook\
7248" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7249" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7250
7251# Transform an extracted symbol line into symbol name with lib prefix and
7252# symbol address.
7253lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7254$lt_c_name_lib_hook\
7255" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7256" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7257" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 7258
a243b558
JF
7259# Handle CRLF in mingw tool chain
7260opt_cr=
7261case $build_os in
7262mingw*)
7263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7264 ;;
7265esac
9c60689e 7266
a243b558
JF
7267# Try without a prefix underscore, then with it.
7268for ac_symprfx in "" "_"; do
9c60689e 7269
a243b558
JF
7270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7271 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7272
a243b558
JF
7273 # Write the raw and C identifiers.
7274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
7275 # Fake it for dumpbin and say T for any non-static function,
7276 # D for any global variable and I for any imported variable.
a243b558
JF
7277 # Also find C++ and __fastcall symbols from MSVC++,
7278 # which start with @ or ?.
7279 lt_cv_sys_global_symbol_pipe="$AWK '"\
7280" {last_section=section; section=\$ 3};"\
7281" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7282" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
7283" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7284" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7285" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
7286" \$ 0!~/External *\|/{next};"\
7287" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7288" {if(hide[section]) next};"\
9d54db95
JF
7289" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7290" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7291" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7292" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
7293" ' prfx=^$ac_symprfx"
7294 else
7295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7296 fi
7297 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7298
a243b558
JF
7299 # Check to see that the pipe works correctly.
7300 pipe_works=no
9c60689e 7301
00a96142 7302 rm -rf conftest*
a243b558
JF
7303 cat > conftest.$ac_ext <<_LT_EOF
7304#ifdef __cplusplus
7305extern "C" {
7306#endif
7307char nm_test_var;
7308void nm_test_func(void);
7309void nm_test_func(void){}
7310#ifdef __cplusplus
7311}
7312#endif
7313int main(){nm_test_var='a';nm_test_func();return(0);}
7314_LT_EOF
9c60689e 7315
a243b558
JF
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 # Now try to grab the symbols.
7322 nlist=conftest.nm
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7324 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; } && test -s "$nlist"; then
7328 # Try sorting and uniquifying the output.
7329 if sort "$nlist" | uniq > "$nlist"T; then
7330 mv -f "$nlist"T "$nlist"
7331 else
7332 rm -f "$nlist"T
7333 fi
9c60689e 7334
a243b558
JF
7335 # Make sure that we snagged all the symbols we need.
7336 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7337 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7338 cat <<_LT_EOF > conftest.$ac_ext
7339/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
7340#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7341/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
7342 relocations are performed -- see ld's documentation on pseudo-relocs. */
7343# define LT_DLSYM_CONST
9d54db95 7344#elif defined __osf__
a243b558
JF
7345/* This system does not cope well with relocations in const data. */
7346# define LT_DLSYM_CONST
7347#else
7348# define LT_DLSYM_CONST const
7349#endif
9c60689e 7350
a243b558
JF
7351#ifdef __cplusplus
7352extern "C" {
7353#endif
9c60689e 7354
a243b558
JF
7355_LT_EOF
7356 # Now generate the symbol file.
7357 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7358
a243b558 7359 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7360
a243b558
JF
7361/* The mapping between symbol names and symbols. */
7362LT_DLSYM_CONST struct {
7363 const char *name;
7364 void *address;
7365}
7366lt__PROGRAM__LTX_preloaded_symbols[] =
7367{
7368 { "@PROGRAM@", (void *) 0 },
7369_LT_EOF
9d54db95 7370 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
7371 cat <<\_LT_EOF >> conftest.$ac_ext
7372 {0, (void *) 0}
7373};
9c60689e 7374
a243b558
JF
7375/* This works around a problem in FreeBSD linker */
7376#ifdef FREEBSD_WORKAROUND
7377static const void *lt_preloaded_setup() {
7378 return lt__PROGRAM__LTX_preloaded_symbols;
7379}
7380#endif
9c60689e 7381
a243b558
JF
7382#ifdef __cplusplus
7383}
7384#endif
7385_LT_EOF
7386 # Now try linking the two files.
7387 mv conftest.$ac_objext conftstm.$ac_objext
7388 lt_globsym_save_LIBS=$LIBS
7389 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 7390 LIBS=conftstm.$ac_objext
a243b558
JF
7391 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 7396 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
7397 pipe_works=yes
7398 fi
7399 LIBS=$lt_globsym_save_LIBS
7400 CFLAGS=$lt_globsym_save_CFLAGS
7401 else
7402 echo "cannot find nm_test_func in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot find nm_test_var in $nlist" >&5
7406 fi
7407 else
7408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 fi
7410 else
7411 echo "$progname: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 fi
7414 rm -rf conftest* conftst*
9c60689e 7415
a243b558 7416 # Do not use the global_symbol_pipe unless it works.
9d54db95 7417 if test yes = "$pipe_works"; then
a243b558
JF
7418 break
7419 else
7420 lt_cv_sys_global_symbol_pipe=
7421 fi
7422done
9c60689e 7423
9c60689e 7424fi
9c60689e 7425
a243b558
JF
7426if test -z "$lt_cv_sys_global_symbol_pipe"; then
7427 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7428fi
a243b558
JF
7429if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7431$as_echo "failed" >&6; }
9c60689e 7432else
a243b558
JF
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7434$as_echo "ok" >&6; }
9c60689e
DWT
7435fi
7436
a243b558
JF
7437# Response file support.
7438if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7439 nm_file_list_spec='@'
7440elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7441 nm_file_list_spec='@'
9c60689e 7442fi
9c60689e 7443
9c60689e 7444
9c60689e 7445
9c60689e 7446
9c60689e 7447
9c60689e
DWT
7448
7449
9c60689e 7450
9c60689e 7451
9c60689e
DWT
7452
7453
7454
ee134472
JF
7455
7456
9c60689e
DWT
7457
7458
9d54db95
JF
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
9c60689e
DWT
7469
7470
7471
7472
7473
7474
7475
549f29b5 7476
549f29b5
DWT
7477
7478
549f29b5 7479
a243b558
JF
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7481$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7482
a243b558
JF
7483# Check whether --with-sysroot was given.
7484if test "${with_sysroot+set}" = set; then :
7485 withval=$with_sysroot;
9c60689e 7486else
a243b558 7487 with_sysroot=no
9c60689e
DWT
7488fi
7489
7490
a243b558 7491lt_sysroot=
9d54db95 7492case $with_sysroot in #(
a243b558 7493 yes)
9d54db95 7494 if test yes = "$GCC"; then
a243b558
JF
7495 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7496 fi
7497 ;; #(
7498 /*)
7499 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7500 ;; #(
7501 no|'')
7502 ;; #(
7503 *)
9d54db95
JF
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7505$as_echo "$with_sysroot" >&6; }
a243b558
JF
7506 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7507 ;;
7508esac
9c60689e 7509
a243b558
JF
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7511$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7512
7513
7514
7515
7516
9d54db95
JF
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7518$as_echo_n "checking for a working dd... " >&6; }
7519if ${ac_cv_path_lt_DD+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521else
7522 printf 0123456789abcdef0123456789abcdef >conftest.i
7523cat conftest.i conftest.i >conftest2.i
7524: ${lt_DD:=$DD}
7525if test -z "$lt_DD"; then
7526 ac_path_lt_DD_found=false
7527 # Loop through the user's path and test for each of PROGNAME-LIST
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_prog in dd; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7536 as_fn_executable_p "$ac_path_lt_DD" || continue
7537if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7538 cmp -s conftest.i conftest.out \
7539 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7540fi
7541 $ac_path_lt_DD_found && break 3
7542 done
7543 done
7544 done
7545IFS=$as_save_IFS
7546 if test -z "$ac_cv_path_lt_DD"; then
7547 :
7548 fi
7549else
7550 ac_cv_path_lt_DD=$lt_DD
7551fi
7552
7553rm -f conftest.i conftest2.i conftest.out
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7556$as_echo "$ac_cv_path_lt_DD" >&6; }
7557
7558
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7560$as_echo_n "checking how to truncate binary pipes... " >&6; }
7561if ${lt_cv_truncate_bin+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563else
7564 printf 0123456789abcdef0123456789abcdef >conftest.i
7565cat conftest.i conftest.i >conftest2.i
7566lt_cv_truncate_bin=
7567if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7568 cmp -s conftest.i conftest.out \
7569 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7570fi
7571rm -f conftest.i conftest2.i conftest.out
7572test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7573fi
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7575$as_echo "$lt_cv_truncate_bin" >&6; }
7576
7577
7578
7579
7580
7581
7582
7583# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7584func_cc_basename ()
7585{
7586 for cc_temp in $*""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7595}
7596
a243b558
JF
7597# Check whether --enable-libtool-lock was given.
7598if test "${enable_libtool_lock+set}" = set; then :
7599 enableval=$enable_libtool_lock;
9c60689e
DWT
7600fi
7601
9d54db95 7602test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 7603
a243b558
JF
7604# Some flags need to be propagated to the compiler or linker for good
7605# libtool support.
7606case $host in
7607ia64-*-hpux*)
9d54db95
JF
7608 # Find out what ABI is being produced by ac_compile, and set mode
7609 # options accordingly.
a243b558
JF
7610 echo 'int i;' > conftest.$ac_ext
7611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7612 (eval $ac_compile) 2>&5
7613 ac_status=$?
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; }; then
7616 case `/usr/bin/file conftest.$ac_objext` in
7617 *ELF-32*)
9d54db95 7618 HPUX_IA64_MODE=32
a243b558
JF
7619 ;;
7620 *ELF-64*)
9d54db95 7621 HPUX_IA64_MODE=64
a243b558
JF
7622 ;;
7623 esac
7624 fi
7625 rm -rf conftest*
7626 ;;
7627*-*-irix6*)
9d54db95
JF
7628 # Find out what ABI is being produced by ac_compile, and set linker
7629 # options accordingly.
a243b558
JF
7630 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
9d54db95 7636 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
7637 case `/usr/bin/file conftest.$ac_objext` in
7638 *32-bit*)
7639 LD="${LD-ld} -melf32bsmip"
7640 ;;
7641 *N32*)
7642 LD="${LD-ld} -melf32bmipn32"
7643 ;;
7644 *64-bit*)
7645 LD="${LD-ld} -melf64bmip"
7646 ;;
7647 esac
7648 else
7649 case `/usr/bin/file conftest.$ac_objext` in
7650 *32-bit*)
7651 LD="${LD-ld} -32"
7652 ;;
7653 *N32*)
7654 LD="${LD-ld} -n32"
7655 ;;
7656 *64-bit*)
7657 LD="${LD-ld} -64"
7658 ;;
7659 esac
7660 fi
7661 fi
7662 rm -rf conftest*
7663 ;;
9c60689e 7664
9d54db95
JF
7665mips64*-*linux*)
7666 # Find out what ABI is being produced by ac_compile, and set linker
7667 # options accordingly.
7668 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7670 (eval $ac_compile) 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }; then
7674 emul=elf
7675 case `/usr/bin/file conftest.$ac_objext` in
7676 *32-bit*)
7677 emul="${emul}32"
7678 ;;
7679 *64-bit*)
7680 emul="${emul}64"
7681 ;;
7682 esac
7683 case `/usr/bin/file conftest.$ac_objext` in
7684 *MSB*)
7685 emul="${emul}btsmip"
7686 ;;
7687 *LSB*)
7688 emul="${emul}ltsmip"
7689 ;;
7690 esac
7691 case `/usr/bin/file conftest.$ac_objext` in
7692 *N32*)
7693 emul="${emul}n32"
7694 ;;
7695 esac
7696 LD="${LD-ld} -m $emul"
7697 fi
7698 rm -rf conftest*
7699 ;;
7700
7701x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 7702s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
7703 # Find out what ABI is being produced by ac_compile, and set linker
7704 # options accordingly. Note that the listed cases only cover the
7705 # situations where additional linker options are needed (such as when
7706 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7707 # vice versa); the common cases where no linker options are needed do
7708 # not appear in the list.
a243b558
JF
7709 echo 'int i;' > conftest.$ac_ext
7710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7711 (eval $ac_compile) 2>&5
7712 ac_status=$?
7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }; then
7715 case `/usr/bin/file conftest.o` in
7716 *32-bit*)
7717 case $host in
7718 x86_64-*kfreebsd*-gnu)
7719 LD="${LD-ld} -m elf_i386_fbsd"
7720 ;;
7721 x86_64-*linux*)
9d54db95
JF
7722 case `/usr/bin/file conftest.o` in
7723 *x86-64*)
7724 LD="${LD-ld} -m elf32_x86_64"
7725 ;;
7726 *)
7727 LD="${LD-ld} -m elf_i386"
7728 ;;
7729 esac
a243b558 7730 ;;
9d54db95
JF
7731 powerpc64le-*linux*)
7732 LD="${LD-ld} -m elf32lppclinux"
7733 ;;
7734 powerpc64-*linux*)
a243b558
JF
7735 LD="${LD-ld} -m elf32ppclinux"
7736 ;;
7737 s390x-*linux*)
7738 LD="${LD-ld} -m elf_s390"
7739 ;;
7740 sparc64-*linux*)
7741 LD="${LD-ld} -m elf32_sparc"
7742 ;;
7743 esac
7744 ;;
7745 *64-bit*)
7746 case $host in
7747 x86_64-*kfreebsd*-gnu)
7748 LD="${LD-ld} -m elf_x86_64_fbsd"
7749 ;;
7750 x86_64-*linux*)
7751 LD="${LD-ld} -m elf_x86_64"
7752 ;;
9d54db95
JF
7753 powerpcle-*linux*)
7754 LD="${LD-ld} -m elf64lppc"
7755 ;;
7756 powerpc-*linux*)
a243b558
JF
7757 LD="${LD-ld} -m elf64ppc"
7758 ;;
7759 s390*-*linux*|s390*-*tpf*)
7760 LD="${LD-ld} -m elf64_s390"
7761 ;;
7762 sparc*-*linux*)
7763 LD="${LD-ld} -m elf64_sparc"
7764 ;;
7765 esac
7766 ;;
7767 esac
7768 fi
7769 rm -rf conftest*
7770 ;;
9c60689e 7771
a243b558
JF
7772*-*-sco3.2v5*)
7773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 7774 SAVE_CFLAGS=$CFLAGS
a243b558
JF
7775 CFLAGS="$CFLAGS -belf"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7777$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7778if ${lt_cv_cc_needs_belf+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780else
7781 ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7786
a243b558
JF
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h. */
9c60689e 7789
a243b558
JF
7790int
7791main ()
7792{
9c60689e 7793
a243b558
JF
7794 ;
7795 return 0;
7796}
7797_ACEOF
7798if ac_fn_c_try_link "$LINENO"; then :
7799 lt_cv_cc_needs_belf=yes
9c60689e 7800else
a243b558 7801 lt_cv_cc_needs_belf=no
9c60689e 7802fi
a243b558
JF
7803rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 ac_ext=c
7806ac_cpp='$CPP $CPPFLAGS'
7807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7810
a243b558
JF
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 7814 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 7815 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 7816 CFLAGS=$SAVE_CFLAGS
a243b558
JF
7817 fi
7818 ;;
7819*-*solaris*)
9d54db95
JF
7820 # Find out what ABI is being produced by ac_compile, and set linker
7821 # options accordingly.
a243b558
JF
7822 echo 'int i;' > conftest.$ac_ext
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824 (eval $ac_compile) 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 case `/usr/bin/file conftest.o` in
7829 *64-bit*)
7830 case $lt_cv_prog_gnu_ld in
7831 yes*)
7832 case $host in
9d54db95 7833 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
7834 LD="${LD-ld} -m elf_x86_64"
7835 ;;
7836 sparc*-*-solaris*)
7837 LD="${LD-ld} -m elf64_sparc"
7838 ;;
7839 esac
7840 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7841 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 7842 LD=${LD-ld}_sol2
a243b558
JF
7843 fi
7844 ;;
7845 *)
7846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7847 LD="${LD-ld} -64"
7848 fi
7849 ;;
7850 esac
7851 ;;
7852 esac
7853 fi
7854 rm -rf conftest*
7855 ;;
7856esac
9c60689e 7857
9d54db95 7858need_locks=$enable_libtool_lock
9c60689e 7859
a243b558
JF
7860if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7862set dummy ${ac_tool_prefix}mt; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867else
7868 if test -n "$MANIFEST_TOOL"; then
7869 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883 done
7884IFS=$as_save_IFS
9c60689e 7885
a243b558
JF
7886fi
7887fi
7888MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7889if test -n "$MANIFEST_TOOL"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7891$as_echo "$MANIFEST_TOOL" >&6; }
7892else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
9c60689e
DWT
7896
7897
a243b558
JF
7898fi
7899if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7900 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7901 # Extract the first word of "mt", so it can be a program name with args.
7902set dummy mt; ac_word=$2
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907else
7908 if test -n "$ac_ct_MANIFEST_TOOL"; then
7909 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922done
7923 done
7924IFS=$as_save_IFS
9c60689e 7925
a243b558
JF
7926fi
7927fi
7928ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7929if test -n "$ac_ct_MANIFEST_TOOL"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7931$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7932else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
7935fi
9c60689e 7936
a243b558
JF
7937 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7938 MANIFEST_TOOL=":"
7939 else
7940 case $cross_compiling:$ac_tool_warned in
7941yes:)
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944ac_tool_warned=yes ;;
7945esac
7946 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7947 fi
7948else
7949 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7950fi
9c60689e 7951
a243b558
JF
7952test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7954$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7955if ${lt_cv_path_mainfest_tool+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957else
7958 lt_cv_path_mainfest_tool=no
7959 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7960 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7961 cat conftest.err >&5
7962 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7963 lt_cv_path_mainfest_tool=yes
7964 fi
00a96142 7965 rm -rf conftest*
a243b558
JF
7966fi
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7968$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 7969if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
7970 MANIFEST_TOOL=:
7971fi
9c60689e
DWT
7972
7973
7974
7975
7976
7977
a243b558
JF
7978 case $host_os in
7979 rhapsody* | darwin*)
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7982set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if ${ac_cv_prog_DSYMUTIL+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 if test -n "$DSYMUTIL"; then
7989 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003 done
8004IFS=$as_save_IFS
9c60689e 8005
a243b558
JF
8006fi
8007fi
8008DSYMUTIL=$ac_cv_prog_DSYMUTIL
8009if test -n "$DSYMUTIL"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8011$as_echo "$DSYMUTIL" >&6; }
8012else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
9c60689e
DWT
8016
8017
9c60689e 8018fi
a243b558
JF
8019if test -z "$ac_cv_prog_DSYMUTIL"; then
8020 ac_ct_DSYMUTIL=$DSYMUTIL
8021 # Extract the first word of "dsymutil", so it can be a program name with args.
8022set dummy dsymutil; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
8026 $as_echo_n "(cached) " >&6
8027else
a243b558
JF
8028 if test -n "$ac_ct_DSYMUTIL"; then
8029 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 8030else
a243b558
JF
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042done
8043 done
8044IFS=$as_save_IFS
8045
9c60689e 8046fi
9c60689e 8047fi
a243b558
JF
8048ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8049if test -n "$ac_ct_DSYMUTIL"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8051$as_echo "$ac_ct_DSYMUTIL" >&6; }
8052else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
9c60689e 8056
a243b558
JF
8057 if test "x$ac_ct_DSYMUTIL" = x; then
8058 DSYMUTIL=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061yes:)
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064ac_tool_warned=yes ;;
9c60689e 8065esac
a243b558
JF
8066 DSYMUTIL=$ac_ct_DSYMUTIL
8067 fi
8068else
8069 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8070fi
9c60689e 8071
a243b558
JF
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8074set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076$as_echo_n "checking for $ac_word... " >&6; }
8077if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
8078 $as_echo_n "(cached) " >&6
8079else
a243b558
JF
8080 if test -n "$NMEDIT"; then
8081 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094done
9c60689e 8095 done
a243b558 8096IFS=$as_save_IFS
9c60689e 8097
a243b558
JF
8098fi
8099fi
8100NMEDIT=$ac_cv_prog_NMEDIT
8101if test -n "$NMEDIT"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8103$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
8104else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106$as_echo "no" >&6; }
8107fi
8108
8109
a243b558
JF
8110fi
8111if test -z "$ac_cv_prog_NMEDIT"; then
8112 ac_ct_NMEDIT=$NMEDIT
8113 # Extract the first word of "nmedit", so it can be a program name with args.
8114set dummy nmedit; ac_word=$2
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
8118 $as_echo_n "(cached) " >&6
8119else
a243b558
JF
8120 if test -n "$ac_ct_NMEDIT"; then
8121 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
9c60689e 8135 done
a243b558 8136IFS=$as_save_IFS
9c60689e 8137
a243b558
JF
8138fi
8139fi
8140ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8141if test -n "$ac_ct_NMEDIT"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8143$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
8144else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
8147fi
8148
a243b558
JF
8149 if test "x$ac_ct_NMEDIT" = x; then
8150 NMEDIT=":"
9c60689e 8151 else
a243b558
JF
8152 case $cross_compiling:$ac_tool_warned in
8153yes:)
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156ac_tool_warned=yes ;;
8157esac
8158 NMEDIT=$ac_ct_NMEDIT
9c60689e 8159 fi
a243b558
JF
8160else
8161 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
8162fi
8163
a243b558
JF
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8166set dummy ${ac_tool_prefix}lipo; ac_word=$2
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168$as_echo_n "checking for $ac_word... " >&6; }
8169if ${ac_cv_prog_LIPO+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171else
8172 if test -n "$LIPO"; then
8173 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8174else
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186done
8187 done
8188IFS=$as_save_IFS
9c60689e 8189
a243b558
JF
8190fi
8191fi
8192LIPO=$ac_cv_prog_LIPO
8193if test -n "$LIPO"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8195$as_echo "$LIPO" >&6; }
8196else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199fi
9c60689e 8200
9c60689e 8201
a243b558
JF
8202fi
8203if test -z "$ac_cv_prog_LIPO"; then
8204 ac_ct_LIPO=$LIPO
8205 # Extract the first word of "lipo", so it can be a program name with args.
8206set dummy lipo; ac_word=$2
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208$as_echo_n "checking for $ac_word... " >&6; }
8209if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8210 $as_echo_n "(cached) " >&6
8211else
a243b558
JF
8212 if test -n "$ac_ct_LIPO"; then
8213 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_LIPO="lipo"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227 done
8228IFS=$as_save_IFS
9c60689e
DWT
8229
8230fi
a243b558
JF
8231fi
8232ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8233if test -n "$ac_ct_LIPO"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8235$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8236else
a243b558
JF
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
9c60689e
DWT
8239fi
8240
a243b558
JF
8241 if test "x$ac_ct_LIPO" = x; then
8242 LIPO=":"
8243 else
8244 case $cross_compiling:$ac_tool_warned in
8245yes:)
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248ac_tool_warned=yes ;;
8249esac
8250 LIPO=$ac_ct_LIPO
8251 fi
8252else
8253 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8254fi
8255
a243b558
JF
8256 if test -n "$ac_tool_prefix"; then
8257 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8258set dummy ${ac_tool_prefix}otool; ac_word=$2
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if ${ac_cv_prog_OTOOL+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263else
8264 if test -n "$OTOOL"; then
8265 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8266else
8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278done
8279 done
8280IFS=$as_save_IFS
9c60689e 8281
a243b558
JF
8282fi
8283fi
8284OTOOL=$ac_cv_prog_OTOOL
8285if test -n "$OTOOL"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8287$as_echo "$OTOOL" >&6; }
8288else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
8291fi
9c60689e
DWT
8292
8293
a243b558
JF
8294fi
8295if test -z "$ac_cv_prog_OTOOL"; then
8296 ac_ct_OTOOL=$OTOOL
8297 # Extract the first word of "otool", so it can be a program name with args.
8298set dummy otool; ac_word=$2
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300$as_echo_n "checking for $ac_word... " >&6; }
8301if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303else
8304 if test -n "$ac_ct_OTOOL"; then
8305 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8306else
8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_OTOOL="otool"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318done
8319 done
8320IFS=$as_save_IFS
9c60689e 8321
a243b558
JF
8322fi
8323fi
8324ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8325if test -n "$ac_ct_OTOOL"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8327$as_echo "$ac_ct_OTOOL" >&6; }
8328else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
9c60689e 8332
a243b558
JF
8333 if test "x$ac_ct_OTOOL" = x; then
8334 OTOOL=":"
8335 else
8336 case $cross_compiling:$ac_tool_warned in
8337yes:)
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340ac_tool_warned=yes ;;
8341esac
8342 OTOOL=$ac_ct_OTOOL
8343 fi
8344else
8345 OTOOL="$ac_cv_prog_OTOOL"
8346fi
9c60689e 8347
a243b558
JF
8348 if test -n "$ac_tool_prefix"; then
8349 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8350set dummy ${ac_tool_prefix}otool64; ac_word=$2
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352$as_echo_n "checking for $ac_word... " >&6; }
8353if ${ac_cv_prog_OTOOL64+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355else
8356 if test -n "$OTOOL64"; then
8357 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8358else
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370done
8371 done
8372IFS=$as_save_IFS
9c60689e 8373
a243b558
JF
8374fi
8375fi
8376OTOOL64=$ac_cv_prog_OTOOL64
8377if test -n "$OTOOL64"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8379$as_echo "$OTOOL64" >&6; }
8380else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
8383fi
9c60689e 8384
9c60689e 8385
a243b558
JF
8386fi
8387if test -z "$ac_cv_prog_OTOOL64"; then
8388 ac_ct_OTOOL64=$OTOOL64
8389 # Extract the first word of "otool64", so it can be a program name with args.
8390set dummy otool64; ac_word=$2
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392$as_echo_n "checking for $ac_word... " >&6; }
8393if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395else
8396 if test -n "$ac_ct_OTOOL64"; then
8397 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8398else
8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400for as_dir in $PATH
8401do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_ac_ct_OTOOL64="otool64"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410done
8411 done
8412IFS=$as_save_IFS
9c60689e 8413
a243b558
JF
8414fi
8415fi
8416ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8417if test -n "$ac_ct_OTOOL64"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8419$as_echo "$ac_ct_OTOOL64" >&6; }
8420else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
9c60689e 8424
a243b558
JF
8425 if test "x$ac_ct_OTOOL64" = x; then
8426 OTOOL64=":"
8427 else
8428 case $cross_compiling:$ac_tool_warned in
8429yes:)
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432ac_tool_warned=yes ;;
8433esac
8434 OTOOL64=$ac_ct_OTOOL64
8435 fi
8436else
8437 OTOOL64="$ac_cv_prog_OTOOL64"
8438fi
ee134472 8439
9c60689e 8440
9c60689e 8441
9c60689e 8442
9c60689e 8443
9c60689e 8444
ee134472 8445
9c60689e 8446
9c60689e 8447
9c60689e 8448
9c60689e 8449
9c60689e 8450
9c60689e 8451
9c60689e 8452
9c60689e 8453
9c60689e 8454
9c60689e 8455
9c60689e 8456
9c60689e 8457
9c60689e 8458
9c60689e 8459
9c60689e 8460
9c60689e 8461
9c60689e 8462
9c60689e 8463
a243b558
JF
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8467$as_echo_n "checking for -single_module linker flag... " >&6; }
8468if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8469 $as_echo_n "(cached) " >&6
8470else
a243b558 8471 lt_cv_apple_cc_single_mod=no
9d54db95 8472 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
8473 # By default we will add the -single_module flag. You can override
8474 # by either setting the environment variable LT_MULTI_MODULE
8475 # non-empty at configure time, or by adding -multi_module to the
8476 # link flags.
8477 rm -rf libconftest.dylib*
8478 echo "int foo(void){return 1;}" > conftest.c
8479 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8480-dynamiclib -Wl,-single_module conftest.c" >&5
8481 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8482 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8483 _lt_result=$?
8484 # If there is a non-empty error log, and "single_module"
8485 # appears in it, assume the flag caused a linker warning
8486 if test -s conftest.err && $GREP single_module conftest.err; then
8487 cat conftest.err >&5
8488 # Otherwise, if the output was created with a 0 exit code from
8489 # the compiler, it worked.
9d54db95 8490 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
8491 lt_cv_apple_cc_single_mod=yes
8492 else
8493 cat conftest.err >&5
8494 fi
8495 rm -rf libconftest.dylib*
8496 rm -f conftest.*
8497 fi
ee134472 8498fi
a243b558
JF
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8500$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8501
a243b558
JF
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8503$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8504if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8505 $as_echo_n "(cached) " >&6
8506else
a243b558
JF
8507 lt_cv_ld_exported_symbols_list=no
8508 save_LDFLAGS=$LDFLAGS
8509 echo "_main" > conftest.sym
8510 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h. */
9c60689e 8513
a243b558
JF
8514int
8515main ()
8516{
9c60689e 8517
a243b558
JF
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_link "$LINENO"; then :
8523 lt_cv_ld_exported_symbols_list=yes
9c60689e 8524else
a243b558 8525 lt_cv_ld_exported_symbols_list=no
9c60689e 8526fi
a243b558
JF
8527rm -f core conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
9d54db95 8529 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
8530
8531fi
a243b558
JF
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8533$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8534
a243b558
JF
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8536$as_echo_n "checking for -force_load linker flag... " >&6; }
8537if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8538 $as_echo_n "(cached) " >&6
8539else
a243b558
JF
8540 lt_cv_ld_force_load=no
8541 cat > conftest.c << _LT_EOF
8542int forced_loaded() { return 2;}
8543_LT_EOF
8544 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8545 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8546 echo "$AR cru libconftest.a conftest.o" >&5
8547 $AR cru libconftest.a conftest.o 2>&5
8548 echo "$RANLIB libconftest.a" >&5
8549 $RANLIB libconftest.a 2>&5
8550 cat > conftest.c << _LT_EOF
8551int main() { return 0;}
8552_LT_EOF
8553 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8554 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8555 _lt_result=$?
8556 if test -s conftest.err && $GREP force_load conftest.err; then
8557 cat conftest.err >&5
9d54db95 8558 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
8559 lt_cv_ld_force_load=yes
8560 else
8561 cat conftest.err >&5
8562 fi
8563 rm -f conftest.err libconftest.a conftest conftest.c
8564 rm -rf conftest.dSYM
9c60689e
DWT
8565
8566fi
a243b558
JF
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8568$as_echo "$lt_cv_ld_force_load" >&6; }
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
9d54db95 8571 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 8572 darwin1.*)
9d54db95 8573 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
8574 darwin*) # darwin 5.x on
8575 # if running on 10.5 or later, the deployment target defaults
8576 # to the OS version, if on x86, and 10.4, the deployment
8577 # target defaults to 10.4. Don't you love it?
8578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8579 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
8580 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8581 10.[012][,.]*)
8582 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 8583 10.*)
9d54db95 8584 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
8585 esac
8586 ;;
8587 esac
9d54db95 8588 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
8589 _lt_dar_single_mod='$single_module'
8590 fi
9d54db95
JF
8591 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8592 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 8593 else
9d54db95 8594 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 8595 fi
9d54db95 8596 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
8597 _lt_dsymutil='~$DSYMUTIL $lib || :'
8598 else
8599 _lt_dsymutil=
8600 fi
8601 ;;
8602 esac
9c60689e 8603
9d54db95
JF
8604# func_munge_path_list VARIABLE PATH
8605# -----------------------------------
8606# VARIABLE is name of variable containing _space_ separated list of
8607# directories to be munged by the contents of PATH, which is string
8608# having a format:
8609# "DIR[:DIR]:"
8610# string "DIR[ DIR]" will be prepended to VARIABLE
8611# ":DIR[:DIR]"
8612# string "DIR[ DIR]" will be appended to VARIABLE
8613# "DIRP[:DIRP]::[DIRA:]DIRA"
8614# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8615# "DIRA[ DIRA]" will be appended to VARIABLE
8616# "DIR[:DIR]"
8617# VARIABLE will be replaced by "DIR[ DIR]"
8618func_munge_path_list ()
8619{
8620 case x$2 in
8621 x)
8622 ;;
8623 *:)
8624 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8625 ;;
8626 x:*)
8627 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8628 ;;
8629 *::*)
8630 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8631 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8632 ;;
8633 *)
8634 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8635 ;;
8636 esac
8637}
8638
a243b558
JF
8639ac_ext=c
8640ac_cpp='$CPP $CPPFLAGS'
8641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8645$as_echo_n "checking how to run the C preprocessor... " >&6; }
8646# On Suns, sometimes $CPP names a directory.
8647if test -n "$CPP" && test -d "$CPP"; then
8648 CPP=
9c60689e 8649fi
a243b558
JF
8650if test -z "$CPP"; then
8651 if ${ac_cv_prog_CPP+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653else
8654 # Double quotes because CPP needs to be expanded
8655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8656 do
8657 ac_preproc_ok=false
8658for ac_c_preproc_warn_flag in '' yes
8659do
8660 # Use a header file that comes with gcc, so configuring glibc
8661 # with a fresh cross-compiler works.
8662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663 # <limits.h> exists even on freestanding compilers.
8664 # On the NeXT, cc -E runs the code through the compiler's parser,
8665 # not just through cpp. "Syntax error" is here to catch this case.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h. */
8668#ifdef __STDC__
8669# include <limits.h>
8670#else
8671# include <assert.h>
8672#endif
8673 Syntax error
8674_ACEOF
8675if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8676
a243b558
JF
8677else
8678 # Broken: fails on valid input.
8679continue
8680fi
8681rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8682
a243b558
JF
8683 # OK, works on sane cases. Now check whether nonexistent headers
8684 # can be detected and how.
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h. */
8687#include <ac_nonexistent.h>
8688_ACEOF
8689if ac_fn_c_try_cpp "$LINENO"; then :
8690 # Broken: success on invalid input.
8691continue
8692else
8693 # Passes both tests.
8694ac_preproc_ok=:
8695break
8696fi
8697rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8698
a243b558
JF
8699done
8700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8701rm -f conftest.i conftest.err conftest.$ac_ext
8702if $ac_preproc_ok; then :
8703 break
8704fi
9c60689e 8705
a243b558
JF
8706 done
8707 ac_cv_prog_CPP=$CPP
9c60689e 8708
a243b558
JF
8709fi
8710 CPP=$ac_cv_prog_CPP
9c60689e 8711else
a243b558
JF
8712 ac_cv_prog_CPP=$CPP
8713fi
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8715$as_echo "$CPP" >&6; }
8716ac_preproc_ok=false
8717for ac_c_preproc_warn_flag in '' yes
8718do
8719 # Use a header file that comes with gcc, so configuring glibc
8720 # with a fresh cross-compiler works.
8721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 # <limits.h> exists even on freestanding compilers.
8723 # On the NeXT, cc -E runs the code through the compiler's parser,
8724 # not just through cpp. "Syntax error" is here to catch this case.
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h. */
8727#ifdef __STDC__
8728# include <limits.h>
8729#else
8730# include <assert.h>
8731#endif
8732 Syntax error
8733_ACEOF
8734if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8735
a243b558
JF
8736else
8737 # Broken: fails on valid input.
8738continue
9c60689e 8739fi
a243b558 8740rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8741
a243b558
JF
8742 # OK, works on sane cases. Now check whether nonexistent headers
8743 # can be detected and how.
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h. */
8746#include <ac_nonexistent.h>
8747_ACEOF
8748if ac_fn_c_try_cpp "$LINENO"; then :
8749 # Broken: success on invalid input.
8750continue
8751else
8752 # Passes both tests.
8753ac_preproc_ok=:
8754break
8755fi
8756rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8757
a243b558
JF
8758done
8759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8760rm -f conftest.i conftest.err conftest.$ac_ext
8761if $ac_preproc_ok; then :
9c60689e 8762
a243b558
JF
8763else
8764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8767See \`config.log' for more details" "$LINENO" 5; }
8768fi
9c60689e 8769
a243b558
JF
8770ac_ext=c
8771ac_cpp='$CPP $CPPFLAGS'
8772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8775
8776
a243b558
JF
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8778$as_echo_n "checking for ANSI C header files... " >&6; }
8779if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8780 $as_echo_n "(cached) " >&6
8781else
a243b558
JF
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h. */
8784#include <stdlib.h>
8785#include <stdarg.h>
8786#include <string.h>
8787#include <float.h>
9c60689e 8788
a243b558
JF
8789int
8790main ()
8791{
9c60689e 8792
a243b558
JF
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797if ac_fn_c_try_compile "$LINENO"; then :
8798 ac_cv_header_stdc=yes
8799else
8800 ac_cv_header_stdc=no
9c60689e 8801fi
a243b558
JF
8802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803
8804if test $ac_cv_header_stdc = yes; then
8805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h. */
8808#include <string.h>
9c60689e 8809
a243b558
JF
8810_ACEOF
8811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8813
a243b558
JF
8814else
8815 ac_cv_header_stdc=no
8816fi
8817rm -f conftest*
9c60689e 8818
a243b558
JF
8819fi
8820
8821if test $ac_cv_header_stdc = yes; then
8822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h. */
8825#include <stdlib.h>
8826
8827_ACEOF
8828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8830
9c60689e 8831else
a243b558 8832 ac_cv_header_stdc=no
9c60689e 8833fi
a243b558 8834rm -f conftest*
9c60689e 8835
a243b558 8836fi
9c60689e 8837
a243b558
JF
8838if test $ac_cv_header_stdc = yes; then
8839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8840 if test "$cross_compiling" = yes; then :
8841 :
8842else
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h. */
8845#include <ctype.h>
8846#include <stdlib.h>
8847#if ((' ' & 0x0FF) == 0x020)
8848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8850#else
8851# define ISLOWER(c) \
8852 (('a' <= (c) && (c) <= 'i') \
8853 || ('j' <= (c) && (c) <= 'r') \
8854 || ('s' <= (c) && (c) <= 'z'))
8855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8856#endif
9c60689e 8857
a243b558
JF
8858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8859int
8860main ()
8861{
8862 int i;
8863 for (i = 0; i < 256; i++)
8864 if (XOR (islower (i), ISLOWER (i))
8865 || toupper (i) != TOUPPER (i))
8866 return 2;
8867 return 0;
8868}
8869_ACEOF
8870if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8871
a243b558
JF
8872else
8873 ac_cv_header_stdc=no
8874fi
8875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
8877fi
9c60689e 8878
a243b558
JF
8879fi
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8882$as_echo "$ac_cv_header_stdc" >&6; }
8883if test $ac_cv_header_stdc = yes; then
9c60689e 8884
a243b558 8885$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8886
a243b558 8887fi
9c60689e 8888
a243b558
JF
8889# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8890for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8891 inttypes.h stdint.h unistd.h
8892do :
8893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8895"
8896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8897 cat >>confdefs.h <<_ACEOF
8898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8899_ACEOF
9c60689e 8900
a243b558 8901fi
ee134472 8902
a243b558 8903done
ee134472 8904
9c60689e 8905
a243b558
JF
8906for ac_header in dlfcn.h
8907do :
8908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8909"
8910if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8911 cat >>confdefs.h <<_ACEOF
8912#define HAVE_DLFCN_H 1
8913_ACEOF
9c60689e 8914
a243b558 8915fi
9c60689e 8916
a243b558 8917done
9c60689e 8918
9c60689e 8919
9c60689e 8920
9c60689e 8921
a243b558
JF
8922func_stripname_cnf ()
8923{
9d54db95
JF
8924 case $2 in
8925 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8926 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
8927 esac
8928} # func_stripname_cnf
9c60689e 8929
9c60689e 8930
ee134472 8931
a243b558
JF
8932
8933
8934# Set options
8935# Check whether --enable-static was given.
8936if test "${enable_static+set}" = set; then :
8937 enableval=$enable_static; p=${PACKAGE-default}
8938 case $enableval in
8939 yes) enable_static=yes ;;
8940 no) enable_static=no ;;
8941 *)
8942 enable_static=no
8943 # Look at the argument we got. We use all the common list separators.
9d54db95 8944 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8945 for pkg in $enableval; do
9d54db95 8946 IFS=$lt_save_ifs
a243b558
JF
8947 if test "X$pkg" = "X$p"; then
8948 enable_static=yes
8949 fi
8950 done
9d54db95 8951 IFS=$lt_save_ifs
9c60689e 8952 ;;
a243b558
JF
8953 esac
8954else
8955 enable_static=no
8956fi
9c60689e 8957
9c60689e 8958
9c60689e 8959
9c60689e 8960
9c60689e 8961
9c60689e 8962
9c60689e 8963
9c60689e 8964
9c60689e 8965
9c60689e 8966
a243b558 8967 enable_dlopen=no
9c60689e 8968
9c60689e 8969
a243b558
JF
8970 enable_win32_dll=no
8971
8972
8973 # Check whether --enable-shared was given.
8974if test "${enable_shared+set}" = set; then :
8975 enableval=$enable_shared; p=${PACKAGE-default}
8976 case $enableval in
8977 yes) enable_shared=yes ;;
8978 no) enable_shared=no ;;
9c60689e 8979 *)
a243b558
JF
8980 enable_shared=no
8981 # Look at the argument we got. We use all the common list separators.
9d54db95 8982 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8983 for pkg in $enableval; do
9d54db95 8984 IFS=$lt_save_ifs
a243b558
JF
8985 if test "X$pkg" = "X$p"; then
8986 enable_shared=yes
8987 fi
8988 done
9d54db95 8989 IFS=$lt_save_ifs
9c60689e
DWT
8990 ;;
8991 esac
a243b558
JF
8992else
8993 enable_shared=yes
8994fi
9c60689e 8995
9c60689e 8996
9c60689e 8997
9c60689e 8998
9c60689e 8999
9c60689e 9000
9c60689e 9001
9c60689e 9002
9c60689e 9003
9c60689e 9004
9c60689e 9005
a243b558
JF
9006# Check whether --with-pic was given.
9007if test "${with_pic+set}" = set; then :
9008 withval=$with_pic; lt_p=${PACKAGE-default}
9009 case $withval in
9010 yes|no) pic_mode=$withval ;;
9011 *)
9012 pic_mode=default
9013 # Look at the argument we got. We use all the common list separators.
9d54db95 9014 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9015 for lt_pkg in $withval; do
9d54db95 9016 IFS=$lt_save_ifs
a243b558
JF
9017 if test "X$lt_pkg" = "X$lt_p"; then
9018 pic_mode=yes
9019 fi
9020 done
9d54db95 9021 IFS=$lt_save_ifs
a243b558
JF
9022 ;;
9023 esac
9024else
9025 pic_mode=default
9c60689e 9026fi
ee134472 9027
ee134472 9028
9c60689e 9029
9c60689e 9030
9c60689e 9031
ee134472 9032
ee134472 9033
9c60689e 9034
a243b558
JF
9035 # Check whether --enable-fast-install was given.
9036if test "${enable_fast_install+set}" = set; then :
9037 enableval=$enable_fast_install; p=${PACKAGE-default}
9038 case $enableval in
9039 yes) enable_fast_install=yes ;;
9040 no) enable_fast_install=no ;;
9041 *)
9042 enable_fast_install=no
9043 # Look at the argument we got. We use all the common list separators.
9d54db95 9044 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9045 for pkg in $enableval; do
9d54db95 9046 IFS=$lt_save_ifs
a243b558
JF
9047 if test "X$pkg" = "X$p"; then
9048 enable_fast_install=yes
9c60689e 9049 fi
a243b558 9050 done
9d54db95 9051 IFS=$lt_save_ifs
9c60689e 9052 ;;
a243b558
JF
9053 esac
9054else
9055 enable_fast_install=yes
9056fi
9c60689e 9057
9c60689e 9058
9c60689e 9059
9c60689e 9060
9c60689e
DWT
9061
9062
53ba6704 9063
9c60689e 9064
9d54db95
JF
9065 shared_archive_member_spec=
9066case $host,$enable_shared in
9067power*-*-aix[5-9]*,yes)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9069$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9070
9071# Check whether --with-aix-soname was given.
9072if test "${with_aix_soname+set}" = set; then :
9073 withval=$with_aix_soname; case $withval in
9074 aix|svr4|both)
9075 ;;
9076 *)
9077 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9078 ;;
9079 esac
9080 lt_cv_with_aix_soname=$with_aix_soname
9081else
9082 if ${lt_cv_with_aix_soname+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084else
9085 lt_cv_with_aix_soname=aix
9086fi
9087
9088 with_aix_soname=$lt_cv_with_aix_soname
9089fi
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9092$as_echo "$with_aix_soname" >&6; }
9093 if test aix != "$with_aix_soname"; then
9094 # For the AIX way of multilib, we name the shared archive member
9095 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9096 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9097 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9098 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9099 if test 64 = "${OBJECT_MODE-32}"; then
9100 shared_archive_member_spec=shr_64
9101 else
9102 shared_archive_member_spec=shr
9103 fi
9104 fi
9105 ;;
9106*)
9107 with_aix_soname=aix
9108 ;;
9109esac
9110
9111
9112
9113
9114
9115
9116
9c60689e 9117
9c60689e 9118
9c60689e 9119
a243b558 9120# This can be used to rebuild libtool when needed
9d54db95 9121LIBTOOL_DEPS=$ltmain
9c60689e 9122
a243b558
JF
9123# Always use our own libtool.
9124LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 9125
9c60689e 9126
9c60689e 9127
9c60689e 9128
9c60689e 9129
ee134472 9130
ee134472 9131
ee134472 9132
ee134472 9133
9c60689e 9134
9c60689e 9135
9c60689e 9136
9c60689e 9137
9c60689e 9138
9c60689e 9139
9c60689e 9140
9c60689e 9141
9c60689e 9142
9c60689e 9143
9c60689e 9144
9c60689e 9145
9c60689e 9146
9c60689e 9147
9c60689e 9148
9c60689e 9149
9c60689e 9150
9c60689e 9151
9c60689e 9152
9c60689e 9153
9c60689e 9154
a243b558 9155test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9d54db95 9170if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
9171 setopt NO_GLOB_SUBST
9172fi
9c60689e 9173
a243b558
JF
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9175$as_echo_n "checking for objdir... " >&6; }
9176if ${lt_cv_objdir+:} false; then :
ee134472
JF
9177 $as_echo_n "(cached) " >&6
9178else
a243b558
JF
9179 rm -f .libs 2>/dev/null
9180mkdir .libs 2>/dev/null
9181if test -d .libs; then
9182 lt_cv_objdir=.libs
9183else
9184 # MS-DOS does not allow filenames that begin with a dot.
9185 lt_cv_objdir=_libs
ee134472 9186fi
a243b558
JF
9187rmdir .libs 2>/dev/null
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9190$as_echo "$lt_cv_objdir" >&6; }
9191objdir=$lt_cv_objdir
9c60689e
DWT
9192
9193
9194
9195
9196
a243b558
JF
9197cat >>confdefs.h <<_ACEOF
9198#define LT_OBJDIR "$lt_cv_objdir/"
9199_ACEOF
9c60689e
DWT
9200
9201
9202
9203
a243b558
JF
9204case $host_os in
9205aix3*)
9206 # AIX sometimes has problems with the GCC collect2 program. For some
9207 # reason, if we set the COLLECT_NAMES environment variable, the problems
9208 # vanish in a puff of smoke.
9d54db95 9209 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
9210 COLLECT_NAMES=
9211 export COLLECT_NAMES
9212 fi
9213 ;;
9214esac
9c60689e 9215
a243b558
JF
9216# Global variables:
9217ofile=libtool
9218can_build_shared=yes
9c60689e 9219
9d54db95 9220# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
9221# which needs '.lib').
9222libext=a
9c60689e 9223
9d54db95 9224with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 9225
9d54db95
JF
9226old_CC=$CC
9227old_CFLAGS=$CFLAGS
9c60689e 9228
a243b558
JF
9229# Set sane defaults for various variables
9230test -z "$CC" && CC=cc
9231test -z "$LTCC" && LTCC=$CC
9232test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9233test -z "$LD" && LD=ld
9234test -z "$ac_objext" && ac_objext=o
9c60689e 9235
9d54db95
JF
9236func_cc_basename $compiler
9237cc_basename=$func_cc_basename_result
9c60689e
DWT
9238
9239
a243b558
JF
9240# Only perform the check for file, if the check method requires it
9241test -z "$MAGIC_CMD" && MAGIC_CMD=file
9242case $deplibs_check_method in
9243file_magic*)
9244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9246$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9247if ${lt_cv_path_MAGIC_CMD+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249else
9250 case $MAGIC_CMD in
9251[\\/*] | ?:[\\/]*)
9d54db95 9252 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9253 ;;
9254*)
9d54db95
JF
9255 lt_save_MAGIC_CMD=$MAGIC_CMD
9256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9258 for ac_dir in $ac_dummy; do
9d54db95 9259 IFS=$lt_save_ifs
a243b558 9260 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9261 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9262 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
9263 if test -n "$file_magic_test_file"; then
9264 case $deplibs_check_method in
9265 "file_magic "*)
9266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9267 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9269 $EGREP "$file_magic_regex" > /dev/null; then
9270 :
9271 else
9272 cat <<_LT_EOF 1>&2
9c60689e 9273
a243b558
JF
9274*** Warning: the command libtool uses to detect shared libraries,
9275*** $file_magic_cmd, produces output that libtool cannot recognize.
9276*** The result is that libtool may fail to recognize shared libraries
9277*** as such. This will affect the creation of libtool libraries that
9278*** depend on shared libraries, but programs linked with such libtool
9279*** libraries will work regardless of this problem. Nevertheless, you
9280*** may want to report the problem to your system manager and/or to
9281*** bug-libtool@gnu.org
9c60689e 9282
a243b558
JF
9283_LT_EOF
9284 fi ;;
9285 esac
9286 fi
9287 break
9288 fi
9289 done
9d54db95
JF
9290 IFS=$lt_save_ifs
9291 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9292 ;;
9293esac
9294fi
9c60689e 9295
9d54db95 9296MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9297if test -n "$MAGIC_CMD"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9299$as_echo "$MAGIC_CMD" >&6; }
9300else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9c60689e
DWT
9304
9305
9306
9307
9308
a243b558
JF
9309if test -z "$lt_cv_path_MAGIC_CMD"; then
9310 if test -n "$ac_tool_prefix"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9312$as_echo_n "checking for file... " >&6; }
9313if ${lt_cv_path_MAGIC_CMD+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315else
9316 case $MAGIC_CMD in
9317[\\/*] | ?:[\\/]*)
9d54db95 9318 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9319 ;;
9320*)
9d54db95
JF
9321 lt_save_MAGIC_CMD=$MAGIC_CMD
9322 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9323 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9324 for ac_dir in $ac_dummy; do
9d54db95 9325 IFS=$lt_save_ifs
a243b558 9326 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9327 if test -f "$ac_dir/file"; then
9328 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
9329 if test -n "$file_magic_test_file"; then
9330 case $deplibs_check_method in
9331 "file_magic "*)
9332 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9333 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9335 $EGREP "$file_magic_regex" > /dev/null; then
9336 :
9337 else
9338 cat <<_LT_EOF 1>&2
9c60689e 9339
a243b558
JF
9340*** Warning: the command libtool uses to detect shared libraries,
9341*** $file_magic_cmd, produces output that libtool cannot recognize.
9342*** The result is that libtool may fail to recognize shared libraries
9343*** as such. This will affect the creation of libtool libraries that
9344*** depend on shared libraries, but programs linked with such libtool
9345*** libraries will work regardless of this problem. Nevertheless, you
9346*** may want to report the problem to your system manager and/or to
9347*** bug-libtool@gnu.org
9c60689e 9348
a243b558
JF
9349_LT_EOF
9350 fi ;;
9351 esac
9352 fi
9353 break
9354 fi
9355 done
9d54db95
JF
9356 IFS=$lt_save_ifs
9357 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9358 ;;
9359esac
9360fi
9c60689e 9361
9d54db95 9362MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9363if test -n "$MAGIC_CMD"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9365$as_echo "$MAGIC_CMD" >&6; }
9366else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369fi
9c60689e
DWT
9370
9371
a243b558
JF
9372 else
9373 MAGIC_CMD=:
9374 fi
9375fi
9c60689e 9376
a243b558
JF
9377 fi
9378 ;;
9379esac
9c60689e 9380
a243b558 9381# Use C for the default configuration in the libtool script
9c60689e 9382
9d54db95 9383lt_save_CC=$CC
a243b558
JF
9384ac_ext=c
9385ac_cpp='$CPP $CPPFLAGS'
9386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9389
9390
a243b558
JF
9391# Source file extension for C test sources.
9392ac_ext=c
9c60689e 9393
a243b558
JF
9394# Object file extension for compiled C test sources.
9395objext=o
9396objext=$objext
9c60689e 9397
a243b558
JF
9398# Code to be used in simple compile tests
9399lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9400
a243b558
JF
9401# Code to be used in simple link tests
9402lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9403
9404
9405
9406
9407
9408
9409
a243b558
JF
9410# If no C compiler was specified, use CC.
9411LTCC=${LTCC-"$CC"}
9c60689e 9412
a243b558
JF
9413# If no C compiler flags were specified, use CFLAGS.
9414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9415
a243b558
JF
9416# Allow CC to be a program name with arguments.
9417compiler=$CC
9c60689e 9418
a243b558
JF
9419# Save the default compiler, since it gets overwritten when the other
9420# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9421compiler_DEFAULT=$CC
9c60689e 9422
a243b558
JF
9423# save warnings/boilerplate of simple test code
9424ac_outfile=conftest.$ac_objext
9425echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9426eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9427_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9428$RM -r conftest*
9c60689e 9429
a243b558
JF
9430ac_outfile=conftest.$ac_objext
9431echo "$lt_simple_link_test_code" >conftest.$ac_ext
9432eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9433_lt_linker_boilerplate=`cat conftest.err`
9434$RM -r conftest*
9c60689e
DWT
9435
9436
a243b558
JF
9437## CAVEAT EMPTOR:
9438## There is no encapsulation within the following macros, do not change
9439## the running order or otherwise move them around unless you know exactly
9440## what you are doing...
9441if test -n "$compiler"; then
9c60689e 9442
a243b558 9443lt_prog_compiler_no_builtin_flag=
9c60689e 9444
9d54db95 9445if test yes = "$GCC"; then
a243b558
JF
9446 case $cc_basename in
9447 nvcc*)
9448 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9449 *)
9450 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9451 esac
9c60689e 9452
a243b558
JF
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9454$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9455if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457else
9458 lt_cv_prog_compiler_rtti_exceptions=no
9459 ac_outfile=conftest.$ac_objext
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9461 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9462 # Insert the option either (1) after the last *FLAGS variable, or
9463 # (2) before a word containing "conftest.", or (3) at the end.
9464 # Note that $ac_compile itself does not contain backslashes and begins
9465 # with a dollar sign (not a hyphen), so the echo should work correctly.
9466 # The option is referenced via a variable to avoid confusing sed.
9467 lt_compile=`echo "$ac_compile" | $SED \
9468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9470 -e 's:$: $lt_compiler_flag:'`
9471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9472 (eval "$lt_compile" 2>conftest.err)
9473 ac_status=$?
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 if (exit $ac_status) && test -s "$ac_outfile"; then
9477 # The compiler can only warn and ignore the option if not recognized
9478 # So say no if there are warnings other than the usual output.
9479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9482 lt_cv_prog_compiler_rtti_exceptions=yes
9483 fi
9484 fi
00a96142 9485 $RM -r conftest*
9c60689e 9486
a243b558
JF
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9489$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9490
9d54db95 9491if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
9492 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9493else
9494 :
9495fi
9c60689e 9496
a243b558 9497fi
9c60689e
DWT
9498
9499
9500
9501
9502
9503
a243b558
JF
9504 lt_prog_compiler_wl=
9505lt_prog_compiler_pic=
9506lt_prog_compiler_static=
9c60689e
DWT
9507
9508
9d54db95 9509 if test yes = "$GCC"; then
a243b558
JF
9510 lt_prog_compiler_wl='-Wl,'
9511 lt_prog_compiler_static='-static'
9c60689e 9512
a243b558
JF
9513 case $host_os in
9514 aix*)
9515 # All AIX code is PIC.
9d54db95 9516 if test ia64 = "$host_cpu"; then
a243b558
JF
9517 # AIX 5 now supports IA64 processor
9518 lt_prog_compiler_static='-Bstatic'
9519 fi
9d54db95 9520 lt_prog_compiler_pic='-fPIC'
a243b558 9521 ;;
9c60689e 9522
a243b558
JF
9523 amigaos*)
9524 case $host_cpu in
9525 powerpc)
9526 # see comment about AmigaOS4 .so support
9527 lt_prog_compiler_pic='-fPIC'
9528 ;;
9529 m68k)
9530 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
9531 # adding the '-m68020' flag to GCC prevents building anything better,
9532 # like '-m68040'.
a243b558
JF
9533 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9534 ;;
9535 esac
9536 ;;
9c60689e 9537
a243b558
JF
9538 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9539 # PIC is the default for these OSes.
9540 ;;
9c60689e 9541
a243b558
JF
9542 mingw* | cygwin* | pw32* | os2* | cegcc*)
9543 # This hack is so that the source file can tell whether it is being
9544 # built for inclusion in a dll (and should export symbols for example).
9545 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9546 # (--disable-auto-import) libraries
9547 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9548 case $host_os in
9549 os2*)
9550 lt_prog_compiler_static='$wl-static'
9551 ;;
9552 esac
a243b558 9553 ;;
9c60689e 9554
a243b558
JF
9555 darwin* | rhapsody*)
9556 # PIC is the default on this platform
9557 # Common symbols not allowed in MH_DYLIB files
9558 lt_prog_compiler_pic='-fno-common'
9559 ;;
9c60689e 9560
a243b558
JF
9561 haiku*)
9562 # PIC is the default for Haiku.
9563 # The "-static" flag exists, but is broken.
9564 lt_prog_compiler_static=
9565 ;;
9c60689e 9566
a243b558
JF
9567 hpux*)
9568 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9569 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9570 # sets the default TLS model and affects inlining.
9571 case $host_cpu in
9572 hppa*64*)
9573 # +Z the default
9574 ;;
9575 *)
9576 lt_prog_compiler_pic='-fPIC'
9577 ;;
9578 esac
9579 ;;
9c60689e 9580
a243b558
JF
9581 interix[3-9]*)
9582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9583 # Instead, we relocate shared libraries at runtime.
9584 ;;
9c60689e 9585
a243b558
JF
9586 msdosdjgpp*)
9587 # Just because we use GCC doesn't mean we suddenly get shared libraries
9588 # on systems that don't support them.
9589 lt_prog_compiler_can_build_shared=no
9590 enable_shared=no
9591 ;;
9c60689e 9592
a243b558
JF
9593 *nto* | *qnx*)
9594 # QNX uses GNU C++, but need to define -shared option too, otherwise
9595 # it will coredump.
9596 lt_prog_compiler_pic='-fPIC -shared'
9597 ;;
9c60689e 9598
a243b558
JF
9599 sysv4*MP*)
9600 if test -d /usr/nec; then
9601 lt_prog_compiler_pic=-Kconform_pic
9602 fi
9603 ;;
9c60689e 9604
a243b558
JF
9605 *)
9606 lt_prog_compiler_pic='-fPIC'
9607 ;;
9608 esac
9c60689e 9609
a243b558
JF
9610 case $cc_basename in
9611 nvcc*) # Cuda Compiler Driver 2.2
9612 lt_prog_compiler_wl='-Xlinker '
9613 if test -n "$lt_prog_compiler_pic"; then
9614 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9615 fi
9616 ;;
9617 esac
9618 else
9619 # PORTME Check for flag to pass linker flags through the system compiler.
9620 case $host_os in
9621 aix*)
9622 lt_prog_compiler_wl='-Wl,'
9d54db95 9623 if test ia64 = "$host_cpu"; then
a243b558
JF
9624 # AIX 5 now supports IA64 processor
9625 lt_prog_compiler_static='-Bstatic'
9626 else
9627 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9628 fi
9629 ;;
9c60689e 9630
9d54db95
JF
9631 darwin* | rhapsody*)
9632 # PIC is the default on this platform
9633 # Common symbols not allowed in MH_DYLIB files
9634 lt_prog_compiler_pic='-fno-common'
9635 case $cc_basename in
9636 nagfor*)
9637 # NAG Fortran compiler
9638 lt_prog_compiler_wl='-Wl,-Wl,,'
9639 lt_prog_compiler_pic='-PIC'
9640 lt_prog_compiler_static='-Bstatic'
9641 ;;
9642 esac
9643 ;;
9644
a243b558
JF
9645 mingw* | cygwin* | pw32* | os2* | cegcc*)
9646 # This hack is so that the source file can tell whether it is being
9647 # built for inclusion in a dll (and should export symbols for example).
9648 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9649 case $host_os in
9650 os2*)
9651 lt_prog_compiler_static='$wl-static'
9652 ;;
9653 esac
a243b558 9654 ;;
9c60689e 9655
a243b558
JF
9656 hpux9* | hpux10* | hpux11*)
9657 lt_prog_compiler_wl='-Wl,'
9658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9659 # not for PA HP-UX.
9660 case $host_cpu in
9661 hppa*64*|ia64*)
9662 # +Z the default
9663 ;;
9664 *)
9665 lt_prog_compiler_pic='+Z'
9666 ;;
9667 esac
9668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 9669 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 9670 ;;
9c60689e 9671
a243b558
JF
9672 irix5* | irix6* | nonstopux*)
9673 lt_prog_compiler_wl='-Wl,'
9674 # PIC (with -KPIC) is the default.
9675 lt_prog_compiler_static='-non_shared'
9676 ;;
9c60689e 9677
9d54db95 9678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 9679 case $cc_basename in
9d54db95 9680 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
9681 ecc*)
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-static'
9685 ;;
9686 # icc used to be incompatible with GCC.
9687 # ICC 10 doesn't accept -KPIC any more.
9688 icc* | ifort*)
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_pic='-fPIC'
9691 lt_prog_compiler_static='-static'
9692 ;;
9693 # Lahey Fortran 8.1.
9694 lf95*)
9695 lt_prog_compiler_wl='-Wl,'
9696 lt_prog_compiler_pic='--shared'
9697 lt_prog_compiler_static='--static'
9698 ;;
9699 nagfor*)
9700 # NAG Fortran compiler
9701 lt_prog_compiler_wl='-Wl,-Wl,,'
9702 lt_prog_compiler_pic='-PIC'
9703 lt_prog_compiler_static='-Bstatic'
9704 ;;
9d54db95
JF
9705 tcc*)
9706 # Fabrice Bellard et al's Tiny C Compiler
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='-fPIC'
9709 lt_prog_compiler_static='-static'
9710 ;;
a243b558
JF
9711 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9712 # Portland Group compilers (*not* the Pentium gcc compiler,
9713 # which looks to be a dead project)
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-fpic'
9716 lt_prog_compiler_static='-Bstatic'
9717 ;;
9718 ccc*)
9719 lt_prog_compiler_wl='-Wl,'
9720 # All Alpha code is PIC.
9721 lt_prog_compiler_static='-non_shared'
9722 ;;
9723 xl* | bgxl* | bgf* | mpixl*)
9724 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9725 lt_prog_compiler_wl='-Wl,'
9726 lt_prog_compiler_pic='-qpic'
9727 lt_prog_compiler_static='-qstaticlink'
9728 ;;
9729 *)
9730 case `$CC -V 2>&1 | sed 5q` in
9731 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9732 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_wl=''
9736 ;;
9737 *Sun\ F* | *Sun*Fortran*)
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-Bstatic'
9740 lt_prog_compiler_wl='-Qoption ld '
9741 ;;
9742 *Sun\ C*)
9743 # Sun C 5.9
9744 lt_prog_compiler_pic='-KPIC'
9745 lt_prog_compiler_static='-Bstatic'
9746 lt_prog_compiler_wl='-Wl,'
9747 ;;
9748 *Intel*\ [CF]*Compiler*)
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='-fPIC'
9751 lt_prog_compiler_static='-static'
9752 ;;
9753 *Portland\ Group*)
9754 lt_prog_compiler_wl='-Wl,'
9755 lt_prog_compiler_pic='-fpic'
9756 lt_prog_compiler_static='-Bstatic'
9757 ;;
9758 esac
9759 ;;
9760 esac
9761 ;;
9c60689e 9762
a243b558
JF
9763 newsos6)
9764 lt_prog_compiler_pic='-KPIC'
9765 lt_prog_compiler_static='-Bstatic'
9766 ;;
9c60689e 9767
a243b558
JF
9768 *nto* | *qnx*)
9769 # QNX uses GNU C++, but need to define -shared option too, otherwise
9770 # it will coredump.
9771 lt_prog_compiler_pic='-fPIC -shared'
9772 ;;
9c60689e 9773
a243b558
JF
9774 osf3* | osf4* | osf5*)
9775 lt_prog_compiler_wl='-Wl,'
9776 # All OSF/1 code is PIC.
9777 lt_prog_compiler_static='-non_shared'
9778 ;;
9c60689e 9779
a243b558
JF
9780 rdos*)
9781 lt_prog_compiler_static='-non_shared'
9782 ;;
9c60689e 9783
a243b558
JF
9784 solaris*)
9785 lt_prog_compiler_pic='-KPIC'
9786 lt_prog_compiler_static='-Bstatic'
9787 case $cc_basename in
9788 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9789 lt_prog_compiler_wl='-Qoption ld ';;
9790 *)
9791 lt_prog_compiler_wl='-Wl,';;
9792 esac
9793 ;;
9c60689e 9794
a243b558
JF
9795 sunos4*)
9796 lt_prog_compiler_wl='-Qoption ld '
9797 lt_prog_compiler_pic='-PIC'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9c60689e 9800
a243b558
JF
9801 sysv4 | sysv4.2uw2* | sysv4.3*)
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='-KPIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 ;;
9c60689e 9806
a243b558 9807 sysv4*MP*)
9d54db95 9808 if test -d /usr/nec; then
a243b558
JF
9809 lt_prog_compiler_pic='-Kconform_pic'
9810 lt_prog_compiler_static='-Bstatic'
9811 fi
9812 ;;
9c60689e 9813
a243b558
JF
9814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-Bstatic'
9818 ;;
9c60689e 9819
a243b558
JF
9820 unicos*)
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_can_build_shared=no
9823 ;;
9c60689e 9824
a243b558
JF
9825 uts4*)
9826 lt_prog_compiler_pic='-pic'
9827 lt_prog_compiler_static='-Bstatic'
9828 ;;
9c60689e 9829
a243b558
JF
9830 *)
9831 lt_prog_compiler_can_build_shared=no
9832 ;;
9833 esac
9834 fi
9c60689e 9835
a243b558 9836case $host_os in
9d54db95 9837 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
9838 *djgpp*)
9839 lt_prog_compiler_pic=
9840 ;;
9841 *)
9842 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9843 ;;
9844esac
9c60689e 9845
a243b558
JF
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9847$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9848if ${lt_cv_prog_compiler_pic+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9854$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9855lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9856
a243b558
JF
9857#
9858# Check to make sure the PIC flag actually works.
9859#
9860if test -n "$lt_prog_compiler_pic"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9862$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9863if ${lt_cv_prog_compiler_pic_works+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865else
9866 lt_cv_prog_compiler_pic_works=no
9867 ac_outfile=conftest.$ac_objext
9868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9870 # Insert the option either (1) after the last *FLAGS variable, or
9871 # (2) before a word containing "conftest.", or (3) at the end.
9872 # Note that $ac_compile itself does not contain backslashes and begins
9873 # with a dollar sign (not a hyphen), so the echo should work correctly.
9874 # The option is referenced via a variable to avoid confusing sed.
9875 lt_compile=`echo "$ac_compile" | $SED \
9876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878 -e 's:$: $lt_compiler_flag:'`
9879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9880 (eval "$lt_compile" 2>conftest.err)
9881 ac_status=$?
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 if (exit $ac_status) && test -s "$ac_outfile"; then
9885 # The compiler can only warn and ignore the option if not recognized
9886 # So say no if there are warnings other than the usual output.
9887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9890 lt_cv_prog_compiler_pic_works=yes
9891 fi
9892 fi
00a96142 9893 $RM -r conftest*
9c60689e 9894
a243b558
JF
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9897$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9898
9d54db95 9899if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
9900 case $lt_prog_compiler_pic in
9901 "" | " "*) ;;
9902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9903 esac
9904else
9905 lt_prog_compiler_pic=
9906 lt_prog_compiler_can_build_shared=no
9907fi
9c60689e 9908
a243b558 9909fi
9c60689e
DWT
9910
9911
9912
9913
9914
9915
9c60689e
DWT
9916
9917
9918
9919
9920
a243b558
JF
9921#
9922# Check to make sure the static flag actually works.
9923#
9924wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9926$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9927if ${lt_cv_prog_compiler_static_works+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930 lt_cv_prog_compiler_static_works=no
9d54db95 9931 save_LDFLAGS=$LDFLAGS
a243b558
JF
9932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9935 # The linker can only warn and ignore the option if not recognized
9936 # So say no if there are warnings
9937 if test -s conftest.err; then
9938 # Append any errors to the config.log.
9939 cat conftest.err 1>&5
9940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9942 if diff conftest.exp conftest.er2 >/dev/null; then
9943 lt_cv_prog_compiler_static_works=yes
9944 fi
9945 else
9946 lt_cv_prog_compiler_static_works=yes
9947 fi
9948 fi
9949 $RM -r conftest*
9d54db95 9950 LDFLAGS=$save_LDFLAGS
9c60689e 9951
a243b558
JF
9952fi
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9954$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9955
9d54db95 9956if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 9957 :
9c60689e 9958else
a243b558 9959 lt_prog_compiler_static=
9c60689e 9960fi
9c60689e 9961
9c60689e 9962
9c60689e 9963
9c60689e 9964
9c60689e 9965
9c60689e 9966
9c60689e 9967
a243b558
JF
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9970if ${lt_cv_prog_compiler_c_o+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972else
9973 lt_cv_prog_compiler_c_o=no
9974 $RM -r conftest 2>/dev/null
9975 mkdir conftest
9976 cd conftest
9977 mkdir out
9978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9979
a243b558
JF
9980 lt_compiler_flag="-o out/conftest2.$ac_objext"
9981 # Insert the option either (1) after the last *FLAGS variable, or
9982 # (2) before a word containing "conftest.", or (3) at the end.
9983 # Note that $ac_compile itself does not contain backslashes and begins
9984 # with a dollar sign (not a hyphen), so the echo should work correctly.
9985 lt_compile=`echo "$ac_compile" | $SED \
9986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9988 -e 's:$: $lt_compiler_flag:'`
9989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9990 (eval "$lt_compile" 2>out/conftest.err)
9991 ac_status=$?
9992 cat out/conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9995 then
9996 # The compiler can only warn and ignore the option if not recognized
9997 # So say no if there are warnings
9998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10001 lt_cv_prog_compiler_c_o=yes
10002 fi
10003 fi
10004 chmod u+w . 2>&5
00a96142 10005 $RM -r conftest*
a243b558
JF
10006 # SGI C++ compiler will create directory out/ii_files/ for
10007 # template instantiation
10008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10009 $RM out/* && rmdir out
10010 cd ..
10011 $RM -r conftest
00a96142 10012 $RM -r conftest*
9c60689e 10013
a243b558
JF
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10016$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10017
ee134472 10018
ee134472 10019
ee134472 10020
ee134472 10021
9c60689e 10022
a243b558
JF
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10025if ${lt_cv_prog_compiler_c_o+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027else
10028 lt_cv_prog_compiler_c_o=no
10029 $RM -r conftest 2>/dev/null
10030 mkdir conftest
10031 cd conftest
10032 mkdir out
10033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 10034
a243b558
JF
10035 lt_compiler_flag="-o out/conftest2.$ac_objext"
10036 # Insert the option either (1) after the last *FLAGS variable, or
10037 # (2) before a word containing "conftest.", or (3) at the end.
10038 # Note that $ac_compile itself does not contain backslashes and begins
10039 # with a dollar sign (not a hyphen), so the echo should work correctly.
10040 lt_compile=`echo "$ac_compile" | $SED \
10041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10043 -e 's:$: $lt_compiler_flag:'`
10044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10045 (eval "$lt_compile" 2>out/conftest.err)
10046 ac_status=$?
10047 cat out/conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10050 then
10051 # The compiler can only warn and ignore the option if not recognized
10052 # So say no if there are warnings
10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler_c_o=yes
10057 fi
10058 fi
10059 chmod u+w . 2>&5
00a96142 10060 $RM -r conftest*
a243b558
JF
10061 # SGI C++ compiler will create directory out/ii_files/ for
10062 # template instantiation
10063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10064 $RM out/* && rmdir out
10065 cd ..
10066 $RM -r conftest
00a96142 10067 $RM -r conftest*
9c60689e 10068
a243b558
JF
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10071$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10072
9c60689e 10073
a243b558
JF
10074
10075
9d54db95
JF
10076hard_links=nottested
10077if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
10078 # do not overwrite the value of need_locks provided by the user
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10080$as_echo_n "checking if we can lock with hard links... " >&6; }
10081 hard_links=yes
00a96142 10082 $RM -r conftest*
a243b558
JF
10083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10084 touch conftest.a
10085 ln conftest.a conftest.b 2>&5 || hard_links=no
10086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10088$as_echo "$hard_links" >&6; }
9d54db95
JF
10089 if test no = "$hard_links"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10091$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 10092 need_locks=warn
9c60689e 10093 fi
a243b558
JF
10094else
10095 need_locks=no
10096fi
9c60689e 10097
ee134472 10098
9c60689e 10099
9c60689e 10100
9c60689e 10101
a243b558
JF
10102
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10104$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10105
10106 runpath_var=
10107 allow_undefined_flag=
10108 always_export_symbols=no
10109 archive_cmds=
10110 archive_expsym_cmds=
10111 compiler_needs_object=no
10112 enable_shared_with_static_runtimes=no
10113 export_dynamic_flag_spec=
10114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10115 hardcode_automatic=no
10116 hardcode_direct=no
10117 hardcode_direct_absolute=no
10118 hardcode_libdir_flag_spec=
10119 hardcode_libdir_separator=
10120 hardcode_minus_L=no
10121 hardcode_shlibpath_var=unsupported
10122 inherit_rpath=no
10123 link_all_deplibs=unknown
10124 module_cmds=
10125 module_expsym_cmds=
10126 old_archive_from_new_cmds=
10127 old_archive_from_expsyms_cmds=
10128 thread_safe_flag_spec=
10129 whole_archive_flag_spec=
10130 # include_expsyms should be a list of space-separated symbols to be *always*
10131 # included in the symbol list
10132 include_expsyms=
10133 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
10134 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10135 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10136 # as well as any symbol that contains 'd'.
a243b558
JF
10137 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10138 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10139 # platforms (ab)use it in PIC code, but their linkers get confused if
10140 # the symbol is explicitly referenced. Since portable code cannot
10141 # rely on this symbol name, it's probably fine to never include it in
10142 # preloaded symbol tables.
10143 # Exclude shared library initialization/finalization symbols.
10144 extract_expsyms_cmds=
10145
9c60689e 10146 case $host_os in
a243b558
JF
10147 cygwin* | mingw* | pw32* | cegcc*)
10148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10149 # When not using gcc, we currently assume that we are using
10150 # Microsoft Visual C++.
9d54db95 10151 if test yes != "$GCC"; then
a243b558
JF
10152 with_gnu_ld=no
10153 fi
9c60689e 10154 ;;
a243b558
JF
10155 interix*)
10156 # we just hope/assume this is gcc and not c89 (= MSVC++)
10157 with_gnu_ld=yes
10158 ;;
9d54db95 10159 openbsd* | bitrig*)
a243b558 10160 with_gnu_ld=no
9c60689e
DWT
10161 ;;
10162 esac
9c60689e 10163
a243b558 10164 ld_shlibs=yes
ee134472 10165
a243b558
JF
10166 # On some targets, GNU ld is compatible enough with the native linker
10167 # that we're better off using the native interface for both.
10168 lt_use_gnu_ld_interface=no
9d54db95 10169 if test yes = "$with_gnu_ld"; then
a243b558
JF
10170 case $host_os in
10171 aix*)
10172 # The AIX port of GNU ld has always aspired to compatibility
10173 # with the native linker. However, as the warning in the GNU ld
10174 # block says, versions before 2.19.5* couldn't really create working
10175 # shared libraries, regardless of the interface used.
10176 case `$LD -v 2>&1` in
10177 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10178 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10179 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10180 *)
10181 lt_use_gnu_ld_interface=yes
10182 ;;
10183 esac
10184 ;;
10185 *)
10186 lt_use_gnu_ld_interface=yes
10187 ;;
10188 esac
10189 fi
9c60689e 10190
9d54db95 10191 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 10192 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 10193 wlarc='$wl'
9c60689e 10194
a243b558
JF
10195 # Set some defaults for GNU ld with shared library support. These
10196 # are reset later if shared libraries are not supported. Putting them
10197 # here allows them to be overridden if necessary.
10198 runpath_var=LD_RUN_PATH
9d54db95
JF
10199 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10200 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
10201 # ancient GNU ld didn't support --whole-archive et. al.
10202 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 10203 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
10204 else
10205 whole_archive_flag_spec=
10206 fi
10207 supports_anon_versioning=no
9d54db95 10208 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
10209 *GNU\ gold*) supports_anon_versioning=yes ;;
10210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10213 *\ 2.11.*) ;; # other 2.11 versions
10214 *) supports_anon_versioning=yes ;;
10215 esac
ee134472 10216
a243b558
JF
10217 # See if GNU ld supports shared libraries.
10218 case $host_os in
10219 aix[3-9]*)
10220 # On AIX/PPC, the GNU linker is very broken
9d54db95 10221 if test ia64 != "$host_cpu"; then
a243b558
JF
10222 ld_shlibs=no
10223 cat <<_LT_EOF 1>&2
ee134472 10224
a243b558
JF
10225*** Warning: the GNU linker, at least up to release 2.19, is reported
10226*** to be unable to reliably create shared libraries on AIX.
10227*** Therefore, libtool is disabling shared libraries support. If you
10228*** really care for shared libraries, you may want to install binutils
10229*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10230*** You will then need to restart the configuration process.
9c60689e 10231
a243b558
JF
10232_LT_EOF
10233 fi
10234 ;;
9c60689e 10235
a243b558
JF
10236 amigaos*)
10237 case $host_cpu in
10238 powerpc)
10239 # see comment about AmigaOS4 .so support
9d54db95 10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10241 archive_expsym_cmds=''
10242 ;;
10243 m68k)
10244 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)'
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_minus_L=yes
10247 ;;
10248 esac
10249 ;;
9c60689e 10250
a243b558
JF
10251 beos*)
10252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10253 allow_undefined_flag=unsupported
10254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10255 # support --undefined. This deserves some investigation. FIXME
9d54db95 10256 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10257 else
10258 ld_shlibs=no
10259 fi
10260 ;;
9c60689e 10261
a243b558
JF
10262 cygwin* | mingw* | pw32* | cegcc*)
10263 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10264 # as there is no search path for DLLs.
10265 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 10266 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
10267 allow_undefined_flag=unsupported
10268 always_export_symbols=no
10269 enable_shared_with_static_runtimes=yes
10270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10271 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 10272
a243b558 10273 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
10274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10275 # If the export-symbols file already is a .def file, use it as
10276 # is; otherwise, prepend EXPORTS...
10277 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10278 cp $export_symbols $output_objdir/$soname.def;
10279 else
10280 echo EXPORTS > $output_objdir/$soname.def;
10281 cat $export_symbols >> $output_objdir/$soname.def;
10282 fi~
10283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a243b558
JF
10284 else
10285 ld_shlibs=no
10286 fi
10287 ;;
9c60689e 10288
a243b558 10289 haiku*)
9d54db95 10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10291 link_all_deplibs=yes
10292 ;;
9c60689e 10293
9d54db95
JF
10294 os2*)
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_minus_L=yes
10297 allow_undefined_flag=unsupported
10298 shrext_cmds=.dll
10299 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10300 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10301 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10302 $ECHO EXPORTS >> $output_objdir/$libname.def~
10303 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10304 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10305 emximp -o $lib $output_objdir/$libname.def'
10306 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10307 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10308 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10309 $ECHO EXPORTS >> $output_objdir/$libname.def~
10310 prefix_cmds="$SED"~
10311 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10312 prefix_cmds="$prefix_cmds -e 1d";
10313 fi~
10314 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10315 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10316 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10317 emximp -o $lib $output_objdir/$libname.def'
10318 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10319 enable_shared_with_static_runtimes=yes
10320 ;;
10321
a243b558
JF
10322 interix[3-9]*)
10323 hardcode_direct=no
10324 hardcode_shlibpath_var=no
9d54db95
JF
10325 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10326 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10328 # Instead, shared libraries are loaded at an image base (0x10000000 by
10329 # default) and relocated if they conflict, which is a slow very memory
10330 # consuming and fragmenting process. To avoid this, we pick a random,
10331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
10333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10334 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'
a243b558 10335 ;;
9c60689e 10336
a243b558
JF
10337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10338 tmp_diet=no
9d54db95 10339 if test linux-dietlibc = "$host_os"; then
a243b558
JF
10340 case $cc_basename in
10341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10342 esac
10343 fi
10344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 10345 && test no = "$tmp_diet"
a243b558
JF
10346 then
10347 tmp_addflag=' $pic_flag'
10348 tmp_sharedflag='-shared'
10349 case $cc_basename,$host_cpu in
10350 pgcc*) # Portland Group C compiler
9d54db95 10351 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'
a243b558
JF
10352 tmp_addflag=' $pic_flag'
10353 ;;
10354 pgf77* | pgf90* | pgf95* | pgfortran*)
10355 # Portland Group f77 and f90 compilers
9d54db95 10356 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'
a243b558
JF
10357 tmp_addflag=' $pic_flag -Mnomain' ;;
10358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10359 tmp_addflag=' -i_dynamic' ;;
10360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10361 tmp_addflag=' -i_dynamic -nofor_main' ;;
10362 ifc* | ifort*) # Intel Fortran compiler
10363 tmp_addflag=' -nofor_main' ;;
10364 lf95*) # Lahey Fortran 8.1
10365 whole_archive_flag_spec=
10366 tmp_sharedflag='--shared' ;;
9d54db95
JF
10367 nagfor*) # NAGFOR 5.3
10368 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
10369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10370 tmp_sharedflag='-qmkshrobj'
10371 tmp_addflag= ;;
10372 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 10373 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'
a243b558
JF
10374 compiler_needs_object=yes
10375 ;;
10376 esac
10377 case `$CC -V 2>&1 | sed 5q` in
10378 *Sun\ C*) # Sun C 5.9
9d54db95 10379 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'
a243b558
JF
10380 compiler_needs_object=yes
10381 tmp_sharedflag='-G' ;;
10382 *Sun\ F*) # Sun Fortran 8.3
10383 tmp_sharedflag='-G' ;;
10384 esac
9d54db95 10385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 10386
9d54db95 10387 if test yes = "$supports_anon_versioning"; then
a243b558 10388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10390 echo "local: *; };" >> $output_objdir/$libname.ver~
10391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 10392 fi
9c60689e 10393
a243b558 10394 case $cc_basename in
9d54db95
JF
10395 tcc*)
10396 export_dynamic_flag_spec='-rdynamic'
10397 ;;
a243b558
JF
10398 xlf* | bgf* | bgxlf* | mpixlf*)
10399 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10400 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 10401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 10402 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 10403 if test yes = "$supports_anon_versioning"; then
a243b558 10404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406 echo "local: *; };" >> $output_objdir/$libname.ver~
10407 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
10408 fi
10409 ;;
10410 esac
10411 else
10412 ld_shlibs=no
10413 fi
10414 ;;
9c60689e 10415
a243b558
JF
10416 netbsd*)
10417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10419 wlarc=
10420 else
9d54db95
JF
10421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10423 fi
10424 ;;
9c60689e 10425
a243b558
JF
10426 solaris*)
10427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10428 ld_shlibs=no
10429 cat <<_LT_EOF 1>&2
9c60689e 10430
a243b558
JF
10431*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432*** create shared libraries on Solaris systems. Therefore, libtool
10433*** is disabling shared libraries support. We urge you to upgrade GNU
10434*** binutils to release 2.9.1 or newer. Another option is to modify
10435*** your PATH or compiler configuration so that the native linker is
10436*** used, and then restart.
9c60689e 10437
a243b558
JF
10438_LT_EOF
10439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10442 else
10443 ld_shlibs=no
10444 fi
10445 ;;
9c60689e 10446
a243b558
JF
10447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448 case `$LD -v 2>&1` in
10449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10450 ld_shlibs=no
10451 cat <<_LT_EOF 1>&2
9c60689e 10452
9d54db95 10453*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
10454*** reliably create shared libraries on SCO systems. Therefore, libtool
10455*** is disabling shared libraries support. We urge you to upgrade GNU
10456*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10457*** your PATH or compiler configuration so that the native linker is
10458*** used, and then restart.
9c60689e 10459
a243b558
JF
10460_LT_EOF
10461 ;;
10462 *)
10463 # For security reasons, it is highly recommended that you always
10464 # use absolute paths for naming shared libraries, and exclude the
10465 # DT_RUNPATH tag from executables and libraries. But doing so
10466 # requires that you compile everything twice, which is a pain.
10467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10471 else
10472 ld_shlibs=no
10473 fi
10474 ;;
10475 esac
10476 ;;
9c60689e 10477
a243b558
JF
10478 sunos4*)
10479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480 wlarc=
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10483 ;;
9c60689e 10484
a243b558
JF
10485 *)
10486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10488 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10489 else
10490 ld_shlibs=no
10491 fi
10492 ;;
10493 esac
9c60689e 10494
9d54db95 10495 if test no = "$ld_shlibs"; then
a243b558
JF
10496 runpath_var=
10497 hardcode_libdir_flag_spec=
10498 export_dynamic_flag_spec=
10499 whole_archive_flag_spec=
10500 fi
10501 else
10502 # PORTME fill in a description of your system's linker (not GNU ld)
10503 case $host_os in
10504 aix3*)
10505 allow_undefined_flag=unsupported
10506 always_export_symbols=yes
10507 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'
10508 # Note: this linker hardcodes the directories in LIBPATH if there
10509 # are no directories specified by -L.
10510 hardcode_minus_L=yes
9d54db95 10511 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
10512 # Neither direct hardcoding nor static linking is supported with a
10513 # broken collect2.
10514 hardcode_direct=unsupported
10515 fi
10516 ;;
9c60689e 10517
a243b558 10518 aix[4-9]*)
9d54db95 10519 if test ia64 = "$host_cpu"; then
a243b558
JF
10520 # On IA64, the linker does run time linking by default, so we don't
10521 # have to do anything special.
10522 aix_use_runtimelinking=no
10523 exp_sym_flag='-Bexport'
9d54db95 10524 no_entry_flag=
a243b558
JF
10525 else
10526 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
10527 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10528 # Without the "-l" option, or with the "-B" option, AIX nm treats
10529 # weak defined symbols like other global defined symbols, whereas
10530 # GNU nm marks them as "W".
10531 # While the 'weak' keyword is ignored in the Export File, we need
10532 # it in the Import File for the 'aix-soname' feature, so we have
10533 # to replace the "-B" option with "-P" for AIX nm.
a243b558 10534 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 10535 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
a243b558 10536 else
9d54db95 10537 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
a243b558
JF
10538 fi
10539 aix_use_runtimelinking=no
9c60689e 10540
a243b558
JF
10541 # Test if we are trying to use run time linking or normal
10542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
10543 # have runtime linking enabled, and use it for executables.
10544 # For shared libraries, we enable/disable runtime linking
10545 # depending on the kind of the shared library created -
10546 # when "with_aix_soname,aix_use_runtimelinking" is:
10547 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10548 # "aix,yes" lib.so shared, rtl:yes, for executables
10549 # lib.a static archive
10550 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10551 # lib.a(lib.so.V) shared, rtl:no, for executables
10552 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10553 # lib.a(lib.so.V) shared, rtl:no
10554 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10555 # lib.a static archive
a243b558
JF
10556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10557 for ld_flag in $LDFLAGS; do
9d54db95 10558 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
10559 aix_use_runtimelinking=yes
10560 break
10561 fi
10562 done
9d54db95
JF
10563 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10564 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10565 # so we don't have lib.a shared libs to link our executables.
10566 # We have to force runtime linking in this case.
10567 aix_use_runtimelinking=yes
10568 LDFLAGS="$LDFLAGS -Wl,-brtl"
10569 fi
a243b558
JF
10570 ;;
10571 esac
9c60689e 10572
a243b558
JF
10573 exp_sym_flag='-bexport'
10574 no_entry_flag='-bnoentry'
10575 fi
9c60689e 10576
a243b558
JF
10577 # When large executables or shared objects are built, AIX ld can
10578 # have problems creating the table of contents. If linking a library
10579 # or program results in "error TOC overflow" add -mminimal-toc to
10580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10582
a243b558
JF
10583 archive_cmds=''
10584 hardcode_direct=yes
10585 hardcode_direct_absolute=yes
10586 hardcode_libdir_separator=':'
10587 link_all_deplibs=yes
9d54db95
JF
10588 file_list_spec='$wl-f,'
10589 case $with_aix_soname,$aix_use_runtimelinking in
10590 aix,*) ;; # traditional, no import file
10591 svr4,* | *,yes) # use import file
10592 # The Import File defines what to hardcode.
10593 hardcode_direct=no
10594 hardcode_direct_absolute=no
10595 ;;
10596 esac
9c60689e 10597
9d54db95 10598 if test yes = "$GCC"; then
a243b558
JF
10599 case $host_os in aix4.[012]|aix4.[012].*)
10600 # We only want to do this on AIX 4.2 and lower, the check
10601 # below for broken collect2 doesn't work under 4.3+
9d54db95 10602 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
10603 if test -f "$collect2name" &&
10604 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10605 then
10606 # We have reworked collect2
10607 :
10608 else
10609 # We have old collect2
10610 hardcode_direct=unsupported
10611 # It fails to find uninstalled libraries when the uninstalled
10612 # path is not listed in the libpath. Setting hardcode_minus_L
10613 # to unsupported forces relinking
10614 hardcode_minus_L=yes
10615 hardcode_libdir_flag_spec='-L$libdir'
10616 hardcode_libdir_separator=
10617 fi
10618 ;;
10619 esac
10620 shared_flag='-shared'
9d54db95
JF
10621 if test yes = "$aix_use_runtimelinking"; then
10622 shared_flag="$shared_flag "'$wl-G'
a243b558 10623 fi
9d54db95
JF
10624 # Need to ensure runtime linking is disabled for the traditional
10625 # shared library, or the linker may eventually find shared libraries
10626 # /with/ Import File - we do not want to mix them.
10627 shared_flag_aix='-shared'
10628 shared_flag_svr4='-shared $wl-G'
a243b558
JF
10629 else
10630 # not using gcc
9d54db95 10631 if test ia64 = "$host_cpu"; then
a243b558
JF
10632 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10633 # chokes on -Wl,-G. The following line is correct:
10634 shared_flag='-G'
10635 else
9d54db95
JF
10636 if test yes = "$aix_use_runtimelinking"; then
10637 shared_flag='$wl-G'
a243b558 10638 else
9d54db95 10639 shared_flag='$wl-bM:SRE'
a243b558 10640 fi
9d54db95
JF
10641 shared_flag_aix='$wl-bM:SRE'
10642 shared_flag_svr4='$wl-G'
a243b558
JF
10643 fi
10644 fi
9c60689e 10645
9d54db95 10646 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
10647 # It seems that -bexpall does not export symbols beginning with
10648 # underscore (_), so it is better to generate a list of symbols to export.
10649 always_export_symbols=yes
9d54db95 10650 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
10651 # Warning - without using the other runtime loading flags (-brtl),
10652 # -berok will link without error, but may produce a broken library.
10653 allow_undefined_flag='-berok'
10654 # Determine the default libpath from the value encoded in an
10655 # empty executable.
9d54db95 10656 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10657 aix_libpath=$lt_cv_aix_libpath
9c60689e 10658else
a243b558 10659 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10660 $as_echo_n "(cached) " >&6
10661else
a243b558 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10663/* end confdefs.h. */
10664
9c60689e
DWT
10665int
10666main ()
10667{
a243b558 10668
9c60689e
DWT
10669 ;
10670 return 0;
10671}
10672_ACEOF
10673if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10674
10675 lt_aix_libpath_sed='
10676 /Import File Strings/,/^$/ {
10677 /^0/ {
10678 s/^0 *\([^ ]*\) *$/\1/
10679 p
10680 }
10681 }'
10682 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 # Check for a 64-bit object if we didn't find anything.
10684 if test -z "$lt_cv_aix_libpath_"; then
10685 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10686 fi
9c60689e
DWT
10687fi
10688rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
a243b558 10690 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10691 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 10692 fi
9c60689e
DWT
10693
10694fi
10695
a243b558
JF
10696 aix_libpath=$lt_cv_aix_libpath_
10697fi
9c60689e 10698
9d54db95
JF
10699 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10700 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
a243b558 10701 else
9d54db95
JF
10702 if test ia64 = "$host_cpu"; then
10703 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 10704 allow_undefined_flag="-z nodefs"
9d54db95 10705 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"
a243b558
JF
10706 else
10707 # Determine the default libpath from the value encoded in an
10708 # empty executable.
9d54db95 10709 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10710 aix_libpath=$lt_cv_aix_libpath
9c60689e 10711else
a243b558 10712 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10713 $as_echo_n "(cached) " >&6
10714else
a243b558 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10716/* end confdefs.h. */
10717
9c60689e
DWT
10718int
10719main ()
10720{
a243b558 10721
9c60689e
DWT
10722 ;
10723 return 0;
10724}
10725_ACEOF
10726if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10727
a243b558
JF
10728 lt_aix_libpath_sed='
10729 /Import File Strings/,/^$/ {
10730 /^0/ {
10731 s/^0 *\([^ ]*\) *$/\1/
10732 p
10733 }
10734 }'
10735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 # Check for a 64-bit object if we didn't find anything.
10737 if test -z "$lt_cv_aix_libpath_"; then
10738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10739 fi
9c60689e
DWT
10740fi
10741rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
a243b558 10743 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10744 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
10745 fi
10746
9c60689e 10747fi
9c60689e 10748
a243b558
JF
10749 aix_libpath=$lt_cv_aix_libpath_
10750fi
10751
9d54db95 10752 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
10753 # Warning - without using the other run time loading flags,
10754 # -berok will link without error, but may produce a broken library.
9d54db95
JF
10755 no_undefined_flag=' $wl-bernotok'
10756 allow_undefined_flag=' $wl-berok'
10757 if test yes = "$with_gnu_ld"; then
a243b558 10758 # We only use this code for GNU lds that support --whole-archive.
9d54db95 10759 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
10760 else
10761 # Exported symbols can be pulled into shared objects from archives
10762 whole_archive_flag_spec='$convenience'
10763 fi
10764 archive_cmds_need_lc=yes
9d54db95
JF
10765 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10766 # -brtl affects multiple linker settings, -berok does not and is overridden later
10767 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10768 if test svr4 != "$with_aix_soname"; then
10769 # This is similar to how AIX traditionally builds its shared libraries.
10770 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10771 fi
10772 if test aix != "$with_aix_soname"; then
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10774 else
10775 # used by -dlpreopen to get the symbols
10776 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10777 fi
10778 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
10779 fi
10780 fi
10781 ;;
10782
10783 amigaos*)
10784 case $host_cpu in
10785 powerpc)
10786 # see comment about AmigaOS4 .so support
9d54db95 10787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10788 archive_expsym_cmds=''
10789 ;;
10790 m68k)
10791 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)'
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_minus_L=yes
10794 ;;
10795 esac
10796 ;;
10797
10798 bsdi[45]*)
10799 export_dynamic_flag_spec=-rdynamic
10800 ;;
10801
10802 cygwin* | mingw* | pw32* | cegcc*)
10803 # When not using gcc, we currently assume that we are using
10804 # Microsoft Visual C++.
10805 # hardcode_libdir_flag_spec is actually meaningless, as there is
10806 # no search path for DLLs.
10807 case $cc_basename in
10808 cl*)
10809 # Native MSVC
10810 hardcode_libdir_flag_spec=' '
10811 allow_undefined_flag=unsupported
10812 always_export_symbols=yes
10813 file_list_spec='@'
10814 # Tell ltmain to make .lib files, not .a files.
10815 libext=lib
10816 # Tell ltmain to make .dll files, not .so files.
9d54db95 10817 shrext_cmds=.dll
a243b558 10818 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
10819 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10820 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10821 cp "$export_symbols" "$output_objdir/$soname.def";
10822 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10823 else
10824 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10825 fi~
10826 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10827 linknames='
a243b558
JF
10828 # The linker will not automatically build a static lib if we build a DLL.
10829 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10830 enable_shared_with_static_runtimes=yes
10831 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10833 # Don't use ranlib
10834 old_postinstall_cmds='chmod 644 $oldlib'
10835 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
10836 lt_tool_outputfile="@TOOL_OUTPUT@"~
10837 case $lt_outputfile in
10838 *.exe|*.EXE) ;;
10839 *)
10840 lt_outputfile=$lt_outputfile.exe
10841 lt_tool_outputfile=$lt_tool_outputfile.exe
10842 ;;
10843 esac~
10844 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10845 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10846 $RM "$lt_outputfile.manifest";
10847 fi'
a243b558
JF
10848 ;;
10849 *)
10850 # Assume MSVC wrapper
10851 hardcode_libdir_flag_spec=' '
10852 allow_undefined_flag=unsupported
10853 # Tell ltmain to make .lib files, not .a files.
10854 libext=lib
10855 # Tell ltmain to make .dll files, not .so files.
9d54db95 10856 shrext_cmds=.dll
a243b558
JF
10857 # FIXME: Setting linknames here is a bad hack.
10858 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10859 # The linker will automatically build a .lib file if we build a DLL.
10860 old_archive_from_new_cmds='true'
10861 # FIXME: Should let the user specify the lib program.
10862 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10863 enable_shared_with_static_runtimes=yes
10864 ;;
10865 esac
10866 ;;
10867
10868 darwin* | rhapsody*)
10869
10870
10871 archive_cmds_need_lc=no
10872 hardcode_direct=no
10873 hardcode_automatic=yes
10874 hardcode_shlibpath_var=unsupported
9d54db95
JF
10875 if test yes = "$lt_cv_ld_force_load"; then
10876 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\"`'
a243b558
JF
10877
10878 else
10879 whole_archive_flag_spec=''
10880 fi
10881 link_all_deplibs=yes
9d54db95 10882 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 10883 case $cc_basename in
9d54db95 10884 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
10885 *) _lt_dar_can_shared=$GCC ;;
10886 esac
9d54db95 10887 if test yes = "$_lt_dar_can_shared"; then
a243b558 10888 output_verbose_link_cmd=func_echo_all
9d54db95
JF
10889 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10890 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10891 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"
10892 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"
a243b558
JF
10893
10894 else
10895 ld_shlibs=no
10896 fi
10897
10898 ;;
10899
10900 dgux*)
10901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_shlibpath_var=no
10904 ;;
10905
10906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10907 # support. Future versions do this automatically, but an explicit c++rt0.o
10908 # does not break anything, and helps significantly (at the cost of a little
10909 # extra space).
10910 freebsd2.2*)
10911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10912 hardcode_libdir_flag_spec='-R$libdir'
10913 hardcode_direct=yes
10914 hardcode_shlibpath_var=no
10915 ;;
10916
10917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10918 freebsd2.*)
10919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_direct=yes
10921 hardcode_minus_L=yes
10922 hardcode_shlibpath_var=no
10923 ;;
10924
10925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10926 freebsd* | dragonfly*)
10927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10928 hardcode_libdir_flag_spec='-R$libdir'
10929 hardcode_direct=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 hpux9*)
9d54db95
JF
10934 if test yes = "$GCC"; then
10935 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 10936 else
9d54db95 10937 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 10938 fi
9d54db95 10939 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10940 hardcode_libdir_separator=:
10941 hardcode_direct=yes
10942
10943 # hardcode_minus_L: Not really in the search PATH,
10944 # but as the default location of the library.
10945 hardcode_minus_L=yes
9d54db95 10946 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10947 ;;
10948
10949 hpux10*)
9d54db95
JF
10950 if test yes,no = "$GCC,$with_gnu_ld"; then
10951 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10952 else
10953 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10954 fi
9d54db95
JF
10955 if test no = "$with_gnu_ld"; then
10956 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10957 hardcode_libdir_separator=:
10958 hardcode_direct=yes
10959 hardcode_direct_absolute=yes
9d54db95 10960 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10961 # hardcode_minus_L: Not really in the search PATH,
10962 # but as the default location of the library.
10963 hardcode_minus_L=yes
10964 fi
10965 ;;
10966
10967 hpux11*)
9d54db95 10968 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
10969 case $host_cpu in
10970 hppa*64*)
9d54db95 10971 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10972 ;;
10973 ia64*)
9d54db95 10974 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10975 ;;
10976 *)
9d54db95 10977 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10978 ;;
10979 esac
10980 else
10981 case $host_cpu in
10982 hppa*64*)
9d54db95 10983 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10984 ;;
10985 ia64*)
9d54db95 10986 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10987 ;;
10988 *)
10989
10990 # Older versions of the 11.00 compiler do not understand -b yet
10991 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10993$as_echo_n "checking if $CC understands -b... " >&6; }
10994if ${lt_cv_prog_compiler__b+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996else
10997 lt_cv_prog_compiler__b=no
9d54db95 10998 save_LDFLAGS=$LDFLAGS
a243b558
JF
10999 LDFLAGS="$LDFLAGS -b"
11000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11002 # The linker can only warn and ignore the option if not recognized
11003 # So say no if there are warnings
11004 if test -s conftest.err; then
11005 # Append any errors to the config.log.
11006 cat conftest.err 1>&5
11007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11009 if diff conftest.exp conftest.er2 >/dev/null; then
11010 lt_cv_prog_compiler__b=yes
11011 fi
11012 else
11013 lt_cv_prog_compiler__b=yes
11014 fi
11015 fi
11016 $RM -r conftest*
9d54db95 11017 LDFLAGS=$save_LDFLAGS
a243b558
JF
11018
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11021$as_echo "$lt_cv_prog_compiler__b" >&6; }
11022
9d54db95
JF
11023if test yes = "$lt_cv_prog_compiler__b"; then
11024 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11025else
11026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11027fi
11028
11029 ;;
11030 esac
11031 fi
9d54db95
JF
11032 if test no = "$with_gnu_ld"; then
11033 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
11034 hardcode_libdir_separator=:
11035
11036 case $host_cpu in
11037 hppa*64*|ia64*)
11038 hardcode_direct=no
11039 hardcode_shlibpath_var=no
11040 ;;
11041 *)
11042 hardcode_direct=yes
11043 hardcode_direct_absolute=yes
9d54db95 11044 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11045
11046 # hardcode_minus_L: Not really in the search PATH,
11047 # but as the default location of the library.
11048 hardcode_minus_L=yes
11049 ;;
11050 esac
11051 fi
11052 ;;
11053
11054 irix5* | irix6* | nonstopux*)
9d54db95
JF
11055 if test yes = "$GCC"; then
11056 archive_cmds='$CC -shared $pic_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'
a243b558
JF
11057 # Try to use the -exported_symbol ld option, if it does not
11058 # work, assume that -exports_file does not work either and
11059 # implicitly export all symbols.
11060 # This should be the same for all languages, so no per-tag cache variable.
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11062$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11063if ${lt_cv_irix_exported_symbol+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065else
9d54db95
JF
11066 save_LDFLAGS=$LDFLAGS
11067 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h. */
11070int foo (void) { return 0; }
11071_ACEOF
11072if ac_fn_c_try_link "$LINENO"; then :
11073 lt_cv_irix_exported_symbol=yes
11074else
11075 lt_cv_irix_exported_symbol=no
11076fi
11077rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
9d54db95 11079 LDFLAGS=$save_LDFLAGS
a243b558
JF
11080fi
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11082$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
11083 if test yes = "$lt_cv_irix_exported_symbol"; then
11084 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
a243b558
JF
11085 fi
11086 else
9d54db95
JF
11087 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'
11088 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'
a243b558
JF
11089 fi
11090 archive_cmds_need_lc='no'
9d54db95 11091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11092 hardcode_libdir_separator=:
11093 inherit_rpath=yes
11094 link_all_deplibs=yes
11095 ;;
11096
9d54db95
JF
11097 linux*)
11098 case $cc_basename in
11099 tcc*)
11100 # Fabrice Bellard et al's Tiny C Compiler
11101 ld_shlibs=yes
11102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11103 ;;
11104 esac
11105 ;;
11106
a243b558
JF
11107 netbsd*)
11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11110 else
11111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11112 fi
11113 hardcode_libdir_flag_spec='-R$libdir'
11114 hardcode_direct=yes
11115 hardcode_shlibpath_var=no
11116 ;;
11117
11118 newsos6)
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_direct=yes
9d54db95 11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11122 hardcode_libdir_separator=:
11123 hardcode_shlibpath_var=no
11124 ;;
11125
11126 *nto* | *qnx*)
11127 ;;
11128
9d54db95 11129 openbsd* | bitrig*)
a243b558
JF
11130 if test -f /usr/libexec/ld.so; then
11131 hardcode_direct=yes
11132 hardcode_shlibpath_var=no
11133 hardcode_direct_absolute=yes
9d54db95 11134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 11135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
11136 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11137 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11138 export_dynamic_flag_spec='$wl-E'
a243b558 11139 else
9d54db95
JF
11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
11142 fi
11143 else
11144 ld_shlibs=no
11145 fi
11146 ;;
11147
11148 os2*)
11149 hardcode_libdir_flag_spec='-L$libdir'
11150 hardcode_minus_L=yes
11151 allow_undefined_flag=unsupported
9d54db95
JF
11152 shrext_cmds=.dll
11153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11156 $ECHO EXPORTS >> $output_objdir/$libname.def~
11157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11159 emximp -o $lib $output_objdir/$libname.def'
11160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11163 $ECHO EXPORTS >> $output_objdir/$libname.def~
11164 prefix_cmds="$SED"~
11165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11166 prefix_cmds="$prefix_cmds -e 1d";
11167 fi~
11168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11171 emximp -o $lib $output_objdir/$libname.def'
11172 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11173 enable_shared_with_static_runtimes=yes
a243b558
JF
11174 ;;
11175
11176 osf3*)
9d54db95
JF
11177 if test yes = "$GCC"; then
11178 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11179 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'
a243b558
JF
11180 else
11181 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11182 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'
a243b558
JF
11183 fi
11184 archive_cmds_need_lc='no'
9d54db95 11185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11186 hardcode_libdir_separator=:
11187 ;;
11188
11189 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
11190 if test yes = "$GCC"; then
11191 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11192 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
11193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11194 else
11195 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11196 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'
a243b558 11197 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~
9d54db95 11198 $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'
a243b558
JF
11199
11200 # Both c and cxx compiler support -rpath directly
11201 hardcode_libdir_flag_spec='-rpath $libdir'
11202 fi
11203 archive_cmds_need_lc='no'
11204 hardcode_libdir_separator=:
11205 ;;
11206
11207 solaris*)
11208 no_undefined_flag=' -z defs'
9d54db95
JF
11209 if test yes = "$GCC"; then
11210 wlarc='$wl'
11211 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11213 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
11214 else
11215 case `$CC -V 2>&1` in
11216 *"Compilers 5.0"*)
11217 wlarc=''
9d54db95 11218 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 11219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11220 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
11221 ;;
11222 *)
9d54db95
JF
11223 wlarc='$wl'
11224 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11226 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
11227 ;;
11228 esac
11229 fi
11230 hardcode_libdir_flag_spec='-R$libdir'
11231 hardcode_shlibpath_var=no
11232 case $host_os in
11233 solaris2.[0-5] | solaris2.[0-5].*) ;;
11234 *)
11235 # The compiler driver will combine and reorder linker options,
9d54db95 11236 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
11237 # but is careful enough not to reorder.
11238 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
11239 if test yes = "$GCC"; then
11240 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
11241 else
11242 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11243 fi
11244 ;;
11245 esac
11246 link_all_deplibs=yes
11247 ;;
11248
11249 sunos4*)
9d54db95 11250 if test sequent = "$host_vendor"; then
a243b558
JF
11251 # Use $CC to link under sequent, because it throws in some extra .o
11252 # files that make .init and .fini sections work.
9d54db95 11253 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11254 else
11255 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11256 fi
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_direct=yes
11259 hardcode_minus_L=yes
11260 hardcode_shlibpath_var=no
11261 ;;
11262
11263 sysv4)
11264 case $host_vendor in
11265 sni)
11266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11267 hardcode_direct=yes # is this really true???
11268 ;;
11269 siemens)
11270 ## LD is ld it makes a PLAMLIB
11271 ## CC just makes a GrossModule.
11272 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11273 reload_cmds='$CC -r -o $output$reload_objs'
11274 hardcode_direct=no
11275 ;;
11276 motorola)
11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11279 ;;
11280 esac
11281 runpath_var='LD_RUN_PATH'
11282 hardcode_shlibpath_var=no
11283 ;;
11284
11285 sysv4.3*)
11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287 hardcode_shlibpath_var=no
11288 export_dynamic_flag_spec='-Bexport'
11289 ;;
11290
11291 sysv4*MP*)
11292 if test -d /usr/nec; then
11293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 hardcode_shlibpath_var=no
11295 runpath_var=LD_RUN_PATH
11296 hardcode_runpath_var=yes
11297 ld_shlibs=yes
11298 fi
11299 ;;
11300
11301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 11302 no_undefined_flag='$wl-z,text'
a243b558
JF
11303 archive_cmds_need_lc=no
11304 hardcode_shlibpath_var=no
11305 runpath_var='LD_RUN_PATH'
11306
9d54db95
JF
11307 if test yes = "$GCC"; then
11308 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11310 else
9d54db95
JF
11311 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11313 fi
11314 ;;
11315
11316 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 11317 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
11318 # link with -lc, and that would cause any symbols used from libc to
11319 # always be unresolved, which means just about no library would
11320 # ever link correctly. If we're not using GNU ld we use -z text
11321 # though, which does catch some bad symbols but isn't as heavy-handed
11322 # as -z defs.
9d54db95
JF
11323 no_undefined_flag='$wl-z,text'
11324 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
11325 archive_cmds_need_lc=no
11326 hardcode_shlibpath_var=no
9d54db95 11327 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
11328 hardcode_libdir_separator=':'
11329 link_all_deplibs=yes
9d54db95 11330 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
11331 runpath_var='LD_RUN_PATH'
11332
9d54db95
JF
11333 if test yes = "$GCC"; then
11334 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11336 else
9d54db95
JF
11337 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11339 fi
11340 ;;
11341
11342 uts4*)
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_libdir_flag_spec='-L$libdir'
11345 hardcode_shlibpath_var=no
11346 ;;
11347
11348 *)
11349 ld_shlibs=no
11350 ;;
11351 esac
11352
9d54db95 11353 if test sni = "$host_vendor"; then
a243b558
JF
11354 case $host in
11355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 11356 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
11357 ;;
11358 esac
11359 fi
11360 fi
11361
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11363$as_echo "$ld_shlibs" >&6; }
9d54db95 11364test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
11365
11366with_gnu_ld=$with_gnu_ld
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382#
11383# Do we need to explicitly link libc?
11384#
11385case "x$archive_cmds_need_lc" in
11386x|xyes)
11387 # Assume -lc should be added
11388 archive_cmds_need_lc=yes
11389
9d54db95 11390 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
11391 case $archive_cmds in
11392 *'~'*)
11393 # FIXME: we may have to deal with multi-command sequences.
11394 ;;
11395 '$CC '*)
11396 # Test whether the compiler implicitly links with -lc since on some
11397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11398 # to ld, don't add -lc before -lgcc.
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11400$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11401if ${lt_cv_archive_cmds_need_lc+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403else
00a96142 11404 $RM -r conftest*
a243b558
JF
11405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11406
11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11408 (eval $ac_compile) 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11411 test $ac_status = 0; } 2>conftest.err; then
11412 soname=conftest
11413 lib=conftest
11414 libobjs=conftest.$ac_objext
11415 deplibs=
11416 wl=$lt_prog_compiler_wl
11417 pic_flag=$lt_prog_compiler_pic
11418 compiler_flags=-v
11419 linker_flags=-v
11420 verstring=
11421 output_objdir=.
11422 libname=conftest
11423 lt_save_allow_undefined_flag=$allow_undefined_flag
11424 allow_undefined_flag=
11425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11426 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11427 ac_status=$?
11428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11429 test $ac_status = 0; }
11430 then
11431 lt_cv_archive_cmds_need_lc=no
11432 else
11433 lt_cv_archive_cmds_need_lc=yes
11434 fi
11435 allow_undefined_flag=$lt_save_allow_undefined_flag
11436 else
11437 cat conftest.err 1>&5
11438 fi
00a96142 11439 $RM -r conftest*
a243b558
JF
11440
11441fi
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11443$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11444 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11445 ;;
11446 esac
11447 fi
11448 ;;
11449esac
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11603$as_echo_n "checking dynamic linker characteristics... " >&6; }
11604
9d54db95 11605if test yes = "$GCC"; then
a243b558 11606 case $host_os in
9d54db95
JF
11607 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11608 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
11609 esac
11610 case $host_os in
9d54db95
JF
11611 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11612 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
11613 esac
11614 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11615 case $lt_search_path_spec in
11616 *\;*)
11617 # if the path contains ";" then we assume it to be the separator
11618 # otherwise default to the standard path separator (i.e. ":") - it is
11619 # assumed that no part of a normal pathname contains ";" but that should
11620 # okay in the real world where ";" in dirpaths is itself problematic.
11621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11622 ;;
11623 *)
11624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11625 ;;
11626 esac
11627 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 11628 # and add multilib dir if necessary...
a243b558 11629 lt_tmp_lt_search_path_spec=
9d54db95
JF
11630 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11631 # ...but if some path component already ends with the multilib dir we assume
11632 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11633 case "$lt_multi_os_dir; $lt_search_path_spec " in
11634 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11635 lt_multi_os_dir=
11636 ;;
11637 esac
a243b558 11638 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
11639 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11641 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
11642 test -d "$lt_sys_path" && \
11643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11644 fi
11645 done
11646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
11647BEGIN {RS = " "; FS = "/|\n";} {
11648 lt_foo = "";
11649 lt_count = 0;
a243b558
JF
11650 for (lt_i = NF; lt_i > 0; lt_i--) {
11651 if ($lt_i != "" && $lt_i != ".") {
11652 if ($lt_i == "..") {
11653 lt_count++;
11654 } else {
11655 if (lt_count == 0) {
9d54db95 11656 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
11657 } else {
11658 lt_count--;
11659 }
11660 }
11661 }
11662 }
11663 if (lt_foo != "") { lt_freq[lt_foo]++; }
11664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11665}'`
11666 # AWK program above erroneously prepends '/' to C:/dos/paths
11667 # for these hosts.
11668 case $host_os in
11669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 11670 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
11671 esac
11672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11673else
11674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675fi
11676library_names_spec=
11677libname_spec='lib$name'
11678soname_spec=
9d54db95 11679shrext_cmds=.so
a243b558
JF
11680postinstall_cmds=
11681postuninstall_cmds=
11682finish_cmds=
11683finish_eval=
11684shlibpath_var=
11685shlibpath_overrides_runpath=unknown
11686version_type=none
11687dynamic_linker="$host_os ld.so"
11688sys_lib_dlsearch_path_spec="/lib /usr/lib"
11689need_lib_prefix=unknown
11690hardcode_into_libs=no
11691
11692# when you set need_version to no, make sure it does not cause -set_version
11693# flags to be left without arguments
11694need_version=unknown
11695
9d54db95
JF
11696
11697
a243b558
JF
11698case $host_os in
11699aix3*)
11700 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
11702 shlibpath_var=LIBPATH
11703
11704 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 11705 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11706 ;;
11707
11708aix[4-9]*)
11709 version_type=linux # correct to gnu/linux during the next big refactor
11710 need_lib_prefix=no
11711 need_version=no
11712 hardcode_into_libs=yes
9d54db95 11713 if test ia64 = "$host_cpu"; then
a243b558 11714 # AIX 5 supports IA64
9d54db95 11715 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
11716 shlibpath_var=LD_LIBRARY_PATH
11717 else
11718 # With GCC up to 2.95.x, collect2 would create an import file
11719 # for dependence libraries. The import file would start with
9d54db95
JF
11720 # the line '#! .'. This would cause the generated library to
11721 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
11722 # development snapshots of GCC prior to 3.0.
11723 case $host_os in
11724 aix4 | aix4.[01] | aix4.[01].*)
11725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11726 echo ' yes '
9d54db95 11727 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
11728 :
11729 else
11730 can_build_shared=no
11731 fi
11732 ;;
11733 esac
9d54db95
JF
11734 # Using Import Files as archive members, it is possible to support
11735 # filename-based versioning of shared library archives on AIX. While
11736 # this would work for both with and without runtime linking, it will
11737 # prevent static linking of such archives. So we do filename-based
11738 # shared library versioning with .so extension only, which is used
11739 # when both runtime linking and shared linking is enabled.
11740 # Unfortunately, runtime linking may impact performance, so we do
11741 # not want this to be the default eventually. Also, we use the
11742 # versioned .so libs for executables only if there is the -brtl
11743 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11744 # To allow for filename-based versioning support, we need to create
11745 # libNAME.so.V as an archive file, containing:
11746 # *) an Import File, referring to the versioned filename of the
11747 # archive as well as the shared archive member, telling the
11748 # bitwidth (32 or 64) of that shared object, and providing the
11749 # list of exported symbols of that shared object, eventually
11750 # decorated with the 'weak' keyword
11751 # *) the shared object with the F_LOADONLY flag set, to really avoid
11752 # it being seen by the linker.
11753 # At run time we better use the real file rather than another symlink,
11754 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11755
11756 case $with_aix_soname,$aix_use_runtimelinking in
11757 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
11758 # soname into executable. Probably we can add versioning support to
11759 # collect2, so additional links can be useful in future.
9d54db95
JF
11760 aix,yes) # traditional libtool
11761 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
11762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11763 # instead of lib<name>.a to let people know that these are not
11764 # typical AIX shared libraries.
9d54db95
JF
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11766 ;;
11767 aix,no) # traditional AIX only
11768 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
11769 # We preserve .a as extension for shared libraries through AIX4.2
11770 # and later when we are not doing run time linking.
9d54db95
JF
11771 library_names_spec='$libname$release.a $libname.a'
11772 soname_spec='$libname$release$shared_ext$major'
11773 ;;
11774 svr4,*) # full svr4 only
11775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11777 # We do not specify a path in Import Files, so LIBPATH fires.
11778 shlibpath_overrides_runpath=yes
11779 ;;
11780 *,yes) # both, prefer svr4
11781 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11782 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11783 # unpreferred sharedlib libNAME.a needs extra handling
11784 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11785 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11786 # We do not specify a path in Import Files, so LIBPATH fires.
11787 shlibpath_overrides_runpath=yes
11788 ;;
11789 *,no) # both, prefer aix
11790 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11791 library_names_spec='$libname$release.a $libname.a'
11792 soname_spec='$libname$release$shared_ext$major'
11793 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11794 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11795 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11796 ;;
11797 esac
a243b558
JF
11798 shlibpath_var=LIBPATH
11799 fi
11800 ;;
11801
11802amigaos*)
11803 case $host_cpu in
11804 powerpc)
11805 # Since July 2007 AmigaOS4 officially supports .so libraries.
11806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
11808 ;;
11809 m68k)
11810 library_names_spec='$libname.ixlibrary $libname.a'
11811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 11812 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
a243b558
JF
11813 ;;
11814 esac
11815 ;;
11816
11817beos*)
9d54db95 11818 library_names_spec='$libname$shared_ext'
a243b558
JF
11819 dynamic_linker="$host_os ld.so"
11820 shlibpath_var=LIBRARY_PATH
11821 ;;
11822
11823bsdi[45]*)
11824 version_type=linux # correct to gnu/linux during the next big refactor
11825 need_version=no
9d54db95
JF
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11832 # the default ld.so.conf also contains /usr/contrib/lib and
11833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11834 # libtool to hard-code these into programs
11835 ;;
11836
11837cygwin* | mingw* | pw32* | cegcc*)
11838 version_type=windows
9d54db95 11839 shrext_cmds=.dll
a243b558
JF
11840 need_version=no
11841 need_lib_prefix=no
9c60689e 11842
a243b558
JF
11843 case $GCC,$cc_basename in
11844 yes,*)
11845 # gcc
11846 library_names_spec='$libname.dll.a'
11847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11848 postinstall_cmds='base_file=`basename \$file`~
11849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11850 dldir=$destdir/`dirname \$dlpath`~
11851 test -d \$dldir || mkdir -p \$dldir~
11852 $install_prog $dir/$dlname \$dldir/$dlname~
11853 chmod a+x \$dldir/$dlname~
11854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11856 fi'
11857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11858 dlpath=$dir/\$dldll~
11859 $RM \$dlpath'
11860 shlibpath_overrides_runpath=yes
9c60689e 11861
a243b558
JF
11862 case $host_os in
11863 cygwin*)
11864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 11865 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 11866
a243b558
JF
11867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11868 ;;
11869 mingw* | cegcc*)
11870 # MinGW DLLs use traditional 'lib' prefix
9d54db95 11871 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11872 ;;
11873 pw32*)
11874 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 11875 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11876 ;;
11877 esac
11878 dynamic_linker='Win32 ld.exe'
11879 ;;
9c60689e 11880
a243b558
JF
11881 *,cl*)
11882 # Native MSVC
11883 libname_spec='$name'
9d54db95
JF
11884 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11885 library_names_spec='$libname.dll.lib'
9c60689e 11886
a243b558
JF
11887 case $build_os in
11888 mingw*)
11889 sys_lib_search_path_spec=
11890 lt_save_ifs=$IFS
11891 IFS=';'
11892 for lt_path in $LIB
11893 do
11894 IFS=$lt_save_ifs
11895 # Let DOS variable expansion print the short 8.3 style file name.
11896 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11897 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11898 done
11899 IFS=$lt_save_ifs
11900 # Convert to MSYS style.
11901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11902 ;;
11903 cygwin*)
11904 # Convert to unix form, then to dos form, then back to unix form
11905 # but this time dos style (no spaces!) so that the unix form looks
11906 # like /cygdrive/c/PROGRA~1:/cygdr...
11907 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11908 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11909 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11910 ;;
11911 *)
9d54db95 11912 sys_lib_search_path_spec=$LIB
a243b558
JF
11913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11914 # It is most probably a Windows format PATH.
11915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11916 else
11917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918 fi
11919 # FIXME: find the short name or the path components, as spaces are
11920 # common. (e.g. "Program Files" -> "PROGRA~1")
11921 ;;
11922 esac
11923
11924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11925 postinstall_cmds='base_file=`basename \$file`~
11926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11927 dldir=$destdir/`dirname \$dlpath`~
11928 test -d \$dldir || mkdir -p \$dldir~
11929 $install_prog $dir/$dlname \$dldir/$dlname'
11930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11931 dlpath=$dir/\$dldll~
11932 $RM \$dlpath'
11933 shlibpath_overrides_runpath=yes
11934 dynamic_linker='Win32 link.exe'
11935 ;;
9c60689e 11936
a243b558
JF
11937 *)
11938 # Assume MSVC wrapper
9d54db95 11939 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
11940 dynamic_linker='Win32 ld.exe'
11941 ;;
11942 esac
11943 # FIXME: first we should search . and the directory the executable is in
11944 shlibpath_var=PATH
11945 ;;
9c60689e 11946
a243b558
JF
11947darwin* | rhapsody*)
11948 dynamic_linker="$host_os dyld"
11949 version_type=darwin
11950 need_lib_prefix=no
11951 need_version=no
9d54db95
JF
11952 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11953 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
11954 shlibpath_overrides_runpath=yes
11955 shlibpath_var=DYLD_LIBRARY_PATH
11956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11957
a243b558
JF
11958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11960 ;;
9c60689e 11961
a243b558
JF
11962dgux*)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 need_lib_prefix=no
11965 need_version=no
9d54db95
JF
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11968 shlibpath_var=LD_LIBRARY_PATH
11969 ;;
11970
11971freebsd* | dragonfly*)
11972 # DragonFly does not have aout. When/if they implement a new
11973 # versioning mechanism, adjust this.
11974 if test -x /usr/bin/objformat; then
11975 objformat=`/usr/bin/objformat`
11976 else
11977 case $host_os in
11978 freebsd[23].*) objformat=aout ;;
11979 *) objformat=elf ;;
11980 esac
11981 fi
11982 version_type=freebsd-$objformat
11983 case $version_type in
11984 freebsd-elf*)
9d54db95
JF
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11987 need_version=no
11988 need_lib_prefix=no
11989 ;;
11990 freebsd-*)
9d54db95 11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
11992 need_version=yes
11993 ;;
11994 esac
11995 shlibpath_var=LD_LIBRARY_PATH
11996 case $host_os in
11997 freebsd2.*)
11998 shlibpath_overrides_runpath=yes
11999 ;;
12000 freebsd3.[01]* | freebsdelf3.[01]*)
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12003 ;;
12004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12008 ;;
12009 *) # from 4.6 on, and DragonFly
12010 shlibpath_overrides_runpath=yes
12011 hardcode_into_libs=yes
12012 ;;
12013 esac
12014 ;;
9c60689e 12015
a243b558
JF
12016haiku*)
12017 version_type=linux # correct to gnu/linux during the next big refactor
12018 need_lib_prefix=no
12019 need_version=no
12020 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
12021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12022 soname_spec='$libname$release$shared_ext$major'
a243b558 12023 shlibpath_var=LIBRARY_PATH
9d54db95 12024 shlibpath_overrides_runpath=no
a243b558
JF
12025 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12026 hardcode_into_libs=yes
12027 ;;
9c60689e 12028
a243b558
JF
12029hpux9* | hpux10* | hpux11*)
12030 # Give a soname corresponding to the major version so that dld.sl refuses to
12031 # link against other versions.
12032 version_type=sunos
12033 need_lib_prefix=no
12034 need_version=no
12035 case $host_cpu in
12036 ia64*)
12037 shrext_cmds='.so'
12038 hardcode_into_libs=yes
12039 dynamic_linker="$host_os dld.so"
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12043 soname_spec='$libname$release$shared_ext$major'
12044 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 12045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 12046 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
12047 else
12048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 12049 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 12050 fi
a243b558
JF
12051 ;;
12052 hppa*64*)
12053 shrext_cmds='.sl'
12054 hardcode_into_libs=yes
12055 dynamic_linker="$host_os dld.sl"
12056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062 ;;
12063 *)
12064 shrext_cmds='.sl'
12065 dynamic_linker="$host_os dld.sl"
12066 shlibpath_var=SHLIB_PATH
12067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
12070 ;;
12071 esac
a243b558
JF
12072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12073 postinstall_cmds='chmod 555 $lib'
12074 # or fails outright, so override atomically:
12075 install_override_mode=555
12076 ;;
9c60689e 12077
a243b558
JF
12078interix[3-9]*)
12079 version_type=linux # correct to gnu/linux during the next big refactor
12080 need_lib_prefix=no
12081 need_version=no
9d54db95
JF
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=no
12087 hardcode_into_libs=yes
12088 ;;
9c60689e 12089
a243b558
JF
12090irix5* | irix6* | nonstopux*)
12091 case $host_os in
12092 nonstopux*) version_type=nonstopux ;;
12093 *)
9d54db95 12094 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
12095 version_type=linux # correct to gnu/linux during the next big refactor
12096 else
12097 version_type=irix
12098 fi ;;
12099 esac
12100 need_lib_prefix=no
12101 need_version=no
9d54db95
JF
12102 soname_spec='$libname$release$shared_ext$major'
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
12104 case $host_os in
12105 irix5* | nonstopux*)
12106 libsuff= shlibsuff=
12107 ;;
12108 *)
12109 case $LD in # libtool.m4 will add one of these switches to LD
12110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12111 libsuff= shlibsuff= libmagic=32-bit;;
12112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12113 libsuff=32 shlibsuff=N32 libmagic=N32;;
12114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12116 *) libsuff= shlibsuff= libmagic=never-match;;
12117 esac
12118 ;;
12119 esac
12120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12121 shlibpath_overrides_runpath=no
9d54db95
JF
12122 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12123 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
12124 hardcode_into_libs=yes
12125 ;;
9c60689e 12126
a243b558
JF
12127# No shared lib support for Linux oldld, aout, or coff.
12128linux*oldld* | linux*aout* | linux*coff*)
12129 dynamic_linker=no
12130 ;;
9c60689e 12131
9d54db95
JF
12132linux*android*)
12133 version_type=none # Android doesn't support versioned libraries.
12134 need_lib_prefix=no
12135 need_version=no
12136 library_names_spec='$libname$release$shared_ext'
12137 soname_spec='$libname$release$shared_ext'
12138 finish_cmds=
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=yes
12141
12142 # This implies no fast_install, which is unacceptable.
12143 # Some rework will be needed to allow for fast_install
12144 # before this can be enabled.
12145 hardcode_into_libs=yes
12146
12147 dynamic_linker='Android linker'
12148 # Don't embed -rpath directories since the linker doesn't support them.
12149 hardcode_libdir_flag_spec='-L$libdir'
12150 ;;
12151
a243b558 12152# This must be glibc/ELF.
9d54db95 12153linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
12154 version_type=linux # correct to gnu/linux during the next big refactor
12155 need_lib_prefix=no
12156 need_version=no
9d54db95
JF
12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12158 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 shlibpath_overrides_runpath=no
9c60689e 12162
a243b558
JF
12163 # Some binutils ld are patched to set DT_RUNPATH
12164 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
12165 $as_echo_n "(cached) " >&6
12166else
a243b558
JF
12167 lt_cv_shlibpath_overrides_runpath=no
12168 save_LDFLAGS=$LDFLAGS
12169 save_libdir=$libdir
12170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h. */
ee134472 12174
a243b558
JF
12175int
12176main ()
9c60689e 12177{
9c60689e 12178
a243b558
JF
12179 ;
12180 return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_link "$LINENO"; then :
12184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12185 lt_cv_shlibpath_overrides_runpath=yes
12186fi
12187fi
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LDFLAGS=$save_LDFLAGS
12191 libdir=$save_libdir
9c60689e 12192
a243b558 12193fi
9c60689e 12194
a243b558 12195 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 12196
a243b558
JF
12197 # This implies no fast_install, which is unacceptable.
12198 # Some rework will be needed to allow for fast_install
12199 # before this can be enabled.
12200 hardcode_into_libs=yes
9c60689e 12201
9d54db95
JF
12202 # Ideally, we could use ldconfig to report *all* directores which are
12203 # searched for libraries, however this is still not possible. Aside from not
12204 # being certain /sbin/ldconfig is available, command
12205 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12206 # even though it is searched at run-time. Try to do the best guess by
12207 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
12208 if test -f /etc/ld.so.conf; then
12209 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' ' '`
12210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12211 fi
ee134472 12212
a243b558
JF
12213 # We used to test for /lib/ld.so.1 and disable shared libraries on
12214 # powerpc, because MkLinux only supported shared libraries with the
12215 # GNU dynamic linker. Since this was broken with cross compilers,
12216 # most powerpc-linux boxes support dynamic linking these days and
12217 # people can always --disable-shared, the test was removed, and we
12218 # assume the GNU/Linux dynamic linker is in use.
12219 dynamic_linker='GNU/Linux ld.so'
12220 ;;
9c60689e 12221
a243b558
JF
12222netbsd*)
12223 version_type=sunos
12224 need_lib_prefix=no
12225 need_version=no
12226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 12230 else
9d54db95
JF
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232 soname_spec='$libname$release$shared_ext$major'
a243b558 12233 dynamic_linker='NetBSD ld.elf_so'
9c60689e 12234 fi
a243b558
JF
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12237 hardcode_into_libs=yes
12238 ;;
9c60689e 12239
a243b558
JF
12240newsos6)
12241 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=yes
12245 ;;
9c60689e 12246
a243b558
JF
12247*nto* | *qnx*)
12248 version_type=qnx
12249 need_lib_prefix=no
12250 need_version=no
9d54db95
JF
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=no
12255 hardcode_into_libs=yes
12256 dynamic_linker='ldqnx.so'
12257 ;;
9c60689e 12258
9d54db95 12259openbsd* | bitrig*)
a243b558 12260 version_type=sunos
9d54db95 12261 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 12262 need_lib_prefix=no
9d54db95
JF
12263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12264 need_version=no
a243b558 12265 else
9d54db95 12266 need_version=yes
a243b558 12267 fi
9d54db95
JF
12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
a243b558 12272 ;;
9c60689e 12273
a243b558
JF
12274os2*)
12275 libname_spec='$name'
9d54db95
JF
12276 version_type=windows
12277 shrext_cmds=.dll
12278 need_version=no
a243b558 12279 need_lib_prefix=no
9d54db95
JF
12280 # OS/2 can only load a DLL with a base name of 8 characters or less.
12281 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12282 v=$($ECHO $release$versuffix | tr -d .-);
12283 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12284 $ECHO $n$v`$shared_ext'
12285 library_names_spec='${libname}_dll.$libext'
a243b558 12286 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
12287 shlibpath_var=BEGINLIBPATH
12288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12290 postinstall_cmds='base_file=`basename \$file`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname~
12295 chmod a+x \$dldir/$dlname~
12296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12298 fi'
12299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12300 dlpath=$dir/\$dldll~
12301 $RM \$dlpath'
a243b558 12302 ;;
9c60689e 12303
a243b558
JF
12304osf3* | osf4* | osf5*)
12305 version_type=osf
12306 need_lib_prefix=no
12307 need_version=no
9d54db95
JF
12308 soname_spec='$libname$release$shared_ext$major'
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12310 shlibpath_var=LD_LIBRARY_PATH
12311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 12312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
12313 ;;
12314
12315rdos*)
12316 dynamic_linker=no
12317 ;;
12318
12319solaris*)
12320 version_type=linux # correct to gnu/linux during the next big refactor
12321 need_lib_prefix=no
12322 need_version=no
9d54db95
JF
12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12325 shlibpath_var=LD_LIBRARY_PATH
12326 shlibpath_overrides_runpath=yes
12327 hardcode_into_libs=yes
12328 # ldd complains unless libraries are executable
12329 postinstall_cmds='chmod +x $lib'
12330 ;;
9c60689e 12331
a243b558
JF
12332sunos4*)
12333 version_type=sunos
9d54db95 12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes
9d54db95 12338 if test yes = "$with_gnu_ld"; then
a243b558
JF
12339 need_lib_prefix=no
12340 fi
12341 need_version=yes
12342 ;;
9c60689e 12343
a243b558
JF
12344sysv4 | sysv4.3*)
12345 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12348 shlibpath_var=LD_LIBRARY_PATH
12349 case $host_vendor in
12350 sni)
12351 shlibpath_overrides_runpath=no
12352 need_lib_prefix=no
12353 runpath_var=LD_RUN_PATH
12354 ;;
12355 siemens)
12356 need_lib_prefix=no
12357 ;;
12358 motorola)
12359 need_lib_prefix=no
12360 need_version=no
12361 shlibpath_overrides_runpath=no
12362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12363 ;;
12364 esac
12365 ;;
9c60689e 12366
a243b558 12367sysv4*MP*)
9d54db95 12368 if test -d /usr/nec; then
a243b558 12369 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12370 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12371 soname_spec='$libname$shared_ext.$major'
a243b558
JF
12372 shlibpath_var=LD_LIBRARY_PATH
12373 fi
12374 ;;
9c60689e 12375
a243b558 12376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 12377 version_type=sco
a243b558
JF
12378 need_lib_prefix=no
12379 need_version=no
9d54db95
JF
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 hardcode_into_libs=yes
9d54db95 12385 if test yes = "$with_gnu_ld"; then
a243b558
JF
12386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12387 else
12388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12389 case $host_os in
12390 sco3.2v5*)
12391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12392 ;;
12393 esac
12394 fi
12395 sys_lib_dlsearch_path_spec='/usr/lib'
12396 ;;
9c60689e 12397
a243b558
JF
12398tpf*)
12399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 need_lib_prefix=no
12402 need_version=no
9d54db95 12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=no
12406 hardcode_into_libs=yes
12407 ;;
9c60689e 12408
a243b558
JF
12409uts4*)
12410 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12413 shlibpath_var=LD_LIBRARY_PATH
12414 ;;
9c60689e 12415
a243b558
JF
12416*)
12417 dynamic_linker=no
12418 ;;
12419esac
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12421$as_echo "$dynamic_linker" >&6; }
9d54db95 12422test no = "$dynamic_linker" && can_build_shared=no
9c60689e 12423
a243b558 12424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 12425if test yes = "$GCC"; then
a243b558
JF
12426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12427fi
9c60689e 12428
9d54db95
JF
12429if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12430 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 12431fi
9d54db95
JF
12432
12433if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12434 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 12435fi
9c60689e 12436
9d54db95
JF
12437# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12438configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12439
12440# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12441func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12442
12443# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12444configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12445
12446
12447
12448
12449
12450
9c60689e
DWT
12451
12452
12453
12454
12455
12456
12457
9c60689e
DWT
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
9c60689e 12470
9c60689e 12471
9c60689e 12472
9c60689e 12473
9c60689e
DWT
12474
12475
12476
12477
9c60689e 12478
9c60689e
DWT
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
53ba6704
JF
12492
12493
9c60689e
DWT
12494
12495
12496
12497
9c60689e
DWT
12498
12499
3fd51f51 12500
66170b30
JF
12501
12502
12503
3fd51f51 12504
12833ad8
JF
12505
12506
12507
12508
3fd51f51 12509
3fd51f51
DWT
12510
12511
3fd51f51 12512
3fd51f51 12513
3fd51f51 12514
66170b30 12515
632b71ea 12516
632b71ea
DWT
12517
12518
790e5246 12519
66170b30 12520
9c60689e 12521
9c60689e
DWT
12522
12523
9c60689e 12524
9c60689e
DWT
12525
12526
66170b30 12527
66170b30 12528
9c60689e 12529
e9c9a47c
DWT
12530
12531
12532
66170b30
JF
12533
12534
66170b30 12535
e9c9a47c 12536
a243b558
JF
12537
12538
12539
12540
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12544hardcode_action=
12545if test -n "$hardcode_libdir_flag_spec" ||
12546 test -n "$runpath_var" ||
9d54db95 12547 test yes = "$hardcode_automatic"; then
a243b558
JF
12548
12549 # We can hardcode non-existent directories.
9d54db95 12550 if test no != "$hardcode_direct" &&
a243b558
JF
12551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12552 # have to relink, otherwise we might link with an installed library
12553 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
12554 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12555 test no != "$hardcode_minus_L"; then
a243b558
JF
12556 # Linking always hardcodes the temporary library directory.
12557 hardcode_action=relink
12558 else
12559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12560 hardcode_action=immediate
9c60689e 12561 fi
e9c9a47c 12562else
a243b558
JF
12563 # We cannot hardcode anything, or else we can only hardcode existing
12564 # directories.
12565 hardcode_action=unsupported
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568$as_echo "$hardcode_action" >&6; }
12569
9d54db95
JF
12570if test relink = "$hardcode_action" ||
12571 test yes = "$inherit_rpath"; then
a243b558
JF
12572 # Fast installation is not supported
12573 enable_fast_install=no
9d54db95
JF
12574elif test yes = "$shlibpath_overrides_runpath" ||
12575 test no = "$enable_shared"; then
a243b558
JF
12576 # Fast installation is not necessary
12577 enable_fast_install=needless
9c60689e 12578fi
9c60689e 12579
9c60689e 12580
66170b30 12581
66170b30 12582
9c60689e 12583
a243b558 12584
9d54db95 12585 if test yes != "$enable_dlopen"; then
a243b558
JF
12586 enable_dlopen=unknown
12587 enable_dlopen_self=unknown
12588 enable_dlopen_self_static=unknown
66170b30 12589else
a243b558
JF
12590 lt_cv_dlopen=no
12591 lt_cv_dlopen_libs=
66170b30 12592
a243b558
JF
12593 case $host_os in
12594 beos*)
9d54db95 12595 lt_cv_dlopen=load_add_on
a243b558
JF
12596 lt_cv_dlopen_libs=
12597 lt_cv_dlopen_self=yes
12598 ;;
66170b30 12599
a243b558 12600 mingw* | pw32* | cegcc*)
9d54db95 12601 lt_cv_dlopen=LoadLibrary
a243b558
JF
12602 lt_cv_dlopen_libs=
12603 ;;
66170b30 12604
a243b558 12605 cygwin*)
9d54db95 12606 lt_cv_dlopen=dlopen
a243b558
JF
12607 lt_cv_dlopen_libs=
12608 ;;
66170b30 12609
a243b558 12610 darwin*)
9d54db95 12611 # if libdl is installed we need to link against it
a243b558
JF
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613$as_echo_n "checking for dlopen in -ldl... " >&6; }
12614if ${ac_cv_lib_dl_dlopen+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616else
12617 ac_check_lib_save_LIBS=$LIBS
12618LIBS="-ldl $LIBS"
12619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h. */
66170b30 12621
a243b558
JF
12622/* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625#ifdef __cplusplus
12626extern "C"
12627#endif
12628char dlopen ();
12629int
12630main ()
12631{
12632return dlopen ();
12633 ;
12634 return 0;
12635}
12636_ACEOF
12637if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_dl_dlopen=yes
12639else
12640 ac_cv_lib_dl_dlopen=no
66170b30 12641fi
a243b558
JF
12642rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644LIBS=$ac_check_lib_save_LIBS
66170b30 12645fi
a243b558
JF
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 12650else
66170b30 12651
9d54db95 12652 lt_cv_dlopen=dyld
a243b558
JF
12653 lt_cv_dlopen_libs=
12654 lt_cv_dlopen_self=yes
66170b30 12655
a243b558 12656fi
9c60689e 12657
a243b558 12658 ;;
9c60689e 12659
9d54db95
JF
12660 tpf*)
12661 # Don't try to run any link tests for TPF. We know it's impossible
12662 # because TPF is a cross-compiler, and we know how we open DSOs.
12663 lt_cv_dlopen=dlopen
12664 lt_cv_dlopen_libs=
12665 lt_cv_dlopen_self=no
12666 ;;
12667
a243b558
JF
12668 *)
12669 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12670if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 12671 lt_cv_dlopen=shl_load
a243b558
JF
12672else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12674$as_echo_n "checking for shl_load in -ldld... " >&6; }
12675if ${ac_cv_lib_dld_shl_load+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677else
12678 ac_check_lib_save_LIBS=$LIBS
12679LIBS="-ldld $LIBS"
12680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h. */
66170b30 12682
a243b558
JF
12683/* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686#ifdef __cplusplus
12687extern "C"
12688#endif
12689char shl_load ();
12690int
12691main ()
12692{
12693return shl_load ();
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_lib_dld_shl_load=yes
66170b30 12700else
a243b558
JF
12701 ac_cv_lib_dld_shl_load=no
12702fi
12703rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705LIBS=$ac_check_lib_save_LIBS
66170b30 12706fi
a243b558
JF
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12708$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12709if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 12710 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
12711else
12712 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12713if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 12714 lt_cv_dlopen=dlopen
a243b558
JF
12715else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12717$as_echo_n "checking for dlopen in -ldl... " >&6; }
12718if ${ac_cv_lib_dl_dlopen+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720else
12721 ac_check_lib_save_LIBS=$LIBS
12722LIBS="-ldl $LIBS"
12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h. */
e9c9a47c 12725
a243b558
JF
12726/* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729#ifdef __cplusplus
12730extern "C"
12731#endif
12732char dlopen ();
12733int
12734main ()
12735{
12736return dlopen ();
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_lib_dl_dlopen=yes
12743else
12744 ac_cv_lib_dl_dlopen=no
12745fi
12746rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748LIBS=$ac_check_lib_save_LIBS
12749fi
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12751$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12752if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12753 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
12754else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12756$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12757if ${ac_cv_lib_svld_dlopen+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759else
12760 ac_check_lib_save_LIBS=$LIBS
12761LIBS="-lsvld $LIBS"
12762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h. */
12764
12765/* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12768#ifdef __cplusplus
12769extern "C"
12770#endif
12771char dlopen ();
12772int
12773main ()
12774{
12775return dlopen ();
12776 ;
12777 return 0;
12778}
12779_ACEOF
12780if ac_fn_c_try_link "$LINENO"; then :
12781 ac_cv_lib_svld_dlopen=yes
12782else
12783 ac_cv_lib_svld_dlopen=no
12784fi
12785rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787LIBS=$ac_check_lib_save_LIBS
12788fi
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12790$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12791if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 12792 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12795$as_echo_n "checking for dld_link in -ldld... " >&6; }
12796if ${ac_cv_lib_dld_dld_link+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798else
12799 ac_check_lib_save_LIBS=$LIBS
12800LIBS="-ldld $LIBS"
12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h. */
12803
12804/* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807#ifdef __cplusplus
12808extern "C"
12809#endif
12810char dld_link ();
12811int
12812main ()
12813{
12814return dld_link ();
12815 ;
12816 return 0;
12817}
12818_ACEOF
12819if ac_fn_c_try_link "$LINENO"; then :
12820 ac_cv_lib_dld_dld_link=yes
9c60689e 12821else
a243b558
JF
12822 ac_cv_lib_dld_dld_link=no
12823fi
12824rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826LIBS=$ac_check_lib_save_LIBS
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12829$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12830if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 12831 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
12832fi
12833
12834
a243b558 12835fi
66170b30 12836
66170b30 12837
a243b558 12838fi
66170b30 12839
66170b30
JF
12840
12841fi
e9c9a47c 12842
66170b30 12843
a243b558 12844fi
66170b30 12845
66170b30 12846
66170b30 12847fi
e9c9a47c 12848
a243b558
JF
12849 ;;
12850 esac
9c60689e 12851
9d54db95 12852 if test no = "$lt_cv_dlopen"; then
a243b558 12853 enable_dlopen=no
9d54db95
JF
12854 else
12855 enable_dlopen=yes
a243b558 12856 fi
9c60689e 12857
a243b558
JF
12858 case $lt_cv_dlopen in
12859 dlopen)
9d54db95
JF
12860 save_CPPFLAGS=$CPPFLAGS
12861 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12862
9d54db95 12863 save_LDFLAGS=$LDFLAGS
a243b558 12864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12865
9d54db95 12866 save_LIBS=$LIBS
a243b558 12867 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12868
a243b558
JF
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12870$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12871if ${lt_cv_dlopen_self+:} false; then :
12872 $as_echo_n "(cached) " >&6
e9c9a47c 12873else
9d54db95 12874 if test yes = "$cross_compiling"; then :
a243b558
JF
12875 lt_cv_dlopen_self=cross
12876else
12877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12878 lt_status=$lt_dlunknown
12879 cat > conftest.$ac_ext <<_LT_EOF
12880#line $LINENO "configure"
12881#include "confdefs.h"
e9c9a47c 12882
a243b558
JF
12883#if HAVE_DLFCN_H
12884#include <dlfcn.h>
12885#endif
e9c9a47c 12886
a243b558 12887#include <stdio.h>
66170b30 12888
a243b558
JF
12889#ifdef RTLD_GLOBAL
12890# define LT_DLGLOBAL RTLD_GLOBAL
12891#else
12892# ifdef DL_GLOBAL
12893# define LT_DLGLOBAL DL_GLOBAL
12894# else
12895# define LT_DLGLOBAL 0
12896# endif
12897#endif
66170b30 12898
a243b558
JF
12899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12900 find out it does not work in some platform. */
12901#ifndef LT_DLLAZY_OR_NOW
12902# ifdef RTLD_LAZY
12903# define LT_DLLAZY_OR_NOW RTLD_LAZY
12904# else
12905# ifdef DL_LAZY
12906# define LT_DLLAZY_OR_NOW DL_LAZY
12907# else
12908# ifdef RTLD_NOW
12909# define LT_DLLAZY_OR_NOW RTLD_NOW
12910# else
12911# ifdef DL_NOW
12912# define LT_DLLAZY_OR_NOW DL_NOW
12913# else
12914# define LT_DLLAZY_OR_NOW 0
12915# endif
12916# endif
12917# endif
12918# endif
12919#endif
e9c9a47c 12920
9d54db95 12921/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 12922 correspondingly for the symbols needed. */
9d54db95 12923#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
12924int fnord () __attribute__((visibility("default")));
12925#endif
e9c9a47c 12926
a243b558
JF
12927int fnord () { return 42; }
12928int main ()
12929{
12930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12931 int status = $lt_dlunknown;
e9c9a47c 12932
a243b558
JF
12933 if (self)
12934 {
12935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12936 else
12937 {
12938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12939 else puts (dlerror ());
12940 }
12941 /* dlclose (self); */
12942 }
12943 else
12944 puts (dlerror ());
e9c9a47c 12945
a243b558
JF
12946 return status;
12947}
12948_LT_EOF
12949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12950 (eval $ac_link) 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 12953 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
12954 (./conftest; exit; ) >&5 2>/dev/null
12955 lt_status=$?
12956 case x$lt_status in
12957 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12958 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12959 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12960 esac
12961 else :
12962 # compilation failed
12963 lt_cv_dlopen_self=no
12964 fi
12965fi
12966rm -fr conftest*
e9c9a47c 12967
e9c9a47c 12968
e9c9a47c 12969fi
a243b558
JF
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12971$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12972
9d54db95 12973 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
12974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12976$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12977if ${lt_cv_dlopen_self_static+:} false; then :
12978 $as_echo_n "(cached) " >&6
e9c9a47c 12979else
9d54db95 12980 if test yes = "$cross_compiling"; then :
a243b558
JF
12981 lt_cv_dlopen_self_static=cross
12982else
12983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12984 lt_status=$lt_dlunknown
12985 cat > conftest.$ac_ext <<_LT_EOF
12986#line $LINENO "configure"
12987#include "confdefs.h"
12988
12989#if HAVE_DLFCN_H
12990#include <dlfcn.h>
12991#endif
12992
12993#include <stdio.h>
e9c9a47c 12994
a243b558
JF
12995#ifdef RTLD_GLOBAL
12996# define LT_DLGLOBAL RTLD_GLOBAL
12997#else
12998# ifdef DL_GLOBAL
12999# define LT_DLGLOBAL DL_GLOBAL
13000# else
13001# define LT_DLGLOBAL 0
13002# endif
13003#endif
e9c9a47c 13004
a243b558
JF
13005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13006 find out it does not work in some platform. */
13007#ifndef LT_DLLAZY_OR_NOW
13008# ifdef RTLD_LAZY
13009# define LT_DLLAZY_OR_NOW RTLD_LAZY
13010# else
13011# ifdef DL_LAZY
13012# define LT_DLLAZY_OR_NOW DL_LAZY
13013# else
13014# ifdef RTLD_NOW
13015# define LT_DLLAZY_OR_NOW RTLD_NOW
13016# else
13017# ifdef DL_NOW
13018# define LT_DLLAZY_OR_NOW DL_NOW
13019# else
13020# define LT_DLLAZY_OR_NOW 0
13021# endif
13022# endif
13023# endif
13024# endif
13025#endif
66170b30 13026
9d54db95 13027/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 13028 correspondingly for the symbols needed. */
9d54db95 13029#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
13030int fnord () __attribute__((visibility("default")));
13031#endif
e9c9a47c 13032
a243b558
JF
13033int fnord () { return 42; }
13034int main ()
13035{
13036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13037 int status = $lt_dlunknown;
e9c9a47c 13038
a243b558
JF
13039 if (self)
13040 {
13041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13042 else
13043 {
13044 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13045 else puts (dlerror ());
13046 }
13047 /* dlclose (self); */
13048 }
13049 else
13050 puts (dlerror ());
e9c9a47c 13051
a243b558
JF
13052 return status;
13053}
13054_LT_EOF
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13056 (eval $ac_link) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 13059 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
13060 (./conftest; exit; ) >&5 2>/dev/null
13061 lt_status=$?
13062 case x$lt_status in
13063 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13064 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13065 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13066 esac
13067 else :
13068 # compilation failed
13069 lt_cv_dlopen_self_static=no
13070 fi
13071fi
13072rm -fr conftest*
e9c9a47c 13073
b65019fe 13074
a243b558
JF
13075fi
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13077$as_echo "$lt_cv_dlopen_self_static" >&6; }
13078 fi
66170b30 13079
9d54db95
JF
13080 CPPFLAGS=$save_CPPFLAGS
13081 LDFLAGS=$save_LDFLAGS
13082 LIBS=$save_LIBS
a243b558
JF
13083 ;;
13084 esac
66170b30 13085
a243b558
JF
13086 case $lt_cv_dlopen_self in
13087 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13088 *) enable_dlopen_self=unknown ;;
13089 esac
13090
13091 case $lt_cv_dlopen_self_static in
13092 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13093 *) enable_dlopen_self_static=unknown ;;
13094 esac
b65019fe
DWT
13095fi
13096
13097
66170b30 13098
b65019fe 13099
e9c9a47c 13100
e9c9a47c
DWT
13101
13102
e9c9a47c 13103
e9c9a47c
DWT
13104
13105
e9c9a47c 13106
e9c9a47c 13107
3530897b 13108
47aaa820 13109
47aaa820 13110
a243b558
JF
13111
13112
13113striplib=
13114old_striplib=
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13116$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13117if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121$as_echo "yes" >&6; }
47aaa820 13122else
a243b558
JF
13123# FIXME - insert some real tests, host_os isn't really good enough
13124 case $host_os in
13125 darwin*)
9d54db95 13126 if test -n "$STRIP"; then
a243b558
JF
13127 striplib="$STRIP -x"
13128 old_striplib="$STRIP -S"
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130$as_echo "yes" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
13134 fi
13135 ;;
13136 *)
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
13139 ;;
13140 esac
3530897b 13141fi
47aaa820 13142
3530897b
DWT
13143
13144
9c60689e 13145
9c60689e 13146
9c60689e 13147
9c60689e 13148
9c60689e 13149
66170b30 13150
66170b30 13151
66170b30 13152
66170b30 13153
9d54db95 13154 # Report what library types will actually be built
a243b558
JF
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13156$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13158$as_echo "$can_build_shared" >&6; }
66170b30 13159
a243b558
JF
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13161$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 13162 test no = "$can_build_shared" && enable_shared=no
66170b30 13163
a243b558
JF
13164 # On AIX, shared libraries and static libraries use the same namespace, and
13165 # are all built from PIC.
13166 case $host_os in
13167 aix3*)
9d54db95 13168 test yes = "$enable_shared" && enable_static=no
a243b558
JF
13169 if test -n "$RANLIB"; then
13170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13171 postinstall_cmds='$RANLIB $lib'
13172 fi
13173 ;;
66170b30 13174
a243b558 13175 aix[4-9]*)
9d54db95
JF
13176 if test ia64 != "$host_cpu"; then
13177 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13178 yes,aix,yes) ;; # shared object as lib.so file only
13179 yes,svr4,*) ;; # shared object as lib.so archive member only
13180 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13181 esac
a243b558
JF
13182 fi
13183 ;;
13184 esac
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13186$as_echo "$enable_shared" >&6; }
66170b30 13187
a243b558
JF
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13189$as_echo_n "checking whether to build static libraries... " >&6; }
13190 # Make sure either enable_shared or enable_static is yes.
9d54db95 13191 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13193$as_echo "$enable_static" >&6; }
66170b30 13194
9c60689e 13195
e9c9a47c 13196
9c60689e 13197
a243b558
JF
13198fi
13199ac_ext=c
13200ac_cpp='$CPP $CPPFLAGS'
13201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
9d54db95 13205CC=$lt_save_CC
e9c9a47c 13206
9d54db95
JF
13207 if test -n "$CXX" && ( test no != "$CXX" &&
13208 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13209 (test g++ != "$CXX"))); then
e9c9a47c
DWT
13210 ac_ext=cpp
13211ac_cpp='$CXXCPP $CPPFLAGS'
13212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13216$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13217if test -z "$CXXCPP"; then
ee134472 13218 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
13219 $as_echo_n "(cached) " >&6
13220else
13221 # Double quotes because CXXCPP needs to be expanded
13222 for CXXCPP in "$CXX -E" "/lib/cpp"
13223 do
13224 ac_preproc_ok=false
13225for ac_cxx_preproc_warn_flag in '' yes
13226do
13227 # Use a header file that comes with gcc, so configuring glibc
13228 # with a fresh cross-compiler works.
13229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13230 # <limits.h> exists even on freestanding compilers.
13231 # On the NeXT, cc -E runs the code through the compiler's parser,
13232 # not just through cpp. "Syntax error" is here to catch this case.
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234/* end confdefs.h. */
13235#ifdef __STDC__
13236# include <limits.h>
13237#else
13238# include <assert.h>
13239#endif
13240 Syntax error
13241_ACEOF
13242if ac_fn_cxx_try_cpp "$LINENO"; then :
13243
13244else
13245 # Broken: fails on valid input.
13246continue
13247fi
12833ad8 13248rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13249
13250 # OK, works on sane cases. Now check whether nonexistent headers
13251 # can be detected and how.
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254#include <ac_nonexistent.h>
13255_ACEOF
13256if ac_fn_cxx_try_cpp "$LINENO"; then :
13257 # Broken: success on invalid input.
13258continue
13259else
13260 # Passes both tests.
13261ac_preproc_ok=:
13262break
13263fi
12833ad8 13264rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13265
13266done
13267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13268rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13269if $ac_preproc_ok; then :
13270 break
13271fi
13272
13273 done
13274 ac_cv_prog_CXXCPP=$CXXCPP
13275
13276fi
13277 CXXCPP=$ac_cv_prog_CXXCPP
13278else
13279 ac_cv_prog_CXXCPP=$CXXCPP
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13282$as_echo "$CXXCPP" >&6; }
13283ac_preproc_ok=false
13284for ac_cxx_preproc_warn_flag in '' yes
13285do
13286 # Use a header file that comes with gcc, so configuring glibc
13287 # with a fresh cross-compiler works.
13288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13289 # <limits.h> exists even on freestanding compilers.
13290 # On the NeXT, cc -E runs the code through the compiler's parser,
13291 # not just through cpp. "Syntax error" is here to catch this case.
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h. */
13294#ifdef __STDC__
13295# include <limits.h>
13296#else
13297# include <assert.h>
13298#endif
13299 Syntax error
13300_ACEOF
13301if ac_fn_cxx_try_cpp "$LINENO"; then :
13302
13303else
13304 # Broken: fails on valid input.
13305continue
13306fi
12833ad8 13307rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13308
13309 # OK, works on sane cases. Now check whether nonexistent headers
13310 # can be detected and how.
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h. */
13313#include <ac_nonexistent.h>
13314_ACEOF
13315if ac_fn_cxx_try_cpp "$LINENO"; then :
13316 # Broken: success on invalid input.
13317continue
13318else
13319 # Passes both tests.
13320ac_preproc_ok=:
13321break
13322fi
12833ad8 13323rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13324
13325done
13326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13327rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13328if $ac_preproc_ok; then :
13329
13330else
13331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
13333as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13334See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
13335fi
13336
a243b558
JF
13337ac_ext=c
13338ac_cpp='$CPP $CPPFLAGS'
13339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
13342
13343else
e9c9a47c
DWT
13344 _lt_caught_CXX_error=yes
13345fi
13346
9c60689e
DWT
13347ac_ext=cpp
13348ac_cpp='$CXXCPP $CPPFLAGS'
13349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13352
47aaa820
DWT
13353archive_cmds_need_lc_CXX=no
13354allow_undefined_flag_CXX=
13355always_export_symbols_CXX=no
13356archive_expsym_cmds_CXX=
13357compiler_needs_object_CXX=no
13358export_dynamic_flag_spec_CXX=
13359hardcode_direct_CXX=no
13360hardcode_direct_absolute_CXX=no
13361hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
13362hardcode_libdir_separator_CXX=
13363hardcode_minus_L_CXX=no
13364hardcode_shlibpath_var_CXX=unsupported
13365hardcode_automatic_CXX=no
13366inherit_rpath_CXX=no
13367module_cmds_CXX=
13368module_expsym_cmds_CXX=
13369link_all_deplibs_CXX=unknown
13370old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
13371reload_flag_CXX=$reload_flag
13372reload_cmds_CXX=$reload_cmds
47aaa820
DWT
13373no_undefined_flag_CXX=
13374whole_archive_flag_spec_CXX=
13375enable_shared_with_static_runtimes_CXX=no
9c60689e 13376
47aaa820
DWT
13377# Source file extension for C++ test sources.
13378ac_ext=cpp
9c60689e 13379
47aaa820
DWT
13380# Object file extension for compiled C++ test sources.
13381objext=o
13382objext_CXX=$objext
9c60689e 13383
47aaa820
DWT
13384# No sense in running all these tests if we already determined that
13385# the CXX compiler isn't working. Some variables (like enable_shared)
13386# are currently assumed to apply to all compilers on this platform,
13387# and will be corrupted by setting them based on a non-working compiler.
9d54db95 13388if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 13391
47aaa820
DWT
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 13394
47aaa820 13395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 13396
9c60689e 13397
9c60689e 13398
9c60689e 13399
9c60689e 13400
9c60689e 13401
47aaa820
DWT
13402# If no C compiler was specified, use CC.
13403LTCC=${LTCC-"$CC"}
9c60689e 13404
47aaa820
DWT
13405# If no C compiler flags were specified, use CFLAGS.
13406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 13407
47aaa820
DWT
13408# Allow CC to be a program name with arguments.
13409compiler=$CC
9c60689e 13410
9c60689e 13411
47aaa820
DWT
13412 # save warnings/boilerplate of simple test code
13413 ac_outfile=conftest.$ac_objext
13414echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416_lt_compiler_boilerplate=`cat conftest.err`
00a96142 13417$RM -r conftest*
9c60689e 13418
47aaa820
DWT
13419 ac_outfile=conftest.$ac_objext
13420echo "$lt_simple_link_test_code" >conftest.$ac_ext
13421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13422_lt_linker_boilerplate=`cat conftest.err`
13423$RM -r conftest*
9c60689e 13424
9c60689e 13425
47aaa820
DWT
13426 # Allow CC to be a program name with arguments.
13427 lt_save_CC=$CC
ee134472 13428 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
13429 lt_save_LD=$LD
13430 lt_save_GCC=$GCC
13431 GCC=$GXX
13432 lt_save_with_gnu_ld=$with_gnu_ld
13433 lt_save_path_LD=$lt_cv_path_LD
13434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 13436 else
47aaa820 13437 $as_unset lt_cv_prog_gnu_ld
9c60689e 13438 fi
47aaa820
DWT
13439 if test -n "${lt_cv_path_LDCXX+set}"; then
13440 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 13441 else
47aaa820 13442 $as_unset lt_cv_path_LD
9c60689e 13443 fi
47aaa820
DWT
13444 test -z "${LDCXX+set}" || LD=$LDCXX
13445 CC=${CXX-"c++"}
ee134472 13446 CFLAGS=$CXXFLAGS
47aaa820
DWT
13447 compiler=$CC
13448 compiler_CXX=$CC
9d54db95
JF
13449 func_cc_basename $compiler
13450cc_basename=$func_cc_basename_result
9c60689e
DWT
13451
13452
47aaa820
DWT
13453 if test -n "$compiler"; then
13454 # We don't want -fno-exception when compiling C++ code, so set the
13455 # no_builtin_flag separately
9d54db95 13456 if test yes = "$GXX"; then
47aaa820
DWT
13457 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13458 else
13459 lt_prog_compiler_no_builtin_flag_CXX=
13460 fi
9c60689e 13461
9d54db95 13462 if test yes = "$GXX"; then
47aaa820
DWT
13463 # Set up default GNU C++ configuration
13464
13465
13466
13467# Check whether --with-gnu-ld was given.
13468if test "${with_gnu_ld+set}" = set; then :
9d54db95 13469 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 13470else
47aaa820 13471 with_gnu_ld=no
9c60689e
DWT
13472fi
13473
47aaa820 13474ac_prog=ld
9d54db95 13475if test yes = "$GCC"; then
47aaa820
DWT
13476 # Check if gcc -print-prog-name=ld gives a path.
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13478$as_echo_n "checking for ld used by $CC... " >&6; }
13479 case $host in
13480 *-*-mingw*)
9d54db95 13481 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
13482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13483 *)
13484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13485 esac
13486 case $ac_prog in
13487 # Accept absolute paths.
13488 [\\/]* | ?:[\\/]*)
13489 re_direlt='/[^/][^/]*/\.\./'
13490 # Canonicalize the pathname of ld
13491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13494 done
9d54db95 13495 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
13496 ;;
13497 "")
13498 # If it fails, then pretend we aren't using GCC.
13499 ac_prog=ld
13500 ;;
13501 *)
13502 # If it is relative, then search for the first ld in PATH.
13503 with_gnu_ld=unknown
13504 ;;
13505 esac
9d54db95 13506elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13508$as_echo_n "checking for GNU ld... " >&6; }
13509else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13511$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13512fi
ee134472 13513if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13514 $as_echo_n "(cached) " >&6
13515else
47aaa820 13516 if test -z "$LD"; then
9d54db95 13517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 13518 for ac_dir in $PATH; do
9d54db95 13519 IFS=$lt_save_ifs
47aaa820
DWT
13520 test -z "$ac_dir" && ac_dir=.
13521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 13522 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
13523 # Check to see if the program is GNU ld. I'd rather use --version,
13524 # but apparently some variants of GNU ld only accept -v.
13525 # Break only if it was the GNU/non-GNU ld that we prefer.
13526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13527 *GNU* | *'with BFD'*)
9d54db95 13528 test no != "$with_gnu_ld" && break
47aaa820
DWT
13529 ;;
13530 *)
9d54db95 13531 test yes != "$with_gnu_ld" && break
47aaa820
DWT
13532 ;;
13533 esac
13534 fi
9c60689e 13535 done
9d54db95 13536 IFS=$lt_save_ifs
47aaa820 13537else
9d54db95 13538 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
13539fi
13540fi
47aaa820 13541
9d54db95 13542LD=$lt_cv_path_LD
47aaa820
DWT
13543if test -n "$LD"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13545$as_echo "$LD" >&6; }
9c60689e
DWT
13546else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
13549fi
12833ad8 13550test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13552$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13553if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13554 $as_echo_n "(cached) " >&6
13555else
13556 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13557case `$LD -v 2>&1 </dev/null` in
13558*GNU* | *'with BFD'*)
13559 lt_cv_prog_gnu_ld=yes
13560 ;;
13561*)
13562 lt_cv_prog_gnu_ld=no
13563 ;;
13564esac
13565fi
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13567$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13568with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13569
13570
9c60689e 13571
9c60689e 13572
9c60689e 13573
9c60689e 13574
9c60689e 13575
47aaa820
DWT
13576 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13577 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
13578 if test yes = "$with_gnu_ld"; then
13579 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13580 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'
9c60689e 13581
9d54db95
JF
13582 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13583 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 13584
47aaa820
DWT
13585 # If archive_cmds runs LD, not CC, wlarc should be empty
13586 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13587 # investigate it a little bit more. (MM)
9d54db95 13588 wlarc='$wl'
9c60689e 13589
47aaa820
DWT
13590 # ancient GNU ld didn't support --whole-archive et. al.
13591 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13592 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 13593 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
13594 else
13595 whole_archive_flag_spec_CXX=
13596 fi
13597 else
13598 with_gnu_ld=no
13599 wlarc=
13600
13601 # A generic and very simple default shared library creation
13602 # command for GNU C++ for the case where it uses the native
13603 # linker, instead of GNU ld. If possible, this setting should
13604 # overridden to take advantage of the native linker features on
13605 # the platform it is being used on.
13606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13607 fi
13608
13609 # Commands to make compiler produce verbose output that lists
13610 # what "hidden" libraries, object files and flags are used when
13611 # linking a shared library.
ee134472 13612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13613
13614 else
13615 GXX=no
13616 with_gnu_ld=no
13617 wlarc=
13618 fi
13619
13620 # PORTME: fill in a description of your system's C++ link characteristics
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13623 ld_shlibs_CXX=yes
13624 case $host_os in
13625 aix3*)
13626 # FIXME: insert proper C++ library support
13627 ld_shlibs_CXX=no
13628 ;;
13629 aix[4-9]*)
9d54db95 13630 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13631 # On IA64, the linker does run time linking by default, so we don't
13632 # have to do anything special.
13633 aix_use_runtimelinking=no
13634 exp_sym_flag='-Bexport'
9d54db95 13635 no_entry_flag=
47aaa820
DWT
13636 else
13637 aix_use_runtimelinking=no
13638
13639 # Test if we are trying to use run time linking or normal
13640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
13641 # have runtime linking enabled, and use it for executables.
13642 # For shared libraries, we enable/disable runtime linking
13643 # depending on the kind of the shared library created -
13644 # when "with_aix_soname,aix_use_runtimelinking" is:
13645 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13646 # "aix,yes" lib.so shared, rtl:yes, for executables
13647 # lib.a static archive
13648 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13649 # lib.a(lib.so.V) shared, rtl:no, for executables
13650 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13651 # lib.a(lib.so.V) shared, rtl:no
13652 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13653 # lib.a static archive
47aaa820
DWT
13654 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13655 for ld_flag in $LDFLAGS; do
13656 case $ld_flag in
13657 *-brtl*)
13658 aix_use_runtimelinking=yes
13659 break
13660 ;;
13661 esac
13662 done
9d54db95
JF
13663 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13664 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13665 # so we don't have lib.a shared libs to link our executables.
13666 # We have to force runtime linking in this case.
13667 aix_use_runtimelinking=yes
13668 LDFLAGS="$LDFLAGS -Wl,-brtl"
13669 fi
47aaa820
DWT
13670 ;;
13671 esac
13672
13673 exp_sym_flag='-bexport'
13674 no_entry_flag='-bnoentry'
13675 fi
13676
13677 # When large executables or shared objects are built, AIX ld can
13678 # have problems creating the table of contents. If linking a library
13679 # or program results in "error TOC overflow" add -mminimal-toc to
13680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13682
13683 archive_cmds_CXX=''
13684 hardcode_direct_CXX=yes
13685 hardcode_direct_absolute_CXX=yes
13686 hardcode_libdir_separator_CXX=':'
13687 link_all_deplibs_CXX=yes
9d54db95
JF
13688 file_list_spec_CXX='$wl-f,'
13689 case $with_aix_soname,$aix_use_runtimelinking in
13690 aix,*) ;; # no import file
13691 svr4,* | *,yes) # use import file
13692 # The Import File defines what to hardcode.
13693 hardcode_direct_CXX=no
13694 hardcode_direct_absolute_CXX=no
13695 ;;
13696 esac
47aaa820 13697
9d54db95 13698 if test yes = "$GXX"; then
47aaa820
DWT
13699 case $host_os in aix4.[012]|aix4.[012].*)
13700 # We only want to do this on AIX 4.2 and lower, the check
13701 # below for broken collect2 doesn't work under 4.3+
9d54db95 13702 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
13703 if test -f "$collect2name" &&
13704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13705 then
13706 # We have reworked collect2
13707 :
13708 else
13709 # We have old collect2
13710 hardcode_direct_CXX=unsupported
13711 # It fails to find uninstalled libraries when the uninstalled
13712 # path is not listed in the libpath. Setting hardcode_minus_L
13713 # to unsupported forces relinking
13714 hardcode_minus_L_CXX=yes
13715 hardcode_libdir_flag_spec_CXX='-L$libdir'
13716 hardcode_libdir_separator_CXX=
13717 fi
13718 esac
13719 shared_flag='-shared'
9d54db95
JF
13720 if test yes = "$aix_use_runtimelinking"; then
13721 shared_flag=$shared_flag' $wl-G'
47aaa820 13722 fi
9d54db95
JF
13723 # Need to ensure runtime linking is disabled for the traditional
13724 # shared library, or the linker may eventually find shared libraries
13725 # /with/ Import File - we do not want to mix them.
13726 shared_flag_aix='-shared'
13727 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
13728 else
13729 # not using gcc
9d54db95 13730 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13732 # chokes on -Wl,-G. The following line is correct:
13733 shared_flag='-G'
13734 else
9d54db95
JF
13735 if test yes = "$aix_use_runtimelinking"; then
13736 shared_flag='$wl-G'
47aaa820 13737 else
9d54db95 13738 shared_flag='$wl-bM:SRE'
47aaa820 13739 fi
9d54db95
JF
13740 shared_flag_aix='$wl-bM:SRE'
13741 shared_flag_svr4='$wl-G'
47aaa820
DWT
13742 fi
13743 fi
13744
9d54db95 13745 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
13746 # It seems that -bexpall does not export symbols beginning with
13747 # underscore (_), so it is better to generate a list of symbols to
13748 # export.
13749 always_export_symbols_CXX=yes
9d54db95 13750 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
13751 # Warning - without using the other runtime loading flags (-brtl),
13752 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13753 # The "-G" linker flag allows undefined symbols.
13754 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
13755 # Determine the default libpath from the value encoded in an empty
13756 # executable.
9d54db95 13757 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13758 aix_libpath=$lt_cv_aix_libpath
13759else
13760 if ${lt_cv_aix_libpath__CXX+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762else
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13764/* end confdefs.h. */
13765
13766int
13767main ()
13768{
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
47aaa820 13774if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13775
ee134472
JF
13776 lt_aix_libpath_sed='
13777 /Import File Strings/,/^$/ {
13778 /^0/ {
13779 s/^0 *\([^ ]*\) *$/\1/
13780 p
13781 }
13782 }'
13783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 # Check for a 64-bit object if we didn't find anything.
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13787 fi
47aaa820
DWT
13788fi
13789rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
ee134472 13791 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13792 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13793 fi
13794
13795fi
13796
13797 aix_libpath=$lt_cv_aix_libpath__CXX
13798fi
47aaa820 13799
9d54db95 13800 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 13801
9d54db95 13802 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
47aaa820 13803 else
9d54db95
JF
13804 if test ia64 = "$host_cpu"; then
13805 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 13806 allow_undefined_flag_CXX="-z nodefs"
9d54db95 13807 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"
47aaa820
DWT
13808 else
13809 # Determine the default libpath from the value encoded in an
13810 # empty executable.
9d54db95 13811 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13812 aix_libpath=$lt_cv_aix_libpath
13813else
13814 if ${lt_cv_aix_libpath__CXX+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13818/* end confdefs.h. */
13819
13820int
13821main ()
13822{
13823
13824 ;
13825 return 0;
13826}
13827_ACEOF
47aaa820 13828if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13829
ee134472
JF
13830 lt_aix_libpath_sed='
13831 /Import File Strings/,/^$/ {
13832 /^0/ {
13833 s/^0 *\([^ ]*\) *$/\1/
13834 p
13835 }
13836 }'
13837 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13838 # Check for a 64-bit object if we didn't find anything.
13839 if test -z "$lt_cv_aix_libpath__CXX"; then
13840 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13841 fi
9c60689e 13842fi
47aaa820
DWT
13843rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
ee134472 13845 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13846 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13847 fi
13848
13849fi
13850
13851 aix_libpath=$lt_cv_aix_libpath__CXX
13852fi
9c60689e 13853
9d54db95 13854 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
13855 # Warning - without using the other run time loading flags,
13856 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13857 no_undefined_flag_CXX=' $wl-bernotok'
13858 allow_undefined_flag_CXX=' $wl-berok'
13859 if test yes = "$with_gnu_ld"; then
ee134472 13860 # We only use this code for GNU lds that support --whole-archive.
9d54db95 13861 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
13862 else
13863 # Exported symbols can be pulled into shared objects from archives
13864 whole_archive_flag_spec_CXX='$convenience'
13865 fi
47aaa820 13866 archive_cmds_need_lc_CXX=yes
9d54db95
JF
13867 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13868 # -brtl affects multiple linker settings, -berok does not and is overridden later
13869 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13870 if test svr4 != "$with_aix_soname"; then
13871 # This is similar to how AIX traditionally builds its shared
13872 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13873 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13874 fi
13875 if test aix != "$with_aix_soname"; then
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13877 else
13878 # used by -dlpreopen to get the symbols
13879 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13880 fi
13881 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
13882 fi
13883 fi
13884 ;;
9c60689e 13885
47aaa820
DWT
13886 beos*)
13887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13888 allow_undefined_flag_CXX=unsupported
13889 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13890 # support --undefined. This deserves some investigation. FIXME
9d54db95 13891 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
13892 else
13893 ld_shlibs_CXX=no
13894 fi
13895 ;;
9c60689e 13896
47aaa820
DWT
13897 chorus*)
13898 case $cc_basename in
13899 *)
13900 # FIXME: insert proper C++ library support
13901 ld_shlibs_CXX=no
13902 ;;
13903 esac
13904 ;;
9c60689e 13905
47aaa820 13906 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13907 case $GXX,$cc_basename in
13908 ,cl* | no,cl*)
13909 # Native MSVC
13910 # hardcode_libdir_flag_spec is actually meaningless, as there is
13911 # no search path for DLLs.
13912 hardcode_libdir_flag_spec_CXX=' '
13913 allow_undefined_flag_CXX=unsupported
13914 always_export_symbols_CXX=yes
13915 file_list_spec_CXX='@'
13916 # Tell ltmain to make .lib files, not .a files.
13917 libext=lib
13918 # Tell ltmain to make .dll files, not .so files.
9d54db95 13919 shrext_cmds=.dll
ee134472 13920 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
13921 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13922 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13923 cp "$export_symbols" "$output_objdir/$soname.def";
13924 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13925 else
13926 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13927 fi~
13928 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13929 linknames='
ee134472
JF
13930 # The linker will not automatically build a static lib if we build a DLL.
13931 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13932 enable_shared_with_static_runtimes_CXX=yes
13933 # Don't use ranlib
13934 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13935 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
13936 lt_tool_outputfile="@TOOL_OUTPUT@"~
13937 case $lt_outputfile in
13938 *.exe|*.EXE) ;;
13939 *)
13940 lt_outputfile=$lt_outputfile.exe
13941 lt_tool_outputfile=$lt_tool_outputfile.exe
13942 ;;
13943 esac~
13944 func_to_tool_file "$lt_outputfile"~
13945 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13946 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13947 $RM "$lt_outputfile.manifest";
13948 fi'
ee134472
JF
13949 ;;
13950 *)
13951 # g++
13952 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13953 # as there is no search path for DLLs.
13954 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 13955 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
13956 allow_undefined_flag_CXX=unsupported
13957 always_export_symbols_CXX=no
13958 enable_shared_with_static_runtimes_CXX=yes
13959
13960 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
13961 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'
13962 # If the export-symbols file already is a .def file, use it as
13963 # is; otherwise, prepend EXPORTS...
13964 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13965 cp $export_symbols $output_objdir/$soname.def;
13966 else
13967 echo EXPORTS > $output_objdir/$soname.def;
13968 cat $export_symbols >> $output_objdir/$soname.def;
13969 fi~
13970 $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'
ee134472
JF
13971 else
13972 ld_shlibs_CXX=no
13973 fi
13974 ;;
13975 esac
13976 ;;
47aaa820 13977 darwin* | rhapsody*)
9c60689e 13978
9c60689e 13979
47aaa820
DWT
13980 archive_cmds_need_lc_CXX=no
13981 hardcode_direct_CXX=no
13982 hardcode_automatic_CXX=yes
13983 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
13984 if test yes = "$lt_cv_ld_force_load"; then
13985 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\"`'
53ba6704 13986
ee134472
JF
13987 else
13988 whole_archive_flag_spec_CXX=''
13989 fi
47aaa820 13990 link_all_deplibs_CXX=yes
9d54db95 13991 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 13992 case $cc_basename in
9d54db95 13993 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
13994 *) _lt_dar_can_shared=$GCC ;;
13995 esac
9d54db95 13996 if test yes = "$_lt_dar_can_shared"; then
ee134472 13997 output_verbose_link_cmd=func_echo_all
9d54db95
JF
13998 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"
13999 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14000 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"
14001 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"
14002 if test yes != "$lt_cv_apple_cc_single_mod"; then
14003 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"
14004 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"
47aaa820 14005 fi
9c60689e 14006
47aaa820
DWT
14007 else
14008 ld_shlibs_CXX=no
14009 fi
9c60689e 14010
47aaa820 14011 ;;
9c60689e 14012
9d54db95
JF
14013 os2*)
14014 hardcode_libdir_flag_spec_CXX='-L$libdir'
14015 hardcode_minus_L_CXX=yes
14016 allow_undefined_flag_CXX=unsupported
14017 shrext_cmds=.dll
14018 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14019 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14020 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14021 $ECHO EXPORTS >> $output_objdir/$libname.def~
14022 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14023 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14024 emximp -o $lib $output_objdir/$libname.def'
14025 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14026 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14027 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14028 $ECHO EXPORTS >> $output_objdir/$libname.def~
14029 prefix_cmds="$SED"~
14030 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14031 prefix_cmds="$prefix_cmds -e 1d";
14032 fi~
14033 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14034 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14035 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14036 emximp -o $lib $output_objdir/$libname.def'
14037 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14038 enable_shared_with_static_runtimes_CXX=yes
14039 ;;
14040
47aaa820
DWT
14041 dgux*)
14042 case $cc_basename in
14043 ec++*)
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14046 ;;
14047 ghcx*)
14048 # Green Hills C++ Compiler
14049 # FIXME: insert proper C++ library support
14050 ld_shlibs_CXX=no
14051 ;;
14052 *)
14053 # FIXME: insert proper C++ library support
14054 ld_shlibs_CXX=no
14055 ;;
14056 esac
14057 ;;
9c60689e 14058
53ba6704 14059 freebsd2.*)
47aaa820
DWT
14060 # C++ shared libraries reported to be fairly broken before
14061 # switch to ELF
14062 ld_shlibs_CXX=no
14063 ;;
9c60689e 14064
47aaa820
DWT
14065 freebsd-elf*)
14066 archive_cmds_need_lc_CXX=no
14067 ;;
9c60689e 14068
47aaa820
DWT
14069 freebsd* | dragonfly*)
14070 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14071 # conventions
14072 ld_shlibs_CXX=yes
14073 ;;
9c60689e 14074
ee134472 14075 haiku*)
9d54db95 14076 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
14077 link_all_deplibs_CXX=yes
14078 ;;
14079
47aaa820 14080 hpux9*)
9d54db95 14081 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14082 hardcode_libdir_separator_CXX=:
9d54db95 14083 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14084 hardcode_direct_CXX=yes
14085 hardcode_minus_L_CXX=yes # Not in the search PATH,
14086 # but as the default
14087 # location of the library.
9c60689e 14088
47aaa820
DWT
14089 case $cc_basename in
14090 CC*)
14091 # FIXME: insert proper C++ library support
14092 ld_shlibs_CXX=no
14093 ;;
14094 aCC*)
9d54db95 14095 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14099 #
14100 # There doesn't appear to be a way to prevent this compiler from
14101 # explicitly linking system object files so we need to strip them
14102 # from the output so that they don't get included in the library
14103 # dependencies.
9d54db95 14104 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"'
47aaa820
DWT
14105 ;;
14106 *)
9d54db95
JF
14107 if test yes = "$GXX"; then
14108 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
14109 else
14110 # FIXME: insert proper C++ library support
14111 ld_shlibs_CXX=no
14112 fi
14113 ;;
14114 esac
14115 ;;
9c60689e 14116
47aaa820 14117 hpux10*|hpux11*)
9d54db95
JF
14118 if test no = "$with_gnu_ld"; then
14119 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14120 hardcode_libdir_separator_CXX=:
9c60689e 14121
47aaa820
DWT
14122 case $host_cpu in
14123 hppa*64*|ia64*)
14124 ;;
14125 *)
9d54db95 14126 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14127 ;;
14128 esac
14129 fi
14130 case $host_cpu in
14131 hppa*64*|ia64*)
14132 hardcode_direct_CXX=no
14133 hardcode_shlibpath_var_CXX=no
14134 ;;
14135 *)
14136 hardcode_direct_CXX=yes
14137 hardcode_direct_absolute_CXX=yes
14138 hardcode_minus_L_CXX=yes # Not in the search PATH,
14139 # but as the default
14140 # location of the library.
14141 ;;
14142 esac
9c60689e 14143
47aaa820
DWT
14144 case $cc_basename in
14145 CC*)
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149 aCC*)
14150 case $host_cpu in
14151 hppa*64*)
9d54db95 14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14153 ;;
14154 ia64*)
9d54db95 14155 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14156 ;;
14157 *)
9d54db95 14158 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14159 ;;
14160 esac
14161 # Commands to make compiler produce verbose output that lists
14162 # what "hidden" libraries, object files and flags are used when
14163 # linking a shared library.
14164 #
14165 # There doesn't appear to be a way to prevent this compiler from
14166 # explicitly linking system object files so we need to strip them
14167 # from the output so that they don't get included in the library
14168 # dependencies.
9d54db95 14169 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"'
47aaa820
DWT
14170 ;;
14171 *)
9d54db95
JF
14172 if test yes = "$GXX"; then
14173 if test no = "$with_gnu_ld"; then
47aaa820
DWT
14174 case $host_cpu in
14175 hppa*64*)
9d54db95 14176 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14177 ;;
14178 ia64*)
9d54db95 14179 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14180 ;;
14181 *)
9d54db95 14182 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14183 ;;
14184 esac
14185 fi
14186 else
14187 # FIXME: insert proper C++ library support
14188 ld_shlibs_CXX=no
14189 fi
14190 ;;
14191 esac
14192 ;;
9c60689e 14193
47aaa820
DWT
14194 interix[3-9]*)
14195 hardcode_direct_CXX=no
14196 hardcode_shlibpath_var_CXX=no
9d54db95
JF
14197 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14198 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14200 # Instead, shared libraries are loaded at an image base (0x10000000 by
14201 # default) and relocated if they conflict, which is a slow very memory
14202 # consuming and fragmenting process. To avoid this, we pick a random,
14203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
14205 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'
14206 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'
47aaa820
DWT
14207 ;;
14208 irix5* | irix6*)
14209 case $cc_basename in
14210 CC*)
14211 # SGI C++
9d54db95 14212 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'
9c60689e 14213
47aaa820
DWT
14214 # Archives containing C++ object files must be created using
14215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14216 # necessary to make sure instantiated templates are included
14217 # in the archive.
14218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14219 ;;
14220 *)
9d54db95
JF
14221 if test yes = "$GXX"; then
14222 if test no = "$with_gnu_ld"; then
14223 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820 14224 else
9d54db95 14225 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820
DWT
14226 fi
14227 fi
14228 link_all_deplibs_CXX=yes
14229 ;;
14230 esac
9d54db95 14231 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14232 hardcode_libdir_separator_CXX=:
14233 inherit_rpath_CXX=yes
14234 ;;
9c60689e 14235
9d54db95 14236 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
14237 case $cc_basename in
14238 KCC*)
14239 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14240
47aaa820
DWT
14241 # KCC will only create a shared library if the output file
14242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14243 # to its proper name (with version) after linking.
9d54db95
JF
14244 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'
14245 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'
47aaa820
DWT
14246 # Commands to make compiler produce verbose output that lists
14247 # what "hidden" libraries, object files and flags are used when
14248 # linking a shared library.
14249 #
14250 # There doesn't appear to be a way to prevent this compiler from
14251 # explicitly linking system object files so we need to strip them
14252 # from the output so that they don't get included in the library
14253 # dependencies.
9d54db95 14254 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"'
9c60689e 14255
9d54db95
JF
14256 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14257 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 14258
47aaa820
DWT
14259 # Archives containing C++ object files must be created using
14260 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14261 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14262 ;;
14263 icpc* | ecpc* )
14264 # Intel C++
14265 with_gnu_ld=yes
14266 # version 8.0 and above of icpc choke on multiply defined symbols
14267 # if we add $predep_objects and $postdep_objects, however 7.1 and
14268 # earlier do not add the objects themselves.
14269 case `$CC -V 2>&1` in
14270 *"Version 7."*)
9d54db95
JF
14271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14272 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'
47aaa820
DWT
14273 ;;
14274 *) # Version 8.0 or newer
14275 tmp_idyn=
14276 case $host_cpu in
14277 ia64*) tmp_idyn=' -i_dynamic';;
14278 esac
9d54db95
JF
14279 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14280 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'
47aaa820
DWT
14281 ;;
14282 esac
14283 archive_cmds_need_lc_CXX=no
9d54db95
JF
14284 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14285 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14286 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
14287 ;;
14288 pgCC* | pgcpp*)
14289 # Portland Group C++ compiler
14290 case `$CC -V` in
ee134472 14291 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 14292 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14293 rm -rf $tpldir~
14294 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14295 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 14296 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14297 rm -rf $tpldir~
14298 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14299 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14300 $RANLIB $oldlib'
47aaa820 14301 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14302 rm -rf $tpldir~
14303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14304 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820 14305 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14306 rm -rf $tpldir~
14307 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14308 $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'
47aaa820 14309 ;;
ee134472 14310 *) # Version 6 and above use weak symbols
9d54db95
JF
14311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14312 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'
47aaa820
DWT
14313 ;;
14314 esac
9c60689e 14315
9d54db95
JF
14316 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14317 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14318 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'
47aaa820
DWT
14319 ;;
14320 cxx*)
14321 # Compaq C++
9d54db95
JF
14322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14323 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'
9c60689e 14324
47aaa820
DWT
14325 runpath_var=LD_RUN_PATH
14326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14327 hardcode_libdir_separator_CXX=:
9c60689e 14328
47aaa820
DWT
14329 # Commands to make compiler produce verbose output that lists
14330 # what "hidden" libraries, object files and flags are used when
14331 # linking a shared library.
14332 #
14333 # There doesn't appear to be a way to prevent this compiler from
14334 # explicitly linking system object files so we need to strip them
14335 # from the output so that they don't get included in the library
14336 # dependencies.
9d54db95 14337 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'
47aaa820 14338 ;;
ee134472 14339 xl* | mpixl* | bgxl*)
47aaa820 14340 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
14341 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14342 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14343 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14344 if test yes = "$supports_anon_versioning"; then
47aaa820 14345 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
14346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14347 echo "local: *; };" >> $output_objdir/$libname.ver~
14348 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
14349 fi
14350 ;;
14351 *)
14352 case `$CC -V 2>&1 | sed 5q` in
14353 *Sun\ C*)
14354 # Sun C++ 5.9
14355 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
14356 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14357 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'
47aaa820 14358 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 14359 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'
47aaa820 14360 compiler_needs_object_CXX=yes
9c60689e 14361
47aaa820
DWT
14362 # Not sure whether something based on
14363 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14364 # would be better.
ee134472 14365 output_verbose_link_cmd='func_echo_all'
9c60689e 14366
47aaa820
DWT
14367 # Archives containing C++ object files must be created using
14368 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14369 # necessary to make sure instantiated templates are included
14370 # in the archive.
14371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14372 ;;
14373 esac
14374 ;;
14375 esac
14376 ;;
9c60689e 14377
47aaa820
DWT
14378 lynxos*)
14379 # FIXME: insert proper C++ library support
14380 ld_shlibs_CXX=no
14381 ;;
9c60689e 14382
47aaa820
DWT
14383 m88k*)
14384 # FIXME: insert proper C++ library support
14385 ld_shlibs_CXX=no
14386 ;;
9c60689e 14387
47aaa820
DWT
14388 mvs*)
14389 case $cc_basename in
14390 cxx*)
14391 # FIXME: insert proper C++ library support
14392 ld_shlibs_CXX=no
14393 ;;
14394 *)
14395 # FIXME: insert proper C++ library support
14396 ld_shlibs_CXX=no
14397 ;;
14398 esac
14399 ;;
9c60689e 14400
47aaa820
DWT
14401 netbsd*)
14402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14403 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14404 wlarc=
14405 hardcode_libdir_flag_spec_CXX='-R$libdir'
14406 hardcode_direct_CXX=yes
14407 hardcode_shlibpath_var_CXX=no
14408 fi
14409 # Workaround some broken pre-1.5 toolchains
14410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 14411 ;;
47aaa820
DWT
14412
14413 *nto* | *qnx*)
14414 ld_shlibs_CXX=yes
9c60689e 14415 ;;
9c60689e 14416
9d54db95 14417 openbsd* | bitrig*)
47aaa820
DWT
14418 if test -f /usr/libexec/ld.so; then
14419 hardcode_direct_CXX=yes
14420 hardcode_shlibpath_var_CXX=no
14421 hardcode_direct_absolute_CXX=yes
14422 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
14423 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14425 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14426 export_dynamic_flag_spec_CXX='$wl-E'
14427 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 14428 fi
ee134472 14429 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
14430 else
14431 ld_shlibs_CXX=no
14432 fi
14433 ;;
9c60689e 14434
47aaa820
DWT
14435 osf3* | osf4* | osf5*)
14436 case $cc_basename in
14437 KCC*)
14438 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14439
47aaa820
DWT
14440 # KCC will only create a shared library if the output file
14441 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14442 # to its proper name (with version) after linking.
9d54db95 14443 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'
9c60689e 14444
9d54db95 14445 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 14446 hardcode_libdir_separator_CXX=:
9c60689e 14447
47aaa820
DWT
14448 # Archives containing C++ object files must be created using
14449 # the KAI C++ compiler.
14450 case $host in
14451 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14452 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14453 esac
14454 ;;
14455 RCC*)
14456 # Rational C++ 2.4.1
14457 # FIXME: insert proper C++ library support
14458 ld_shlibs_CXX=no
14459 ;;
14460 cxx*)
14461 case $host in
14462 osf3*)
9d54db95
JF
14463 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14464 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'
14465 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14466 ;;
14467 *)
14468 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 14469 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'
47aaa820 14470 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
14471 echo "-hidden">> $lib.exp~
14472 $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~
14473 $RM $lib.exp'
47aaa820
DWT
14474 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14475 ;;
14476 esac
9c60689e 14477
47aaa820 14478 hardcode_libdir_separator_CXX=:
9c60689e 14479
47aaa820
DWT
14480 # Commands to make compiler produce verbose output that lists
14481 # what "hidden" libraries, object files and flags are used when
14482 # linking a shared library.
14483 #
14484 # There doesn't appear to be a way to prevent this compiler from
14485 # explicitly linking system object files so we need to strip them
14486 # from the output so that they don't get included in the library
14487 # dependencies.
9d54db95 14488 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"'
47aaa820
DWT
14489 ;;
14490 *)
9d54db95
JF
14491 if test yes,no = "$GXX,$with_gnu_ld"; then
14492 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
14493 case $host in
14494 osf3*)
9d54db95 14495 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'
47aaa820
DWT
14496 ;;
14497 *)
9d54db95 14498 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820
DWT
14499 ;;
14500 esac
9c60689e 14501
9d54db95 14502 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 14503 hardcode_libdir_separator_CXX=:
9c60689e 14504
47aaa820
DWT
14505 # Commands to make compiler produce verbose output that lists
14506 # what "hidden" libraries, object files and flags are used when
14507 # linking a shared library.
ee134472 14508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 14509
47aaa820
DWT
14510 else
14511 # FIXME: insert proper C++ library support
14512 ld_shlibs_CXX=no
14513 fi
14514 ;;
14515 esac
14516 ;;
9c60689e 14517
47aaa820 14518 psos*)
9c60689e
DWT
14519 # FIXME: insert proper C++ library support
14520 ld_shlibs_CXX=no
14521 ;;
9c60689e 14522
47aaa820
DWT
14523 sunos4*)
14524 case $cc_basename in
14525 CC*)
14526 # Sun C++ 4.x
14527 # FIXME: insert proper C++ library support
14528 ld_shlibs_CXX=no
9c60689e 14529 ;;
47aaa820
DWT
14530 lcc*)
14531 # Lucid
14532 # FIXME: insert proper C++ library support
14533 ld_shlibs_CXX=no
14534 ;;
14535 *)
14536 # FIXME: insert proper C++ library support
14537 ld_shlibs_CXX=no
14538 ;;
14539 esac
14540 ;;
9c60689e 14541
47aaa820
DWT
14542 solaris*)
14543 case $cc_basename in
ee134472 14544 CC* | sunCC*)
47aaa820
DWT
14545 # Sun C++ 4.2, 5.x and Centerline C++
14546 archive_cmds_need_lc_CXX=yes
14547 no_undefined_flag_CXX=' -zdefs'
9d54db95 14548 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 14549 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14550 $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'
9c60689e 14551
47aaa820
DWT
14552 hardcode_libdir_flag_spec_CXX='-R$libdir'
14553 hardcode_shlibpath_var_CXX=no
14554 case $host_os in
14555 solaris2.[0-5] | solaris2.[0-5].*) ;;
14556 *)
14557 # The compiler driver will combine and reorder linker options,
9d54db95 14558 # but understands '-z linker_flag'.
47aaa820
DWT
14559 # Supported since Solaris 2.6 (maybe 2.5.1?)
14560 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14561 ;;
14562 esac
14563 link_all_deplibs_CXX=yes
9c60689e 14564
ee134472 14565 output_verbose_link_cmd='func_echo_all'
9c60689e 14566
47aaa820
DWT
14567 # Archives containing C++ object files must be created using
14568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14569 # necessary to make sure instantiated templates are included
14570 # in the archive.
14571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14572 ;;
14573 gcx*)
14574 # Green Hills C++ Compiler
9d54db95 14575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 14576
47aaa820
DWT
14577 # The C++ compiler must be used to create the archive.
14578 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14579 ;;
14580 *)
14581 # GNU C++ compiler with Solaris linker
9d54db95
JF
14582 if test yes,no = "$GXX,$with_gnu_ld"; then
14583 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 14584 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 14585 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14586 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14587 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14588
47aaa820
DWT
14589 # Commands to make compiler produce verbose output that lists
14590 # what "hidden" libraries, object files and flags are used when
14591 # linking a shared library.
ee134472 14592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14593 else
9d54db95 14594 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 14595 # platform.
9d54db95 14596 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14597 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14598 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14599
47aaa820
DWT
14600 # Commands to make compiler produce verbose output that lists
14601 # what "hidden" libraries, object files and flags are used when
14602 # linking a shared library.
ee134472 14603 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14604 fi
9c60689e 14605
9d54db95 14606 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
14607 case $host_os in
14608 solaris2.[0-5] | solaris2.[0-5].*) ;;
14609 *)
9d54db95 14610 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
14611 ;;
14612 esac
14613 fi
14614 ;;
14615 esac
14616 ;;
9c60689e 14617
47aaa820 14618 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 14619 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
14620 archive_cmds_need_lc_CXX=no
14621 hardcode_shlibpath_var_CXX=no
14622 runpath_var='LD_RUN_PATH'
9c60689e 14623
47aaa820
DWT
14624 case $cc_basename in
14625 CC*)
9d54db95
JF
14626 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14628 ;;
14629 *)
9d54db95
JF
14630 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14631 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14632 ;;
14633 esac
14634 ;;
9c60689e 14635
47aaa820 14636 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 14637 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
14638 # link with -lc, and that would cause any symbols used from libc to
14639 # always be unresolved, which means just about no library would
14640 # ever link correctly. If we're not using GNU ld we use -z text
14641 # though, which does catch some bad symbols but isn't as heavy-handed
14642 # as -z defs.
9d54db95
JF
14643 no_undefined_flag_CXX='$wl-z,text'
14644 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
14645 archive_cmds_need_lc_CXX=no
14646 hardcode_shlibpath_var_CXX=no
9d54db95 14647 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
14648 hardcode_libdir_separator_CXX=':'
14649 link_all_deplibs_CXX=yes
9d54db95 14650 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 14651 runpath_var='LD_RUN_PATH'
9c60689e 14652
47aaa820
DWT
14653 case $cc_basename in
14654 CC*)
9d54db95
JF
14655 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 14657 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 14658 '"$old_archive_cmds_CXX"
ee134472 14659 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 14660 '"$reload_cmds_CXX"
47aaa820
DWT
14661 ;;
14662 *)
9d54db95
JF
14663 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14664 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14665 ;;
14666 esac
14667 ;;
9c60689e 14668
47aaa820 14669 tandem*)
9c60689e 14670 case $cc_basename in
47aaa820
DWT
14671 NCC*)
14672 # NonStop-UX NCC 3.20
14673 # FIXME: insert proper C++ library support
14674 ld_shlibs_CXX=no
14675 ;;
9c60689e 14676 *)
47aaa820
DWT
14677 # FIXME: insert proper C++ library support
14678 ld_shlibs_CXX=no
14679 ;;
9c60689e
DWT
14680 esac
14681 ;;
14682
47aaa820
DWT
14683 vxworks*)
14684 # FIXME: insert proper C++ library support
14685 ld_shlibs_CXX=no
14686 ;;
9c60689e 14687
47aaa820
DWT
14688 *)
14689 # FIXME: insert proper C++ library support
14690 ld_shlibs_CXX=no
9c60689e 14691 ;;
47aaa820 14692 esac
9c60689e 14693
47aaa820
DWT
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14695$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 14696 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 14697
9d54db95
JF
14698 GCC_CXX=$GXX
14699 LD_CXX=$LD
9c60689e 14700
47aaa820
DWT
14701 ## CAVEAT EMPTOR:
14702 ## There is no encapsulation within the following macros, do not change
14703 ## the running order or otherwise move them around unless you know exactly
14704 ## what you are doing...
14705 # Dependencies to place before and after the object being linked:
14706predep_objects_CXX=
14707postdep_objects_CXX=
14708predeps_CXX=
14709postdeps_CXX=
14710compiler_lib_search_path_CXX=
9c60689e 14711
47aaa820
DWT
14712cat > conftest.$ac_ext <<_LT_EOF
14713class Foo
14714{
14715public:
14716 Foo (void) { a = 0; }
14717private:
14718 int a;
14719};
14720_LT_EOF
9c60689e 14721
ee134472
JF
14722
14723_lt_libdeps_save_CFLAGS=$CFLAGS
14724case "$CC $CFLAGS " in #(
14725*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14726*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14727*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14728esac
14729
47aaa820
DWT
14730if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14731 (eval $ac_compile) 2>&5
14732 ac_status=$?
14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 # Parse the compiler output and extract the necessary
14736 # objects, libraries and library flags.
9c60689e 14737
47aaa820
DWT
14738 # Sentinel used to keep track of whether or not we are before
14739 # the conftest object file.
14740 pre_test_object_deps_done=no
9c60689e 14741
47aaa820 14742 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 14743 case $prev$p in
9c60689e 14744
47aaa820
DWT
14745 -L* | -R* | -l*)
14746 # Some compilers place space between "-{L,R}" and the path.
14747 # Remove the space.
9d54db95
JF
14748 if test x-L = "$p" ||
14749 test x-R = "$p"; then
47aaa820
DWT
14750 prev=$p
14751 continue
47aaa820 14752 fi
9c60689e 14753
ee134472
JF
14754 # Expand the sysroot to ease extracting the directories later.
14755 if test -z "$prev"; then
14756 case $p in
14757 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14758 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14759 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14760 esac
14761 fi
14762 case $p in
14763 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14764 esac
9d54db95
JF
14765 if test no = "$pre_test_object_deps_done"; then
14766 case $prev in
ee134472 14767 -L | -R)
47aaa820
DWT
14768 # Internal compiler library paths should come after those
14769 # provided the user. The postdeps already come after the
14770 # user supplied libs so there is no need to process them.
14771 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 14772 compiler_lib_search_path_CXX=$prev$p
47aaa820 14773 else
9d54db95 14774 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
14775 fi
14776 ;;
14777 # The "-l" case would never come before the object being
14778 # linked, so don't bother handling this case.
14779 esac
14780 else
14781 if test -z "$postdeps_CXX"; then
9d54db95 14782 postdeps_CXX=$prev$p
47aaa820 14783 else
9d54db95 14784 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
14785 fi
14786 fi
ee134472 14787 prev=
47aaa820 14788 ;;
9c60689e 14789
ee134472 14790 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14791 *.$objext)
14792 # This assumes that the test object file only shows up
14793 # once in the compiler output.
14794 if test "$p" = "conftest.$objext"; then
14795 pre_test_object_deps_done=yes
14796 continue
14797 fi
9c60689e 14798
9d54db95 14799 if test no = "$pre_test_object_deps_done"; then
47aaa820 14800 if test -z "$predep_objects_CXX"; then
9d54db95 14801 predep_objects_CXX=$p
47aaa820
DWT
14802 else
14803 predep_objects_CXX="$predep_objects_CXX $p"
14804 fi
14805 else
14806 if test -z "$postdep_objects_CXX"; then
9d54db95 14807 postdep_objects_CXX=$p
47aaa820
DWT
14808 else
14809 postdep_objects_CXX="$postdep_objects_CXX $p"
14810 fi
14811 fi
14812 ;;
9c60689e 14813
47aaa820 14814 *) ;; # Ignore the rest.
9c60689e 14815
47aaa820
DWT
14816 esac
14817 done
9c60689e 14818
47aaa820
DWT
14819 # Clean up.
14820 rm -f a.out a.exe
14821else
14822 echo "libtool.m4: error: problem compiling CXX test program"
14823fi
9c60689e 14824
47aaa820 14825$RM -f confest.$objext
ee134472 14826CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14827
47aaa820
DWT
14828# PORTME: override above test on systems where it is broken
14829case $host_os in
14830interix[3-9]*)
14831 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14832 # hack all around it, let's just trust "g++" to DTRT.
14833 predep_objects_CXX=
14834 postdep_objects_CXX=
14835 postdeps_CXX=
14836 ;;
47aaa820 14837esac
9c60689e 14838
9c60689e 14839
47aaa820
DWT
14840case " $postdeps_CXX " in
14841*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14842esac
14843 compiler_lib_search_dirs_CXX=
14844if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 14845 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 14846fi
9c60689e 14847
9c60689e 14848
9c60689e 14849
9c60689e 14850
9c60689e 14851
9c60689e 14852
9c60689e 14853
9c60689e 14854
9c60689e 14855
9c60689e 14856
9c60689e 14857
9c60689e 14858
9c60689e 14859
9c60689e 14860
9c60689e 14861
9c60689e 14862
9c60689e 14863
9c60689e 14864
9c60689e 14865
9c60689e 14866
9c60689e 14867
9c60689e 14868
9c60689e 14869
9c60689e 14870
9c60689e 14871
9c60689e 14872
9c60689e 14873
9c60689e 14874
9c60689e 14875
9c60689e 14876
9c60689e 14877
47aaa820
DWT
14878 lt_prog_compiler_wl_CXX=
14879lt_prog_compiler_pic_CXX=
14880lt_prog_compiler_static_CXX=
9c60689e 14881
9c60689e
DWT
14882
14883 # C++ specific cases for pic, static, wl, etc.
9d54db95 14884 if test yes = "$GXX"; then
9c60689e
DWT
14885 lt_prog_compiler_wl_CXX='-Wl,'
14886 lt_prog_compiler_static_CXX='-static'
14887
14888 case $host_os in
14889 aix*)
14890 # All AIX code is PIC.
9d54db95 14891 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14892 # AIX 5 now supports IA64 processor
14893 lt_prog_compiler_static_CXX='-Bstatic'
14894 fi
9d54db95 14895 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
14896 ;;
14897
14898 amigaos*)
14899 case $host_cpu in
14900 powerpc)
14901 # see comment about AmigaOS4 .so support
14902 lt_prog_compiler_pic_CXX='-fPIC'
14903 ;;
14904 m68k)
14905 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
14906 # adding the '-m68020' flag to GCC prevents building anything better,
14907 # like '-m68040'.
9c60689e
DWT
14908 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14909 ;;
14910 esac
14911 ;;
14912
14913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14914 # PIC is the default for these OSes.
14915 ;;
14916 mingw* | cygwin* | os2* | pw32* | cegcc*)
14917 # This hack is so that the source file can tell whether it is being
14918 # built for inclusion in a dll (and should export symbols for example).
14919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14920 # (--disable-auto-import) libraries
14921 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
14922 case $host_os in
14923 os2*)
14924 lt_prog_compiler_static_CXX='$wl-static'
14925 ;;
14926 esac
9c60689e
DWT
14927 ;;
14928 darwin* | rhapsody*)
14929 # PIC is the default on this platform
14930 # Common symbols not allowed in MH_DYLIB files
14931 lt_prog_compiler_pic_CXX='-fno-common'
14932 ;;
14933 *djgpp*)
14934 # DJGPP does not support shared libraries at all
14935 lt_prog_compiler_pic_CXX=
14936 ;;
ee134472
JF
14937 haiku*)
14938 # PIC is the default for Haiku.
14939 # The "-static" flag exists, but is broken.
14940 lt_prog_compiler_static_CXX=
14941 ;;
9c60689e
DWT
14942 interix[3-9]*)
14943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14944 # Instead, we relocate shared libraries at runtime.
14945 ;;
14946 sysv4*MP*)
14947 if test -d /usr/nec; then
14948 lt_prog_compiler_pic_CXX=-Kconform_pic
14949 fi
14950 ;;
14951 hpux*)
14952 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14953 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14954 # sets the default TLS model and affects inlining.
14955 case $host_cpu in
14956 hppa*64*)
14957 ;;
14958 *)
14959 lt_prog_compiler_pic_CXX='-fPIC'
14960 ;;
14961 esac
14962 ;;
14963 *qnx* | *nto*)
14964 # QNX uses GNU C++, but need to define -shared option too, otherwise
14965 # it will coredump.
14966 lt_prog_compiler_pic_CXX='-fPIC -shared'
14967 ;;
14968 *)
14969 lt_prog_compiler_pic_CXX='-fPIC'
14970 ;;
14971 esac
14972 else
14973 case $host_os in
14974 aix[4-9]*)
14975 # All AIX code is PIC.
9d54db95 14976 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14977 # AIX 5 now supports IA64 processor
14978 lt_prog_compiler_static_CXX='-Bstatic'
14979 else
14980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14981 fi
14982 ;;
14983 chorus*)
14984 case $cc_basename in
14985 cxch68*)
14986 # Green Hills C++ Compiler
14987 # _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"
14988 ;;
14989 esac
14990 ;;
ee134472
JF
14991 mingw* | cygwin* | os2* | pw32* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14995 ;;
9c60689e
DWT
14996 dgux*)
14997 case $cc_basename in
14998 ec++*)
14999 lt_prog_compiler_pic_CXX='-KPIC'
15000 ;;
15001 ghcx*)
15002 # Green Hills C++ Compiler
15003 lt_prog_compiler_pic_CXX='-pic'
15004 ;;
15005 *)
15006 ;;
15007 esac
15008 ;;
15009 freebsd* | dragonfly*)
15010 # FreeBSD uses GNU C++
15011 ;;
15012 hpux9* | hpux10* | hpux11*)
15013 case $cc_basename in
15014 CC*)
15015 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
15016 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15017 if test ia64 != "$host_cpu"; then
9c60689e
DWT
15018 lt_prog_compiler_pic_CXX='+Z'
15019 fi
15020 ;;
15021 aCC*)
15022 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 15023 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
15024 case $host_cpu in
15025 hppa*64*|ia64*)
15026 # +Z the default
15027 ;;
15028 *)
15029 lt_prog_compiler_pic_CXX='+Z'
15030 ;;
15031 esac
15032 ;;
15033 *)
15034 ;;
15035 esac
15036 ;;
15037 interix*)
15038 # This is c89, which is MS Visual C++ (no shared libs)
15039 # Anyone wants to do a port?
15040 ;;
15041 irix5* | irix6* | nonstopux*)
15042 case $cc_basename in
15043 CC*)
15044 lt_prog_compiler_wl_CXX='-Wl,'
15045 lt_prog_compiler_static_CXX='-non_shared'
15046 # CC pic flag -KPIC is the default.
15047 ;;
15048 *)
15049 ;;
15050 esac
15051 ;;
9d54db95 15052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
15053 case $cc_basename in
15054 KCC*)
15055 # KAI C++ Compiler
15056 lt_prog_compiler_wl_CXX='--backend -Wl,'
15057 lt_prog_compiler_pic_CXX='-fPIC'
15058 ;;
15059 ecpc* )
9d54db95 15060 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
15061 lt_prog_compiler_wl_CXX='-Wl,'
15062 lt_prog_compiler_pic_CXX='-KPIC'
15063 lt_prog_compiler_static_CXX='-static'
15064 ;;
15065 icpc* )
15066 # Intel C++, used to be incompatible with GCC.
15067 # ICC 10 doesn't accept -KPIC any more.
15068 lt_prog_compiler_wl_CXX='-Wl,'
15069 lt_prog_compiler_pic_CXX='-fPIC'
15070 lt_prog_compiler_static_CXX='-static'
15071 ;;
15072 pgCC* | pgcpp*)
15073 # Portland Group C++ compiler
15074 lt_prog_compiler_wl_CXX='-Wl,'
15075 lt_prog_compiler_pic_CXX='-fpic'
15076 lt_prog_compiler_static_CXX='-Bstatic'
15077 ;;
15078 cxx*)
15079 # Compaq C++
15080 # Make sure the PIC flag is empty. It appears that all Alpha
15081 # Linux and Compaq Tru64 Unix objects are PIC.
15082 lt_prog_compiler_pic_CXX=
15083 lt_prog_compiler_static_CXX='-non_shared'
15084 ;;
ee134472
JF
15085 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15086 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
15087 lt_prog_compiler_wl_CXX='-Wl,'
15088 lt_prog_compiler_pic_CXX='-qpic'
15089 lt_prog_compiler_static_CXX='-qstaticlink'
15090 ;;
15091 *)
15092 case `$CC -V 2>&1 | sed 5q` in
15093 *Sun\ C*)
15094 # Sun C++ 5.9
15095 lt_prog_compiler_pic_CXX='-KPIC'
15096 lt_prog_compiler_static_CXX='-Bstatic'
15097 lt_prog_compiler_wl_CXX='-Qoption ld '
15098 ;;
15099 esac
15100 ;;
15101 esac
15102 ;;
15103 lynxos*)
15104 ;;
15105 m88k*)
15106 ;;
15107 mvs*)
15108 case $cc_basename in
15109 cxx*)
15110 lt_prog_compiler_pic_CXX='-W c,exportall'
15111 ;;
15112 *)
15113 ;;
15114 esac
15115 ;;
53ba6704 15116 netbsd*)
9c60689e
DWT
15117 ;;
15118 *qnx* | *nto*)
15119 # QNX uses GNU C++, but need to define -shared option too, otherwise
15120 # it will coredump.
15121 lt_prog_compiler_pic_CXX='-fPIC -shared'
15122 ;;
15123 osf3* | osf4* | osf5*)
15124 case $cc_basename in
15125 KCC*)
15126 lt_prog_compiler_wl_CXX='--backend -Wl,'
15127 ;;
15128 RCC*)
15129 # Rational C++ 2.4.1
15130 lt_prog_compiler_pic_CXX='-pic'
15131 ;;
15132 cxx*)
15133 # Digital/Compaq C++
15134 lt_prog_compiler_wl_CXX='-Wl,'
15135 # Make sure the PIC flag is empty. It appears that all Alpha
15136 # Linux and Compaq Tru64 Unix objects are PIC.
15137 lt_prog_compiler_pic_CXX=
15138 lt_prog_compiler_static_CXX='-non_shared'
15139 ;;
15140 *)
15141 ;;
15142 esac
15143 ;;
15144 psos*)
15145 ;;
15146 solaris*)
15147 case $cc_basename in
ee134472 15148 CC* | sunCC*)
9c60689e
DWT
15149 # Sun C++ 4.2, 5.x and Centerline C++
15150 lt_prog_compiler_pic_CXX='-KPIC'
15151 lt_prog_compiler_static_CXX='-Bstatic'
15152 lt_prog_compiler_wl_CXX='-Qoption ld '
15153 ;;
15154 gcx*)
15155 # Green Hills C++ Compiler
15156 lt_prog_compiler_pic_CXX='-PIC'
15157 ;;
15158 *)
15159 ;;
15160 esac
15161 ;;
15162 sunos4*)
15163 case $cc_basename in
15164 CC*)
15165 # Sun C++ 4.x
15166 lt_prog_compiler_pic_CXX='-pic'
15167 lt_prog_compiler_static_CXX='-Bstatic'
15168 ;;
15169 lcc*)
15170 # Lucid
15171 lt_prog_compiler_pic_CXX='-pic'
15172 ;;
15173 *)
15174 ;;
15175 esac
15176 ;;
15177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15178 case $cc_basename in
15179 CC*)
15180 lt_prog_compiler_wl_CXX='-Wl,'
15181 lt_prog_compiler_pic_CXX='-KPIC'
15182 lt_prog_compiler_static_CXX='-Bstatic'
15183 ;;
15184 esac
15185 ;;
15186 tandem*)
15187 case $cc_basename in
15188 NCC*)
15189 # NonStop-UX NCC 3.20
15190 lt_prog_compiler_pic_CXX='-KPIC'
15191 ;;
15192 *)
15193 ;;
15194 esac
15195 ;;
15196 vxworks*)
15197 ;;
15198 *)
15199 lt_prog_compiler_can_build_shared_CXX=no
15200 ;;
15201 esac
15202 fi
15203
15204case $host_os in
9d54db95 15205 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
15206 *djgpp*)
15207 lt_prog_compiler_pic_CXX=
15208 ;;
15209 *)
15210 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15211 ;;
15212esac
9c60689e 15213
ee134472
JF
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15215$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15216if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218else
15219 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15220fi
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15222$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15223lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
15224
15225#
15226# Check to make sure the PIC flag actually works.
15227#
15228if test -n "$lt_prog_compiler_pic_CXX"; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15230$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 15231if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
15232 $as_echo_n "(cached) " >&6
15233else
15234 lt_cv_prog_compiler_pic_works_CXX=no
15235 ac_outfile=conftest.$ac_objext
15236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 15237 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
15238 # Insert the option either (1) after the last *FLAGS variable, or
15239 # (2) before a word containing "conftest.", or (3) at the end.
15240 # Note that $ac_compile itself does not contain backslashes and begins
15241 # with a dollar sign (not a hyphen), so the echo should work correctly.
15242 # The option is referenced via a variable to avoid confusing sed.
15243 lt_compile=`echo "$ac_compile" | $SED \
15244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
ee134472 15247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
15248 (eval "$lt_compile" 2>conftest.err)
15249 ac_status=$?
15250 cat conftest.err >&5
ee134472 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
15252 if (exit $ac_status) && test -s "$ac_outfile"; then
15253 # The compiler can only warn and ignore the option if not recognized
15254 # So say no if there are warnings other than the usual output.
ee134472 15255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
15256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15258 lt_cv_prog_compiler_pic_works_CXX=yes
15259 fi
15260 fi
00a96142 15261 $RM -r conftest*
9c60689e
DWT
15262
15263fi
15264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15265$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15266
9d54db95 15267if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
15268 case $lt_prog_compiler_pic_CXX in
15269 "" | " "*) ;;
15270 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15271 esac
15272else
15273 lt_prog_compiler_pic_CXX=
15274 lt_prog_compiler_can_build_shared_CXX=no
15275fi
15276
15277fi
15278
15279
15280
ee134472
JF
15281
15282
47aaa820
DWT
15283#
15284# Check to make sure the static flag actually works.
15285#
15286wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15288$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 15289if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
15290 $as_echo_n "(cached) " >&6
15291else
15292 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 15293 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
15294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15297 # The linker can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 if test -s conftest.err; then
15300 # Append any errors to the config.log.
15301 cat conftest.err 1>&5
ee134472 15302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
15303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15304 if diff conftest.exp conftest.er2 >/dev/null; then
15305 lt_cv_prog_compiler_static_works_CXX=yes
15306 fi
15307 else
15308 lt_cv_prog_compiler_static_works_CXX=yes
15309 fi
15310 fi
15311 $RM -r conftest*
9d54db95 15312 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
15313
15314fi
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15316$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15317
9d54db95 15318if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
15319 :
15320else
15321 lt_prog_compiler_static_CXX=
15322fi
15323
15324
15325
15326
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15329if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15330 $as_echo_n "(cached) " >&6
15331else
15332 lt_cv_prog_compiler_c_o_CXX=no
15333 $RM -r conftest 2>/dev/null
15334 mkdir conftest
15335 cd conftest
15336 mkdir out
15337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338
15339 lt_compiler_flag="-o out/conftest2.$ac_objext"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
ee134472 15348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15349 (eval "$lt_compile" 2>out/conftest.err)
15350 ac_status=$?
15351 cat out/conftest.err >&5
ee134472 15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
ee134472 15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_c_o_CXX=yes
15361 fi
15362 fi
15363 chmod u+w . 2>&5
00a96142 15364 $RM -r conftest*
47aaa820
DWT
15365 # SGI C++ compiler will create directory out/ii_files/ for
15366 # template instantiation
15367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15368 $RM out/* && rmdir out
15369 cd ..
15370 $RM -r conftest
00a96142 15371 $RM -r conftest*
47aaa820
DWT
15372
15373fi
15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15375$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15376
15377
15378
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15381if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15382 $as_echo_n "(cached) " >&6
15383else
15384 lt_cv_prog_compiler_c_o_CXX=no
15385 $RM -r conftest 2>/dev/null
15386 mkdir conftest
15387 cd conftest
15388 mkdir out
15389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15390
15391 lt_compiler_flag="-o out/conftest2.$ac_objext"
15392 # Insert the option either (1) after the last *FLAGS variable, or
15393 # (2) before a word containing "conftest.", or (3) at the end.
15394 # Note that $ac_compile itself does not contain backslashes and begins
15395 # with a dollar sign (not a hyphen), so the echo should work correctly.
15396 lt_compile=`echo "$ac_compile" | $SED \
15397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399 -e 's:$: $lt_compiler_flag:'`
ee134472 15400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15401 (eval "$lt_compile" 2>out/conftest.err)
15402 ac_status=$?
15403 cat out/conftest.err >&5
ee134472 15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15406 then
15407 # The compiler can only warn and ignore the option if not recognized
15408 # So say no if there are warnings
ee134472 15409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15412 lt_cv_prog_compiler_c_o_CXX=yes
15413 fi
15414 fi
15415 chmod u+w . 2>&5
00a96142 15416 $RM -r conftest*
47aaa820
DWT
15417 # SGI C++ compiler will create directory out/ii_files/ for
15418 # template instantiation
15419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15420 $RM out/* && rmdir out
15421 cd ..
15422 $RM -r conftest
00a96142 15423 $RM -r conftest*
47aaa820
DWT
15424
15425fi
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15427$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15428
15429
15430
15431
9d54db95
JF
15432hard_links=nottested
15433if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
15434 # do not overwrite the value of need_locks provided by the user
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15436$as_echo_n "checking if we can lock with hard links... " >&6; }
15437 hard_links=yes
00a96142 15438 $RM -r conftest*
47aaa820
DWT
15439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15440 touch conftest.a
15441 ln conftest.a conftest.b 2>&5 || hard_links=no
15442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15444$as_echo "$hard_links" >&6; }
9d54db95
JF
15445 if test no = "$hard_links"; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15447$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
15448 need_locks=warn
15449 fi
15450else
15451 need_locks=no
15452fi
15453
15454
15455
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15457$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15458
15459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15460 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
15461 case $host_os in
15462 aix[4-9]*)
15463 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
15464 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15465 # Without the "-l" option, or with the "-B" option, AIX nm treats
15466 # weak defined symbols like other global defined symbols, whereas
15467 # GNU nm marks them as "W".
15468 # While the 'weak' keyword is ignored in the Export File, we need
15469 # it in the Import File for the 'aix-soname' feature, so we have
15470 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 15471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 15472 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
47aaa820 15473 else
9d54db95 15474 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
15475 fi
15476 ;;
15477 pw32*)
9d54db95 15478 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 15479 ;;
47aaa820 15480 cygwin* | mingw* | cegcc*)
ee134472 15481 case $cc_basename in
53ba6704
JF
15482 cl*)
15483 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15484 ;;
ee134472
JF
15485 *)
15486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15487 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15488 ;;
15489 esac
15490 ;;
47aaa820
DWT
15491 *)
15492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15493 ;;
47aaa820 15494 esac
47aaa820
DWT
15495
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15497$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 15498test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
15499
15500with_gnu_ld_CXX=$with_gnu_ld
15501
15502
15503
15504
15505
15506
15507#
15508# Do we need to explicitly link libc?
15509#
15510case "x$archive_cmds_need_lc_CXX" in
15511x|xyes)
15512 # Assume -lc should be added
15513 archive_cmds_need_lc_CXX=yes
15514
9d54db95 15515 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
15516 case $archive_cmds_CXX in
15517 *'~'*)
15518 # FIXME: we may have to deal with multi-command sequences.
15519 ;;
15520 '$CC '*)
15521 # Test whether the compiler implicitly links with -lc since on some
15522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15523 # to ld, don't add -lc before -lgcc.
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15526if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528else
00a96142 15529 $RM -r conftest*
ee134472 15530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15531
ee134472 15532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15533 (eval $ac_compile) 2>&5
15534 ac_status=$?
15535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15536 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15537 soname=conftest
15538 lib=conftest
15539 libobjs=conftest.$ac_objext
15540 deplibs=
15541 wl=$lt_prog_compiler_wl_CXX
15542 pic_flag=$lt_prog_compiler_pic_CXX
15543 compiler_flags=-v
15544 linker_flags=-v
15545 verstring=
15546 output_objdir=.
15547 libname=conftest
15548 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15549 allow_undefined_flag_CXX=
15550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15551 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15552 ac_status=$?
15553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15554 test $ac_status = 0; }
ee134472
JF
15555 then
15556 lt_cv_archive_cmds_need_lc_CXX=no
15557 else
15558 lt_cv_archive_cmds_need_lc_CXX=yes
15559 fi
15560 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15561 else
15562 cat conftest.err 1>&5
15563 fi
00a96142 15564 $RM -r conftest*
ee134472
JF
15565
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15568$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15569 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15570 ;;
15571 esac
15572 fi
15573 ;;
15574esac
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
47aaa820
DWT
15634
15635
15636
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15638$as_echo_n "checking dynamic linker characteristics... " >&6; }
15639
15640library_names_spec=
15641libname_spec='lib$name'
15642soname_spec=
9d54db95 15643shrext_cmds=.so
47aaa820
DWT
15644postinstall_cmds=
15645postuninstall_cmds=
15646finish_cmds=
15647finish_eval=
15648shlibpath_var=
15649shlibpath_overrides_runpath=unknown
15650version_type=none
15651dynamic_linker="$host_os ld.so"
15652sys_lib_dlsearch_path_spec="/lib /usr/lib"
15653need_lib_prefix=unknown
15654hardcode_into_libs=no
15655
15656# when you set need_version to no, make sure it does not cause -set_version
15657# flags to be left without arguments
15658need_version=unknown
15659
9d54db95
JF
15660
15661
47aaa820
DWT
15662case $host_os in
15663aix3*)
53ba6704 15664 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 15665 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
15666 shlibpath_var=LIBPATH
15667
15668 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 15669 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15670 ;;
15671
15672aix[4-9]*)
53ba6704 15673 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15674 need_lib_prefix=no
15675 need_version=no
15676 hardcode_into_libs=yes
9d54db95 15677 if test ia64 = "$host_cpu"; then
47aaa820 15678 # AIX 5 supports IA64
9d54db95 15679 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
15680 shlibpath_var=LD_LIBRARY_PATH
15681 else
15682 # With GCC up to 2.95.x, collect2 would create an import file
15683 # for dependence libraries. The import file would start with
9d54db95
JF
15684 # the line '#! .'. This would cause the generated library to
15685 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
15686 # development snapshots of GCC prior to 3.0.
15687 case $host_os in
15688 aix4 | aix4.[01] | aix4.[01].*)
15689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15690 echo ' yes '
9d54db95 15691 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
15692 :
15693 else
15694 can_build_shared=no
15695 fi
15696 ;;
15697 esac
9d54db95
JF
15698 # Using Import Files as archive members, it is possible to support
15699 # filename-based versioning of shared library archives on AIX. While
15700 # this would work for both with and without runtime linking, it will
15701 # prevent static linking of such archives. So we do filename-based
15702 # shared library versioning with .so extension only, which is used
15703 # when both runtime linking and shared linking is enabled.
15704 # Unfortunately, runtime linking may impact performance, so we do
15705 # not want this to be the default eventually. Also, we use the
15706 # versioned .so libs for executables only if there is the -brtl
15707 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15708 # To allow for filename-based versioning support, we need to create
15709 # libNAME.so.V as an archive file, containing:
15710 # *) an Import File, referring to the versioned filename of the
15711 # archive as well as the shared archive member, telling the
15712 # bitwidth (32 or 64) of that shared object, and providing the
15713 # list of exported symbols of that shared object, eventually
15714 # decorated with the 'weak' keyword
15715 # *) the shared object with the F_LOADONLY flag set, to really avoid
15716 # it being seen by the linker.
15717 # At run time we better use the real file rather than another symlink,
15718 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15719
15720 case $with_aix_soname,$aix_use_runtimelinking in
15721 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
15722 # soname into executable. Probably we can add versioning support to
15723 # collect2, so additional links can be useful in future.
9d54db95
JF
15724 aix,yes) # traditional libtool
15725 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
15726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15727 # instead of lib<name>.a to let people know that these are not
15728 # typical AIX shared libraries.
9d54db95
JF
15729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15730 ;;
15731 aix,no) # traditional AIX only
15732 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
15733 # We preserve .a as extension for shared libraries through AIX4.2
15734 # and later when we are not doing run time linking.
9d54db95
JF
15735 library_names_spec='$libname$release.a $libname.a'
15736 soname_spec='$libname$release$shared_ext$major'
15737 ;;
15738 svr4,*) # full svr4 only
15739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15741 # We do not specify a path in Import Files, so LIBPATH fires.
15742 shlibpath_overrides_runpath=yes
15743 ;;
15744 *,yes) # both, prefer svr4
15745 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15746 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15747 # unpreferred sharedlib libNAME.a needs extra handling
15748 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15749 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15750 # We do not specify a path in Import Files, so LIBPATH fires.
15751 shlibpath_overrides_runpath=yes
15752 ;;
15753 *,no) # both, prefer aix
15754 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15755 library_names_spec='$libname$release.a $libname.a'
15756 soname_spec='$libname$release$shared_ext$major'
15757 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15758 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15759 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15760 ;;
15761 esac
47aaa820
DWT
15762 shlibpath_var=LIBPATH
15763 fi
15764 ;;
15765
15766amigaos*)
15767 case $host_cpu in
15768 powerpc)
15769 # Since July 2007 AmigaOS4 officially supports .so libraries.
15770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 15771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
15772 ;;
15773 m68k)
15774 library_names_spec='$libname.ixlibrary $libname.a'
15775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 15776 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
47aaa820
DWT
15777 ;;
15778 esac
15779 ;;
15780
15781beos*)
9d54db95 15782 library_names_spec='$libname$shared_ext'
47aaa820
DWT
15783 dynamic_linker="$host_os ld.so"
15784 shlibpath_var=LIBRARY_PATH
15785 ;;
15786
15787bsdi[45]*)
53ba6704 15788 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 15789 need_version=no
9d54db95
JF
15790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15791 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15796 # the default ld.so.conf also contains /usr/contrib/lib and
15797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15798 # libtool to hard-code these into programs
15799 ;;
9c60689e 15800
47aaa820
DWT
15801cygwin* | mingw* | pw32* | cegcc*)
15802 version_type=windows
9d54db95 15803 shrext_cmds=.dll
47aaa820
DWT
15804 need_version=no
15805 need_lib_prefix=no
9c60689e 15806
ee134472
JF
15807 case $GCC,$cc_basename in
15808 yes,*)
15809 # gcc
47aaa820
DWT
15810 library_names_spec='$libname.dll.a'
15811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15812 postinstall_cmds='base_file=`basename \$file`~
15813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
15814 dldir=$destdir/`dirname \$dlpath`~
15815 test -d \$dldir || mkdir -p \$dldir~
15816 $install_prog $dir/$dlname \$dldir/$dlname~
15817 chmod a+x \$dldir/$dlname~
15818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15820 fi'
15821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15822 dlpath=$dir/\$dldll~
15823 $RM \$dlpath'
15824 shlibpath_overrides_runpath=yes
9c60689e 15825
47aaa820
DWT
15826 case $host_os in
15827 cygwin*)
15828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 15829 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 15830
47aaa820
DWT
15831 ;;
15832 mingw* | cegcc*)
15833 # MinGW DLLs use traditional 'lib' prefix
9d54db95 15834 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15835 ;;
15836 pw32*)
15837 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 15838 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15839 ;;
15840 esac
ee134472
JF
15841 dynamic_linker='Win32 ld.exe'
15842 ;;
15843
15844 *,cl*)
15845 # Native MSVC
15846 libname_spec='$name'
9d54db95
JF
15847 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15848 library_names_spec='$libname.dll.lib'
ee134472
JF
15849
15850 case $build_os in
15851 mingw*)
15852 sys_lib_search_path_spec=
15853 lt_save_ifs=$IFS
15854 IFS=';'
15855 for lt_path in $LIB
15856 do
15857 IFS=$lt_save_ifs
15858 # Let DOS variable expansion print the short 8.3 style file name.
15859 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15860 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15861 done
15862 IFS=$lt_save_ifs
15863 # Convert to MSYS style.
15864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15865 ;;
15866 cygwin*)
15867 # Convert to unix form, then to dos form, then back to unix form
15868 # but this time dos style (no spaces!) so that the unix form looks
15869 # like /cygdrive/c/PROGRA~1:/cygdr...
15870 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15871 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15872 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15873 ;;
15874 *)
9d54db95 15875 sys_lib_search_path_spec=$LIB
ee134472
JF
15876 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15877 # It is most probably a Windows format PATH.
15878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15879 else
15880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15881 fi
15882 # FIXME: find the short name or the path components, as spaces are
15883 # common. (e.g. "Program Files" -> "PROGRA~1")
15884 ;;
15885 esac
15886
15887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15888 postinstall_cmds='base_file=`basename \$file`~
15889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
15890 dldir=$destdir/`dirname \$dlpath`~
15891 test -d \$dldir || mkdir -p \$dldir~
15892 $install_prog $dir/$dlname \$dldir/$dlname'
15893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15894 dlpath=$dir/\$dldll~
15895 $RM \$dlpath'
15896 shlibpath_overrides_runpath=yes
15897 dynamic_linker='Win32 link.exe'
47aaa820 15898 ;;
9c60689e 15899
47aaa820 15900 *)
ee134472 15901 # Assume MSVC wrapper
9d54db95 15902 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 15903 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15904 ;;
15905 esac
47aaa820
DWT
15906 # FIXME: first we should search . and the directory the executable is in
15907 shlibpath_var=PATH
15908 ;;
9c60689e 15909
47aaa820
DWT
15910darwin* | rhapsody*)
15911 dynamic_linker="$host_os dyld"
15912 version_type=darwin
15913 need_lib_prefix=no
15914 need_version=no
9d54db95
JF
15915 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15916 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
15917 shlibpath_overrides_runpath=yes
15918 shlibpath_var=DYLD_LIBRARY_PATH
15919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15920
47aaa820
DWT
15921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15922 ;;
9c60689e 15923
47aaa820 15924dgux*)
53ba6704 15925 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15926 need_lib_prefix=no
15927 need_version=no
9d54db95
JF
15928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15929 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15930 shlibpath_var=LD_LIBRARY_PATH
15931 ;;
9c60689e 15932
47aaa820
DWT
15933freebsd* | dragonfly*)
15934 # DragonFly does not have aout. When/if they implement a new
15935 # versioning mechanism, adjust this.
15936 if test -x /usr/bin/objformat; then
15937 objformat=`/usr/bin/objformat`
15938 else
15939 case $host_os in
53ba6704 15940 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15941 *) objformat=elf ;;
15942 esac
15943 fi
15944 version_type=freebsd-$objformat
15945 case $version_type in
15946 freebsd-elf*)
9d54db95
JF
15947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15948 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15949 need_version=no
15950 need_lib_prefix=no
15951 ;;
15952 freebsd-*)
9d54db95 15953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
15954 need_version=yes
15955 ;;
15956 esac
15957 shlibpath_var=LD_LIBRARY_PATH
15958 case $host_os in
53ba6704 15959 freebsd2.*)
47aaa820
DWT
15960 shlibpath_overrides_runpath=yes
15961 ;;
15962 freebsd3.[01]* | freebsdelf3.[01]*)
15963 shlibpath_overrides_runpath=yes
15964 hardcode_into_libs=yes
15965 ;;
15966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15970 ;;
15971 *) # from 4.6 on, and DragonFly
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 ;;
15975 esac
15976 ;;
9c60689e 15977
ee134472 15978haiku*)
53ba6704 15979 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15980 need_lib_prefix=no
15981 need_version=no
15982 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
15983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15984 soname_spec='$libname$release$shared_ext$major'
ee134472 15985 shlibpath_var=LIBRARY_PATH
9d54db95 15986 shlibpath_overrides_runpath=no
ee134472 15987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15988 hardcode_into_libs=yes
15989 ;;
9c60689e 15990
47aaa820
DWT
15991hpux9* | hpux10* | hpux11*)
15992 # Give a soname corresponding to the major version so that dld.sl refuses to
15993 # link against other versions.
15994 version_type=sunos
15995 need_lib_prefix=no
15996 need_version=no
15997 case $host_cpu in
15998 ia64*)
15999 shrext_cmds='.so'
16000 hardcode_into_libs=yes
16001 dynamic_linker="$host_os dld.so"
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16005 soname_spec='$libname$release$shared_ext$major'
16006 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 16007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 16008 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
16009 else
16010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 16011 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 16012 fi
47aaa820
DWT
16013 ;;
16014 hppa*64*)
16015 shrext_cmds='.sl'
16016 hardcode_into_libs=yes
16017 dynamic_linker="$host_os dld.sl"
16018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16021 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16024 ;;
16025 *)
16026 shrext_cmds='.sl'
16027 dynamic_linker="$host_os dld.sl"
16028 shlibpath_var=SHLIB_PATH
16029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
16030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16031 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16032 ;;
16033 esac
ee134472 16034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 16035 postinstall_cmds='chmod 555 $lib'
ee134472
JF
16036 # or fails outright, so override atomically:
16037 install_override_mode=555
47aaa820 16038 ;;
9c60689e 16039
47aaa820 16040interix[3-9]*)
53ba6704 16041 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16042 need_lib_prefix=no
16043 need_version=no
9d54db95
JF
16044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16045 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16050 ;;
9c60689e 16051
47aaa820
DWT
16052irix5* | irix6* | nonstopux*)
16053 case $host_os in
16054 nonstopux*) version_type=nonstopux ;;
16055 *)
9d54db95 16056 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 16057 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16058 else
16059 version_type=irix
16060 fi ;;
16061 esac
16062 need_lib_prefix=no
16063 need_version=no
9d54db95
JF
16064 soname_spec='$libname$release$shared_ext$major'
16065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
16066 case $host_os in
16067 irix5* | nonstopux*)
16068 libsuff= shlibsuff=
16069 ;;
16070 *)
16071 case $LD in # libtool.m4 will add one of these switches to LD
16072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16073 libsuff= shlibsuff= libmagic=32-bit;;
16074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16075 libsuff=32 shlibsuff=N32 libmagic=N32;;
16076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16078 *) libsuff= shlibsuff= libmagic=never-match;;
16079 esac
16080 ;;
16081 esac
16082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16083 shlibpath_overrides_runpath=no
9d54db95
JF
16084 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16085 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
16086 hardcode_into_libs=yes
16087 ;;
9c60689e 16088
47aaa820
DWT
16089# No shared lib support for Linux oldld, aout, or coff.
16090linux*oldld* | linux*aout* | linux*coff*)
16091 dynamic_linker=no
16092 ;;
9c60689e 16093
9d54db95
JF
16094linux*android*)
16095 version_type=none # Android doesn't support versioned libraries.
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='$libname$release$shared_ext'
16099 soname_spec='$libname$release$shared_ext'
16100 finish_cmds=
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16103
16104 # This implies no fast_install, which is unacceptable.
16105 # Some rework will be needed to allow for fast_install
16106 # before this can be enabled.
16107 hardcode_into_libs=yes
16108
16109 dynamic_linker='Android linker'
16110 # Don't embed -rpath directories since the linker doesn't support them.
16111 hardcode_libdir_flag_spec_CXX='-L$libdir'
16112 ;;
16113
53ba6704 16114# This must be glibc/ELF.
9d54db95 16115linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 16116 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16117 need_lib_prefix=no
16118 need_version=no
9d54db95
JF
16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16120 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 shlibpath_overrides_runpath=no
ee134472 16124
47aaa820 16125 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
16126 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16127 $as_echo_n "(cached) " >&6
16128else
16129 lt_cv_shlibpath_overrides_runpath=no
16130 save_LDFLAGS=$LDFLAGS
16131 save_libdir=$libdir
16132 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16133 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 16135/* end confdefs.h. */
9c60689e 16136
47aaa820
DWT
16137int
16138main ()
16139{
9c60689e 16140
47aaa820
DWT
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145if ac_fn_cxx_try_link "$LINENO"; then :
16146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 16147 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 16148fi
47aaa820
DWT
16149fi
16150rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
16152 LDFLAGS=$save_LDFLAGS
16153 libdir=$save_libdir
16154
16155fi
16156
16157 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 16158
47aaa820
DWT
16159 # This implies no fast_install, which is unacceptable.
16160 # Some rework will be needed to allow for fast_install
16161 # before this can be enabled.
16162 hardcode_into_libs=yes
9c60689e 16163
9d54db95
JF
16164 # Ideally, we could use ldconfig to report *all* directores which are
16165 # searched for libraries, however this is still not possible. Aside from not
16166 # being certain /sbin/ldconfig is available, command
16167 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16168 # even though it is searched at run-time. Try to do the best guess by
16169 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 16170 if test -f /etc/ld.so.conf; then
ee134472 16171 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' ' '`
47aaa820
DWT
16172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16173 fi
9c60689e 16174
47aaa820
DWT
16175 # We used to test for /lib/ld.so.1 and disable shared libraries on
16176 # powerpc, because MkLinux only supported shared libraries with the
16177 # GNU dynamic linker. Since this was broken with cross compilers,
16178 # most powerpc-linux boxes support dynamic linking these days and
16179 # people can always --disable-shared, the test was removed, and we
16180 # assume the GNU/Linux dynamic linker is in use.
16181 dynamic_linker='GNU/Linux ld.so'
9c60689e 16182 ;;
47aaa820 16183
47aaa820
DWT
16184netbsd*)
16185 version_type=sunos
16186 need_lib_prefix=no
16187 need_version=no
16188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 16189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16191 dynamic_linker='NetBSD (a.out) ld.so'
16192 else
9d54db95
JF
16193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16194 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16195 dynamic_linker='NetBSD ld.elf_so'
16196 fi
16197 shlibpath_var=LD_LIBRARY_PATH
16198 shlibpath_overrides_runpath=yes
16199 hardcode_into_libs=yes
9c60689e 16200 ;;
9c60689e 16201
47aaa820 16202newsos6)
53ba6704 16203 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 16204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16205 shlibpath_var=LD_LIBRARY_PATH
16206 shlibpath_overrides_runpath=yes
16207 ;;
9c60689e 16208
47aaa820
DWT
16209*nto* | *qnx*)
16210 version_type=qnx
16211 need_lib_prefix=no
16212 need_version=no
9d54db95
JF
16213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16214 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=no
16217 hardcode_into_libs=yes
16218 dynamic_linker='ldqnx.so'
16219 ;;
9c60689e 16220
9d54db95 16221openbsd* | bitrig*)
47aaa820 16222 version_type=sunos
9d54db95 16223 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 16224 need_lib_prefix=no
9d54db95
JF
16225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16226 need_version=no
47aaa820 16227 else
9d54db95 16228 need_version=yes
47aaa820 16229 fi
9d54db95
JF
16230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
47aaa820 16234 ;;
9c60689e 16235
47aaa820
DWT
16236os2*)
16237 libname_spec='$name'
9d54db95
JF
16238 version_type=windows
16239 shrext_cmds=.dll
16240 need_version=no
47aaa820 16241 need_lib_prefix=no
9d54db95
JF
16242 # OS/2 can only load a DLL with a base name of 8 characters or less.
16243 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16244 v=$($ECHO $release$versuffix | tr -d .-);
16245 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16246 $ECHO $n$v`$shared_ext'
16247 library_names_spec='${libname}_dll.$libext'
47aaa820 16248 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
16249 shlibpath_var=BEGINLIBPATH
16250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252 postinstall_cmds='base_file=`basename \$file`~
16253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16254 dldir=$destdir/`dirname \$dlpath`~
16255 test -d \$dldir || mkdir -p \$dldir~
16256 $install_prog $dir/$dlname \$dldir/$dlname~
16257 chmod a+x \$dldir/$dlname~
16258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16260 fi'
16261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16262 dlpath=$dir/\$dldll~
16263 $RM \$dlpath'
47aaa820 16264 ;;
9c60689e 16265
47aaa820
DWT
16266osf3* | osf4* | osf5*)
16267 version_type=osf
16268 need_lib_prefix=no
16269 need_version=no
9d54db95
JF
16270 soname_spec='$libname$release$shared_ext$major'
16271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16272 shlibpath_var=LD_LIBRARY_PATH
16273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 16275 ;;
9c60689e 16276
47aaa820
DWT
16277rdos*)
16278 dynamic_linker=no
16279 ;;
9c60689e 16280
47aaa820 16281solaris*)
53ba6704 16282 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16283 need_lib_prefix=no
16284 need_version=no
9d54db95
JF
16285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16286 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes
16289 hardcode_into_libs=yes
16290 # ldd complains unless libraries are executable
16291 postinstall_cmds='chmod +x $lib'
16292 ;;
9c60689e 16293
47aaa820
DWT
16294sunos4*)
16295 version_type=sunos
9d54db95 16296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=yes
9d54db95 16300 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16301 need_lib_prefix=no
16302 fi
16303 need_version=yes
16304 ;;
9c60689e 16305
47aaa820 16306sysv4 | sysv4.3*)
53ba6704 16307 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16309 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16310 shlibpath_var=LD_LIBRARY_PATH
16311 case $host_vendor in
16312 sni)
16313 shlibpath_overrides_runpath=no
16314 need_lib_prefix=no
16315 runpath_var=LD_RUN_PATH
9c60689e 16316 ;;
47aaa820
DWT
16317 siemens)
16318 need_lib_prefix=no
9c60689e 16319 ;;
47aaa820
DWT
16320 motorola)
16321 need_lib_prefix=no
16322 need_version=no
16323 shlibpath_overrides_runpath=no
16324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16325 ;;
16326 esac
9c60689e 16327 ;;
9c60689e 16328
47aaa820 16329sysv4*MP*)
9d54db95 16330 if test -d /usr/nec; then
53ba6704 16331 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16332 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16333 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
16334 shlibpath_var=LD_LIBRARY_PATH
16335 fi
16336 ;;
9c60689e 16337
47aaa820 16338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 16339 version_type=sco
47aaa820
DWT
16340 need_lib_prefix=no
16341 need_version=no
9d54db95
JF
16342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16343 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 hardcode_into_libs=yes
9d54db95 16347 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16349 else
16350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16351 case $host_os in
16352 sco3.2v5*)
16353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16354 ;;
16355 esac
16356 fi
16357 sys_lib_dlsearch_path_spec='/usr/lib'
16358 ;;
9c60689e 16359
47aaa820
DWT
16360tpf*)
16361 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 16362 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16363 need_lib_prefix=no
16364 need_version=no
9d54db95 16365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16366 shlibpath_var=LD_LIBRARY_PATH
16367 shlibpath_overrides_runpath=no
16368 hardcode_into_libs=yes
16369 ;;
9c60689e 16370
47aaa820 16371uts4*)
53ba6704 16372 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16374 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16375 shlibpath_var=LD_LIBRARY_PATH
16376 ;;
9c60689e 16377
47aaa820
DWT
16378*)
16379 dynamic_linker=no
e9c9a47c
DWT
16380 ;;
16381esac
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16383$as_echo "$dynamic_linker" >&6; }
9d54db95 16384test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
16385
16386variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 16387if test yes = "$GCC"; then
e9c9a47c 16388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 16389fi
9c60689e 16390
9d54db95
JF
16391if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16392 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 16393fi
9d54db95
JF
16394
16395if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16396 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 16397fi
9c60689e 16398
9d54db95
JF
16399# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16400configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16401
16402# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16403func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16404
16405# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16406configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16407
16408
16409
9c60689e 16410
9c60689e 16411
9c60689e 16412
47aaa820 16413
47aaa820 16414
47aaa820 16415
9c60689e 16416
9c60689e 16417
47aaa820 16418
47aaa820 16419
47aaa820 16420
47aaa820 16421
47aaa820 16422
47aaa820 16423
47aaa820 16424
47aaa820 16425
9c60689e 16426
9c60689e 16427
9c60689e 16428
9c60689e 16429
9c60689e 16430
e9c9a47c
DWT
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
ee134472
JF
16442
16443
e9c9a47c
DWT
16444
16445
16446
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16448$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16449hardcode_action_CXX=
16450if test -n "$hardcode_libdir_flag_spec_CXX" ||
16451 test -n "$runpath_var_CXX" ||
9d54db95 16452 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
16453
16454 # We can hardcode non-existent directories.
9d54db95 16455 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
16456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16457 # have to relink, otherwise we might link with an installed library
16458 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
16459 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16460 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
16461 # Linking always hardcodes the temporary library directory.
16462 hardcode_action_CXX=relink
16463 else
16464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16465 hardcode_action_CXX=immediate
16466 fi
16467else
16468 # We cannot hardcode anything, or else we can only hardcode existing
16469 # directories.
16470 hardcode_action_CXX=unsupported
16471fi
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16473$as_echo "$hardcode_action_CXX" >&6; }
16474
9d54db95
JF
16475if test relink = "$hardcode_action_CXX" ||
16476 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
16477 # Fast installation is not supported
16478 enable_fast_install=no
9d54db95
JF
16479elif test yes = "$shlibpath_overrides_runpath" ||
16480 test no = "$enable_shared"; then
e9c9a47c
DWT
16481 # Fast installation is not necessary
16482 enable_fast_install=needless
47aaa820 16483fi
9c60689e 16484
47aaa820 16485
47aaa820 16486
e9c9a47c
DWT
16487
16488
16489
16490
a243b558
JF
16491 fi # test -n "$compiler"
16492
16493 CC=$lt_save_CC
16494 CFLAGS=$lt_save_CFLAGS
16495 LDCXX=$LD
16496 LD=$lt_save_LD
16497 GCC=$lt_save_GCC
16498 with_gnu_ld=$lt_save_with_gnu_ld
16499 lt_cv_path_LDCXX=$lt_cv_path_LD
16500 lt_cv_path_LD=$lt_save_path_LD
16501 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16502 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 16503fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
16504
16505ac_ext=c
16506ac_cpp='$CPP $CPPFLAGS'
16507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16509ac_compiler_gnu=$ac_cv_c_compiler_gnu
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525 ac_config_commands="$ac_config_commands libtool"
16526
16527
16528
16529
16530# Only expand once:
16531
16532
16533
16534ac_ext=cpp
16535ac_cpp='$CXXCPP $CPPFLAGS'
16536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16539
16540
1771224f
JF
16541 ax_cxx_compile_cxx11_required=true
16542 ac_ext=cpp
16543ac_cpp='$CXXCPP $CPPFLAGS'
16544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16547 ac_success=no
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16549$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16550if ${ax_cv_cxx_compile_cxx11+:} false; then :
16551 $as_echo_n "(cached) " >&6
16552else
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554/* end confdefs.h. */
16555
16556 template <typename T>
16557 struct check
16558 {
16559 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16560 };
16561
16562 struct Base {
16563 virtual void f() {}
16564 };
16565 struct Child : public Base {
16566 virtual void f() override {}
16567 };
16568
16569 typedef check<check<bool>> right_angle_brackets;
16570
16571 int a;
16572 decltype(a) b;
16573
16574 typedef check<int> check_type;
16575 check_type c;
16576 check_type&& cr = static_cast<check_type&&>(c);
16577
16578 auto d = a;
16579 auto l = [](){};
16580
16581_ACEOF
16582if ac_fn_cxx_try_compile "$LINENO"; then :
16583 ax_cv_cxx_compile_cxx11=yes
16584else
16585 ax_cv_cxx_compile_cxx11=no
16586fi
16587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588fi
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16590$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16591 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16592 ac_success=yes
16593 fi
16594
16595 if test x$ac_success = xno; then
16596 for switch in -std=gnu++11 -std=gnu++0x; do
16597 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16599$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16600if eval \${$cachevar+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602else
16603 ac_save_CXXFLAGS="$CXXFLAGS"
16604 CXXFLAGS="$CXXFLAGS $switch"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606/* end confdefs.h. */
16607
16608 template <typename T>
16609 struct check
16610 {
16611 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16612 };
16613
16614 struct Base {
16615 virtual void f() {}
16616 };
16617 struct Child : public Base {
16618 virtual void f() override {}
16619 };
16620
16621 typedef check<check<bool>> right_angle_brackets;
16622
16623 int a;
16624 decltype(a) b;
16625
16626 typedef check<int> check_type;
16627 check_type c;
16628 check_type&& cr = static_cast<check_type&&>(c);
16629
16630 auto d = a;
16631 auto l = [](){};
16632
16633_ACEOF
16634if ac_fn_cxx_try_compile "$LINENO"; then :
16635 eval $cachevar=yes
16636else
16637 eval $cachevar=no
16638fi
16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 CXXFLAGS="$ac_save_CXXFLAGS"
16641fi
16642eval ac_res=\$$cachevar
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16644$as_echo "$ac_res" >&6; }
16645 if eval test x\$$cachevar = xyes; then
16646 CXXFLAGS="$CXXFLAGS $switch"
16647 ac_success=yes
16648 break
16649 fi
16650 done
16651 fi
16652
16653
16654 ac_ext=cpp
16655ac_cpp='$CXXCPP $CPPFLAGS'
16656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16659
16660 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16661 if test x$ac_success = xno; then
16662 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16663 fi
16664 else
16665 if test x$ac_success = xno; then
16666 HAVE_CXX11=0
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16668$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16669 else
16670 HAVE_CXX11=1
16671
16672$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16673
16674 fi
16675
16676
16677 fi
16678
16679OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16680
a243b558
JF
16681
16682
16683
16684
16685
16686
83c6fec8 16687
a243b558
JF
16688if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16689 if test -n "$ac_tool_prefix"; then
16690 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16691set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693$as_echo_n "checking for $ac_word... " >&6; }
16694if ${ac_cv_path_PKG_CONFIG+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696else
16697 case $PKG_CONFIG in
16698 [\\/]* | ?:[\\/]*)
16699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16700 ;;
16701 *)
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703for as_dir in $PATH
16704do
16705 IFS=$as_save_IFS
16706 test -z "$as_dir" && as_dir=.
16707 for ac_exec_ext in '' $ac_executable_extensions; do
16708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711 break 2
16712 fi
16713done
16714 done
16715IFS=$as_save_IFS
16716
16717 ;;
16718esac
16719fi
16720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16721if test -n "$PKG_CONFIG"; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16723$as_echo "$PKG_CONFIG" >&6; }
16724else
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726$as_echo "no" >&6; }
16727fi
16728
16729
16730fi
16731if test -z "$ac_cv_path_PKG_CONFIG"; then
16732 ac_pt_PKG_CONFIG=$PKG_CONFIG
16733 # Extract the first word of "pkg-config", so it can be a program name with args.
16734set dummy pkg-config; ac_word=$2
16735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16736$as_echo_n "checking for $ac_word... " >&6; }
16737if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16738 $as_echo_n "(cached) " >&6
16739else
16740 case $ac_pt_PKG_CONFIG in
16741 [\\/]* | ?:[\\/]*)
16742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16743 ;;
16744 *)
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746for as_dir in $PATH
16747do
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
16750 for ac_exec_ext in '' $ac_executable_extensions; do
16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754 break 2
16755 fi
16756done
16757 done
16758IFS=$as_save_IFS
16759
16760 ;;
16761esac
16762fi
16763ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16764if test -n "$ac_pt_PKG_CONFIG"; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16766$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16767else
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769$as_echo "no" >&6; }
16770fi
16771
16772 if test "x$ac_pt_PKG_CONFIG" = x; then
16773 PKG_CONFIG=""
16774 else
16775 case $cross_compiling:$ac_tool_warned in
16776yes:)
16777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16779ac_tool_warned=yes ;;
16780esac
16781 PKG_CONFIG=$ac_pt_PKG_CONFIG
16782 fi
16783else
16784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16785fi
16786
16787fi
16788if test -n "$PKG_CONFIG"; then
16789 _pkg_min_version=0.22
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16791$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794$as_echo "yes" >&6; }
16795 else
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16797$as_echo "no" >&6; }
16798 PKG_CONFIG=""
16799 fi
16800fi
16801
a243b558
JF
16802# Extract the first word of "git", so it can be a program name with args.
16803set dummy git; ac_word=$2
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805$as_echo_n "checking for $ac_word... " >&6; }
16806if ${ac_cv_path_GIT+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808else
16809 case $GIT in
16810 [\\/]* | ?:[\\/]*)
16811 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16812 ;;
16813 *)
16814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16815for as_dir in $PATH
16816do
16817 IFS=$as_save_IFS
16818 test -z "$as_dir" && as_dir=.
16819 for ac_exec_ext in '' $ac_executable_extensions; do
16820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16821 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 break 2
16824 fi
16825done
16826 done
16827IFS=$as_save_IFS
e9c9a47c 16828
a243b558
JF
16829 ;;
16830esac
16831fi
16832GIT=$ac_cv_path_GIT
16833if test -n "$GIT"; then
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16835$as_echo "$GIT" >&6; }
16836else
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838$as_echo "no" >&6; }
16839fi
e9c9a47c
DWT
16840
16841
a243b558
JF
16842# Extract the first word of "time", so it can be a program name with args.
16843set dummy time; ac_word=$2
632b71ea
DWT
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16845$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16846if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16847 $as_echo_n "(cached) " >&6
16848else
a243b558
JF
16849 case $TIME in
16850 [\\/]* | ?:[\\/]*)
16851 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16852 ;;
16853 *)
16854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16855for as_dir in $PATH
16856do
16857 IFS=$as_save_IFS
16858 test -z "$as_dir" && as_dir=.
16859 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16861 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16863 break 2
16864 fi
16865done
16866 done
16867IFS=$as_save_IFS
16868
a243b558
JF
16869 ;;
16870esac
632b71ea 16871fi
a243b558
JF
16872TIME=$ac_cv_path_TIME
16873if test -n "$TIME"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16875$as_echo "$TIME" >&6; }
632b71ea
DWT
16876else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878$as_echo "no" >&6; }
16879fi
16880
16881
a243b558
JF
16882
16883
16884
16885
16886
6ce9ac92
JF
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16888$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
16889 if test -z "$BISON"; then
16890 ac_path_BISON_found=false
16891 # Loop through the user's path and test for each of PROGNAME-LIST
16892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16893for as_dir in $PATH
16894do
16895 IFS=$as_save_IFS
16896 test -z "$as_dir" && as_dir=.
16897 for ac_prog in bison; do
16898 for ac_exec_ext in '' $ac_executable_extensions; do
16899 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16900 as_fn_executable_p "$ac_path_BISON" || continue
16901version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16902 if ${version:+false} :; then :
16903
16904else
16905 as_awk_strverscmp='
16906 # Use only awk features that work with 7th edition Unix awk (1978).
16907 # My, what an old awk you have, Mr. Solaris!
16908 END {
16909 while (length(v1) && length(v2)) {
16910 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16911 # Normally this is a single character, but if v1 and v2 contain digits,
16912 # compare them as integers and fractions as strverscmp does.
16913 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16914 # Split v1 and v2 into their leading digit string components d1 and d2,
16915 # and advance v1 and v2 past the leading digit strings.
16916 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16917 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16918 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16919 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16920 if (d1 ~ /^0/) {
16921 if (d2 ~ /^0/) {
16922 # Compare two fractions.
16923 while (d1 ~ /^0/ && d2 ~ /^0/) {
16924 d1 = substr(d1, 2); len1--
16925 d2 = substr(d2, 2); len2--
16926 }
16927 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16928 # The two components differ in length, and the common prefix
16929 # contains only leading zeros. Consider the longer to be less.
16930 d1 = -len1
16931 d2 = -len2
16932 } else {
16933 # Otherwise, compare as strings.
16934 d1 = "x" d1
16935 d2 = "x" d2
16936 }
16937 } else {
16938 # A fraction is less than an integer.
16939 exit 1
16940 }
16941 } else {
16942 if (d2 ~ /^0/) {
16943 # An integer is greater than a fraction.
16944 exit 2
16945 } else {
16946 # Compare two integers.
16947 d1 += 0
16948 d2 += 0
16949 }
16950 }
16951 } else {
16952 # The normal case, without worrying about digits.
16953 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16954 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16955 }
16956 if (d1 < d2) exit 1
16957 if (d1 > d2) exit 2
16958 }
16959 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16960 # which mishandles some comparisons of empty strings to integers.
16961 if (length(v2)) exit 1
16962 if (length(v1)) exit 2
16963 }
16964'
16965as_arg_v1=$version
6ce9ac92 16966as_arg_v2=3.0
a243b558
JF
16967awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16968case $? in #(
16969 1) :
16970 ;; #(
16971 0) :
16972 ac_cv_path_BISON=$ac_path_BISON ;; #(
16973 2) :
16974 ac_cv_path_BISON=$ac_path_BISON ;; #(
16975 *) :
16976 ;;
16977esac
16978fi
16979
16980 $ac_path_BISON_found && break 3
16981 done
16982 done
e9c9a47c 16983 done
a243b558
JF
16984IFS=$as_save_IFS
16985 if test -z "$ac_cv_path_BISON"; then
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987$as_echo "no" >&6; }
16988 fi
16989else
16990 ac_cv_path_BISON=$BISON
632b71ea 16991fi
a243b558
JF
16992
16993
16994 if true; then :
16995
16996 BISON=$ac_cv_path_BISON
16997
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16999$as_echo "$BISON" >&6; }
17000
47aaa820 17001else
a243b558
JF
17002 if true; then :
17003
6ce9ac92 17004 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 17005
47aaa820 17006else
a243b558
JF
17007
17008 BISON=:
17009
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17011$as_echo "no" >&6; }
17012
17013fi
17014fi
17015
17016
17017
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17020$as_echo_n "checking for flex >= 2.5.33... " >&6; }
17021 if test -z "$FLEX"; then
17022 ac_path_FLEX_found=false
17023 # Loop through the user's path and test for each of PROGNAME-LIST
17024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
17025for as_dir in $PATH
17026do
17027 IFS=$as_save_IFS
17028 test -z "$as_dir" && as_dir=.
a243b558 17029 for ac_prog in flex; do
47aaa820 17030 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
17031 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17032 as_fn_executable_p "$ac_path_FLEX" || continue
17033version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17034 if ${version:+false} :; then :
9c60689e 17035
47aaa820 17036else
a243b558
JF
17037 as_arg_v1=$version
17038as_arg_v2=2.5.33
17039awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17040case $? in #(
17041 1) :
17042 ;; #(
17043 0) :
17044 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17045 2) :
17046 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17047 *) :
17048 ;;
17049esac
17050fi
17051
17052 $ac_path_FLEX_found && break 3
17053 done
17054 done
17055 done
17056IFS=$as_save_IFS
17057 if test -z "$ac_cv_path_FLEX"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 17059$as_echo "no" >&6; }
a243b558
JF
17060 fi
17061else
17062 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
17063fi
17064
17065
a243b558 17066 if true; then :
e9c9a47c 17067
a243b558 17068 FLEX=$ac_cv_path_FLEX
e9c9a47c 17069
a243b558
JF
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17071$as_echo "$FLEX" >&6; }
9c60689e 17072
632b71ea 17073else
a243b558 17074 if true; then :
e9c9a47c 17075
a243b558 17076 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 17077
e9c9a47c 17078else
a243b558
JF
17079
17080 FLEX=:
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083$as_echo "no" >&6; }
9c60689e 17084
632b71ea 17085fi
a243b558
JF
17086fi
17087
17088
17089
17090
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17092$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17093 if test -z "$GPERF"; then
17094 ac_path_GPERF_found=false
17095 # Loop through the user's path and test for each of PROGNAME-LIST
17096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17097for as_dir in $PATH
17098do
17099 IFS=$as_save_IFS
17100 test -z "$as_dir" && as_dir=.
17101 for ac_prog in gperf; do
17102 for ac_exec_ext in '' $ac_executable_extensions; do
17103 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17104 as_fn_executable_p "$ac_path_GPERF" || continue
17105version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17106 if ${version:+false} :; then :
17107
e9c9a47c 17108else
a243b558
JF
17109 as_arg_v1=$version
17110as_arg_v2=3.0.3
17111awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17112case $? in #(
17113 1) :
17114 ;; #(
17115 0) :
17116 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17117 2) :
17118 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17119 *) :
17120 ;;
17121esac
632b71ea 17122fi
a243b558
JF
17123
17124 $ac_path_GPERF_found && break 3
17125 done
17126 done
17127 done
17128IFS=$as_save_IFS
17129 if test -z "$ac_cv_path_GPERF"; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131$as_echo "no" >&6; }
17132 fi
47aaa820 17133else
a243b558
JF
17134 ac_cv_path_GPERF=$GPERF
17135fi
9c60689e
DWT
17136
17137
a243b558 17138 if true; then :
9c60689e 17139
a243b558 17140 GPERF=$ac_cv_path_GPERF
9c60689e 17141
a243b558
JF
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17143$as_echo "$GPERF" >&6; }
9c60689e 17144
47aaa820 17145else
a243b558 17146 if true; then :
9c60689e 17147
a243b558
JF
17148 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17149
17150else
17151
17152 GPERF=:
17153
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155$as_echo "no" >&6; }
9c60689e 17156
47aaa820 17157fi
47aaa820 17158fi
a243b558
JF
17159
17160
17161
17162
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17164$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17165 if test -z "$GNUTAR"; then
17166 ac_path_GNUTAR_found=false
17167 # Loop through the user's path and test for each of PROGNAME-LIST
17168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17169for as_dir in $PATH
17170do
17171 IFS=$as_save_IFS
17172 test -z "$as_dir" && as_dir=.
17173 for ac_prog in tar gtar gnutar; do
17174 for ac_exec_ext in '' $ac_executable_extensions; do
17175 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17176 as_fn_executable_p "$ac_path_GNUTAR" || continue
17177version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17178 if ${version:+false} :; then :
17179
17180else
17181 as_arg_v1=$version
17182as_arg_v2=1.19
17183awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17184case $? in #(
17185 1) :
17186 ;; #(
17187 0) :
17188 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17189 2) :
17190 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17191 *) :
17192 ;;
17193esac
790e5246 17194fi
a243b558
JF
17195
17196 $ac_path_GNUTAR_found && break 3
17197 done
17198 done
17199 done
17200IFS=$as_save_IFS
17201 if test -z "$ac_cv_path_GNUTAR"; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203$as_echo "no" >&6; }
632b71ea 17204 fi
632b71ea 17205else
a243b558 17206 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 17207fi
66170b30 17208
66170b30 17209
a243b558 17210 if true; then :
66170b30 17211
a243b558 17212 GNUTAR=$ac_cv_path_GNUTAR
66170b30 17213
a243b558
JF
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17215$as_echo "$GNUTAR" >&6; }
66170b30 17216
a243b558
JF
17217else
17218 if true; then :
66170b30 17219
a243b558 17220 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 17221
66170b30 17222else
66170b30 17223
a243b558 17224 GNUTAR=:
66170b30 17225
a243b558
JF
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
66170b30 17228
a243b558
JF
17229fi
17230fi
66170b30
JF
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
e9c9a47c
DWT
17241ac_ext=c
17242ac_cpp='$CPP $CPPFLAGS'
17243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 17246
66170b30
JF
17247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17248$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17249if ${ac_cv_cflags_warn_all+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251else
17252 ac_cv_cflags_warn_all="no, unknown"
17253ac_save_CFLAGS="$CFLAGS"
17254for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
17255do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257/* end confdefs.h. */
17258
17259int
17260main ()
17261{
17262
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267if ac_fn_c_try_compile "$LINENO"; then :
17268 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17269fi
17270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271done
17272CFLAGS="$ac_save_CFLAGS"
17273
17274fi
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17276$as_echo "$ac_cv_cflags_warn_all" >&6; }
17277
83c6fec8 17278
66170b30
JF
17279case ".$ac_cv_cflags_warn_all" in
17280 .ok|.ok,*) ;;
17281 .|.no|.no,*) ;;
17282 *) if ${CFLAGS+:} false; then :
17283 case " $CFLAGS " in
17284 *" $ac_cv_cflags_warn_all "*)
17285 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17286 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; }
17290 ;;
17291 *)
17292 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17293 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17294 ac_status=$?
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; }
17297 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17298 ;;
17299 esac
17300else
17301 CFLAGS="$ac_cv_cflags_warn_all"
17302fi
17303 ;;
17304esac
17305
b816329d
JF
17306ac_ext=cpp
17307ac_cpp='$CXXCPP $CPPFLAGS'
17308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17311
9c60689e 17312
66170b30
JF
17313ac_ext=cpp
17314ac_cpp='$CXXCPP $CPPFLAGS'
17315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 17318
66170b30
JF
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17320$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17321if ${ac_cv_cxxflags_warn_all+:} false; then :
17322 $as_echo_n "(cached) " >&6
17323else
17324 ac_cv_cxxflags_warn_all="no, unknown"
17325ac_save_CXXFLAGS="$CXXFLAGS"
17326for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
17327do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329/* end confdefs.h. */
1504c9b8 17330
66170b30
JF
17331int
17332main ()
17333{
1504c9b8 17334
66170b30
JF
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339if ac_fn_cxx_try_compile "$LINENO"; then :
17340 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17341fi
17342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343done
17344CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 17345
66170b30
JF
17346fi
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17348$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17349
83c6fec8 17350
66170b30
JF
17351case ".$ac_cv_cxxflags_warn_all" in
17352 .ok|.ok,*) ;;
17353 .|.no|.no,*) ;;
17354 *) if ${CXXFLAGS+:} false; then :
17355 case " $CXXFLAGS " in
17356 *" $ac_cv_cxxflags_warn_all "*)
17357 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17358 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17359 ac_status=$?
17360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361 test $ac_status = 0; }
17362 ;;
17363 *)
17364 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17365 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17366 ac_status=$?
17367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17368 test $ac_status = 0; }
17369 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17370 ;;
17371 esac
17372else
17373 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17374fi
17375 ;;
17376esac
17377
17378ac_ext=cpp
17379ac_cpp='$CXXCPP $CPPFLAGS'
17380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17383
17384
babf7fe8
JF
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17386$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17387if ${ac_cv_cxxflags_warn_all+:} false; then :
17388 $as_echo_n "(cached) " >&6
17389else
17390 ac_cv_cxxflags_warn_all="no, unknown"
17391ac_save_CXXFLAGS="$CXXFLAGS"
17392for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
17393do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395/* end confdefs.h. */
17396
17397int
17398main ()
17399{
17400
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405if ac_fn_cxx_try_compile "$LINENO"; then :
17406 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17407fi
17408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409done
17410CXXFLAGS="$ac_save_CXXFLAGS"
17411
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17414$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17415
83c6fec8 17416
babf7fe8
JF
17417case ".$ac_cv_cxxflags_warn_all" in
17418 .ok|.ok,*) ;;
17419 .|.no|.no,*) ;;
17420 *) if ${CXXFLAGS+:} false; then :
17421 case " $CXXFLAGS " in
17422 *" $ac_cv_cxxflags_warn_all "*)
17423 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17424 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17425 ac_status=$?
17426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427 test $ac_status = 0; }
17428 ;;
17429 *)
17430 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17431 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17432 ac_status=$?
17433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17434 test $ac_status = 0; }
17435 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17436 ;;
17437 esac
17438else
17439 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17440fi
17441 ;;
17442esac
17443
66170b30
JF
17444
17445
66170b30 17446
66170b30 17447
c10a2228
JF
17448 ac_ext=c
17449ac_cpp='$CPP $CPPFLAGS'
17450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452ac_compiler_gnu=$ac_cv_c_compiler_gnu
17453
babf7fe8
JF
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17455$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
17456
17457 cy_save=$CFLAGS
17458
babf7fe8 17459 for element in -Werror; do
c10a2228
JF
17460 haveit=
17461 for x in $CFLAGS; do
17462
17463 acl_save_prefix="$prefix"
17464 prefix="$acl_final_prefix"
17465 acl_save_exec_prefix="$exec_prefix"
17466 exec_prefix="$acl_final_exec_prefix"
17467 eval x=\"$x\"
17468 exec_prefix="$acl_save_exec_prefix"
17469 prefix="$acl_save_prefix"
17470
17471 if test "X$x" = "X$element"; then
17472 haveit=yes
17473 break
17474 fi
17475 done
17476 if test -z "$haveit"; then
17477 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17478 fi
17479 done
17480
17481
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483/* end confdefs.h. */
17484
17485_ACEOF
17486if ac_fn_c_try_compile "$LINENO"; then :
17487 cy_good=1
17488else
17489 cy_good=0
17490fi
17491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492
17493 CFLAGS=$cy_save
17494 if test "x$cy_good" = x1; then :
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496$as_echo "yes" >&6; }
17497
babf7fe8 17498 for element in -Werror; do
c10a2228
JF
17499 haveit=
17500 for x in $CFLAGS; do
17501
17502 acl_save_prefix="$prefix"
17503 prefix="$acl_final_prefix"
17504 acl_save_exec_prefix="$exec_prefix"
17505 exec_prefix="$acl_final_exec_prefix"
17506 eval x=\"$x\"
17507 exec_prefix="$acl_save_exec_prefix"
17508 prefix="$acl_save_prefix"
17509
17510 if test "X$x" = "X$element"; then
17511 haveit=yes
17512 break
17513 fi
17514 done
17515 if test -z "$haveit"; then
17516 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17517 fi
17518 done
17519
17520
17521else
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17523$as_echo "no" >&6; }
17524fi
17525
17526 ac_ext=cpp
17527ac_cpp='$CXXCPP $CPPFLAGS'
17528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17531
17532
17533
17534 ac_ext=cpp
17535ac_cpp='$CXXCPP $CPPFLAGS'
17536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17539
babf7fe8
JF
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17541$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
17542
17543 cy_save=$CXXFLAGS
17544
babf7fe8 17545 for element in -Werror; do
c10a2228
JF
17546 haveit=
17547 for x in $CXXFLAGS; do
17548
17549 acl_save_prefix="$prefix"
17550 prefix="$acl_final_prefix"
17551 acl_save_exec_prefix="$exec_prefix"
17552 exec_prefix="$acl_final_exec_prefix"
17553 eval x=\"$x\"
17554 exec_prefix="$acl_save_exec_prefix"
17555 prefix="$acl_save_prefix"
17556
17557 if test "X$x" = "X$element"; then
17558 haveit=yes
17559 break
17560 fi
17561 done
17562 if test -z "$haveit"; then
17563 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17564 fi
17565 done
17566
17567
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h. */
17570
17571_ACEOF
17572if ac_fn_cxx_try_compile "$LINENO"; then :
17573 cy_good=1
17574else
17575 cy_good=0
17576fi
17577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578
17579 CXXFLAGS=$cy_save
17580 if test "x$cy_good" = x1; then :
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582$as_echo "yes" >&6; }
17583
babf7fe8 17584 for element in -Werror; do
c10a2228
JF
17585 haveit=
17586 for x in $CXXFLAGS; do
17587
17588 acl_save_prefix="$prefix"
17589 prefix="$acl_final_prefix"
17590 acl_save_exec_prefix="$exec_prefix"
17591 exec_prefix="$acl_final_exec_prefix"
17592 eval x=\"$x\"
17593 exec_prefix="$acl_save_exec_prefix"
17594 prefix="$acl_save_prefix"
17595
17596 if test "X$x" = "X$element"; then
17597 haveit=yes
17598 break
17599 fi
17600 done
17601 if test -z "$haveit"; then
17602 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17603 fi
17604 done
17605
17606
17607else
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609$as_echo "no" >&6; }
17610fi
17611
17612 ac_ext=cpp
17613ac_cpp='$CXXCPP $CPPFLAGS'
17614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17617
17618
17619
17620 ac_ext=mm
17621ac_cpp='$OBJCXXCPP $CPPFLAGS'
17622ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17625
babf7fe8
JF
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17627$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
17628
17629 cy_save=$OBJCXXFLAGS
17630
babf7fe8 17631 for element in -Werror; do
c10a2228
JF
17632 haveit=
17633 for x in $OBJCXXFLAGS; do
17634
17635 acl_save_prefix="$prefix"
17636 prefix="$acl_final_prefix"
17637 acl_save_exec_prefix="$exec_prefix"
17638 exec_prefix="$acl_final_exec_prefix"
17639 eval x=\"$x\"
17640 exec_prefix="$acl_save_exec_prefix"
17641 prefix="$acl_save_prefix"
17642
17643 if test "X$x" = "X$element"; then
17644 haveit=yes
17645 break
17646 fi
17647 done
17648 if test -z "$haveit"; then
17649 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17650 fi
17651 done
17652
17653
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655/* end confdefs.h. */
17656
17657_ACEOF
17658if ac_fn_objcxx_try_compile "$LINENO"; then :
17659 cy_good=1
17660else
17661 cy_good=0
17662fi
17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664
17665 OBJCXXFLAGS=$cy_save
17666 if test "x$cy_good" = x1; then :
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17668$as_echo "yes" >&6; }
17669
babf7fe8 17670 for element in -Werror; do
c10a2228
JF
17671 haveit=
17672 for x in $OBJCXXFLAGS; do
17673
17674 acl_save_prefix="$prefix"
17675 prefix="$acl_final_prefix"
17676 acl_save_exec_prefix="$exec_prefix"
17677 exec_prefix="$acl_final_exec_prefix"
17678 eval x=\"$x\"
17679 exec_prefix="$acl_save_exec_prefix"
17680 prefix="$acl_save_prefix"
17681
17682 if test "X$x" = "X$element"; then
17683 haveit=yes
17684 break
17685 fi
17686 done
17687 if test -z "$haveit"; then
17688 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17689 fi
17690 done
17691
17692
17693else
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695$as_echo "no" >&6; }
17696fi
17697
17698 ac_ext=cpp
17699ac_cpp='$CXXCPP $CPPFLAGS'
17700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
17704
17705
17706
17707
17708
17709 ac_ext=c
17710ac_cpp='$CPP $CPPFLAGS'
17711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
babf7fe8
JF
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17716$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17717
17718 cy_save=$CFLAGS
17719
babf7fe8 17720 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17721 haveit=
17722 for x in $CFLAGS; do
17723
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17728 eval x=\"$x\"
17729 exec_prefix="$acl_save_exec_prefix"
17730 prefix="$acl_save_prefix"
17731
17732 if test "X$x" = "X$element"; then
17733 haveit=yes
17734 break
17735 fi
17736 done
17737 if test -z "$haveit"; then
17738 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17739 fi
17740 done
17741
17742
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744/* end confdefs.h. */
17745
17746_ACEOF
17747if ac_fn_c_try_compile "$LINENO"; then :
17748 cy_good=1
17749else
17750 cy_good=0
17751fi
17752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753
17754 CFLAGS=$cy_save
17755 if test "x$cy_good" = x1; then :
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17757$as_echo "yes" >&6; }
17758
babf7fe8 17759 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17760 haveit=
17761 for x in $CFLAGS; do
17762
17763 acl_save_prefix="$prefix"
17764 prefix="$acl_final_prefix"
17765 acl_save_exec_prefix="$exec_prefix"
17766 exec_prefix="$acl_final_exec_prefix"
17767 eval x=\"$x\"
17768 exec_prefix="$acl_save_exec_prefix"
17769 prefix="$acl_save_prefix"
17770
17771 if test "X$x" = "X$element"; then
17772 haveit=yes
17773 break
17774 fi
17775 done
17776 if test -z "$haveit"; then
17777 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17778 fi
17779 done
17780
17781
17782else
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784$as_echo "no" >&6; }
17785fi
17786
17787 ac_ext=cpp
17788ac_cpp='$CXXCPP $CPPFLAGS'
17789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17792
17793
17794
17795 ac_ext=cpp
17796ac_cpp='$CXXCPP $CPPFLAGS'
17797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17800
babf7fe8
JF
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17802$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17803
17804 cy_save=$CXXFLAGS
17805
babf7fe8 17806 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17807 haveit=
17808 for x in $CXXFLAGS; do
17809
17810 acl_save_prefix="$prefix"
17811 prefix="$acl_final_prefix"
17812 acl_save_exec_prefix="$exec_prefix"
17813 exec_prefix="$acl_final_exec_prefix"
17814 eval x=\"$x\"
17815 exec_prefix="$acl_save_exec_prefix"
17816 prefix="$acl_save_prefix"
17817
17818 if test "X$x" = "X$element"; then
17819 haveit=yes
17820 break
17821 fi
17822 done
17823 if test -z "$haveit"; then
17824 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17825 fi
17826 done
17827
17828
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830/* end confdefs.h. */
17831
17832_ACEOF
17833if ac_fn_cxx_try_compile "$LINENO"; then :
17834 cy_good=1
17835else
17836 cy_good=0
17837fi
17838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839
17840 CXXFLAGS=$cy_save
17841 if test "x$cy_good" = x1; then :
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17843$as_echo "yes" >&6; }
17844
babf7fe8 17845 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17846 haveit=
17847 for x in $CXXFLAGS; do
17848
17849 acl_save_prefix="$prefix"
17850 prefix="$acl_final_prefix"
17851 acl_save_exec_prefix="$exec_prefix"
17852 exec_prefix="$acl_final_exec_prefix"
17853 eval x=\"$x\"
17854 exec_prefix="$acl_save_exec_prefix"
17855 prefix="$acl_save_prefix"
17856
17857 if test "X$x" = "X$element"; then
17858 haveit=yes
17859 break
17860 fi
17861 done
17862 if test -z "$haveit"; then
17863 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17864 fi
17865 done
17866
17867
17868else
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17870$as_echo "no" >&6; }
17871fi
17872
17873 ac_ext=cpp
17874ac_cpp='$CXXCPP $CPPFLAGS'
17875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17878
17879
17880
17881 ac_ext=mm
17882ac_cpp='$OBJCXXCPP $CPPFLAGS'
17883ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17886
babf7fe8
JF
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17888$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17889
17890 cy_save=$OBJCXXFLAGS
17891
babf7fe8 17892 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17893 haveit=
17894 for x in $OBJCXXFLAGS; do
17895
17896 acl_save_prefix="$prefix"
17897 prefix="$acl_final_prefix"
17898 acl_save_exec_prefix="$exec_prefix"
17899 exec_prefix="$acl_final_exec_prefix"
17900 eval x=\"$x\"
17901 exec_prefix="$acl_save_exec_prefix"
17902 prefix="$acl_save_prefix"
17903
17904 if test "X$x" = "X$element"; then
17905 haveit=yes
17906 break
17907 fi
17908 done
17909 if test -z "$haveit"; then
17910 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17911 fi
17912 done
17913
17914
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916/* end confdefs.h. */
17917
17918_ACEOF
17919if ac_fn_objcxx_try_compile "$LINENO"; then :
17920 cy_good=1
17921else
17922 cy_good=0
17923fi
17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925
17926 OBJCXXFLAGS=$cy_save
17927 if test "x$cy_good" = x1; then :
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17929$as_echo "yes" >&6; }
17930
babf7fe8 17931 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17932 haveit=
17933 for x in $OBJCXXFLAGS; do
17934
17935 acl_save_prefix="$prefix"
17936 prefix="$acl_final_prefix"
17937 acl_save_exec_prefix="$exec_prefix"
17938 exec_prefix="$acl_final_exec_prefix"
17939 eval x=\"$x\"
17940 exec_prefix="$acl_save_exec_prefix"
17941 prefix="$acl_save_prefix"
17942
17943 if test "X$x" = "X$element"; then
17944 haveit=yes
17945 break
17946 fi
17947 done
17948 if test -z "$haveit"; then
17949 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17950 fi
17951 done
17952
17953
17954else
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956$as_echo "no" >&6; }
17957fi
17958
17959 ac_ext=cpp
17960ac_cpp='$CXXCPP $CPPFLAGS'
17961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17964
17965
17966
17967
17968
babf7fe8 17969
c10a2228
JF
17970 ac_ext=c
17971ac_cpp='$CPP $CPPFLAGS'
17972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
babf7fe8
JF
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17977$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17978
17979 cy_save=$CFLAGS
17980
babf7fe8 17981 for element in -Wno-dangling-else; do
c10a2228
JF
17982 haveit=
17983 for x in $CFLAGS; do
17984
17985 acl_save_prefix="$prefix"
17986 prefix="$acl_final_prefix"
17987 acl_save_exec_prefix="$exec_prefix"
17988 exec_prefix="$acl_final_exec_prefix"
17989 eval x=\"$x\"
17990 exec_prefix="$acl_save_exec_prefix"
17991 prefix="$acl_save_prefix"
17992
17993 if test "X$x" = "X$element"; then
17994 haveit=yes
17995 break
17996 fi
17997 done
17998 if test -z "$haveit"; then
17999 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18000 fi
18001 done
18002
18003
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005/* end confdefs.h. */
18006
18007_ACEOF
18008if ac_fn_c_try_compile "$LINENO"; then :
18009 cy_good=1
18010else
18011 cy_good=0
18012fi
18013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014
18015 CFLAGS=$cy_save
18016 if test "x$cy_good" = x1; then :
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18018$as_echo "yes" >&6; }
18019
babf7fe8 18020 for element in -Wno-dangling-else; do
c10a2228
JF
18021 haveit=
18022 for x in $CFLAGS; do
18023
18024 acl_save_prefix="$prefix"
18025 prefix="$acl_final_prefix"
18026 acl_save_exec_prefix="$exec_prefix"
18027 exec_prefix="$acl_final_exec_prefix"
18028 eval x=\"$x\"
18029 exec_prefix="$acl_save_exec_prefix"
18030 prefix="$acl_save_prefix"
18031
18032 if test "X$x" = "X$element"; then
18033 haveit=yes
18034 break
18035 fi
18036 done
18037 if test -z "$haveit"; then
18038 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18039 fi
18040 done
18041
18042
18043else
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18045$as_echo "no" >&6; }
18046fi
18047
18048 ac_ext=cpp
18049ac_cpp='$CXXCPP $CPPFLAGS'
18050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18053
18054
18055
18056 ac_ext=cpp
18057ac_cpp='$CXXCPP $CPPFLAGS'
18058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18061
babf7fe8
JF
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18063$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
18064
18065 cy_save=$CXXFLAGS
18066
babf7fe8 18067 for element in -Wno-dangling-else; do
c10a2228
JF
18068 haveit=
18069 for x in $CXXFLAGS; do
18070
18071 acl_save_prefix="$prefix"
18072 prefix="$acl_final_prefix"
18073 acl_save_exec_prefix="$exec_prefix"
18074 exec_prefix="$acl_final_exec_prefix"
18075 eval x=\"$x\"
18076 exec_prefix="$acl_save_exec_prefix"
18077 prefix="$acl_save_prefix"
18078
18079 if test "X$x" = "X$element"; then
18080 haveit=yes
18081 break
18082 fi
18083 done
18084 if test -z "$haveit"; then
18085 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18086 fi
18087 done
18088
18089
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091/* end confdefs.h. */
18092
18093_ACEOF
18094if ac_fn_cxx_try_compile "$LINENO"; then :
18095 cy_good=1
18096else
18097 cy_good=0
18098fi
18099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100
18101 CXXFLAGS=$cy_save
18102 if test "x$cy_good" = x1; then :
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18104$as_echo "yes" >&6; }
18105
babf7fe8 18106 for element in -Wno-dangling-else; do
c10a2228
JF
18107 haveit=
18108 for x in $CXXFLAGS; do
18109
18110 acl_save_prefix="$prefix"
18111 prefix="$acl_final_prefix"
18112 acl_save_exec_prefix="$exec_prefix"
18113 exec_prefix="$acl_final_exec_prefix"
18114 eval x=\"$x\"
18115 exec_prefix="$acl_save_exec_prefix"
18116 prefix="$acl_save_prefix"
18117
18118 if test "X$x" = "X$element"; then
18119 haveit=yes
18120 break
18121 fi
18122 done
18123 if test -z "$haveit"; then
18124 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18125 fi
18126 done
18127
18128
18129else
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18131$as_echo "no" >&6; }
18132fi
18133
18134 ac_ext=cpp
18135ac_cpp='$CXXCPP $CPPFLAGS'
18136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18139
18140
18141
18142 ac_ext=mm
18143ac_cpp='$OBJCXXCPP $CPPFLAGS'
18144ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18147
babf7fe8
JF
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18149$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
18150
18151 cy_save=$OBJCXXFLAGS
18152
babf7fe8 18153 for element in -Wno-dangling-else; do
c10a2228
JF
18154 haveit=
18155 for x in $OBJCXXFLAGS; do
18156
18157 acl_save_prefix="$prefix"
18158 prefix="$acl_final_prefix"
18159 acl_save_exec_prefix="$exec_prefix"
18160 exec_prefix="$acl_final_exec_prefix"
18161 eval x=\"$x\"
18162 exec_prefix="$acl_save_exec_prefix"
18163 prefix="$acl_save_prefix"
18164
18165 if test "X$x" = "X$element"; then
18166 haveit=yes
18167 break
18168 fi
18169 done
18170 if test -z "$haveit"; then
18171 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18172 fi
18173 done
18174
18175
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177/* end confdefs.h. */
18178
18179_ACEOF
18180if ac_fn_objcxx_try_compile "$LINENO"; then :
18181 cy_good=1
18182else
18183 cy_good=0
18184fi
18185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18186
18187 OBJCXXFLAGS=$cy_save
18188 if test "x$cy_good" = x1; then :
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18190$as_echo "yes" >&6; }
18191
babf7fe8 18192 for element in -Wno-dangling-else; do
c10a2228
JF
18193 haveit=
18194 for x in $OBJCXXFLAGS; do
18195
18196 acl_save_prefix="$prefix"
18197 prefix="$acl_final_prefix"
18198 acl_save_exec_prefix="$exec_prefix"
18199 exec_prefix="$acl_final_exec_prefix"
18200 eval x=\"$x\"
18201 exec_prefix="$acl_save_exec_prefix"
18202 prefix="$acl_save_prefix"
18203
18204 if test "X$x" = "X$element"; then
18205 haveit=yes
18206 break
18207 fi
18208 done
18209 if test -z "$haveit"; then
18210 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18211 fi
18212 done
18213
18214
18215else
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217$as_echo "no" >&6; }
18218fi
18219
18220 ac_ext=cpp
18221ac_cpp='$CXXCPP $CPPFLAGS'
18222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18225
18226
18227
18228
18229
18230 ac_ext=c
18231ac_cpp='$CPP $CPPFLAGS'
18232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
babf7fe8
JF
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18237$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18238
18239 cy_save=$CFLAGS
18240
babf7fe8 18241 for element in -Wno-overloaded-virtual; do
1504c9b8 18242 haveit=
c10a2228 18243 for x in $CFLAGS; do
1504c9b8
DWT
18244
18245 acl_save_prefix="$prefix"
18246 prefix="$acl_final_prefix"
18247 acl_save_exec_prefix="$exec_prefix"
18248 exec_prefix="$acl_final_exec_prefix"
18249 eval x=\"$x\"
18250 exec_prefix="$acl_save_exec_prefix"
18251 prefix="$acl_save_prefix"
18252
18253 if test "X$x" = "X$element"; then
18254 haveit=yes
18255 break
18256 fi
18257 done
18258 if test -z "$haveit"; then
c10a2228 18259 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18260 fi
18261 done
18262
66170b30
JF
18263
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18265/* end confdefs.h. */
18266
66170b30 18267_ACEOF
c10a2228 18268if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
18269 cy_good=1
18270else
18271 cy_good=0
18272fi
18273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18274
c10a2228 18275 CFLAGS=$cy_save
66170b30
JF
18276 if test "x$cy_good" = x1; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278$as_echo "yes" >&6; }
18279
babf7fe8 18280 for element in -Wno-overloaded-virtual; do
66170b30
JF
18281 haveit=
18282 for x in $CFLAGS; do
18283
18284 acl_save_prefix="$prefix"
18285 prefix="$acl_final_prefix"
18286 acl_save_exec_prefix="$exec_prefix"
18287 exec_prefix="$acl_final_exec_prefix"
18288 eval x=\"$x\"
18289 exec_prefix="$acl_save_exec_prefix"
18290 prefix="$acl_save_prefix"
18291
18292 if test "X$x" = "X$element"; then
18293 haveit=yes
18294 break
18295 fi
18296 done
18297 if test -z "$haveit"; then
18298 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18299 fi
18300 done
18301
18302
c10a2228
JF
18303else
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305$as_echo "no" >&6; }
18306fi
18307
18308 ac_ext=cpp
18309ac_cpp='$CXXCPP $CPPFLAGS'
18310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313
18314
18315
18316 ac_ext=cpp
18317ac_cpp='$CXXCPP $CPPFLAGS'
18318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18321
babf7fe8
JF
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18323$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18324
18325 cy_save=$CXXFLAGS
18326
babf7fe8 18327 for element in -Wno-overloaded-virtual; do
66170b30
JF
18328 haveit=
18329 for x in $CXXFLAGS; do
18330
18331 acl_save_prefix="$prefix"
18332 prefix="$acl_final_prefix"
18333 acl_save_exec_prefix="$exec_prefix"
18334 exec_prefix="$acl_final_exec_prefix"
18335 eval x=\"$x\"
18336 exec_prefix="$acl_save_exec_prefix"
18337 prefix="$acl_save_prefix"
18338
18339 if test "X$x" = "X$element"; then
18340 haveit=yes
18341 break
18342 fi
18343 done
18344 if test -z "$haveit"; then
18345 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18346 fi
18347 done
18348
18349
c10a2228
JF
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h. */
18352
18353_ACEOF
18354if ac_fn_cxx_try_compile "$LINENO"; then :
18355 cy_good=1
18356else
18357 cy_good=0
18358fi
18359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360
18361 CXXFLAGS=$cy_save
18362 if test "x$cy_good" = x1; then :
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18364$as_echo "yes" >&6; }
18365
babf7fe8 18366 for element in -Wno-overloaded-virtual; do
66170b30 18367 haveit=
c10a2228 18368 for x in $CXXFLAGS; do
66170b30
JF
18369
18370 acl_save_prefix="$prefix"
18371 prefix="$acl_final_prefix"
18372 acl_save_exec_prefix="$exec_prefix"
18373 exec_prefix="$acl_final_exec_prefix"
18374 eval x=\"$x\"
18375 exec_prefix="$acl_save_exec_prefix"
18376 prefix="$acl_save_prefix"
18377
18378 if test "X$x" = "X$element"; then
18379 haveit=yes
18380 break
18381 fi
18382 done
18383 if test -z "$haveit"; then
c10a2228 18384 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
18385 fi
18386 done
18387
18388
66170b30
JF
18389else
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391$as_echo "no" >&6; }
18392fi
18393
c10a2228
JF
18394 ac_ext=cpp
18395ac_cpp='$CXXCPP $CPPFLAGS'
18396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18399
66170b30
JF
18400
18401
c10a2228
JF
18402 ac_ext=mm
18403ac_cpp='$OBJCXXCPP $CPPFLAGS'
18404ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18407
babf7fe8
JF
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18409$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 18410
c10a2228 18411 cy_save=$OBJCXXFLAGS
66170b30 18412
babf7fe8 18413 for element in -Wno-overloaded-virtual; do
66170b30 18414 haveit=
c10a2228 18415 for x in $OBJCXXFLAGS; do
66170b30
JF
18416
18417 acl_save_prefix="$prefix"
18418 prefix="$acl_final_prefix"
18419 acl_save_exec_prefix="$exec_prefix"
18420 exec_prefix="$acl_final_exec_prefix"
18421 eval x=\"$x\"
18422 exec_prefix="$acl_save_exec_prefix"
18423 prefix="$acl_save_prefix"
18424
18425 if test "X$x" = "X$element"; then
18426 haveit=yes
18427 break
18428 fi
18429 done
18430 if test -z "$haveit"; then
c10a2228 18431 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
18432 fi
18433 done
18434
18435
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437/* end confdefs.h. */
1504c9b8 18438
1504c9b8 18439_ACEOF
c10a2228 18440if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
18441 cy_good=1
18442else
18443 cy_good=0
18444fi
18445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446
c10a2228 18447 OBJCXXFLAGS=$cy_save
66170b30
JF
18448 if test "x$cy_good" = x1; then :
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450$as_echo "yes" >&6; }
1504c9b8 18451
babf7fe8 18452 for element in -Wno-overloaded-virtual; do
1504c9b8 18453 haveit=
c10a2228 18454 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18455
18456 acl_save_prefix="$prefix"
18457 prefix="$acl_final_prefix"
18458 acl_save_exec_prefix="$exec_prefix"
18459 exec_prefix="$acl_final_exec_prefix"
18460 eval x=\"$x\"
18461 exec_prefix="$acl_save_exec_prefix"
18462 prefix="$acl_save_prefix"
18463
18464 if test "X$x" = "X$element"; then
18465 haveit=yes
18466 break
18467 fi
18468 done
18469 if test -z "$haveit"; then
c10a2228 18470 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18471 fi
18472 done
18473
18474
c10a2228
JF
18475else
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477$as_echo "no" >&6; }
18478fi
18479
18480 ac_ext=cpp
18481ac_cpp='$CXXCPP $CPPFLAGS'
18482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18485
18486
18487
18488
18489
18490 ac_ext=c
18491ac_cpp='$CPP $CPPFLAGS'
18492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18494ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495
babf7fe8
JF
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18497$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
18498
18499 cy_save=$CFLAGS
18500
babf7fe8 18501 for element in -Wno-parentheses; do
66170b30 18502 haveit=
c10a2228 18503 for x in $CFLAGS; do
66170b30
JF
18504
18505 acl_save_prefix="$prefix"
18506 prefix="$acl_final_prefix"
18507 acl_save_exec_prefix="$exec_prefix"
18508 exec_prefix="$acl_final_exec_prefix"
18509 eval x=\"$x\"
18510 exec_prefix="$acl_save_exec_prefix"
18511 prefix="$acl_save_prefix"
18512
18513 if test "X$x" = "X$element"; then
18514 haveit=yes
18515 break
18516 fi
18517 done
18518 if test -z "$haveit"; then
c10a2228 18519 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18520 fi
18521 done
18522
18523
c10a2228
JF
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525/* end confdefs.h. */
18526
18527_ACEOF
18528if ac_fn_c_try_compile "$LINENO"; then :
18529 cy_good=1
18530else
18531 cy_good=0
18532fi
18533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534
18535 CFLAGS=$cy_save
18536 if test "x$cy_good" = x1; then :
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18538$as_echo "yes" >&6; }
18539
babf7fe8 18540 for element in -Wno-parentheses; do
66170b30 18541 haveit=
c10a2228 18542 for x in $CFLAGS; do
66170b30
JF
18543
18544 acl_save_prefix="$prefix"
18545 prefix="$acl_final_prefix"
18546 acl_save_exec_prefix="$exec_prefix"
18547 exec_prefix="$acl_final_exec_prefix"
18548 eval x=\"$x\"
18549 exec_prefix="$acl_save_exec_prefix"
18550 prefix="$acl_save_prefix"
18551
18552 if test "X$x" = "X$element"; then
18553 haveit=yes
18554 break
18555 fi
18556 done
18557 if test -z "$haveit"; then
c10a2228 18558 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18559 fi
18560 done
18561
18562
66170b30
JF
18563else
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565$as_echo "no" >&6; }
18566fi
18567
c10a2228
JF
18568 ac_ext=cpp
18569ac_cpp='$CXXCPP $CPPFLAGS'
18570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18573
66170b30
JF
18574
18575
c10a2228
JF
18576 ac_ext=cpp
18577ac_cpp='$CXXCPP $CPPFLAGS'
18578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18581
babf7fe8
JF
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18583$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
18584
18585 cy_save=$CXXFLAGS
18586
babf7fe8 18587 for element in -Wno-parentheses; do
66170b30
JF
18588 haveit=
18589 for x in $CXXFLAGS; do
18590
18591 acl_save_prefix="$prefix"
18592 prefix="$acl_final_prefix"
18593 acl_save_exec_prefix="$exec_prefix"
18594 exec_prefix="$acl_final_exec_prefix"
18595 eval x=\"$x\"
18596 exec_prefix="$acl_save_exec_prefix"
18597 prefix="$acl_save_prefix"
18598
18599 if test "X$x" = "X$element"; then
18600 haveit=yes
18601 break
18602 fi
18603 done
18604 if test -z "$haveit"; then
18605 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18606 fi
18607 done
18608
18609
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611/* end confdefs.h. */
18612
18613_ACEOF
18614if ac_fn_cxx_try_compile "$LINENO"; then :
18615 cy_good=1
18616else
18617 cy_good=0
18618fi
18619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620
18621 CXXFLAGS=$cy_save
18622 if test "x$cy_good" = x1; then :
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624$as_echo "yes" >&6; }
18625
babf7fe8 18626 for element in -Wno-parentheses; do
1504c9b8 18627 haveit=
c10a2228 18628 for x in $CXXFLAGS; do
1504c9b8
DWT
18629
18630 acl_save_prefix="$prefix"
18631 prefix="$acl_final_prefix"
18632 acl_save_exec_prefix="$exec_prefix"
18633 exec_prefix="$acl_final_exec_prefix"
18634 eval x=\"$x\"
18635 exec_prefix="$acl_save_exec_prefix"
18636 prefix="$acl_save_prefix"
18637
18638 if test "X$x" = "X$element"; then
18639 haveit=yes
18640 break
18641 fi
18642 done
18643 if test -z "$haveit"; then
c10a2228 18644 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
18645 fi
18646 done
18647
18648
c10a2228
JF
18649else
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651$as_echo "no" >&6; }
18652fi
18653
18654 ac_ext=cpp
18655ac_cpp='$CXXCPP $CPPFLAGS'
18656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659
18660
18661
18662 ac_ext=mm
18663ac_cpp='$OBJCXXCPP $CPPFLAGS'
18664ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18667
babf7fe8
JF
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18669$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
18670
18671 cy_save=$OBJCXXFLAGS
18672
babf7fe8 18673 for element in -Wno-parentheses; do
1504c9b8 18674 haveit=
c10a2228 18675 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18676
18677 acl_save_prefix="$prefix"
18678 prefix="$acl_final_prefix"
18679 acl_save_exec_prefix="$exec_prefix"
18680 exec_prefix="$acl_final_exec_prefix"
18681 eval x=\"$x\"
18682 exec_prefix="$acl_save_exec_prefix"
18683 prefix="$acl_save_prefix"
18684
18685 if test "X$x" = "X$element"; then
18686 haveit=yes
18687 break
18688 fi
18689 done
18690 if test -z "$haveit"; then
c10a2228 18691 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18692 fi
18693 done
18694
18695
c10a2228
JF
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697/* end confdefs.h. */
18698
18699_ACEOF
18700if ac_fn_objcxx_try_compile "$LINENO"; then :
18701 cy_good=1
18702else
18703 cy_good=0
18704fi
18705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706
18707 OBJCXXFLAGS=$cy_save
18708 if test "x$cy_good" = x1; then :
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18710$as_echo "yes" >&6; }
18711
babf7fe8 18712 for element in -Wno-parentheses; do
1504c9b8 18713 haveit=
c10a2228 18714 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18715
18716 acl_save_prefix="$prefix"
18717 prefix="$acl_final_prefix"
18718 acl_save_exec_prefix="$exec_prefix"
18719 exec_prefix="$acl_final_exec_prefix"
18720 eval x=\"$x\"
18721 exec_prefix="$acl_save_exec_prefix"
18722 prefix="$acl_save_prefix"
18723
18724 if test "X$x" = "X$element"; then
18725 haveit=yes
18726 break
18727 fi
18728 done
18729 if test -z "$haveit"; then
c10a2228 18730 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18731 fi
18732 done
18733
18734
66170b30
JF
18735else
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737$as_echo "no" >&6; }
1504c9b8 18738fi
1504c9b8 18739
c10a2228
JF
18740 ac_ext=cpp
18741ac_cpp='$CXXCPP $CPPFLAGS'
18742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18745
18746
1504c9b8 18747
1504c9b8 18748
1504c9b8 18749
babf7fe8
JF
18750 ac_ext=c
18751ac_cpp='$CPP $CPPFLAGS'
18752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18754ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18755
babf7fe8
JF
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18757$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18758
18759 cy_save=$CFLAGS
18760
18761 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18762 haveit=
babf7fe8 18763 for x in $CFLAGS; do
1504c9b8
DWT
18764
18765 acl_save_prefix="$prefix"
18766 prefix="$acl_final_prefix"
18767 acl_save_exec_prefix="$exec_prefix"
18768 exec_prefix="$acl_final_exec_prefix"
18769 eval x=\"$x\"
18770 exec_prefix="$acl_save_exec_prefix"
18771 prefix="$acl_save_prefix"
18772
18773 if test "X$x" = "X$element"; then
18774 haveit=yes
18775 break
18776 fi
18777 done
18778 if test -z "$haveit"; then
babf7fe8 18779 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18780 fi
18781 done
18782
66170b30
JF
18783
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18785/* end confdefs.h. */
18786
a243b558 18787_ACEOF
babf7fe8 18788if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18789 cy_good=1
18790else
18791 cy_good=0
18792fi
babf7fe8 18793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18794
babf7fe8 18795 CFLAGS=$cy_save
a243b558
JF
18796 if test "x$cy_good" = x1; then :
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798$as_echo "yes" >&6; }
66170b30 18799
babf7fe8 18800 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18801 haveit=
babf7fe8 18802 for x in $CFLAGS; do
1504c9b8
DWT
18803
18804 acl_save_prefix="$prefix"
18805 prefix="$acl_final_prefix"
18806 acl_save_exec_prefix="$exec_prefix"
18807 exec_prefix="$acl_final_exec_prefix"
18808 eval x=\"$x\"
18809 exec_prefix="$acl_save_exec_prefix"
18810 prefix="$acl_save_prefix"
18811
18812 if test "X$x" = "X$element"; then
18813 haveit=yes
18814 break
18815 fi
18816 done
18817 if test -z "$haveit"; then
babf7fe8 18818 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18819 fi
18820 done
18821
18822
18823else
66170b30
JF
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825$as_echo "no" >&6; }
1504c9b8
DWT
18826fi
18827
babf7fe8
JF
18828 ac_ext=cpp
18829ac_cpp='$CXXCPP $CPPFLAGS'
18830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18833
9c60689e 18834
632b71ea 18835
babf7fe8
JF
18836 ac_ext=cpp
18837ac_cpp='$CXXCPP $CPPFLAGS'
18838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18841
babf7fe8
JF
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18843$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18844
babf7fe8 18845 cy_save=$CXXFLAGS
9c60689e 18846
babf7fe8
JF
18847 for element in -Wno-unneeded-internal-declaration; do
18848 haveit=
18849 for x in $CXXFLAGS; do
9c60689e 18850
babf7fe8
JF
18851 acl_save_prefix="$prefix"
18852 prefix="$acl_final_prefix"
18853 acl_save_exec_prefix="$exec_prefix"
18854 exec_prefix="$acl_final_exec_prefix"
18855 eval x=\"$x\"
18856 exec_prefix="$acl_save_exec_prefix"
18857 prefix="$acl_save_prefix"
66170b30 18858
babf7fe8
JF
18859 if test "X$x" = "X$element"; then
18860 haveit=yes
18861 break
18862 fi
18863 done
18864 if test -z "$haveit"; then
18865 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18866 fi
18867 done
7eda51e0 18868
7eda51e0 18869
babf7fe8
JF
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h. */
7eda51e0 18872
7eda51e0 18873_ACEOF
babf7fe8
JF
18874if ac_fn_cxx_try_compile "$LINENO"; then :
18875 cy_good=1
9c60689e 18876else
babf7fe8 18877 cy_good=0
9c60689e 18878fi
babf7fe8 18879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18880
babf7fe8
JF
18881 CXXFLAGS=$cy_save
18882 if test "x$cy_good" = x1; then :
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884$as_echo "yes" >&6; }
7eda51e0 18885
babf7fe8 18886 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18887 haveit=
babf7fe8 18888 for x in $CXXFLAGS; do
9c60689e 18889
7eda51e0
JF
18890 acl_save_prefix="$prefix"
18891 prefix="$acl_final_prefix"
18892 acl_save_exec_prefix="$exec_prefix"
18893 exec_prefix="$acl_final_exec_prefix"
18894 eval x=\"$x\"
18895 exec_prefix="$acl_save_exec_prefix"
18896 prefix="$acl_save_prefix"
9c60689e 18897
7eda51e0
JF
18898 if test "X$x" = "X$element"; then
18899 haveit=yes
18900 break
18901 fi
18902 done
18903 if test -z "$haveit"; then
babf7fe8 18904 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18905 fi
18906 done
9c60689e 18907
9c60689e 18908
5053a6d1 18909else
babf7fe8
JF
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911$as_echo "no" >&6; }
632b71ea
DWT
18912fi
18913
babf7fe8
JF
18914 ac_ext=cpp
18915ac_cpp='$CXXCPP $CPPFLAGS'
18916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18919
18920
5053a6d1 18921
babf7fe8
JF
18922 ac_ext=mm
18923ac_cpp='$OBJCXXCPP $CPPFLAGS'
18924ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18927
babf7fe8
JF
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18929$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18930
babf7fe8 18931 cy_save=$OBJCXXFLAGS
632b71ea 18932
babf7fe8 18933 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18934 haveit=
babf7fe8 18935 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18936
18937 acl_save_prefix="$prefix"
18938 prefix="$acl_final_prefix"
18939 acl_save_exec_prefix="$exec_prefix"
18940 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18941 eval x=\"$x\"
632b71ea
DWT
18942 exec_prefix="$acl_save_exec_prefix"
18943 prefix="$acl_save_prefix"
18944
5053a6d1
DWT
18945 if test "X$x" = "X$element"; then
18946 haveit=yes
18947 break
18948 fi
18949 done
18950 if test -z "$haveit"; then
babf7fe8 18951 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18952 fi
18953 done
18954
66170b30 18955
babf7fe8
JF
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957/* end confdefs.h. */
18958
18959_ACEOF
18960if ac_fn_objcxx_try_compile "$LINENO"; then :
18961 cy_good=1
18962else
18963 cy_good=0
18964fi
18965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18966
18967 OBJCXXFLAGS=$cy_save
18968 if test "x$cy_good" = x1; then :
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18970$as_echo "yes" >&6; }
18971
18972 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18973 haveit=
babf7fe8 18974 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18975
18976 acl_save_prefix="$prefix"
18977 prefix="$acl_final_prefix"
18978 acl_save_exec_prefix="$exec_prefix"
18979 exec_prefix="$acl_final_exec_prefix"
18980 eval x=\"$x\"
18981 exec_prefix="$acl_save_exec_prefix"
18982 prefix="$acl_save_prefix"
18983
18984 if test "X$x" = "X$element"; then
18985 haveit=yes
18986 break
18987 fi
18988 done
18989 if test -z "$haveit"; then
babf7fe8 18990 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18991 fi
18992 done
66170b30
JF
18993
18994
babf7fe8
JF
18995else
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997$as_echo "no" >&6; }
5053a6d1 18998fi
7eda51e0 18999
babf7fe8
JF
19000 ac_ext=cpp
19001ac_cpp='$CXXCPP $CPPFLAGS'
19002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 19005
5053a6d1
DWT
19006
19007
5053a6d1 19008
babf7fe8
JF
19009
19010
2ca4dab3 19011
be2fde87
JF
19012ac_ext=c
19013ac_cpp='$CPP $CPPFLAGS'
19014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19016ac_compiler_gnu=$ac_cv_c_compiler_gnu
19017
19018ax_pthread_ok=no
19019
19020# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 19021# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
19022# It gets checked for in the link test anyway.
19023
19024# First of all, check if the user has set any of the PTHREAD_LIBS,
19025# etcetera environment variables, and if threads linking works using
19026# them:
19027if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19028 save_CFLAGS="$CFLAGS"
19029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19030 save_LIBS="$LIBS"
19031 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19033$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035/* end confdefs.h. */
19036
19037/* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19040#ifdef __cplusplus
19041extern "C"
19042#endif
19043char pthread_join ();
19044int
19045main ()
19046{
19047return pthread_join ();
19048 ;
19049 return 0;
19050}
19051_ACEOF
19052if ac_fn_c_try_link "$LINENO"; then :
19053 ax_pthread_ok=yes
19054fi
19055rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19058$as_echo "$ax_pthread_ok" >&6; }
19059 if test x"$ax_pthread_ok" = xno; then
19060 PTHREAD_LIBS=""
19061 PTHREAD_CFLAGS=""
19062 fi
19063 LIBS="$save_LIBS"
19064 CFLAGS="$save_CFLAGS"
19065fi
19066
19067# We must check for the threads library under a number of different
19068# names; the ordering is very important because some systems
19069# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19070# libraries is broken (non-POSIX).
19071
19072# Create a list of thread flags to try. Items starting with a "-" are
19073# C compiler flags, and other items are library names, except for "none"
19074# which indicates that we try without any flags at all, and "pthread-config"
19075# which is a program returning the flags for the Pth emulation library.
19076
2ca4dab3 19077ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
19078
19079# The ordering *is* (sometimes) important. Some notes on the
19080# individual items follow:
19081
19082# pthreads: AIX (must check this before -lpthread)
19083# none: in case threads are in libc; should be tried before -Kthread and
19084# other compiler flags to prevent continual compiler warnings
19085# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19086# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19087# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 19088# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 19089# -pthreads: Solaris/gcc
be2fde87 19090# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
19091# doesn't hurt to check since this sometimes defines pthreads and
19092# -D_REENTRANT too), HP C (must be checked before -lpthread, which
19093# is present but should not be used directly)
19094# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
19095# pthread: Linux, etcetera
19096# --thread-safe: KAI C++
19097# pthread-config: use pthread-config program (for GNU Pth library)
19098
2ca4dab3
JF
19099case $host_os in
19100
19101 hpux*)
19102
19103 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19104 # multi-threading and also sets -lpthread."
19105
19106 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19107 ;;
19108
19109 openedition*)
19110
19111 # IBM z/OS requires a feature-test macro to be defined in order to
19112 # enable POSIX threads at all, so give the user a hint if this is
19113 # not set. (We don't define these ourselves, as they can affect
19114 # other portions of the system API in unpredictable ways.)
19115
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117/* end confdefs.h. */
19118
19119# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19120 AX_PTHREAD_ZOS_MISSING
19121# endif
19122
19123_ACEOF
19124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19125 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19127$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19128fi
19129rm -f conftest*
19130
19131 ;;
19132
be2fde87
JF
19133 solaris*)
19134
2ca4dab3
JF
19135 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19136 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
19137 # (non-functional) versions of the pthreads routines, so link-based
19138 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19139 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19140 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
19141 # who knows whether they'll stub that too in a future libc.) So
19142 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 19143
2ca4dab3 19144 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
19145 ;;
19146esac
19147
2ca4dab3
JF
19148# Older versions of Clang only give a warning instead of an error for an
19149# unrecognized option, unless we specify -Werror. (We throw in some extra
19150# Clang warning flags for good measure.)
be2fde87 19151
2ca4dab3
JF
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19153$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19154if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19155 $as_echo_n "(cached) " >&6
19156else
19157 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19158 save_CFLAGS="$CFLAGS"
19159 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19160 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19162/* end confdefs.h. */
19163int foo(void);
19164int
19165main ()
19166{
19167foo()
19168 ;
19169 return 0;
19170}
19171_ACEOF
19172if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 19173 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 19174else
2ca4dab3 19175 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
19176fi
19177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
19178 CFLAGS="$save_CFLAGS"
19179
19180fi
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19182$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19183ax_pthread_extra_flags=
19184if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19185 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19186fi
be2fde87
JF
19187
19188if test x"$ax_pthread_ok" = xno; then
19189for flag in $ax_pthread_flags; do
19190
19191 case $flag in
19192 none)
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19194$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19195 ;;
19196
2ca4dab3
JF
19197 -mt,pthread)
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19199$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19200 PTHREAD_CFLAGS="-mt"
19201 PTHREAD_LIBS="-lpthread"
19202 ;;
19203
be2fde87
JF
19204 -*)
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19206$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19207 PTHREAD_CFLAGS="$flag"
19208 ;;
19209
19210 pthread-config)
19211 # Extract the first word of "pthread-config", so it can be a program name with args.
19212set dummy pthread-config; ac_word=$2
19213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19214$as_echo_n "checking for $ac_word... " >&6; }
19215if ${ac_cv_prog_ax_pthread_config+:} false; then :
19216 $as_echo_n "(cached) " >&6
19217else
19218 if test -n "$ax_pthread_config"; then
19219 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19220else
19221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222for as_dir in $PATH
19223do
19224 IFS=$as_save_IFS
19225 test -z "$as_dir" && as_dir=.
19226 for ac_exec_ext in '' $ac_executable_extensions; do
19227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228 ac_cv_prog_ax_pthread_config="yes"
19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19230 break 2
19231 fi
19232done
19233 done
19234IFS=$as_save_IFS
19235
19236 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19237fi
19238fi
19239ax_pthread_config=$ac_cv_prog_ax_pthread_config
19240if test -n "$ax_pthread_config"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19242$as_echo "$ax_pthread_config" >&6; }
19243else
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245$as_echo "no" >&6; }
19246fi
19247
19248
19249 if test x"$ax_pthread_config" = xno; then continue; fi
19250 PTHREAD_CFLAGS="`pthread-config --cflags`"
19251 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19252 ;;
19253
19254 *)
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19256$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19257 PTHREAD_LIBS="-l$flag"
19258 ;;
19259 esac
19260
19261 save_LIBS="$LIBS"
19262 save_CFLAGS="$CFLAGS"
19263 LIBS="$PTHREAD_LIBS $LIBS"
19264 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19265
19266 # Check for various functions. We must include pthread.h,
19267 # since some functions may be macros. (On the Sequent, we
19268 # need a special flag -Kthread to make this header compile.)
19269 # We check for pthread_join because it is in -lpthread on IRIX
19270 # while pthread_create is in libc. We check for pthread_attr_init
19271 # due to DEC craziness with -lpthreads. We check for
19272 # pthread_cleanup_push because it is one of the few pthread
19273 # functions on Solaris that doesn't have a non-functional libc stub.
19274 # We try pthread_create on general principles.
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276/* end confdefs.h. */
19277#include <pthread.h>
19278 static void routine(void *a) { a = 0; }
19279 static void *start_routine(void *a) { return a; }
19280int
19281main ()
19282{
19283pthread_t th; pthread_attr_t attr;
19284 pthread_create(&th, 0, start_routine, 0);
19285 pthread_join(th, 0);
19286 pthread_attr_init(&attr);
19287 pthread_cleanup_push(routine, 0);
19288 pthread_cleanup_pop(0) /* ; */
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293if ac_fn_c_try_link "$LINENO"; then :
19294 ax_pthread_ok=yes
19295fi
19296rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298
19299 LIBS="$save_LIBS"
19300 CFLAGS="$save_CFLAGS"
19301
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19303$as_echo "$ax_pthread_ok" >&6; }
19304 if test "x$ax_pthread_ok" = xyes; then
19305 break;
19306 fi
19307
19308 PTHREAD_LIBS=""
19309 PTHREAD_CFLAGS=""
19310done
19311fi
19312
19313# Various other checks:
19314if test "x$ax_pthread_ok" = xyes; then
19315 save_LIBS="$LIBS"
19316 LIBS="$PTHREAD_LIBS $LIBS"
19317 save_CFLAGS="$CFLAGS"
19318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19319
19320 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19322$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
19323if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325else
19326 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19327 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19329/* end confdefs.h. */
19330#include <pthread.h>
19331int
19332main ()
19333{
19334int attr = $attr; return attr /* ; */
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 19340 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
19341fi
19342rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
19344 done
19345
19346fi
19347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19348$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19349 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19350 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
19351
19352cat >>confdefs.h <<_ACEOF
2ca4dab3 19353#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
19354_ACEOF
19355
2ca4dab3 19356fi
be2fde87
JF
19357
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19359$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
19360if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19361 $as_echo_n "(cached) " >&6
19362else
19363 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19364 ax_pthread_special_flags_added=no
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366/* end confdefs.h. */
19367
19368# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19369 AX_PTHREAD_NEED_SPECIAL_FLAG
19370# endif
19371
19372_ACEOF
19373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19375 case $host_os in
19376 aix* | freebsd*)
19377 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19378 ;;
19379 darwin* | hpux* | osf* | solaris*)
19380 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19381 ;;
19382 esac
19383
19384fi
19385rm -f conftest*
19386
19387
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19390$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19391 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19392 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19393 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19394 ax_pthread_special_flags_added=yes
19395fi
be2fde87
JF
19396
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19398$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19399if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19400 $as_echo_n "(cached) " >&6
19401else
2ca4dab3 19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19403/* end confdefs.h. */
19404#include <pthread.h>
19405int
19406main ()
19407{
19408int i = PTHREAD_PRIO_INHERIT;
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413if ac_fn_c_try_link "$LINENO"; then :
19414 ax_cv_PTHREAD_PRIO_INHERIT=yes
19415else
19416 ax_cv_PTHREAD_PRIO_INHERIT=no
19417fi
19418rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420
19421fi
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19423$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19424 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19425
19426$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19427
19428fi
19429
19430 LIBS="$save_LIBS"
19431 CFLAGS="$save_CFLAGS"
19432
19433 # More AIX lossage: compile with *_r variant
19434 if test "x$GCC" != xyes; then
19435 case $host_os in
19436 aix*)
19437 case "x/$CC" in #(
19438 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19439 #handle absolute path differently from PATH based program lookup
19440 case "x$CC" in #(
19441 x/*) :
19442 if as_fn_executable_p ${CC}_r; then :
19443 PTHREAD_CC="${CC}_r"
19444fi ;; #(
19445 *) :
19446 for ac_prog in ${CC}_r
19447do
19448 # Extract the first word of "$ac_prog", so it can be a program name with args.
19449set dummy $ac_prog; ac_word=$2
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19451$as_echo_n "checking for $ac_word... " >&6; }
19452if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19453 $as_echo_n "(cached) " >&6
19454else
19455 if test -n "$PTHREAD_CC"; then
19456 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19457else
19458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19459for as_dir in $PATH
19460do
19461 IFS=$as_save_IFS
19462 test -z "$as_dir" && as_dir=.
19463 for ac_exec_ext in '' $ac_executable_extensions; do
19464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19465 ac_cv_prog_PTHREAD_CC="$ac_prog"
19466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19467 break 2
19468 fi
19469done
19470 done
19471IFS=$as_save_IFS
19472
19473fi
19474fi
19475PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19476if test -n "$PTHREAD_CC"; then
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19478$as_echo "$PTHREAD_CC" >&6; }
19479else
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481$as_echo "no" >&6; }
19482fi
19483
19484
19485 test -n "$PTHREAD_CC" && break
19486done
19487test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19488 ;;
19489esac ;; #(
19490 *) :
19491 ;;
19492esac
19493 ;;
19494 esac
19495 fi
19496fi
19497
19498test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19499
19500
19501
19502
19503
19504# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19505if test x"$ax_pthread_ok" = xyes; then
19506
19507$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19508
19509 :
19510else
19511 ax_pthread_ok=no
19512
19513fi
19514ac_ext=cpp
19515ac_cpp='$CXXCPP $CPPFLAGS'
19516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19519
19520
19521
19522
19523
3615a2f7 19524for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19526$as_echo_n "checking for -arch $cy_arch... " >&6; }
19527
19528 cy_save=$CXXFLAGS
19529
19530 for element in "-arch $cy_arch"; do
19531 haveit=
19532 for x in $CXXFLAGS; do
19533
19534 acl_save_prefix="$prefix"
19535 prefix="$acl_final_prefix"
19536 acl_save_exec_prefix="$exec_prefix"
19537 exec_prefix="$acl_final_exec_prefix"
19538 eval x=\"$x\"
19539 exec_prefix="$acl_save_exec_prefix"
19540 prefix="$acl_save_prefix"
19541
19542 if test "X$x" = "X$element"; then
19543 haveit=yes
19544 break
19545 fi
19546 done
19547 if test -z "$haveit"; then
19548 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19549 fi
19550 done
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554/* end confdefs.h. */
19555
19556int
19557main ()
19558{
19559
19560 ;
19561 return 0;
19562}
19563_ACEOF
19564if ac_fn_cxx_try_link "$LINENO"; then :
19565 cy_good=1
19566else
19567 cy_good=0
19568fi
19569rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571
19572 CXXFLAGS=$cy_save
19573 if test "x$cy_good" = x1; then :
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19575$as_echo "yes" >&6; }
19576
19577 for element in "-arch $cy_arch"; do
19578 haveit=
19579 for x in $CY_ARCH; do
19580
19581 acl_save_prefix="$prefix"
19582 prefix="$acl_final_prefix"
19583 acl_save_exec_prefix="$exec_prefix"
19584 exec_prefix="$acl_final_exec_prefix"
19585 eval x=\"$x\"
19586 exec_prefix="$acl_save_exec_prefix"
19587 prefix="$acl_save_prefix"
19588
19589 if test "X$x" = "X$element"; then
19590 haveit=yes
19591 break
19592 fi
19593 done
19594 if test -z "$haveit"; then
19595 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19596 fi
19597 done
19598
19599
19600else
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19602$as_echo "no" >&6; }
19603fi
19604
19605done
19606
19607
babf7fe8
JF
19608
19609
19610
19611
19612# Check whether --enable-javascript was given.
19613if test "${enable_javascript+set}" = set; then :
19614 enableval=$enable_javascript;
19615 case $enableval in #(
19616 yes) :
19617
19618
19619
19620
19621 cy_save=$LIBS
19622 LIBS=
9918a0fa
JF
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19624$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19625if ${ac_cv_search_JSEvaluateScript+:} false; then :
19626 $as_echo_n "(cached) " >&6
19627else
19628 ac_func_search_save_LIBS=$LIBS
19629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630/* end confdefs.h. */
19631
19632/* Override any GCC internal prototype to avoid an error.
19633 Use char because int might match the return type of a GCC
19634 builtin and then its argument prototype would still apply. */
19635#ifdef __cplusplus
19636extern "C"
19637#endif
19638char JSEvaluateScript ();
19639int
19640main ()
19641{
19642return JSEvaluateScript ();
19643 ;
19644 return 0;
19645}
19646_ACEOF
19647for ac_lib in '' JavaScriptCore; do
19648 if test -z "$ac_lib"; then
19649 ac_res="none required"
19650 else
19651 ac_res=-l$ac_lib
19652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19653 fi
19654 if ac_fn_cxx_try_link "$LINENO"; then :
19655 ac_cv_search_JSEvaluateScript=$ac_res
19656fi
19657rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext
19659 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19660 break
19661fi
19662done
19663if ${ac_cv_search_JSEvaluateScript+:} false; then :
19664
19665else
19666 ac_cv_search_JSEvaluateScript=no
19667fi
19668rm conftest.$ac_ext
19669LIBS=$ac_func_search_save_LIBS
19670fi
19671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19672$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19673ac_res=$ac_cv_search_JSEvaluateScript
19674if test "$ac_res" != no; then :
19675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19676
19677 CY_EXECUTE=1
19678
19679
19680else
babf7fe8
JF
19681
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19683$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19684if ${ac_cv_framework_JavaScriptCore+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686else
19687
19688 ac_check_framework_save_LIBS=$LIBS
19689 LIBS="-framework JavaScriptCore $LIBS"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h. */
19692
19693 #include <JavaScriptCore/JSBase.h>
19694
19695int
19696main ()
19697{
19698
19699 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19700
19701 ;
19702 return 0;
19703}
19704_ACEOF
19705if ac_fn_cxx_try_link "$LINENO"; then :
19706
19707 ac_cv_framework_JavaScriptCore=yes
19708
19709else
19710 ac_cv_framework_JavaScriptCore=no
19711fi
19712rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_framework_save_LIBS
19715
19716fi
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19718$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19719 if test $ac_cv_framework_JavaScriptCore = yes; then :
19720
19721
19722 for element in "-framework JavaScriptCore"; do
19723 haveit=
19724 for x in $LIBS; do
19725
19726 acl_save_prefix="$prefix"
19727 prefix="$acl_final_prefix"
19728 acl_save_exec_prefix="$exec_prefix"
19729 exec_prefix="$acl_final_exec_prefix"
19730 eval x=\"$x\"
19731 exec_prefix="$acl_save_exec_prefix"
19732 prefix="$acl_save_prefix"
19733
19734 if test "X$x" = "X$element"; then
19735 haveit=yes
19736 break
19737 fi
19738 done
19739 if test -z "$haveit"; then
19740 LIBS="${LIBS}${LIBS:+ }$element"
19741 fi
19742 done
19743
19744
19745 CY_EXECUTE=1
19746
19747
19748
19749else
19750
19751 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19752
19753pkg_failed=no
19754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 19755$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 19756
7eda51e0
JF
19757if test -n "$WEBKIT_CFLAGS"; then
19758 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19759 elif test -n "$PKG_CONFIG"; then
19760 if test -n "$PKG_CONFIG" && \
19761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19762 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19763 ac_status=$?
19764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; }; then
19766 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19767 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19768else
19769 pkg_failed=yes
19770fi
19771 else
19772 pkg_failed=untried
19773fi
19774if test -n "$WEBKIT_LIBS"; then
19775 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19776 elif test -n "$PKG_CONFIG"; then
19777 if test -n "$PKG_CONFIG" && \
19778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19779 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19780 ac_status=$?
19781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782 test $ac_status = 0; }; then
19783 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19784 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19785else
19786 pkg_failed=yes
19787fi
19788 else
19789 pkg_failed=untried
19790fi
632b71ea 19791
7eda51e0
JF
19792
19793
19794if test $pkg_failed = yes; then
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796$as_echo "no" >&6; }
19797
19798if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19799 _pkg_short_errors_supported=yes
19800else
19801 _pkg_short_errors_supported=no
19802fi
19803 if test $_pkg_short_errors_supported = yes; then
83c6fec8 19804 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 19805 else
83c6fec8 19806 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
19807 fi
19808 # Put the nasty error message in config.log where it belongs
19809 echo "$WEBKIT_PKG_ERRORS" >&5
19810
19811 :
19812elif test $pkg_failed = untried; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19814$as_echo "no" >&6; }
19815 :
19816else
19817 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19818 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19820$as_echo "yes" >&6; }
19821
19822 CY_EXECUTE=1
19823
19824
7eda51e0
JF
19825 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19826 haveit=
d70419f1 19827 for x in $CPPFLAGS; do
5053a6d1 19828
7eda51e0
JF
19829 acl_save_prefix="$prefix"
19830 prefix="$acl_final_prefix"
19831 acl_save_exec_prefix="$exec_prefix"
19832 exec_prefix="$acl_final_exec_prefix"
19833 eval x=\"$x\"
19834 exec_prefix="$acl_save_exec_prefix"
19835 prefix="$acl_save_prefix"
5053a6d1 19836
7eda51e0
JF
19837 if test "X$x" = "X$element"; then
19838 haveit=yes
19839 break
19840 fi
19841 done
19842 if test -z "$haveit"; then
d70419f1 19843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19844 fi
19845 done
5053a6d1 19846
5053a6d1 19847
7eda51e0 19848 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 19849 haveit=
5053a6d1 19850 for x in $LIBS; do
9c60689e 19851
632b71ea
DWT
19852 acl_save_prefix="$prefix"
19853 prefix="$acl_final_prefix"
19854 acl_save_exec_prefix="$exec_prefix"
19855 exec_prefix="$acl_final_exec_prefix"
19856 eval x=\"$x\"
19857 exec_prefix="$acl_save_exec_prefix"
19858 prefix="$acl_save_prefix"
19859
19860 if test "X$x" = "X$element"; then
19861 haveit=yes
19862 break
19863 fi
19864 done
19865 if test -z "$haveit"; then
5053a6d1 19866 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19867 fi
19868 done
b128dfee 19869
66170b30 19870
7eda51e0
JF
19871fi; if test "x$CY_EXECUTE" = x1; then break; fi
19872 done
5053a6d1
DWT
19873
19874fi
9918a0fa
JF
19875fi
19876
babf7fe8
JF
19877 LTJAVASCRIPTCORE=$LIBS
19878 LIBS=$cy_save
19879
19880
7eda51e0 19881 ;; #(
babf7fe8 19882 no) :
7eda51e0 19883
babf7fe8
JF
19884 CY_EXECUTE=0
19885 ;; #(
19886 JavaScriptCore) :
c823f118 19887
5053a6d1
DWT
19888
19889
babf7fe8
JF
19890 cy_save=$LIBS
19891 LIBS=
9918a0fa
JF
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19893$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19894if ${ac_cv_search_JSEvaluateScript+:} false; then :
19895 $as_echo_n "(cached) " >&6
19896else
19897 ac_func_search_save_LIBS=$LIBS
19898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899/* end confdefs.h. */
19900
19901/* Override any GCC internal prototype to avoid an error.
19902 Use char because int might match the return type of a GCC
19903 builtin and then its argument prototype would still apply. */
19904#ifdef __cplusplus
19905extern "C"
19906#endif
19907char JSEvaluateScript ();
19908int
19909main ()
19910{
19911return JSEvaluateScript ();
19912 ;
19913 return 0;
19914}
19915_ACEOF
19916for ac_lib in '' JavaScriptCore; do
19917 if test -z "$ac_lib"; then
19918 ac_res="none required"
19919 else
19920 ac_res=-l$ac_lib
19921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19922 fi
19923 if ac_fn_cxx_try_link "$LINENO"; then :
19924 ac_cv_search_JSEvaluateScript=$ac_res
19925fi
19926rm -f core conftest.err conftest.$ac_objext \
19927 conftest$ac_exeext
19928 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19929 break
19930fi
19931done
19932if ${ac_cv_search_JSEvaluateScript+:} false; then :
19933
19934else
19935 ac_cv_search_JSEvaluateScript=no
19936fi
19937rm conftest.$ac_ext
19938LIBS=$ac_func_search_save_LIBS
19939fi
19940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19941$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19942ac_res=$ac_cv_search_JSEvaluateScript
19943if test "$ac_res" != no; then :
19944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19945
19946 CY_EXECUTE=1
19947
19948
19949else
babf7fe8 19950
5053a6d1
DWT
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19952$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 19953if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
19954 $as_echo_n "(cached) " >&6
19955else
19956
5053a6d1
DWT
19957 ac_check_framework_save_LIBS=$LIBS
19958 LIBS="-framework JavaScriptCore $LIBS"
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 19960/* end confdefs.h. */
5053a6d1 19961
7eda51e0 19962 #include <JavaScriptCore/JSBase.h>
5053a6d1 19963
632b71ea
DWT
19964int
19965main ()
19966{
66170b30 19967
7eda51e0 19968 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 19969
632b71ea
DWT
19970 ;
19971 return 0;
19972}
19973_ACEOF
5053a6d1
DWT
19974if ac_fn_cxx_try_link "$LINENO"; then :
19975
19976 ac_cv_framework_JavaScriptCore=yes
19977
19978else
19979 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
19980fi
19981rm -f core conftest.err conftest.$ac_objext \
19982 conftest$ac_exeext conftest.$ac_ext
5053a6d1 19983 LIBS=$ac_check_framework_save_LIBS
b128dfee 19984
c823f118 19985fi
5053a6d1
DWT
19986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19987$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19988 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
19989
19990
7eda51e0 19991 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
19992 haveit=
19993 for x in $LIBS; do
19994
19995 acl_save_prefix="$prefix"
19996 prefix="$acl_final_prefix"
19997 acl_save_exec_prefix="$exec_prefix"
19998 exec_prefix="$acl_final_exec_prefix"
19999 eval x=\"$x\"
20000 exec_prefix="$acl_save_exec_prefix"
20001 prefix="$acl_save_prefix"
20002
20003 if test "X$x" = "X$element"; then
20004 haveit=yes
20005 break
20006 fi
20007 done
20008 if test -z "$haveit"; then
20009 LIBS="${LIBS}${LIBS:+ }$element"
20010 fi
20011 done
c823f118 20012
66170b30 20013
7eda51e0
JF
20014 CY_EXECUTE=1
20015
20016
20017
20018else
20019
20020 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20021
20022pkg_failed=no
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20024$as_echo_n "checking for WEBKIT... " >&6; }
20025
20026if test -n "$WEBKIT_CFLAGS"; then
20027 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20028 elif test -n "$PKG_CONFIG"; then
20029 if test -n "$PKG_CONFIG" && \
20030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20031 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20032 ac_status=$?
20033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20034 test $ac_status = 0; }; then
20035 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20036 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20037else
20038 pkg_failed=yes
20039fi
20040 else
20041 pkg_failed=untried
20042fi
20043if test -n "$WEBKIT_LIBS"; then
20044 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20045 elif test -n "$PKG_CONFIG"; then
20046 if test -n "$PKG_CONFIG" && \
20047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20048 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20049 ac_status=$?
20050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20051 test $ac_status = 0; }; then
20052 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20053 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20054else
20055 pkg_failed=yes
20056fi
20057 else
20058 pkg_failed=untried
20059fi
20060
66170b30
JF
20061
20062
7eda51e0
JF
20063if test $pkg_failed = yes; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065$as_echo "no" >&6; }
b128dfee 20066
7eda51e0
JF
20067if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20068 _pkg_short_errors_supported=yes
20069else
20070 _pkg_short_errors_supported=no
632b71ea 20071fi
7eda51e0 20072 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20073 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 20074 else
83c6fec8 20075 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
20076 fi
20077 # Put the nasty error message in config.log where it belongs
20078 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 20079
7eda51e0
JF
20080 :
20081elif test $pkg_failed = untried; then
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083$as_echo "no" >&6; }
20084 :
5053a6d1
DWT
20085else
20086 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20087 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089$as_echo "yes" >&6; }
c823f118 20090
7eda51e0
JF
20091 CY_EXECUTE=1
20092
66170b30 20093
7eda51e0 20094 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 20095 haveit=
d70419f1 20096 for x in $CPPFLAGS; do
c823f118 20097
5053a6d1
DWT
20098 acl_save_prefix="$prefix"
20099 prefix="$acl_final_prefix"
20100 acl_save_exec_prefix="$exec_prefix"
20101 exec_prefix="$acl_final_exec_prefix"
20102 eval x=\"$x\"
20103 exec_prefix="$acl_save_exec_prefix"
20104 prefix="$acl_save_prefix"
c823f118 20105
5053a6d1
DWT
20106 if test "X$x" = "X$element"; then
20107 haveit=yes
20108 break
20109 fi
20110 done
20111 if test -z "$haveit"; then
d70419f1 20112 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
20113 fi
20114 done
c823f118 20115
b66977f1 20116
7eda51e0 20117 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
20118 haveit=
20119 for x in $LIBS; do
20120
20121 acl_save_prefix="$prefix"
20122 prefix="$acl_final_prefix"
20123 acl_save_exec_prefix="$exec_prefix"
20124 exec_prefix="$acl_final_exec_prefix"
20125 eval x=\"$x\"
20126 exec_prefix="$acl_save_exec_prefix"
20127 prefix="$acl_save_prefix"
20128
20129 if test "X$x" = "X$element"; then
20130 haveit=yes
20131 break
20132 fi
20133 done
20134 if test -z "$haveit"; then
20135 LIBS="${LIBS}${LIBS:+ }$element"
20136 fi
20137 done
20138
20139
7eda51e0
JF
20140fi; if test "x$CY_EXECUTE" = x1; then break; fi
20141 done
20142
5053a6d1 20143fi
9918a0fa
JF
20144fi
20145
babf7fe8
JF
20146 LTJAVASCRIPTCORE=$LIBS
20147 LIBS=$cy_save
5053a6d1 20148
b66977f1 20149
babf7fe8
JF
20150 ;; #(
20151 *) :
20152 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20153esac
b66977f1 20154
babf7fe8 20155else
b66977f1 20156
7eda51e0 20157
7eda51e0 20158
babf7fe8
JF
20159 cy_save=$LIBS
20160 LIBS=
9918a0fa
JF
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20162$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20163if ${ac_cv_search_JSEvaluateScript+:} false; then :
20164 $as_echo_n "(cached) " >&6
20165else
20166 ac_func_search_save_LIBS=$LIBS
20167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168/* end confdefs.h. */
20169
20170/* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20173#ifdef __cplusplus
20174extern "C"
20175#endif
20176char JSEvaluateScript ();
20177int
20178main ()
20179{
20180return JSEvaluateScript ();
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185for ac_lib in '' JavaScriptCore; do
20186 if test -z "$ac_lib"; then
20187 ac_res="none required"
20188 else
20189 ac_res=-l$ac_lib
20190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20191 fi
20192 if ac_fn_cxx_try_link "$LINENO"; then :
20193 ac_cv_search_JSEvaluateScript=$ac_res
20194fi
20195rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext
20197 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20198 break
20199fi
20200done
20201if ${ac_cv_search_JSEvaluateScript+:} false; then :
20202
20203else
20204 ac_cv_search_JSEvaluateScript=no
20205fi
20206rm conftest.$ac_ext
20207LIBS=$ac_func_search_save_LIBS
20208fi
20209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20210$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20211ac_res=$ac_cv_search_JSEvaluateScript
20212if test "$ac_res" != no; then :
20213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20214
20215 CY_EXECUTE=1
20216
20217
20218else
7eda51e0 20219
babf7fe8
JF
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20221$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20222if ${ac_cv_framework_JavaScriptCore+:} false; then :
20223 $as_echo_n "(cached) " >&6
20224else
7eda51e0 20225
babf7fe8
JF
20226 ac_check_framework_save_LIBS=$LIBS
20227 LIBS="-framework JavaScriptCore $LIBS"
20228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229/* end confdefs.h. */
7eda51e0 20230
babf7fe8 20231 #include <JavaScriptCore/JSBase.h>
7eda51e0 20232
babf7fe8
JF
20233int
20234main ()
20235{
7eda51e0 20236
babf7fe8 20237 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 20238
babf7fe8
JF
20239 ;
20240 return 0;
20241}
20242_ACEOF
20243if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 20244
babf7fe8 20245 ac_cv_framework_JavaScriptCore=yes
b66977f1 20246
b66977f1 20247else
babf7fe8
JF
20248 ac_cv_framework_JavaScriptCore=no
20249fi
20250rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252 LIBS=$ac_check_framework_save_LIBS
7eda51e0 20253
babf7fe8
JF
20254fi
20255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20256$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20257 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 20258
7eda51e0 20259
babf7fe8
JF
20260 for element in "-framework JavaScriptCore"; do
20261 haveit=
20262 for x in $LIBS; do
20263
20264 acl_save_prefix="$prefix"
20265 prefix="$acl_final_prefix"
20266 acl_save_exec_prefix="$exec_prefix"
20267 exec_prefix="$acl_final_exec_prefix"
20268 eval x=\"$x\"
20269 exec_prefix="$acl_save_exec_prefix"
20270 prefix="$acl_save_prefix"
20271
20272 if test "X$x" = "X$element"; then
20273 haveit=yes
20274 break
20275 fi
20276 done
20277 if test -z "$haveit"; then
20278 LIBS="${LIBS}${LIBS:+ }$element"
20279 fi
20280 done
20281
20282
20283 CY_EXECUTE=1
20284
20285
20286
20287else
20288
20289 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20290
20291pkg_failed=no
20292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20293$as_echo_n "checking for WEBKIT... " >&6; }
20294
20295if test -n "$WEBKIT_CFLAGS"; then
20296 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20297 elif test -n "$PKG_CONFIG"; then
20298 if test -n "$PKG_CONFIG" && \
20299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20300 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20301 ac_status=$?
20302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20303 test $ac_status = 0; }; then
20304 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20305 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20306else
20307 pkg_failed=yes
20308fi
20309 else
20310 pkg_failed=untried
20311fi
20312if test -n "$WEBKIT_LIBS"; then
20313 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20314 elif test -n "$PKG_CONFIG"; then
20315 if test -n "$PKG_CONFIG" && \
20316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20317 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320 test $ac_status = 0; }; then
20321 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20322 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20323else
20324 pkg_failed=yes
20325fi
20326 else
20327 pkg_failed=untried
20328fi
20329
20330
20331
20332if test $pkg_failed = yes; then
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20334$as_echo "no" >&6; }
20335
20336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20337 _pkg_short_errors_supported=yes
20338else
20339 _pkg_short_errors_supported=no
20340fi
20341 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20342 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 20343 else
83c6fec8 20344 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
20345 fi
20346 # Put the nasty error message in config.log where it belongs
20347 echo "$WEBKIT_PKG_ERRORS" >&5
20348
20349 :
20350elif test $pkg_failed = untried; then
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20352$as_echo "no" >&6; }
20353 :
20354else
20355 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20356 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20358$as_echo "yes" >&6; }
20359
20360 CY_EXECUTE=1
20361
20362
20363 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20364 haveit=
20365 for x in $CPPFLAGS; do
20366
20367 acl_save_prefix="$prefix"
20368 prefix="$acl_final_prefix"
20369 acl_save_exec_prefix="$exec_prefix"
20370 exec_prefix="$acl_final_exec_prefix"
20371 eval x=\"$x\"
20372 exec_prefix="$acl_save_exec_prefix"
20373 prefix="$acl_save_prefix"
20374
20375 if test "X$x" = "X$element"; then
20376 haveit=yes
20377 break
20378 fi
20379 done
20380 if test -z "$haveit"; then
20381 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20382 fi
20383 done
20384
20385
20386 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20387 haveit=
20388 for x in $LIBS; do
20389
20390 acl_save_prefix="$prefix"
20391 prefix="$acl_final_prefix"
20392 acl_save_exec_prefix="$exec_prefix"
20393 exec_prefix="$acl_final_exec_prefix"
20394 eval x=\"$x\"
20395 exec_prefix="$acl_save_exec_prefix"
20396 prefix="$acl_save_prefix"
20397
20398 if test "X$x" = "X$element"; then
20399 haveit=yes
20400 break
20401 fi
20402 done
20403 if test -z "$haveit"; then
20404 LIBS="${LIBS}${LIBS:+ }$element"
20405 fi
20406 done
20407
20408
20409fi; if test "x$CY_EXECUTE" = x1; then break; fi
20410 done
20411
20412fi
9918a0fa
JF
20413fi
20414
babf7fe8
JF
20415 LTJAVASCRIPTCORE=$LIBS
20416 LIBS=$cy_save
20417
20418
20419
20420fi
20421
20422
a93f15c0
JF
20423# Check whether --enable-console was given.
20424if test "${enable_console+set}" = set; then :
20425 enableval=$enable_console;
20426fi
20427
20428 if test "x$enable_console" != "xno"; then
20429 CY_CONSOLE_TRUE=
20430 CY_CONSOLE_FALSE='#'
20431else
20432 CY_CONSOLE_TRUE='#'
20433 CY_CONSOLE_FALSE=
20434fi
20435
20436
7eda51e0
JF
20437
20438
20439 if test "x$CY_EXECUTE" = x1; then
20440 CY_EXECUTE_TRUE=
20441 CY_EXECUTE_FALSE='#'
b66977f1 20442else
7eda51e0
JF
20443 CY_EXECUTE_TRUE='#'
20444 CY_EXECUTE_FALSE=
b66977f1
DWT
20445fi
20446
20447
20448
7eda51e0
JF
20449case $CY_EXECUTE in #(
20450 1) :
20451
20452 for ac_header in ffi.h ffi/ffi.h
20453do :
20454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20455ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20456if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20457 cat >>confdefs.h <<_ACEOF
20458#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459_ACEOF
20460 break
b66977f1 20461fi
7eda51e0
JF
20462
20463done
20464
296ee9a6
JF
20465
20466
20467 cy_save=$LIBS
20468 LIBS=
7eda51e0 20469 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 20470
b66977f1 20471
296ee9a6
JF
20472 LIBFFI_CFLAGS
20473 C compiler flags for LIBFFI, overriding pkg-config
20474 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
20475
20476pkg_failed=no
7eda51e0
JF
20477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20478$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20479
7eda51e0
JF
20480if test -n "$LIBFFI_CFLAGS"; then
20481 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20482 elif test -n "$PKG_CONFIG"; then
20483 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20485 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20486 ac_status=$?
20487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20488 test $ac_status = 0; }; then
7eda51e0 20489 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20490 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20491else
20492 pkg_failed=yes
20493fi
12833ad8
JF
20494 else
20495 pkg_failed=untried
b66977f1 20496fi
7eda51e0
JF
20497if test -n "$LIBFFI_LIBS"; then
20498 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20499 elif test -n "$PKG_CONFIG"; then
20500 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20502 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }; then
7eda51e0 20506 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20507 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20508else
20509 pkg_failed=yes
20510fi
12833ad8
JF
20511 else
20512 pkg_failed=untried
b66977f1
DWT
20513fi
20514
20515
20516
20517if test $pkg_failed = yes; then
12833ad8
JF
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20519$as_echo "no" >&6; }
b66977f1
DWT
20520
20521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20522 _pkg_short_errors_supported=yes
20523else
20524 _pkg_short_errors_supported=no
20525fi
20526 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20527 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20528 else
83c6fec8 20529 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20530 fi
20531 # Put the nasty error message in config.log where it belongs
7eda51e0 20532 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20533
7eda51e0
JF
20534 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20535elif test $pkg_failed = untried; then
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537$as_echo "no" >&6; }
20538 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20539else
20540 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20541 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543$as_echo "yes" >&6; }
b66977f1
DWT
20544
20545
7eda51e0 20546 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20547 haveit=
d70419f1 20548 for x in $CPPFLAGS; do
b66977f1
DWT
20549
20550 acl_save_prefix="$prefix"
20551 prefix="$acl_final_prefix"
20552 acl_save_exec_prefix="$exec_prefix"
20553 exec_prefix="$acl_final_exec_prefix"
20554 eval x=\"$x\"
20555 exec_prefix="$acl_save_exec_prefix"
20556 prefix="$acl_save_prefix"
20557
20558 if test "X$x" = "X$element"; then
20559 haveit=yes
20560 break
20561 fi
20562 done
20563 if test -z "$haveit"; then
d70419f1 20564 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
20565 fi
20566 done
20567
20568
7eda51e0 20569 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
20570 haveit=
20571 for x in $LIBS; do
20572
20573 acl_save_prefix="$prefix"
20574 prefix="$acl_final_prefix"
20575 acl_save_exec_prefix="$exec_prefix"
20576 exec_prefix="$acl_final_exec_prefix"
20577 eval x=\"$x\"
20578 exec_prefix="$acl_save_exec_prefix"
20579 prefix="$acl_save_prefix"
20580
20581 if test "X$x" = "X$element"; then
20582 haveit=yes
20583 break
20584 fi
20585 done
20586 if test -z "$haveit"; then
20587 LIBS="${LIBS}${LIBS:+ }$element"
20588 fi
20589 done
20590
20591
20592fi
20593
7eda51e0
JF
20594else
20595
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20597$as_echo_n "checking for library containing ffi_call... " >&6; }
20598if ${ac_cv_search_ffi_call+:} false; then :
20599 $as_echo_n "(cached) " >&6
20600else
20601 ac_func_search_save_LIBS=$LIBS
20602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603/* end confdefs.h. */
20604
20605/* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20608#ifdef __cplusplus
20609extern "C"
20610#endif
20611char ffi_call ();
20612int
20613main ()
20614{
20615return ffi_call ();
20616 ;
20617 return 0;
20618}
20619_ACEOF
20620for ac_lib in '' ffi; do
20621 if test -z "$ac_lib"; then
20622 ac_res="none required"
20623 else
20624 ac_res=-l$ac_lib
20625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20626 fi
20627 if ac_fn_cxx_try_link "$LINENO"; then :
20628 ac_cv_search_ffi_call=$ac_res
20629fi
20630rm -f core conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext
20632 if ${ac_cv_search_ffi_call+:} false; then :
20633 break
20634fi
20635done
20636if ${ac_cv_search_ffi_call+:} false; then :
20637
20638else
20639 ac_cv_search_ffi_call=no
20640fi
20641rm conftest.$ac_ext
20642LIBS=$ac_func_search_save_LIBS
20643fi
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20645$as_echo "$ac_cv_search_ffi_call" >&6; }
20646ac_res=$ac_cv_search_ffi_call
20647if test "$ac_res" != no; then :
20648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20649
20650fi
20651
20652 case $ac_cv_search_ffi_call in #(
20653 no) :
b66977f1
DWT
20654
20655
20656pkg_failed=no
7eda51e0
JF
20657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20658$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20659
7eda51e0
JF
20660if test -n "$LIBFFI_CFLAGS"; then
20661 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20662 elif test -n "$PKG_CONFIG"; then
20663 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20665 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20666 ac_status=$?
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; }; then
7eda51e0 20669 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20670 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20671else
20672 pkg_failed=yes
20673fi
12833ad8
JF
20674 else
20675 pkg_failed=untried
b66977f1 20676fi
7eda51e0
JF
20677if test -n "$LIBFFI_LIBS"; then
20678 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20679 elif test -n "$PKG_CONFIG"; then
20680 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20682 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20683 ac_status=$?
20684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685 test $ac_status = 0; }; then
7eda51e0 20686 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20687 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20688else
20689 pkg_failed=yes
20690fi
12833ad8
JF
20691 else
20692 pkg_failed=untried
b66977f1
DWT
20693fi
20694
20695
20696
20697if test $pkg_failed = yes; then
12833ad8
JF
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20699$as_echo "no" >&6; }
b66977f1
DWT
20700
20701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20702 _pkg_short_errors_supported=yes
20703else
20704 _pkg_short_errors_supported=no
20705fi
20706 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20707 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20708 else
83c6fec8 20709 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20710 fi
20711 # Put the nasty error message in config.log where it belongs
7eda51e0 20712 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20713
7eda51e0
JF
20714 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20715elif test $pkg_failed = untried; then
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717$as_echo "no" >&6; }
20718 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 20719else
7eda51e0
JF
20720 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20721 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723$as_echo "yes" >&6; }
b66977f1 20724
b66977f1 20725
7eda51e0 20726 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20727 haveit=
d70419f1 20728 for x in $CPPFLAGS; do
7eda51e0
JF
20729
20730 acl_save_prefix="$prefix"
20731 prefix="$acl_final_prefix"
20732 acl_save_exec_prefix="$exec_prefix"
20733 exec_prefix="$acl_final_exec_prefix"
20734 eval x=\"$x\"
20735 exec_prefix="$acl_save_exec_prefix"
20736 prefix="$acl_save_prefix"
20737
20738 if test "X$x" = "X$element"; then
20739 haveit=yes
20740 break
20741 fi
20742 done
20743 if test -z "$haveit"; then
d70419f1 20744 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
20745 fi
20746 done
20747
20748
7eda51e0
JF
20749 for element in `$PKG_CONFIG --libs libffi`; do
20750 haveit=
20751 for x in $LIBS; do
20752
20753 acl_save_prefix="$prefix"
20754 prefix="$acl_final_prefix"
20755 acl_save_exec_prefix="$exec_prefix"
20756 exec_prefix="$acl_final_exec_prefix"
20757 eval x=\"$x\"
20758 exec_prefix="$acl_save_exec_prefix"
20759 prefix="$acl_save_prefix"
20760
20761 if test "X$x" = "X$element"; then
20762 haveit=yes
20763 break
20764 fi
20765 done
20766 if test -z "$haveit"; then
20767 LIBS="${LIBS}${LIBS:+ }$element"
20768 fi
20769 done
20770
20771
20772fi ;; #(
20773 *) :
20774 ;;
20775esac
20776
20777fi
296ee9a6
JF
20778 LTLIBFFI=$LIBS
20779 LIBS=$cy_save
20780
20781
7eda51e0 20782
39ed1631
JF
20783 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20784if test "x$ac_cv_header_jni_h" = xyes; then :
20785
20786 CY_JAVA=1
20787
20788
20789 cy_save=$LIBS
20790 LIBS=
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20792$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20793if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20794 $as_echo_n "(cached) " >&6
20795else
20796 ac_func_search_save_LIBS=$LIBS
20797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799
20800/* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803#ifdef __cplusplus
20804extern "C"
20805#endif
20806char JNI_GetCreatedJavaVMs ();
20807int
20808main ()
20809{
20810return JNI_GetCreatedJavaVMs ();
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815for ac_lib in '' dvm; do
20816 if test -z "$ac_lib"; then
20817 ac_res="none required"
20818 else
20819 ac_res=-l$ac_lib
20820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20821 fi
20822 if ac_fn_cxx_try_link "$LINENO"; then :
20823 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20824fi
20825rm -f core conftest.err conftest.$ac_objext \
20826 conftest$ac_exeext
20827 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20828 break
20829fi
20830done
20831if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20832
20833else
20834 ac_cv_search_JNI_GetCreatedJavaVMs=no
20835fi
20836rm conftest.$ac_ext
20837LIBS=$ac_func_search_save_LIBS
20838fi
20839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20840$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20841ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20842if test "$ac_res" != no; then :
20843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20844
20845
20846fi
20847
20848 LTJAVA=$LIBS
20849 LIBS=$cy_save
20850
20851
20852
20853else
20854
20855 CY_JAVA=0
20856
20857
20858fi
20859
20860
20861
7eda51e0
JF
20862 ac_ext=mm
20863ac_cpp='$OBJCXXCPP $CPPFLAGS'
20864ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20867
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20870$as_echo_n "checking if we really have Objective C++... " >&6; }
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872/* end confdefs.h. */
20873
20874_ACEOF
20875if ac_fn_objcxx_try_compile "$LINENO"; then :
20876
20877 CY_OBJECTIVEC=1
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20879$as_echo "yes" >&6; }
20880
20881else
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 20883$as_echo "no" >&6; }
7eda51e0
JF
20884fi
20885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 20886
7eda51e0 20887 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 20888
7eda51e0 20889
babf7fe8
JF
20890 cy_save=$LIBS
20891 LIBS=
20892
7eda51e0
JF
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20894$as_echo_n "checking for framework CoreFoundation... " >&6; }
20895if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
20896 $as_echo_n "(cached) " >&6
20897else
20898
20899 ac_check_framework_save_LIBS=$LIBS
7eda51e0 20900 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
20901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902/* end confdefs.h. */
20903
7eda51e0 20904 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
20905
20906int
20907main ()
20908{
7eda51e0 20909CFAllocatorGetDefault();
b66977f1
DWT
20910 ;
20911 return 0;
20912}
20913_ACEOF
7eda51e0 20914if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20915
7eda51e0 20916 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
20917
20918else
7eda51e0 20919 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
20920fi
20921rm -f core conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_check_framework_save_LIBS
20924
20925fi
7eda51e0
JF
20926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20927$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20928 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
20929
20930
7eda51e0 20931 for element in "-framework CoreFoundation"; do
b66977f1
DWT
20932 haveit=
20933 for x in $LIBS; do
20934
20935 acl_save_prefix="$prefix"
20936 prefix="$acl_final_prefix"
20937 acl_save_exec_prefix="$exec_prefix"
20938 exec_prefix="$acl_final_exec_prefix"
20939 eval x=\"$x\"
20940 exec_prefix="$acl_save_exec_prefix"
20941 prefix="$acl_save_prefix"
20942
20943 if test "X$x" = "X$element"; then
20944 haveit=yes
20945 break
20946 fi
20947 done
20948 if test -z "$haveit"; then
20949 LIBS="${LIBS}${LIBS:+ }$element"
20950 fi
20951 done
20952
66170b30 20953
66170b30
JF
20954
20955
b66977f1 20956
b66977f1 20957
7eda51e0
JF
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20959$as_echo_n "checking for framework Foundation... " >&6; }
20960if ${ac_cv_framework_Foundation+:} false; then :
20961 $as_echo_n "(cached) " >&6
b66977f1 20962else
b66977f1 20963
7eda51e0
JF
20964 ac_check_framework_save_LIBS=$LIBS
20965 LIBS="-framework Foundation $LIBS"
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967/* end confdefs.h. */
66170b30 20968
7eda51e0 20969 #include <Foundation/NSObject.h>
b66977f1 20970
7eda51e0
JF
20971int
20972main ()
20973{
20974[[NSObject alloc] init];
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20980
7eda51e0 20981 ac_cv_framework_Foundation=yes
b66977f1 20982
7eda51e0
JF
20983else
20984 ac_cv_framework_Foundation=no
20985fi
20986rm -f core conftest.err conftest.$ac_objext \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_framework_save_LIBS
20989
20990fi
20991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
20992$as_echo "$ac_cv_framework_Foundation" >&6; }
20993 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
20994
20995
7eda51e0 20996 for element in "-framework Foundation"; do
b66977f1
DWT
20997 haveit=
20998 for x in $LIBS; do
20999
21000 acl_save_prefix="$prefix"
21001 prefix="$acl_final_prefix"
21002 acl_save_exec_prefix="$exec_prefix"
21003 exec_prefix="$acl_final_exec_prefix"
21004 eval x=\"$x\"
21005 exec_prefix="$acl_save_exec_prefix"
21006 prefix="$acl_save_prefix"
21007
21008 if test "X$x" = "X$element"; then
21009 haveit=yes
21010 break
21011 fi
21012 done
21013 if test -z "$haveit"; then
21014 LIBS="${LIBS}${LIBS:+ }$element"
21015 fi
21016 done
21017
7eda51e0
JF
21018 cat >>confdefs.h <<_ACEOF
21019#define HAVE_FRAMEWORK_FOUNDATION 1
21020_ACEOF
21021
b66977f1 21022
7eda51e0 21023fi
b66977f1
DWT
21024
21025
7eda51e0 21026else
b66977f1 21027
b66977f1 21028
7eda51e0
JF
21029 for ac_prog in gnustep-config
21030do
21031 # Extract the first word of "$ac_prog", so it can be a program name with args.
21032set dummy $ac_prog; ac_word=$2
21033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21034$as_echo_n "checking for $ac_word... " >&6; }
21035if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21036 $as_echo_n "(cached) " >&6
b66977f1 21037else
7eda51e0
JF
21038 if test -n "$GNUSTEP_CONFIG"; then
21039 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 21040else
7eda51e0
JF
21041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042for as_dir in $PATH
21043do
21044 IFS=$as_save_IFS
21045 test -z "$as_dir" && as_dir=.
21046 for ac_exec_ext in '' $ac_executable_extensions; do
21047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21048 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21050 break 2
21051 fi
21052done
21053 done
21054IFS=$as_save_IFS
b66977f1 21055
b66977f1 21056fi
b66977f1 21057fi
7eda51e0
JF
21058GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21059if test -n "$GNUSTEP_CONFIG"; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21061$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 21062else
7eda51e0 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 21064$as_echo "no" >&6; }
b66977f1 21065fi
66170b30 21066
66170b30 21067
7eda51e0
JF
21068 test -n "$GNUSTEP_CONFIG" && break
21069done
b66977f1 21070
b66977f1 21071
7eda51e0 21072 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 21073
b66977f1
DWT
21074
21075
7eda51e0 21076 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 21077 haveit=
7eda51e0 21078 for x in $OBJCXXFLAGS; do
b66977f1
DWT
21079
21080 acl_save_prefix="$prefix"
21081 prefix="$acl_final_prefix"
21082 acl_save_exec_prefix="$exec_prefix"
21083 exec_prefix="$acl_final_exec_prefix"
21084 eval x=\"$x\"
21085 exec_prefix="$acl_save_exec_prefix"
21086 prefix="$acl_save_prefix"
21087
21088 if test "X$x" = "X$element"; then
21089 haveit=yes
21090 break
21091 fi
21092 done
babf7fe8
JF
21093 if test -z "$haveit"; then
21094 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21095 fi
21096 done
a667869d 21097
a667869d 21098
babf7fe8 21099 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 21100 haveit=
babf7fe8 21101 for x in $LIBS; do
a667869d 21102
632b71ea
DWT
21103 acl_save_prefix="$prefix"
21104 prefix="$acl_final_prefix"
21105 acl_save_exec_prefix="$exec_prefix"
21106 exec_prefix="$acl_final_exec_prefix"
21107 eval x=\"$x\"
21108 exec_prefix="$acl_save_exec_prefix"
21109 prefix="$acl_save_prefix"
21110
21111 if test "X$x" = "X$element"; then
21112 haveit=yes
21113 break
21114 fi
21115 done
21116 if test -z "$haveit"; then
babf7fe8 21117 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21118 fi
21119 done
21120
5053a6d1 21121
babf7fe8
JF
21122else
21123 CY_OBJECTIVEC=0
21124
21125fi
21126
21127fi
21128 LTOBJECTIVEC=$LIBS
21129 LIBS=$cy_save
21130
21131
21132
21133fi
21134
21135 ac_ext=cpp
21136ac_cpp='$CXXCPP $CPPFLAGS'
21137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21140
21141 ;; #(
21142 *) :
21143 ;;
21144esac
21145
39ed1631
JF
21146 if test "x$CY_JAVA" = x1; then
21147 CY_JAVA_TRUE=
21148 CY_JAVA_FALSE='#'
21149else
21150 CY_JAVA_TRUE='#'
21151 CY_JAVA_FALSE=
21152fi
21153
babf7fe8
JF
21154 if test "x$CY_OBJECTIVEC" = x1; then
21155 CY_OBJECTIVEC_TRUE=
21156 CY_OBJECTIVEC_FALSE='#'
21157else
21158 CY_OBJECTIVEC_TRUE='#'
21159 CY_OBJECTIVEC_FALSE=
21160fi
21161
21162
21163
21164 cy_save=$LIBS
21165 LIBS=
21166
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21168$as_echo_n "checking for a readline compatible library... " >&6; }
21169if ${ax_cv_lib_readline+:} false; then :
5053a6d1 21170 $as_echo_n "(cached) " >&6
a667869d 21171else
632b71ea 21172
babf7fe8
JF
21173 ORIG_LIBS="$LIBS"
21174 for readline_lib in readline edit editline; do
21175 for termcap_lib in "" termcap curses ncurses; do
21176 if test -z "$termcap_lib"; then
21177 TRY_LIB="-l$readline_lib"
21178 else
21179 TRY_LIB="-l$readline_lib -l$termcap_lib"
21180 fi
21181 LIBS="$ORIG_LIBS $TRY_LIB"
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 21183/* end confdefs.h. */
632b71ea 21184
babf7fe8
JF
21185/* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21188#ifdef __cplusplus
21189extern "C"
21190#endif
21191char readline ();
5053a6d1
DWT
21192int
21193main ()
21194{
babf7fe8 21195return readline ();
5053a6d1
DWT
21196 ;
21197 return 0;
21198}
21199_ACEOF
babf7fe8
JF
21200if ac_fn_cxx_try_link "$LINENO"; then :
21201 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
21202fi
21203rm -f core conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
21205 if test -n "$ax_cv_lib_readline"; then
21206 break
21207 fi
21208 done
21209 if test -n "$ax_cv_lib_readline"; then
21210 break
21211 fi
21212 done
21213 if test -z "$ax_cv_lib_readline"; then
21214 ax_cv_lib_readline="no"
21215 fi
21216 LIBS="$ORIG_LIBS"
21217
21218fi
21219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21220$as_echo "$ax_cv_lib_readline" >&6; }
21221
21222 if test "$ax_cv_lib_readline" != "no"; then
21223 LIBS="$LIBS $ax_cv_lib_readline"
21224
21225$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21226
21227 for ac_header in readline.h readline/readline.h
21228do :
21229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21230ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21232 cat >>confdefs.h <<_ACEOF
21233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21234_ACEOF
21235
21236fi
21237
21238done
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21241$as_echo_n "checking whether readline supports history... " >&6; }
21242if ${ax_cv_lib_readline_history+:} false; then :
21243 $as_echo_n "(cached) " >&6
21244else
21245
21246 ax_cv_lib_readline_history="no"
7eda51e0
JF
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248/* end confdefs.h. */
5053a6d1 21249
babf7fe8
JF
21250/* Override any GCC internal prototype to avoid an error.
21251 Use char because int might match the return type of a GCC
21252 builtin and then its argument prototype would still apply. */
21253#ifdef __cplusplus
21254extern "C"
21255#endif
21256char add_history ();
058f1bc8
DWT
21257int
21258main ()
21259{
babf7fe8 21260return add_history ();
058f1bc8
DWT
21261 ;
21262 return 0;
21263}
21264_ACEOF
babf7fe8
JF
21265if ac_fn_cxx_try_link "$LINENO"; then :
21266 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
21267fi
21268rm -f core conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext conftest.$ac_ext
a667869d 21270
a667869d 21271fi
babf7fe8
JF
21272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21273$as_echo "$ax_cv_lib_readline_history" >&6; }
21274 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 21275
babf7fe8 21276$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 21277
babf7fe8
JF
21278 for ac_header in history.h readline/history.h
21279do :
21280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21281ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21282if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21283 cat >>confdefs.h <<_ACEOF
21284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 21285_ACEOF
babf7fe8 21286
7eda51e0 21287fi
058f1bc8 21288
babf7fe8 21289done
058f1bc8 21290
babf7fe8 21291 fi
7eda51e0 21292 fi
058f1bc8 21293
babf7fe8
JF
21294 LTLIBREADLINE=$LIBS
21295 LIBS=$cy_save
058f1bc8 21296
058f1bc8 21297
babf7fe8
JF
21298case $ax_cv_lib_readline in #(
21299 no) :
21300 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21301 *) :
21302 ;;
21303esac
058f1bc8
DWT
21304
21305
babf7fe8
JF
21306 cy_save=$LIBS
21307 LIBS=
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21309$as_echo_n "checking for library containing cur_term... " >&6; }
21310if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
21311 $as_echo_n "(cached) " >&6
21312else
babf7fe8
JF
21313 ac_func_search_save_LIBS=$LIBS
21314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
21315/* end confdefs.h. */
21316
babf7fe8
JF
21317/* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
7eda51e0 21320#ifdef __cplusplus
babf7fe8 21321extern "C"
7eda51e0 21322#endif
babf7fe8 21323char cur_term ();
7eda51e0
JF
21324int
21325main ()
21326{
babf7fe8 21327return cur_term ();
7eda51e0
JF
21328 ;
21329 return 0;
21330}
21331_ACEOF
a93f15c0 21332for ac_lib in '' termcap ncurses; do
babf7fe8
JF
21333 if test -z "$ac_lib"; then
21334 ac_res="none required"
21335 else
21336 ac_res=-l$ac_lib
21337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21338 fi
21339 if ac_fn_cxx_try_link "$LINENO"; then :
21340 ac_cv_search_cur_term=$ac_res
7eda51e0 21341fi
babf7fe8
JF
21342rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext
21344 if ${ac_cv_search_cur_term+:} false; then :
21345 break
7eda51e0 21346fi
babf7fe8
JF
21347done
21348if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 21349
babf7fe8
JF
21350else
21351 ac_cv_search_cur_term=no
21352fi
21353rm conftest.$ac_ext
21354LIBS=$ac_func_search_save_LIBS
21355fi
21356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21357$as_echo "$ac_cv_search_cur_term" >&6; }
21358ac_res=$ac_cv_search_cur_term
21359if test "$ac_res" != no; then :
21360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 21361
babf7fe8 21362fi
058f1bc8 21363
babf7fe8
JF
21364 LTLIBTERMCAP=$LIBS
21365 LIBS=$cy_save
058f1bc8 21366
058f1bc8 21367
66170b30
JF
21368
21369
3615a2f7
JF
21370
21371
9777bd50
JF
21372SO=$acl_shlibext
21373
e1cce270 21374
7eda51e0
JF
21375if test "x$CY_EXECUTE" = x1; then :
21376
21377 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 21378if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 21379
7eda51e0 21380 if test -n "$ac_tool_prefix"; then
a243b558 21381 for ac_prog in lipo
794e88e7
DWT
21382 do
21383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21386$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21387if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
21388 $as_echo_n "(cached) " >&6
21389else
a243b558
JF
21390 if test -n "$_LIPO"; then
21391 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
21392else
21393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394for as_dir in $PATH
21395do
21396 IFS=$as_save_IFS
21397 test -z "$as_dir" && as_dir=.
21398 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21400 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21402 break 2
21403 fi
21404done
21405 done
21406IFS=$as_save_IFS
21407
21408fi
21409fi
a243b558
JF
21410_LIPO=$ac_cv_prog__LIPO
21411if test -n "$_LIPO"; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21413$as_echo "$_LIPO" >&6; }
794e88e7
DWT
21414else
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416$as_echo "no" >&6; }
21417fi
21418
21419
a243b558 21420 test -n "$_LIPO" && break
794e88e7
DWT
21421 done
21422fi
a243b558
JF
21423if test -z "$_LIPO"; then
21424 ac_ct__LIPO=$_LIPO
21425 for ac_prog in lipo
794e88e7
DWT
21426do
21427 # Extract the first word of "$ac_prog", so it can be a program name with args.
21428set dummy $ac_prog; ac_word=$2
21429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21430$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21431if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
21432 $as_echo_n "(cached) " >&6
21433else
a243b558
JF
21434 if test -n "$ac_ct__LIPO"; then
21435 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
21436else
21437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21438for as_dir in $PATH
21439do
21440 IFS=$as_save_IFS
21441 test -z "$as_dir" && as_dir=.
21442 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21444 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21446 break 2
21447 fi
21448done
21449 done
21450IFS=$as_save_IFS
21451
21452fi
21453fi
a243b558
JF
21454ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21455if test -n "$ac_ct__LIPO"; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21457$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
21458else
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21460$as_echo "no" >&6; }
21461fi
21462
21463
a243b558 21464 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
21465done
21466
a243b558
JF
21467 if test "x$ac_ct__LIPO" = x; then
21468 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
21469 else
21470 case $cross_compiling:$ac_tool_warned in
21471yes:)
21472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21474ac_tool_warned=yes ;;
e1cce270 21475esac
a243b558 21476 _LIPO=$ac_ct__LIPO
794e88e7
DWT
21477 fi
21478fi
21479
7eda51e0 21480 if test -n "$ac_tool_prefix"; then
a243b558 21481 for ac_prog in nm
794e88e7
DWT
21482 do
21483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21487if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
21488 $as_echo_n "(cached) " >&6
21489else
a243b558
JF
21490 if test -n "$_NM"; then
21491 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
21492else
21493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494for as_dir in $PATH
21495do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21500 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504done
21505 done
21506IFS=$as_save_IFS
21507
21508fi
21509fi
a243b558
JF
21510_NM=$ac_cv_prog__NM
21511if test -n "$_NM"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21513$as_echo "$_NM" >&6; }
794e88e7
DWT
21514else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516$as_echo "no" >&6; }
21517fi
21518
21519
a243b558 21520 test -n "$_NM" && break
794e88e7
DWT
21521 done
21522fi
a243b558
JF
21523if test -z "$_NM"; then
21524 ac_ct__NM=$_NM
21525 for ac_prog in nm
794e88e7
DWT
21526do
21527 # Extract the first word of "$ac_prog", so it can be a program name with args.
21528set dummy $ac_prog; ac_word=$2
21529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21530$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21531if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
21532 $as_echo_n "(cached) " >&6
21533else
a243b558
JF
21534 if test -n "$ac_ct__NM"; then
21535 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
21536else
21537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538for as_dir in $PATH
21539do
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21544 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546 break 2
21547 fi
21548done
21549 done
21550IFS=$as_save_IFS
21551
21552fi
21553fi
a243b558
JF
21554ac_ct__NM=$ac_cv_prog_ac_ct__NM
21555if test -n "$ac_ct__NM"; then
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21557$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
21558else
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560$as_echo "no" >&6; }
21561fi
21562
21563
a243b558 21564 test -n "$ac_ct__NM" && break
794e88e7
DWT
21565done
21566
a243b558
JF
21567 if test "x$ac_ct__NM" = x; then
21568 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
21569 else
21570 case $cross_compiling:$ac_tool_warned in
21571yes:)
21572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21574ac_tool_warned=yes ;;
21575esac
a243b558 21576 _NM=$ac_ct__NM
794e88e7
DWT
21577 fi
21578fi
21579
7eda51e0 21580 if test -n "$ac_tool_prefix"; then
a243b558 21581 for ac_prog in otool
794e88e7
DWT
21582 do
21583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21586$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21587if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
21588 $as_echo_n "(cached) " >&6
21589else
a243b558
JF
21590 if test -n "$_OTOOL"; then
21591 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
21592else
21593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21594for as_dir in $PATH
21595do
21596 IFS=$as_save_IFS
21597 test -z "$as_dir" && as_dir=.
21598 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21600 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21602 break 2
21603 fi
21604done
21605 done
21606IFS=$as_save_IFS
21607
21608fi
21609fi
a243b558
JF
21610_OTOOL=$ac_cv_prog__OTOOL
21611if test -n "$_OTOOL"; then
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21613$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
21614else
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21616$as_echo "no" >&6; }
21617fi
21618
21619
a243b558 21620 test -n "$_OTOOL" && break
794e88e7
DWT
21621 done
21622fi
a243b558
JF
21623if test -z "$_OTOOL"; then
21624 ac_ct__OTOOL=$_OTOOL
21625 for ac_prog in otool
794e88e7
DWT
21626do
21627 # Extract the first word of "$ac_prog", so it can be a program name with args.
21628set dummy $ac_prog; ac_word=$2
21629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21631if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
21632 $as_echo_n "(cached) " >&6
21633else
a243b558
JF
21634 if test -n "$ac_ct__OTOOL"; then
21635 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
21636else
21637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638for as_dir in $PATH
21639do
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21644 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21647 fi
21648done
21649 done
21650IFS=$as_save_IFS
21651
21652fi
21653fi
a243b558
JF
21654ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21655if test -n "$ac_ct__OTOOL"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21657$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
21658else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660$as_echo "no" >&6; }
21661fi
21662
21663
a243b558 21664 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
21665done
21666
a243b558
JF
21667 if test "x$ac_ct__OTOOL" = x; then
21668 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
21669 else
21670 case $cross_compiling:$ac_tool_warned in
21671yes:)
21672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21674ac_tool_warned=yes ;;
21675esac
a243b558 21676 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
21677 fi
21678fi
21679
7eda51e0 21680 CY_ATTACH_GROUP=procmod
794e88e7 21681
7eda51e0 21682 CY_MACH=1
e1cce270
DWT
21683
21684fi
21685
21686
7eda51e0 21687fi
a243b558
JF
21688 if test "x$CY_MACH" = x1; then
21689 CY_MACH_TRUE=
21690 CY_MACH_FALSE='#'
21691else
21692 CY_MACH_TRUE='#'
21693 CY_MACH_FALSE=
47aaa820 21694fi
9c60689e 21695
66170b30 21696
a243b558
JF
21697ac_config_files="$ac_config_files Makefile"
21698
9c60689e
DWT
21699cat >confcache <<\_ACEOF
21700# This file is a shell script that caches the results of configure
21701# tests run on this system so they can be shared between configure
21702# scripts and configure runs, see configure's option --config-cache.
21703# It is not useful on other systems. If it contains results you don't
21704# want to keep, you may remove or edit it.
21705#
21706# config.status only pays attention to the cache file if you give it
21707# the --recheck option to rerun configure.
21708#
21709# `ac_cv_env_foo' variables (set or unset) will be overridden when
21710# loading this file, other *unset* `ac_cv_foo' will be assigned the
21711# following values.
21712
21713_ACEOF
21714
21715# The following way of writing the cache mishandles newlines in values,
21716# but we know of no workaround that is simple, portable, and efficient.
21717# So, we kill variables containing newlines.
21718# Ultrix sh set writes to stderr and can't be redirected directly,
21719# and sets the high bit in the cache file unless we assign to the vars.
21720(
21721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21722 eval ac_val=\$$ac_var
21723 case $ac_val in #(
21724 *${as_nl}*)
21725 case $ac_var in #(
21726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21727$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21728 esac
21729 case $ac_var in #(
21730 _ | IFS | as_nl) ;; #(
21731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21732 *) { eval $ac_var=; unset $ac_var;} ;;
21733 esac ;;
21734 esac
21735 done
21736
21737 (set) 2>&1 |
21738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21739 *${as_nl}ac_space=\ *)
21740 # `set' does not quote correctly, so add quotes: double-quote
21741 # substitution turns \\\\ into \\, and sed turns \\ into \.
21742 sed -n \
21743 "s/'/'\\\\''/g;
21744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21745 ;; #(
21746 *)
21747 # `set' quotes correctly as required by POSIX, so do not add quotes.
21748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21749 ;;
21750 esac |
21751 sort
21752) |
21753 sed '
21754 /^ac_cv_env_/b end
21755 t clear
21756 :clear
21757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21758 t end
21759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21760 :end' >>confcache
21761if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21762 if test -w "$cache_file"; then
ee134472 21763 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21765$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
21766 if test ! -f "$cache_file" || test -h "$cache_file"; then
21767 cat confcache >"$cache_file"
21768 else
21769 case $cache_file in #(
21770 */* | ?:*)
21771 mv -f confcache "$cache_file"$$ &&
21772 mv -f "$cache_file"$$ "$cache_file" ;; #(
21773 *)
21774 mv -f confcache "$cache_file" ;;
21775 esac
21776 fi
21777 fi
9c60689e
DWT
21778 else
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21780$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21781 fi
21782fi
21783rm -f confcache
21784
21785test "x$prefix" = xNONE && prefix=$ac_default_prefix
21786# Let make expand exec_prefix.
21787test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21788
296ee9a6 21789DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
21790
21791ac_libobjs=
21792ac_ltlibobjs=
12833ad8 21793U=
9c60689e
DWT
21794for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21795 # 1. Remove the extension, and $U if already installed.
21796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21797 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21799 # will be set to the directory where LIBOBJS objects are built.
21800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21802done
21803LIBOBJS=$ac_libobjs
21804
21805LTLIBOBJS=$ac_ltlibobjs
21806
21807
66170b30
JF
21808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21809$as_echo_n "checking that generated files are newer than configure... " >&6; }
21810 if test -n "$am_sleep_pid"; then
21811 # Hide warnings about reused PIDs.
21812 wait $am_sleep_pid 2>/dev/null
21813 fi
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21815$as_echo "done" >&6; }
21816 if test -n "$EXEEXT"; then
21817 am__EXEEXT_TRUE=
21818 am__EXEEXT_FALSE='#'
21819else
21820 am__EXEEXT_TRUE='#'
21821 am__EXEEXT_FALSE=
21822fi
21823
babf7fe8
JF
21824if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21826Usually this means the macro was only invoked conditionally." "$LINENO" 5
21827fi
66170b30
JF
21828if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21829 as_fn_error $? "conditional \"AMDEP\" was never defined.
21830Usually this means the macro was only invoked conditionally." "$LINENO" 5
21831fi
a93f15c0
JF
21832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21834Usually this means the macro was only invoked conditionally." "$LINENO" 5
21835fi
66170b30
JF
21836if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21837 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21838Usually this means the macro was only invoked conditionally." "$LINENO" 5
21839fi
21840if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21841 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21842Usually this means the macro was only invoked conditionally." "$LINENO" 5
21843fi
a93f15c0
JF
21844if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21845 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
21846Usually this means the macro was only invoked conditionally." "$LINENO" 5
21847fi
a243b558
JF
21848if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21849 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21850Usually this means the macro was only invoked conditionally." "$LINENO" 5
21851fi
39ed1631
JF
21852if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21853 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21854Usually this means the macro was only invoked conditionally." "$LINENO" 5
21855fi
a243b558
JF
21856if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21857 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21858Usually this means the macro was only invoked conditionally." "$LINENO" 5
21859fi
21860if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21861 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21862Usually this means the macro was only invoked conditionally." "$LINENO" 5
21863fi
9c60689e 21864
ee134472 21865: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
21866ac_write_fail=0
21867ac_clean_files_save=$ac_clean_files
21868ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21869{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21870$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21871as_write_fail=0
21872cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21873#! $SHELL
21874# Generated by $as_me.
21875# Run this file to recreate the current configuration.
21876# Compiler output produced by configure, useful for debugging
21877# configure, is in config.log if it exists.
21878
21879debug=false
21880ac_cs_recheck=false
21881ac_cs_silent=false
21882
21883SHELL=\${CONFIG_SHELL-$SHELL}
21884export SHELL
21885_ASEOF
21886cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21887## -------------------- ##
21888## M4sh Initialization. ##
21889## -------------------- ##
21890
21891# Be more Bourne compatible
21892DUALCASE=1; export DUALCASE # for MKS sh
21893if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21894 emulate sh
21895 NULLCMD=:
21896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21897 # is contrary to our usage. Disable this feature.
21898 alias -g '${1+"$@"}'='"$@"'
21899 setopt NO_GLOB_SUBST
21900else
21901 case `(set -o) 2>/dev/null` in #(
21902 *posix*) :
21903 set -o posix ;; #(
21904 *) :
21905 ;;
21906esac
21907fi
21908
21909
21910as_nl='
21911'
21912export as_nl
21913# Printing a long string crashes Solaris 7 /usr/bin/printf.
21914as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21915as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21916as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21917# Prefer a ksh shell builtin over an external printf program on Solaris,
21918# but without wasting forks for bash or zsh.
21919if test -z "$BASH_VERSION$ZSH_VERSION" \
21920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21921 as_echo='print -r --'
21922 as_echo_n='print -rn --'
21923elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21924 as_echo='printf %s\n'
21925 as_echo_n='printf %s'
21926else
21927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21929 as_echo_n='/usr/ucb/echo -n'
21930 else
21931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21932 as_echo_n_body='eval
21933 arg=$1;
21934 case $arg in #(
21935 *"$as_nl"*)
21936 expr "X$arg" : "X\\(.*\\)$as_nl";
21937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21938 esac;
21939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21940 '
21941 export as_echo_n_body
21942 as_echo_n='sh -c $as_echo_n_body as_echo'
21943 fi
21944 export as_echo_body
21945 as_echo='sh -c $as_echo_body as_echo'
21946fi
21947
21948# The user is always right.
21949if test "${PATH_SEPARATOR+set}" != set; then
21950 PATH_SEPARATOR=:
21951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21953 PATH_SEPARATOR=';'
21954 }
21955fi
21956
21957
21958# IFS
21959# We need space, tab and new line, in precisely that order. Quoting is
21960# there to prevent editors from complaining about space-tab.
21961# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21962# splitting by setting IFS to empty value.)
21963IFS=" "" $as_nl"
21964
21965# Find who we are. Look in the path if we contain no directory separator.
ee134472 21966as_myself=
9c60689e
DWT
21967case $0 in #((
21968 *[\\/]* ) as_myself=$0 ;;
21969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21970for as_dir in $PATH
21971do
21972 IFS=$as_save_IFS
21973 test -z "$as_dir" && as_dir=.
21974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21975 done
21976IFS=$as_save_IFS
21977
21978 ;;
21979esac
21980# We did not find ourselves, most probably we were run as `sh COMMAND'
21981# in which case we are not to be found in the path.
21982if test "x$as_myself" = x; then
21983 as_myself=$0
21984fi
21985if test ! -f "$as_myself"; then
21986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21987 exit 1
21988fi
21989
21990# Unset variables that we do not need and which cause bugs (e.g. in
21991# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21992# suppresses any "Segmentation fault" message there. '((' could
21993# trigger a bug in pdksh 5.2.14.
21994for as_var in BASH_ENV ENV MAIL MAILPATH
21995do eval test x\${$as_var+set} = xset \
21996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21997done
21998PS1='$ '
21999PS2='> '
22000PS4='+ '
22001
22002# NLS nuisances.
22003LC_ALL=C
22004export LC_ALL
22005LANGUAGE=C
22006export LANGUAGE
22007
22008# CDPATH.
22009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22010
22011
12833ad8
JF
22012# as_fn_error STATUS ERROR [LINENO LOG_FD]
22013# ----------------------------------------
9c60689e
DWT
22014# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22015# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 22016# script with STATUS, using 1 if that was 0.
9c60689e
DWT
22017as_fn_error ()
22018{
12833ad8
JF
22019 as_status=$1; test $as_status -eq 0 && as_status=1
22020 if test "$4"; then
22021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 22023 fi
12833ad8 22024 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
22025 as_fn_exit $as_status
22026} # as_fn_error
22027
22028
22029# as_fn_set_status STATUS
22030# -----------------------
22031# Set $? to STATUS, without forking.
22032as_fn_set_status ()
22033{
22034 return $1
22035} # as_fn_set_status
22036
22037# as_fn_exit STATUS
22038# -----------------
22039# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22040as_fn_exit ()
22041{
22042 set +e
22043 as_fn_set_status $1
22044 exit $1
22045} # as_fn_exit
22046
22047# as_fn_unset VAR
22048# ---------------
22049# Portably unset VAR.
22050as_fn_unset ()
22051{
22052 { eval $1=; unset $1;}
22053}
22054as_unset=as_fn_unset
22055# as_fn_append VAR VALUE
22056# ----------------------
22057# Append the text in VALUE to the end of the definition contained in VAR. Take
22058# advantage of any shell optimizations that allow amortized linear growth over
22059# repeated appends, instead of the typical quadratic growth present in naive
22060# implementations.
22061if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22062 eval 'as_fn_append ()
22063 {
22064 eval $1+=\$2
22065 }'
22066else
22067 as_fn_append ()
22068 {
22069 eval $1=\$$1\$2
22070 }
22071fi # as_fn_append
22072
22073# as_fn_arith ARG...
22074# ------------------
22075# Perform arithmetic evaluation on the ARGs, and store the result in the
22076# global $as_val. Take advantage of shells that can avoid forks. The arguments
22077# must be portable across $(()) and expr.
22078if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22079 eval 'as_fn_arith ()
22080 {
22081 as_val=$(( $* ))
22082 }'
22083else
22084 as_fn_arith ()
22085 {
22086 as_val=`expr "$@" || test $? -eq 1`
22087 }
22088fi # as_fn_arith
22089
22090
22091if expr a : '\(a\)' >/dev/null 2>&1 &&
22092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22093 as_expr=expr
22094else
22095 as_expr=false
22096fi
22097
22098if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22099 as_basename=basename
22100else
22101 as_basename=false
22102fi
22103
22104if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22105 as_dirname=dirname
22106else
22107 as_dirname=false
22108fi
22109
22110as_me=`$as_basename -- "$0" ||
22111$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22112 X"$0" : 'X\(//\)$' \| \
22113 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22114$as_echo X/"$0" |
22115 sed '/^.*\/\([^/][^/]*\)\/*$/{
22116 s//\1/
22117 q
22118 }
22119 /^X\/\(\/\/\)$/{
22120 s//\1/
22121 q
22122 }
22123 /^X\/\(\/\).*/{
22124 s//\1/
22125 q
22126 }
22127 s/.*/./; q'`
22128
22129# Avoid depending upon Character Ranges.
22130as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22131as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22132as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22133as_cr_digits='0123456789'
22134as_cr_alnum=$as_cr_Letters$as_cr_digits
22135
22136ECHO_C= ECHO_N= ECHO_T=
22137case `echo -n x` in #(((((
22138-n*)
22139 case `echo 'xy\c'` in
22140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22141 xy) ECHO_C='\c';;
22142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22143 ECHO_T=' ';;
22144 esac;;
22145*)
22146 ECHO_N='-n';;
22147esac
22148
22149rm -f conf$$ conf$$.exe conf$$.file
22150if test -d conf$$.dir; then
22151 rm -f conf$$.dir/conf$$.file
22152else
22153 rm -f conf$$.dir
22154 mkdir conf$$.dir 2>/dev/null
22155fi
22156if (echo >conf$$.file) 2>/dev/null; then
22157 if ln -s conf$$.file conf$$ 2>/dev/null; then
22158 as_ln_s='ln -s'
22159 # ... but there are two gotchas:
22160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 22162 # In both cases, we have to default to `cp -pR'.
9c60689e 22163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 22164 as_ln_s='cp -pR'
9c60689e
DWT
22165 elif ln conf$$.file conf$$ 2>/dev/null; then
22166 as_ln_s=ln
22167 else
53ba6704 22168 as_ln_s='cp -pR'
9c60689e
DWT
22169 fi
22170else
53ba6704 22171 as_ln_s='cp -pR'
9c60689e
DWT
22172fi
22173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22174rmdir conf$$.dir 2>/dev/null
22175
22176
22177# as_fn_mkdir_p
22178# -------------
22179# Create "$as_dir" as a directory, including parents if necessary.
22180as_fn_mkdir_p ()
22181{
22182
22183 case $as_dir in #(
22184 -*) as_dir=./$as_dir;;
22185 esac
22186 test -d "$as_dir" || eval $as_mkdir_p || {
22187 as_dirs=
22188 while :; do
22189 case $as_dir in #(
22190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22191 *) as_qdir=$as_dir;;
22192 esac
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199$as_echo X"$as_dir" |
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201 s//\1/
22202 q
22203 }
22204 /^X\(\/\/\)[^/].*/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\).*/{
22213 s//\1/
22214 q
22215 }
22216 s/.*/./; q'`
22217 test -d "$as_dir" && break
22218 done
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 22220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
22221
22222
22223} # as_fn_mkdir_p
22224if mkdir -p . 2>/dev/null; then
22225 as_mkdir_p='mkdir -p "$as_dir"'
22226else
22227 test -d ./-p && rmdir ./-p
22228 as_mkdir_p=false
22229fi
22230
53ba6704
JF
22231
22232# as_fn_executable_p FILE
22233# -----------------------
22234# Test if FILE is an executable regular file.
22235as_fn_executable_p ()
22236{
22237 test -f "$1" && test -x "$1"
22238} # as_fn_executable_p
22239as_test_x='test -x'
22240as_executable_p=as_fn_executable_p
9c60689e
DWT
22241
22242# Sed expression to map a string onto a valid CPP name.
22243as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22244
22245# Sed expression to map a string onto a valid variable name.
22246as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22247
22248
22249exec 6>&1
22250## ----------------------------------- ##
22251## Main body of $CONFIG_STATUS script. ##
22252## ----------------------------------- ##
22253_ASEOF
22254test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22255
22256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257# Save the log message, to keep $0 and so on meaningful, and to
22258# report actual input values of CONFIG_FILES etc. instead of their
22259# values after options handling.
22260ac_log="
22261This file was extended by Cycript $as_me 0.9, which was
53ba6704 22262generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
22263
22264 CONFIG_FILES = $CONFIG_FILES
22265 CONFIG_HEADERS = $CONFIG_HEADERS
22266 CONFIG_LINKS = $CONFIG_LINKS
22267 CONFIG_COMMANDS = $CONFIG_COMMANDS
22268 $ $0 $@
22269
22270on `(hostname || uname -n) 2>/dev/null | sed 1q`
22271"
22272
22273_ACEOF
22274
22275case $ac_config_files in *"
22276"*) set x $ac_config_files; shift; ac_config_files=$*;;
22277esac
22278
296ee9a6
JF
22279case $ac_config_headers in *"
22280"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22281esac
9c60689e
DWT
22282
22283
22284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22285# Files that config.status was made for.
22286config_files="$ac_config_files"
296ee9a6 22287config_headers="$ac_config_headers"
9c60689e
DWT
22288config_commands="$ac_config_commands"
22289
22290_ACEOF
22291
22292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22293ac_cs_usage="\
22294\`$as_me' instantiates files and other configuration actions
22295from templates according to the current configuration. Unless the files
22296and actions are specified as TAGs, all are instantiated by default.
22297
22298Usage: $0 [OPTION]... [TAG]...
22299
22300 -h, --help print this help, then exit
22301 -V, --version print version number and configuration settings, then exit
22302 --config print configuration, then exit
22303 -q, --quiet, --silent
22304 do not print progress messages
22305 -d, --debug don't remove temporary files
22306 --recheck update $as_me by reconfiguring in the same conditions
22307 --file=FILE[:TEMPLATE]
22308 instantiate the configuration file FILE
296ee9a6
JF
22309 --header=FILE[:TEMPLATE]
22310 instantiate the configuration header FILE
9c60689e
DWT
22311
22312Configuration files:
22313$config_files
22314
296ee9a6
JF
22315Configuration headers:
22316$config_headers
22317
9c60689e
DWT
22318Configuration commands:
22319$config_commands
22320
22321Report bugs to <saurik@saurik.com>.
22322Cycript home page: <http://www.cycript.org/>."
22323
22324_ACEOF
22325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22326ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22327ac_cs_version="\\
22328Cycript config.status 0.9
53ba6704 22329configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
22330 with options \\"\$ac_cs_config\\"
22331
53ba6704 22332Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
22333This config.status script is free software; the Free Software Foundation
22334gives unlimited permission to copy, distribute and modify it."
22335
22336ac_pwd='$ac_pwd'
22337srcdir='$srcdir'
22338INSTALL='$INSTALL'
66170b30
JF
22339MKDIR_P='$MKDIR_P'
22340AWK='$AWK'
9c60689e
DWT
22341test -n "\$AWK" || AWK=awk
22342_ACEOF
22343
22344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22345# The default lists apply if the user does not specify any file.
22346ac_need_defaults=:
22347while test $# != 0
22348do
22349 case $1 in
12833ad8 22350 --*=?*)
9c60689e
DWT
22351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22353 ac_shift=:
22354 ;;
12833ad8
JF
22355 --*=)
22356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22357 ac_optarg=
22358 ac_shift=:
22359 ;;
9c60689e
DWT
22360 *)
22361 ac_option=$1
22362 ac_optarg=$2
22363 ac_shift=shift
22364 ;;
22365 esac
22366
22367 case $ac_option in
22368 # Handling of the options.
22369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22370 ac_cs_recheck=: ;;
22371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22372 $as_echo "$ac_cs_version"; exit ;;
22373 --config | --confi | --conf | --con | --co | --c )
22374 $as_echo "$ac_cs_config"; exit ;;
22375 --debug | --debu | --deb | --de | --d | -d )
22376 debug=: ;;
22377 --file | --fil | --fi | --f )
22378 $ac_shift
22379 case $ac_optarg in
22380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 22381 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
22382 esac
22383 as_fn_append CONFIG_FILES " '$ac_optarg'"
22384 ac_need_defaults=false;;
296ee9a6
JF
22385 --header | --heade | --head | --hea )
22386 $ac_shift
22387 case $ac_optarg in
22388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22389 esac
22390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22391 ac_need_defaults=false;;
22392 --he | --h)
22393 # Conflict between --help and --header
22394 as_fn_error $? "ambiguous option: \`$1'
22395Try \`$0 --help' for more information.";;
22396 --help | --hel | -h )
9c60689e
DWT
22397 $as_echo "$ac_cs_usage"; exit ;;
22398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22400 ac_cs_silent=: ;;
22401
22402 # This is an error.
12833ad8 22403 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
22404Try \`$0 --help' for more information." ;;
22405
22406 *) as_fn_append ac_config_targets " $1"
22407 ac_need_defaults=false ;;
22408
22409 esac
22410 shift
22411done
22412
22413ac_configure_extra_args=
22414
22415if $ac_cs_silent; then
22416 exec 6>/dev/null
22417 ac_configure_extra_args="$ac_configure_extra_args --silent"
22418fi
22419
22420_ACEOF
22421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22422if \$ac_cs_recheck; then
53ba6704 22423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
22424 shift
22425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22426 CONFIG_SHELL='$SHELL'
22427 export CONFIG_SHELL
22428 exec "\$@"
22429fi
22430
22431_ACEOF
22432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22433exec 5>>config.log
22434{
22435 echo
22436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22437## Running $as_me. ##
22438_ASBOX
22439 $as_echo "$ac_log"
22440} >&5
22441
22442_ACEOF
22443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22444#
22445# INIT-COMMANDS
22446#
66170b30 22447AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
22448
22449
22450# The HP-UX ksh and POSIX shell print the target directory to stdout
22451# if CDPATH is set.
22452(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22453
22454sed_quote_subst='$sed_quote_subst'
22455double_quote_subst='$double_quote_subst'
22456delay_variable_subst='$delay_variable_subst'
ee134472
JF
22457macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22458macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22459enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22460enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22461pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22462enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 22463shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22464SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22465ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22466PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22467host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22468host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22469host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22470build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22471build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22472build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22473SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22474Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22475GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22476EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22477FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22478LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22479NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22480LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22481max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22482ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22483exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22484lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22485lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22486lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22487lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22488lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22489reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22490reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22491OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22492deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22493file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22494file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22495want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22496DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22497sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22498AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22499AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22500archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22501STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22502RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22503old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22504old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22505old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22506lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22507CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22508CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22509compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22510GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22511lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22512lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 22513lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22514lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22515lt_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"`'
9d54db95 22516lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22517nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22518lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 22519lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22520objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22521MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22522lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22523lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22524lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22525lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22526lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22527need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22528MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22529DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22530NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22531LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22532OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22533OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22534libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22535shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22536extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22537archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22538enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22539export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22540whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22541compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22542old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22543old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22544archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22545archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22546module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22547module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22548with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22549allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22550no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22551hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22552hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22553hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22554hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22555hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22556hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22557hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22558inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22559link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22560always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22561export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22562exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22563include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22564prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22565postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22566file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22567variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22568need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22569need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22570version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22571runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22572shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22573shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22574libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22575library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22576soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22577install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22578postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22579postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22580finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22581finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22582hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22583sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
22584configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22585configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22586hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22587enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22588enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22589enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22590old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22591striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22592compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22593predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22594postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22595predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22596postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22597compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22598LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22599reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22600reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22601old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22602compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22603GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22604lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22605lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22606lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22607lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22608lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22609archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22610enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22611export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22612whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22613compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22614old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22615old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22616archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22617archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22618module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22619module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22620with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22621allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22622no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22623hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22624hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22625hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22626hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22627hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22628hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22629hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22630inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22631link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22632always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22633export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22634exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22635include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22636prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22637postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22638file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22639hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22640compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22641predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22642postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22643predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22644postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22645compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22646
22647LTCC='$LTCC'
22648LTCFLAGS='$LTCFLAGS'
22649compiler='$compiler_DEFAULT'
22650
ee134472
JF
22651# A function that is used when there is no print builtin or printf.
22652func_fallback_echo ()
22653{
22654 eval 'cat <<_LTECHO_EOF
22655\$1
22656_LTECHO_EOF'
22657}
22658
9c60689e 22659# Quote evaled strings.
ee134472
JF
22660for var in SHELL \
22661ECHO \
53ba6704 22662PATH_SEPARATOR \
ee134472 22663SED \
9c60689e
DWT
22664GREP \
22665EGREP \
22666FGREP \
22667LD \
22668NM \
22669LN_S \
22670lt_SP2NL \
22671lt_NL2SP \
22672reload_flag \
22673OBJDUMP \
22674deplibs_check_method \
22675file_magic_cmd \
ee134472
JF
22676file_magic_glob \
22677want_nocaseglob \
22678DLLTOOL \
22679sharedlib_from_linklib_cmd \
9c60689e
DWT
22680AR \
22681AR_FLAGS \
ee134472 22682archiver_list_spec \
9c60689e
DWT
22683STRIP \
22684RANLIB \
22685CC \
22686CFLAGS \
22687compiler \
22688lt_cv_sys_global_symbol_pipe \
22689lt_cv_sys_global_symbol_to_cdecl \
9d54db95 22690lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
22691lt_cv_sys_global_symbol_to_c_name_address \
22692lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 22693lt_cv_nm_interface \
ee134472 22694nm_file_list_spec \
9d54db95 22695lt_cv_truncate_bin \
9c60689e 22696lt_prog_compiler_no_builtin_flag \
9c60689e 22697lt_prog_compiler_pic \
ee134472 22698lt_prog_compiler_wl \
9c60689e
DWT
22699lt_prog_compiler_static \
22700lt_cv_prog_compiler_c_o \
22701need_locks \
ee134472 22702MANIFEST_TOOL \
9c60689e
DWT
22703DSYMUTIL \
22704NMEDIT \
22705LIPO \
22706OTOOL \
22707OTOOL64 \
22708shrext_cmds \
22709export_dynamic_flag_spec \
22710whole_archive_flag_spec \
22711compiler_needs_object \
22712with_gnu_ld \
22713allow_undefined_flag \
22714no_undefined_flag \
22715hardcode_libdir_flag_spec \
9c60689e 22716hardcode_libdir_separator \
9c60689e
DWT
22717exclude_expsyms \
22718include_expsyms \
22719file_list_spec \
22720variables_saved_for_relink \
22721libname_spec \
22722library_names_spec \
22723soname_spec \
ee134472 22724install_override_mode \
9c60689e
DWT
22725finish_eval \
22726old_striplib \
22727striplib \
22728compiler_lib_search_dirs \
22729predep_objects \
22730postdep_objects \
22731predeps \
22732postdeps \
22733compiler_lib_search_path \
22734LD_CXX \
ee134472 22735reload_flag_CXX \
9c60689e
DWT
22736compiler_CXX \
22737lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 22738lt_prog_compiler_pic_CXX \
ee134472 22739lt_prog_compiler_wl_CXX \
9c60689e
DWT
22740lt_prog_compiler_static_CXX \
22741lt_cv_prog_compiler_c_o_CXX \
22742export_dynamic_flag_spec_CXX \
22743whole_archive_flag_spec_CXX \
22744compiler_needs_object_CXX \
22745with_gnu_ld_CXX \
22746allow_undefined_flag_CXX \
22747no_undefined_flag_CXX \
22748hardcode_libdir_flag_spec_CXX \
9c60689e 22749hardcode_libdir_separator_CXX \
9c60689e
DWT
22750exclude_expsyms_CXX \
22751include_expsyms_CXX \
22752file_list_spec_CXX \
22753compiler_lib_search_dirs_CXX \
22754predep_objects_CXX \
22755postdep_objects_CXX \
22756predeps_CXX \
22757postdeps_CXX \
22758compiler_lib_search_path_CXX; do
ee134472 22759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22760 *[\\\\\\\`\\"\\\$]*)
9d54db95 22761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
22762 ;;
22763 *)
22764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22765 ;;
22766 esac
22767done
22768
22769# Double-quote double-evaled strings.
22770for var in reload_cmds \
22771old_postinstall_cmds \
22772old_postuninstall_cmds \
22773old_archive_cmds \
22774extract_expsyms_cmds \
22775old_archive_from_new_cmds \
22776old_archive_from_expsyms_cmds \
22777archive_cmds \
22778archive_expsym_cmds \
22779module_cmds \
22780module_expsym_cmds \
22781export_symbols_cmds \
22782prelink_cmds \
ee134472 22783postlink_cmds \
9c60689e
DWT
22784postinstall_cmds \
22785postuninstall_cmds \
22786finish_cmds \
22787sys_lib_search_path_spec \
9d54db95
JF
22788configure_time_dlsearch_path \
22789configure_time_lt_sys_library_path \
ee134472 22790reload_cmds_CXX \
9c60689e
DWT
22791old_archive_cmds_CXX \
22792old_archive_from_new_cmds_CXX \
22793old_archive_from_expsyms_cmds_CXX \
22794archive_cmds_CXX \
22795archive_expsym_cmds_CXX \
22796module_cmds_CXX \
22797module_expsym_cmds_CXX \
22798export_symbols_cmds_CXX \
ee134472
JF
22799prelink_cmds_CXX \
22800postlink_cmds_CXX; do
22801 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22802 *[\\\\\\\`\\"\\\$]*)
9d54db95 22803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
22804 ;;
22805 *)
22806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22807 ;;
22808 esac
22809done
22810
9c60689e 22811ac_aux_dir='$ac_aux_dir'
9c60689e 22812
9d54db95 22813# See if we are running on zsh, and set the options that allow our
9c60689e 22814# commands through without removal of \ escapes INIT.
9d54db95 22815if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
22816 setopt NO_GLOB_SUBST
22817fi
22818
22819
22820 PACKAGE='$PACKAGE'
22821 VERSION='$VERSION'
9c60689e
DWT
22822 RM='$RM'
22823 ofile='$ofile'
22824
22825
22826
22827
22828
22829
22830_ACEOF
22831
22832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22833
22834# Handling of arguments.
22835for ac_config_target in $ac_config_targets
22836do
22837 case $ac_config_target in
296ee9a6 22838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 22839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 22840 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 22841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 22842
ee134472 22843 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
22844 esac
22845done
22846
22847
22848# If the user did not use the arguments to specify the items to instantiate,
22849# then the envvar interface is used. Set only those that are not.
22850# We use the long form for the default assignment because of an extremely
22851# bizarre bug on SunOS 4.1.3.
22852if $ac_need_defaults; then
22853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 22854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
22855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22856fi
22857
22858# Have a temporary directory for convenience. Make it in the build tree
22859# simply because there is no reason against having it here, and in addition,
22860# creating and moving files from /tmp can sometimes cause problems.
22861# Hook for its removal unless debugging.
22862# Note that there is a small window in which the directory will not be cleaned:
22863# after its creation but before its name has been assigned to `$tmp'.
22864$debug ||
22865{
ee134472 22866 tmp= ac_tmp=
9c60689e 22867 trap 'exit_status=$?
ee134472
JF
22868 : "${ac_tmp:=$tmp}"
22869 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
22870' 0
22871 trap 'as_fn_exit 1' 1 2 13 15
22872}
22873# Create a (secure) tmp directory for tmp files.
22874
22875{
22876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 22877 test -d "$tmp"
9c60689e
DWT
22878} ||
22879{
22880 tmp=./conf$$-$RANDOM
22881 (umask 077 && mkdir "$tmp")
12833ad8 22882} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 22883ac_tmp=$tmp
9c60689e
DWT
22884
22885# Set up the scripts for CONFIG_FILES section.
22886# No need to generate them if there are no CONFIG_FILES.
22887# This happens for instance with `./config.status config.h'.
22888if test -n "$CONFIG_FILES"; then
22889
22890
22891ac_cr=`echo X | tr X '\015'`
22892# On cygwin, bash can eat \r inside `` if the user requested igncr.
22893# But we know of no other shell where ac_cr would be empty at this
22894# point, so we can use a bashism as a fallback.
22895if test "x$ac_cr" = x; then
22896 eval ac_cr=\$\'\\r\'
22897fi
22898ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22899if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 22900 ac_cs_awk_cr='\\r'
9c60689e
DWT
22901else
22902 ac_cs_awk_cr=$ac_cr
22903fi
22904
ee134472 22905echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
22906_ACEOF
22907
22908
22909{
22910 echo "cat >conf$$subs.awk <<_ACEOF" &&
22911 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22912 echo "_ACEOF"
22913} >conf$$subs.sh ||
12833ad8
JF
22914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22915ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
22916ac_delim='%!_!# '
22917for ac_last_try in false false false false false :; do
22918 . ./conf$$subs.sh ||
12833ad8 22919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22920
22921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22922 if test $ac_delim_n = $ac_delim_num; then
22923 break
22924 elif $ac_last_try; then
12833ad8 22925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22926 else
22927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22928 fi
22929done
22930rm -f conf$$subs.sh
22931
22932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 22933cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
22934_ACEOF
22935sed -n '
22936h
22937s/^/S["/; s/!.*/"]=/
22938p
22939g
22940s/^[^!]*!//
22941:repl
22942t repl
22943s/'"$ac_delim"'$//
22944t delim
22945:nl
22946h
22947s/\(.\{148\}\)..*/\1/
22948t more1
22949s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22950p
22951n
22952b repl
22953:more1
22954s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22955p
22956g
22957s/.\{148\}//
22958t nl
22959:delim
22960h
22961s/\(.\{148\}\)..*/\1/
22962t more2
22963s/["\\]/\\&/g; s/^/"/; s/$/"/
22964p
22965b
22966:more2
22967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22968p
22969g
22970s/.\{148\}//
22971t delim
22972' <conf$$subs.awk | sed '
22973/^[^""]/{
22974 N
22975 s/\n//
22976}
22977' >>$CONFIG_STATUS || ac_write_fail=1
22978rm -f conf$$subs.awk
22979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22980_ACAWK
ee134472 22981cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
22982 for (key in S) S_is_set[key] = 1
22983 FS = "\a"
22984
22985}
22986{
22987 line = $ 0
22988 nfields = split(line, field, "@")
22989 substed = 0
22990 len = length(field[1])
22991 for (i = 2; i < nfields; i++) {
22992 key = field[i]
22993 keylen = length(key)
22994 if (S_is_set[key]) {
22995 value = S[key]
22996 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22997 len += length(value) + length(field[++i])
22998 substed = 1
22999 } else
23000 len += 1 + keylen
23001 }
23002
23003 print line
23004}
23005
23006_ACAWK
23007_ACEOF
23008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23009if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23010 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23011else
23012 cat
ee134472 23013fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 23014 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
23015_ACEOF
23016
12833ad8
JF
23017# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23018# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
23019# trailing colons and then remove the whole line if VPATH becomes empty
23020# (actually we leave an empty line to preserve line numbers).
23021if test "x$srcdir" = x.; then
12833ad8
JF
23022 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23023h
23024s///
23025s/^/:/
23026s/[ ]*$/:/
23027s/:\$(srcdir):/:/g
23028s/:\${srcdir}:/:/g
23029s/:@srcdir@:/:/g
23030s/^:*//
9c60689e 23031s/:*$//
12833ad8
JF
23032x
23033s/\(=[ ]*\).*/\1/
23034G
23035s/\n//
9c60689e
DWT
23036s/^[^=]*=[ ]*$//
23037}'
23038fi
23039
23040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23041fi # test -n "$CONFIG_FILES"
23042
296ee9a6
JF
23043# Set up the scripts for CONFIG_HEADERS section.
23044# No need to generate them if there are no CONFIG_HEADERS.
23045# This happens for instance with `./config.status Makefile'.
23046if test -n "$CONFIG_HEADERS"; then
23047cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23048BEGIN {
23049_ACEOF
23050
23051# Transform confdefs.h into an awk script `defines.awk', embedded as
23052# here-document in config.status, that substitutes the proper values into
23053# config.h.in to produce config.h.
23054
23055# Create a delimiter string that does not exist in confdefs.h, to ease
23056# handling of long lines.
23057ac_delim='%!_!# '
23058for ac_last_try in false false :; do
23059 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23060 if test -z "$ac_tt"; then
23061 break
23062 elif $ac_last_try; then
23063 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23064 else
23065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23066 fi
23067done
23068
23069# For the awk script, D is an array of macro values keyed by name,
23070# likewise P contains macro parameters if any. Preserve backslash
23071# newline sequences.
23072
23073ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23074sed -n '
23075s/.\{148\}/&'"$ac_delim"'/g
23076t rset
23077:rset
23078s/^[ ]*#[ ]*define[ ][ ]*/ /
23079t def
23080d
23081:def
23082s/\\$//
23083t bsnl
23084s/["\\]/\\&/g
23085s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23086D["\1"]=" \3"/p
23087s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23088d
23089:bsnl
23090s/["\\]/\\&/g
23091s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23092D["\1"]=" \3\\\\\\n"\\/p
23093t cont
23094s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23095t cont
23096d
23097:cont
23098n
23099s/.\{148\}/&'"$ac_delim"'/g
23100t clear
23101:clear
23102s/\\$//
23103t bsnlc
23104s/["\\]/\\&/g; s/^/"/; s/$/"/p
23105d
23106:bsnlc
23107s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23108b cont
23109' <confdefs.h | sed '
23110s/'"$ac_delim"'/"\\\
23111"/g' >>$CONFIG_STATUS || ac_write_fail=1
23112
23113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23114 for (key in D) D_is_set[key] = 1
23115 FS = "\a"
23116}
23117/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23118 line = \$ 0
23119 split(line, arg, " ")
23120 if (arg[1] == "#") {
23121 defundef = arg[2]
23122 mac1 = arg[3]
23123 } else {
23124 defundef = substr(arg[1], 2)
23125 mac1 = arg[2]
23126 }
23127 split(mac1, mac2, "(") #)
23128 macro = mac2[1]
23129 prefix = substr(line, 1, index(line, defundef) - 1)
23130 if (D_is_set[macro]) {
23131 # Preserve the white space surrounding the "#".
23132 print prefix "define", macro P[macro] D[macro]
23133 next
23134 } else {
23135 # Replace #undef with comments. This is necessary, for example,
23136 # in the case of _POSIX_SOURCE, which is predefined and required
23137 # on some systems where configure will not decide to define it.
23138 if (defundef == "undef") {
23139 print "/*", prefix defundef, macro, "*/"
23140 next
23141 }
23142 }
23143}
23144{ print }
23145_ACAWK
23146_ACEOF
23147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23148 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23149fi # test -n "$CONFIG_HEADERS"
23150
9c60689e 23151
296ee9a6 23152eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
23153shift
23154for ac_tag
23155do
23156 case $ac_tag in
23157 :[FHLC]) ac_mode=$ac_tag; continue;;
23158 esac
23159 case $ac_mode$ac_tag in
23160 :[FHL]*:*);;
ee134472 23161 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
23162 :[FH]-) ac_tag=-:-;;
23163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23164 esac
23165 ac_save_IFS=$IFS
23166 IFS=:
23167 set x $ac_tag
23168 IFS=$ac_save_IFS
23169 shift
23170 ac_file=$1
23171 shift
23172
23173 case $ac_mode in
23174 :L) ac_source=$1;;
23175 :[FH])
23176 ac_file_inputs=
23177 for ac_f
23178 do
23179 case $ac_f in
ee134472 23180 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
23181 *) # Look for the file first in the build tree, then in the source tree
23182 # (if the path is not absolute). The absolute path cannot be DOS-style,
23183 # because $ac_f cannot contain `:'.
23184 test -f "$ac_f" ||
23185 case $ac_f in
23186 [\\/$]*) false;;
23187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23188 esac ||
ee134472 23189 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
23190 esac
23191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23192 as_fn_append ac_file_inputs " '$ac_f'"
23193 done
23194
23195 # Let's still pretend it is `configure' which instantiates (i.e., don't
23196 # use $as_me), people would be surprised to read:
23197 # /* config.h. Generated by config.status. */
23198 configure_input='Generated from '`
23199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23200 `' by configure.'
23201 if test x"$ac_file" != x-; then
23202 configure_input="$ac_file. $configure_input"
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23204$as_echo "$as_me: creating $ac_file" >&6;}
23205 fi
23206 # Neutralize special characters interpreted by sed in replacement strings.
23207 case $configure_input in #(
23208 *\&* | *\|* | *\\* )
23209 ac_sed_conf_input=`$as_echo "$configure_input" |
23210 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23211 *) ac_sed_conf_input=$configure_input;;
23212 esac
23213
23214 case $ac_tag in
ee134472
JF
23215 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
23217 esac
23218 ;;
23219 esac
23220
23221 ac_dir=`$as_dirname -- "$ac_file" ||
23222$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$ac_file" : 'X\(//\)[^/]' \| \
23224 X"$ac_file" : 'X\(//\)$' \| \
23225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23226$as_echo X"$ac_file" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23228 s//\1/
23229 q
23230 }
23231 /^X\(\/\/\)[^/].*/{
23232 s//\1/
23233 q
23234 }
23235 /^X\(\/\/\)$/{
23236 s//\1/
23237 q
23238 }
23239 /^X\(\/\).*/{
23240 s//\1/
23241 q
23242 }
23243 s/.*/./; q'`
23244 as_dir="$ac_dir"; as_fn_mkdir_p
23245 ac_builddir=.
23246
23247case "$ac_dir" in
23248.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23249*)
23250 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23251 # A ".." for each directory in $ac_dir_suffix.
23252 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23253 case $ac_top_builddir_sub in
23254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23256 esac ;;
23257esac
23258ac_abs_top_builddir=$ac_pwd
23259ac_abs_builddir=$ac_pwd$ac_dir_suffix
23260# for backward compatibility:
23261ac_top_builddir=$ac_top_build_prefix
35fa52c0 23262
9c60689e
DWT
23263case $srcdir in
23264 .) # We are building in place.
23265 ac_srcdir=.
23266 ac_top_srcdir=$ac_top_builddir_sub
23267 ac_abs_top_srcdir=$ac_pwd ;;
23268 [\\/]* | ?:[\\/]* ) # Absolute name.
23269 ac_srcdir=$srcdir$ac_dir_suffix;
23270 ac_top_srcdir=$srcdir
23271 ac_abs_top_srcdir=$srcdir ;;
23272 *) # Relative name.
23273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23274 ac_top_srcdir=$ac_top_build_prefix$srcdir
23275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23276esac
23277ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
23278
23279
9c60689e
DWT
23280 case $ac_mode in
23281 :F)
23282 #
23283 # CONFIG_FILE
23284 #
35fa52c0 23285
9c60689e
DWT
23286 case $INSTALL in
23287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23289 esac
66170b30
JF
23290 ac_MKDIR_P=$MKDIR_P
23291 case $MKDIR_P in
23292 [\\/$]* | ?:[\\/]* ) ;;
23293 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23294 esac
9c60689e 23295_ACEOF
35fa52c0 23296
9c60689e
DWT
23297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23298# If the template does not know about datarootdir, expand it.
23299# FIXME: This hack should be removed a few years after 2.60.
23300ac_datarootdir_hack=; ac_datarootdir_seen=
23301ac_sed_dataroot='
23302/datarootdir/ {
23303 p
23304 q
23305}
23306/@datadir@/p
23307/@docdir@/p
23308/@infodir@/p
23309/@localedir@/p
23310/@mandir@/p'
23311case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23312*datarootdir*) ac_datarootdir_seen=yes;;
23313*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23315$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23316_ACEOF
23317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23318 ac_datarootdir_hack='
23319 s&@datadir@&$datadir&g
23320 s&@docdir@&$docdir&g
23321 s&@infodir@&$infodir&g
23322 s&@localedir@&$localedir&g
23323 s&@mandir@&$mandir&g
23324 s&\\\${datarootdir}&$datarootdir&g' ;;
23325esac
23326_ACEOF
35fa52c0 23327
9c60689e
DWT
23328# Neutralize VPATH when `$srcdir' = `.'.
23329# Shell code in configure.ac might set extrasub.
23330# FIXME: do we really want to maintain this feature?
23331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23332ac_sed_extra="$ac_vpsub
23333$extrasub
23334_ACEOF
23335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23336:t
23337/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23338s|@configure_input@|$ac_sed_conf_input|;t t
23339s&@top_builddir@&$ac_top_builddir_sub&;t t
23340s&@top_build_prefix@&$ac_top_build_prefix&;t t
23341s&@srcdir@&$ac_srcdir&;t t
23342s&@abs_srcdir@&$ac_abs_srcdir&;t t
23343s&@top_srcdir@&$ac_top_srcdir&;t t
23344s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23345s&@builddir@&$ac_builddir&;t t
23346s&@abs_builddir@&$ac_abs_builddir&;t t
23347s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23348s&@INSTALL@&$ac_INSTALL&;t t
66170b30 23349s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
23350$ac_datarootdir_hack
23351"
ee134472
JF
23352eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
23354
23355test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
23356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23360which seems to be undefined. Please make sure it is defined" >&5
9c60689e 23361$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23362which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 23363
ee134472 23364 rm -f "$ac_tmp/stdin"
9c60689e 23365 case $ac_file in
ee134472
JF
23366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 23368 esac \
12833ad8 23369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 23370 ;;
296ee9a6
JF
23371 :H)
23372 #
23373 # CONFIG_HEADER
23374 #
23375 if test x"$ac_file" != x-; then
23376 {
23377 $as_echo "/* $configure_input */" \
23378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23379 } >"$ac_tmp/config.h" \
23380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23383$as_echo "$as_me: $ac_file is unchanged" >&6;}
23384 else
23385 rm -f "$ac_file"
23386 mv "$ac_tmp/config.h" "$ac_file" \
23387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23388 fi
23389 else
23390 $as_echo "/* $configure_input */" \
23391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23392 || as_fn_error $? "could not create -" "$LINENO" 5
23393 fi
23394# Compute "$ac_file"'s index in $config_headers.
23395_am_arg="$ac_file"
23396_am_stamp_count=1
23397for _am_header in $config_headers :; do
23398 case $_am_header in
23399 $_am_arg | $_am_arg:* )
23400 break ;;
23401 * )
23402 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23403 esac
23404done
23405echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23406$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407 X"$_am_arg" : 'X\(//\)[^/]' \| \
23408 X"$_am_arg" : 'X\(//\)$' \| \
23409 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23410$as_echo X"$_am_arg" |
23411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23412 s//\1/
23413 q
23414 }
23415 /^X\(\/\/\)[^/].*/{
23416 s//\1/
23417 q
23418 }
23419 /^X\(\/\/\)$/{
23420 s//\1/
23421 q
23422 }
23423 /^X\(\/\).*/{
23424 s//\1/
23425 q
23426 }
23427 s/.*/./; q'`/stamp-h$_am_stamp_count
23428 ;;
35fa52c0 23429
9c60689e
DWT
23430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23431$as_echo "$as_me: executing $ac_file commands" >&6;}
23432 ;;
23433 esac
35fa52c0 23434
35fa52c0 23435
9c60689e 23436 case $ac_file$ac_mode in
66170b30
JF
23437 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23438 # Older Autoconf quotes --file arguments for eval, but not when files
23439 # are listed without --file. Let's play safe and only enable the eval
23440 # if we detect the quoting.
23441 case $CONFIG_FILES in
23442 *\'*) eval set x "$CONFIG_FILES" ;;
23443 *) set x $CONFIG_FILES ;;
23444 esac
23445 shift
23446 for mf
23447 do
23448 # Strip MF so we end up with the name of the file.
23449 mf=`echo "$mf" | sed -e 's/:.*$//'`
23450 # Check whether this is an Automake generated Makefile or not.
23451 # We used to match only the files named 'Makefile.in', but
23452 # some people rename them; so instead we look at the file content.
23453 # Grep'ing the first line is not enough: some people post-process
23454 # each Makefile.in and add a new line on top of each file to say so.
23455 # Grep'ing the whole file is not good either: AIX grep has a line
23456 # limit of 2048, but all sed's we know have understand at least 4000.
23457 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23458 dirpart=`$as_dirname -- "$mf" ||
23459$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23460 X"$mf" : 'X\(//\)[^/]' \| \
23461 X"$mf" : 'X\(//\)$' \| \
23462 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23463$as_echo X"$mf" |
23464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23465 s//\1/
23466 q
23467 }
23468 /^X\(\/\/\)[^/].*/{
23469 s//\1/
23470 q
23471 }
23472 /^X\(\/\/\)$/{
23473 s//\1/
23474 q
23475 }
23476 /^X\(\/\).*/{
23477 s//\1/
23478 q
23479 }
23480 s/.*/./; q'`
23481 else
23482 continue
23483 fi
23484 # Extract the definition of DEPDIR, am__include, and am__quote
23485 # from the Makefile without running 'make'.
23486 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23487 test -z "$DEPDIR" && continue
23488 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 23489 test -z "$am__include" && continue
66170b30
JF
23490 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23491 # Find all dependency output files, they are included files with
23492 # $(DEPDIR) in their names. We invoke sed twice because it is the
23493 # simplest approach to changing $(DEPDIR) to its actual value in the
23494 # expansion.
23495 for file in `sed -n "
23496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23498 # Make sure the directory exists.
23499 test -f "$dirpart/$file" && continue
23500 fdir=`$as_dirname -- "$file" ||
23501$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23502 X"$file" : 'X\(//\)[^/]' \| \
23503 X"$file" : 'X\(//\)$' \| \
23504 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23505$as_echo X"$file" |
23506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23507 s//\1/
23508 q
23509 }
23510 /^X\(\/\/\)[^/].*/{
23511 s//\1/
23512 q
23513 }
23514 /^X\(\/\/\)$/{
23515 s//\1/
23516 q
23517 }
23518 /^X\(\/\).*/{
23519 s//\1/
23520 q
23521 }
23522 s/.*/./; q'`
23523 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23524 # echo "creating $dirpart/$file"
23525 echo '# dummy' > "$dirpart/$file"
23526 done
23527 done
23528}
23529 ;;
9c60689e
DWT
23530 "libtool":C)
23531
9d54db95 23532 # See if we are running on zsh, and set the options that allow our
9c60689e 23533 # commands through without removal of \ escapes.
9d54db95 23534 if test -n "${ZSH_VERSION+set}"; then
9c60689e 23535 setopt NO_GLOB_SUBST
35fa52c0 23536 fi
35fa52c0 23537
9d54db95 23538 cfgfile=${ofile}T
9c60689e
DWT
23539 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23540 $RM "$cfgfile"
35fa52c0 23541
9c60689e
DWT
23542 cat <<_LT_EOF >> "$cfgfile"
23543#! $SHELL
9d54db95 23544# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
23545# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23546# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
23547
23548# Provide generalized library-building support services.
23549# Written by Gordon Matzigkeit, 1996
23550
23551# Copyright (C) 2014 Free Software Foundation, Inc.
23552# This is free software; see the source for copying conditions. There is NO
23553# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23554
23555# GNU Libtool is free software; you can redistribute it and/or modify
23556# it under the terms of the GNU General Public License as published by
23557# the Free Software Foundation; either version 2 of of the License, or
23558# (at your option) any later version.
9c60689e 23559#
9d54db95
JF
23560# As a special exception to the GNU General Public License, if you
23561# distribute this file as part of a program or library that is built
23562# using GNU Libtool, you may include this file under the same
23563# distribution terms that you use for the rest of that program.
9c60689e 23564#
9d54db95
JF
23565# GNU Libtool is distributed in the hope that it will be useful, but
23566# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
23567# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23568# GNU General Public License for more details.
23569#
23570# You should have received a copy of the GNU General Public License
9d54db95 23571# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 23572
35fa52c0 23573
9c60689e 23574# The names of the tagged configurations supported by this script.
9d54db95
JF
23575available_tags='CXX '
23576
23577# Configured defaults for sys_lib_dlsearch_path munging.
23578: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 23579
9c60689e 23580# ### BEGIN LIBTOOL CONFIG
35fa52c0 23581
9c60689e
DWT
23582# Which release of libtool.m4 was used?
23583macro_version=$macro_version
23584macro_revision=$macro_revision
35fa52c0 23585
9c60689e
DWT
23586# Whether or not to build static libraries.
23587build_old_libs=$enable_static
35fa52c0 23588
549f29b5
DWT
23589# Whether or not to build shared libraries.
23590build_libtool_libs=$enable_shared
23591
9c60689e
DWT
23592# What type of objects to build.
23593pic_mode=$pic_mode
35fa52c0 23594
9c60689e
DWT
23595# Whether or not to optimize for fast installation.
23596fast_install=$enable_fast_install
35fa52c0 23597
9d54db95
JF
23598# Shared archive member basename,for filename based shared library versioning on AIX.
23599shared_archive_member_spec=$shared_archive_member_spec
23600
ee134472
JF
23601# Shell to use when invoking shell scripts.
23602SHELL=$lt_SHELL
23603
23604# An echo program that protects backslashes.
23605ECHO=$lt_ECHO
23606
53ba6704
JF
23607# The PATH separator for the build system.
23608PATH_SEPARATOR=$lt_PATH_SEPARATOR
23609
9c60689e
DWT
23610# The host system.
23611host_alias=$host_alias
23612host=$host
23613host_os=$host_os
35fa52c0 23614
9c60689e
DWT
23615# The build system.
23616build_alias=$build_alias
23617build=$build
23618build_os=$build_os
23619
23620# A sed program that does not truncate output.
23621SED=$lt_SED
23622
23623# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23624Xsed="\$SED -e 1s/^X//"
23625
23626# A grep program that handles long lines.
23627GREP=$lt_GREP
23628
23629# An ERE matcher.
23630EGREP=$lt_EGREP
23631
23632# A literal string matcher.
23633FGREP=$lt_FGREP
23634
23635# A BSD- or MS-compatible name lister.
23636NM=$lt_NM
23637
23638# Whether we need soft or hard links.
23639LN_S=$lt_LN_S
23640
23641# What is the maximum length of a command?
23642max_cmd_len=$max_cmd_len
23643
23644# Object file suffix (normally "o").
23645objext=$ac_objext
23646
23647# Executable file suffix (normally "").
23648exeext=$exeext
23649
23650# whether the shell understands "unset".
23651lt_unset=$lt_unset
23652
23653# turn spaces into newlines.
23654SP2NL=$lt_lt_SP2NL
23655
23656# turn newlines into spaces.
23657NL2SP=$lt_lt_NL2SP
23658
ee134472
JF
23659# convert \$build file names to \$host format.
23660to_host_file_cmd=$lt_cv_to_host_file_cmd
23661
23662# convert \$build files to toolchain format.
23663to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23664
23665# An object symbol dumper.
23666OBJDUMP=$lt_OBJDUMP
23667
23668# Method to check whether dependent libraries are shared objects.
23669deplibs_check_method=$lt_deplibs_check_method
23670
ee134472 23671# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23672file_magic_cmd=$lt_file_magic_cmd
23673
ee134472
JF
23674# How to find potential files when deplibs_check_method = "file_magic".
23675file_magic_glob=$lt_file_magic_glob
23676
23677# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23678want_nocaseglob=$lt_want_nocaseglob
23679
23680# DLL creation program.
23681DLLTOOL=$lt_DLLTOOL
23682
23683# Command to associate shared and link libraries.
23684sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23685
9c60689e
DWT
23686# The archiver.
23687AR=$lt_AR
ee134472
JF
23688
23689# Flags to create an archive.
9c60689e
DWT
23690AR_FLAGS=$lt_AR_FLAGS
23691
ee134472
JF
23692# How to feed a file listing to the archiver.
23693archiver_list_spec=$lt_archiver_list_spec
23694
9c60689e
DWT
23695# A symbol stripping program.
23696STRIP=$lt_STRIP
23697
23698# Commands used to install an old-style archive.
23699RANLIB=$lt_RANLIB
23700old_postinstall_cmds=$lt_old_postinstall_cmds
23701old_postuninstall_cmds=$lt_old_postuninstall_cmds
23702
ee134472
JF
23703# Whether to use a lock for old archive extraction.
23704lock_old_archive_extraction=$lock_old_archive_extraction
23705
9c60689e
DWT
23706# A C compiler.
23707LTCC=$lt_CC
23708
23709# LTCC compiler flags.
23710LTCFLAGS=$lt_CFLAGS
23711
23712# Take the output of nm and produce a listing of raw symbols and C names.
23713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23714
23715# Transform the output of nm in a proper C declaration.
23716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23717
9d54db95
JF
23718# Transform the output of nm into a list of symbols to manually relocate.
23719global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23720
9c60689e
DWT
23721# Transform the output of nm in a C name address pair.
23722global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23723
23724# Transform the output of nm in a C name address pair when lib prefix is needed.
23725global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23726
9d54db95
JF
23727# The name lister interface.
23728nm_interface=$lt_lt_cv_nm_interface
23729
ee134472
JF
23730# Specify filename containing input files for \$NM.
23731nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23732
9d54db95 23733# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 23734lt_sysroot=$lt_sysroot
9c60689e 23735
9d54db95
JF
23736# Command to truncate a binary pipe.
23737lt_truncate_bin=$lt_lt_cv_truncate_bin
23738
ee134472
JF
23739# The name of the directory that contains temporary libtool files.
23740objdir=$objdir
9c60689e
DWT
23741
23742# Used to examine libraries when file_magic_cmd begins with "file".
23743MAGIC_CMD=$MAGIC_CMD
23744
23745# Must we lock files when doing compilation?
23746need_locks=$lt_need_locks
23747
ee134472
JF
23748# Manifest tool.
23749MANIFEST_TOOL=$lt_MANIFEST_TOOL
23750
9c60689e
DWT
23751# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23752DSYMUTIL=$lt_DSYMUTIL
23753
23754# Tool to change global to local symbols on Mac OS X.
23755NMEDIT=$lt_NMEDIT
23756
23757# Tool to manipulate fat objects and archives on Mac OS X.
23758LIPO=$lt_LIPO
23759
23760# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23761OTOOL=$lt_OTOOL
23762
23763# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23764OTOOL64=$lt_OTOOL64
23765
23766# Old archive suffix (normally "a").
23767libext=$libext
23768
23769# Shared library suffix (normally ".so").
23770shrext_cmds=$lt_shrext_cmds
35fa52c0 23771
9c60689e
DWT
23772# The commands to extract the exported symbol list from a shared archive.
23773extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23774
9c60689e
DWT
23775# Variables whose values should be saved in libtool wrapper scripts and
23776# restored at link time.
23777variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23778
9c60689e
DWT
23779# Do we need the "lib" prefix for modules?
23780need_lib_prefix=$need_lib_prefix
35fa52c0 23781
9c60689e
DWT
23782# Do we need a version for libraries?
23783need_version=$need_version
35fa52c0 23784
9c60689e
DWT
23785# Library versioning type.
23786version_type=$version_type
35fa52c0 23787
9c60689e
DWT
23788# Shared library runtime path variable.
23789runpath_var=$runpath_var
35fa52c0 23790
9c60689e
DWT
23791# Shared library path variable.
23792shlibpath_var=$shlibpath_var
35fa52c0 23793
9c60689e
DWT
23794# Is shlibpath searched before the hard-coded library search path?
23795shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23796
9c60689e
DWT
23797# Format of library name prefix.
23798libname_spec=$lt_libname_spec
35fa52c0 23799
9c60689e
DWT
23800# List of archive names. First name is the real one, the rest are links.
23801# The last name is the one that the linker finds with -lNAME
23802library_names_spec=$lt_library_names_spec
dbadc56a 23803
9c60689e
DWT
23804# The coded name of the library, if different from the real name.
23805soname_spec=$lt_soname_spec
dbadc56a 23806
ee134472
JF
23807# Permission mode override for installation of shared libraries.
23808install_override_mode=$lt_install_override_mode
23809
9c60689e
DWT
23810# Command to use after installation of a shared archive.
23811postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23812
9c60689e
DWT
23813# Command to use after uninstallation of a shared archive.
23814postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23815
9c60689e
DWT
23816# Commands used to finish a libtool library installation in a directory.
23817finish_cmds=$lt_finish_cmds
35fa52c0 23818
9c60689e
DWT
23819# As "finish_cmds", except a single script fragment to be evaled but
23820# not shown.
23821finish_eval=$lt_finish_eval
35fa52c0 23822
9c60689e
DWT
23823# Whether we should hardcode library paths into libraries.
23824hardcode_into_libs=$hardcode_into_libs
dbadc56a 23825
9c60689e
DWT
23826# Compile-time system search path for libraries.
23827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23828
9d54db95
JF
23829# Detected run-time system search path for libraries.
23830sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23831
23832# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23833configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 23834
9c60689e
DWT
23835# Whether dlopen is supported.
23836dlopen_support=$enable_dlopen
dbadc56a 23837
9c60689e
DWT
23838# Whether dlopen of programs is supported.
23839dlopen_self=$enable_dlopen_self
35fa52c0 23840
9c60689e
DWT
23841# Whether dlopen of statically linked programs is supported.
23842dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23843
9c60689e
DWT
23844# Commands to strip libraries.
23845old_striplib=$lt_old_striplib
23846striplib=$lt_striplib
35fa52c0 23847
35fa52c0 23848
9c60689e
DWT
23849# The linker used to build libraries.
23850LD=$lt_LD
dbadc56a 23851
ee134472
JF
23852# How to create reloadable object files.
23853reload_flag=$lt_reload_flag
23854reload_cmds=$lt_reload_cmds
23855
9c60689e
DWT
23856# Commands used to build an old-style archive.
23857old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23858
9c60689e
DWT
23859# A language specific compiler.
23860CC=$lt_compiler
35fa52c0 23861
9c60689e
DWT
23862# Is the compiler the GNU compiler?
23863with_gcc=$GCC
dbadc56a 23864
9c60689e
DWT
23865# Compiler flag to turn off builtin functions.
23866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23867
9c60689e
DWT
23868# Additional compiler flags for building library objects.
23869pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23870
ee134472
JF
23871# How to pass a linker flag through the compiler.
23872wl=$lt_lt_prog_compiler_wl
23873
9c60689e
DWT
23874# Compiler flag to prevent dynamic linking.
23875link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23876
9c60689e
DWT
23877# Does compiler simultaneously support -c and -o options?
23878compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23879
9c60689e
DWT
23880# Whether or not to add -lc for building shared libraries.
23881build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23882
9c60689e
DWT
23883# Whether or not to disallow shared libs when runtime libs are static.
23884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23885
9c60689e
DWT
23886# Compiler flag to allow reflexive dlopens.
23887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23888
9c60689e
DWT
23889# Compiler flag to generate shared objects directly from archives.
23890whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23891
9c60689e
DWT
23892# Whether the compiler copes with passing no objects directly.
23893compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23894
9c60689e
DWT
23895# Create an old-style archive from a shared archive.
23896old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23897
9c60689e
DWT
23898# Create a temporary old-style archive to link instead of a shared archive.
23899old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23900
9c60689e
DWT
23901# Commands used to build a shared archive.
23902archive_cmds=$lt_archive_cmds
23903archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23904
9c60689e
DWT
23905# Commands used to build a loadable module if different from building
23906# a shared archive.
23907module_cmds=$lt_module_cmds
23908module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23909
9c60689e
DWT
23910# Whether we are building with GNU ld or not.
23911with_gnu_ld=$lt_with_gnu_ld
6b66678a 23912
9c60689e
DWT
23913# Flag that allows shared libraries with undefined symbols to be built.
23914allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 23915
9c60689e
DWT
23916# Flag that enforces no undefined symbols.
23917no_undefined_flag=$lt_no_undefined_flag
6b66678a 23918
9c60689e
DWT
23919# Flag to hardcode \$libdir into a binary during linking.
23920# This must work even if \$libdir does not exist
23921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 23922
9c60689e
DWT
23923# Whether we need a single "-rpath" flag with a separated argument.
23924hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 23925
9d54db95 23926# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
23927# DIR into the resulting binary.
23928hardcode_direct=$hardcode_direct
6b66678a 23929
9d54db95 23930# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 23931# DIR into the resulting binary and the resulting library dependency is
9d54db95 23932# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
23933# library is relocated.
23934hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 23935
9c60689e
DWT
23936# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23937# into the resulting binary.
23938hardcode_minus_L=$hardcode_minus_L
6b66678a 23939
9c60689e
DWT
23940# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23941# into the resulting binary.
23942hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 23943
9c60689e
DWT
23944# Set to "yes" if building a shared library automatically hardcodes DIR
23945# into the library and all subsequent libraries and executables linked
23946# against it.
23947hardcode_automatic=$hardcode_automatic
6b66678a 23948
9c60689e
DWT
23949# Set to yes if linker adds runtime paths of dependent libraries
23950# to runtime path list.
23951inherit_rpath=$inherit_rpath
6b66678a 23952
9c60689e
DWT
23953# Whether libtool must link a program against all its dependency libraries.
23954link_all_deplibs=$link_all_deplibs
23955
9c60689e
DWT
23956# Set to "yes" if exported symbols are required.
23957always_export_symbols=$always_export_symbols
6b66678a 23958
9c60689e
DWT
23959# The commands to list exported symbols.
23960export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 23961
9c60689e
DWT
23962# Symbols that should not be listed in the preloaded symbols.
23963exclude_expsyms=$lt_exclude_expsyms
6b66678a 23964
9c60689e
DWT
23965# Symbols that must always be exported.
23966include_expsyms=$lt_include_expsyms
6b66678a 23967
9c60689e
DWT
23968# Commands necessary for linking programs (against libraries) with templates.
23969prelink_cmds=$lt_prelink_cmds
6b66678a 23970
ee134472
JF
23971# Commands necessary for finishing linking programs.
23972postlink_cmds=$lt_postlink_cmds
23973
9c60689e
DWT
23974# Specify filename containing input files.
23975file_list_spec=$lt_file_list_spec
6b66678a 23976
9c60689e
DWT
23977# How to hardcode a shared library path into an executable.
23978hardcode_action=$hardcode_action
23979
23980# The directories searched by this compiler when creating a shared library.
23981compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23982
23983# Dependencies to place before and after the objects being linked to
23984# create a shared library.
23985predep_objects=$lt_predep_objects
23986postdep_objects=$lt_postdep_objects
23987predeps=$lt_predeps
23988postdeps=$lt_postdeps
23989
23990# The library search path used internally by the compiler when linking
23991# a shared library.
23992compiler_lib_search_path=$lt_compiler_lib_search_path
23993
23994# ### END LIBTOOL CONFIG
23995
9d54db95
JF
23996_LT_EOF
23997
23998 cat <<'_LT_EOF' >> "$cfgfile"
23999
24000# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24001
24002# func_munge_path_list VARIABLE PATH
24003# -----------------------------------
24004# VARIABLE is name of variable containing _space_ separated list of
24005# directories to be munged by the contents of PATH, which is string
24006# having a format:
24007# "DIR[:DIR]:"
24008# string "DIR[ DIR]" will be prepended to VARIABLE
24009# ":DIR[:DIR]"
24010# string "DIR[ DIR]" will be appended to VARIABLE
24011# "DIRP[:DIRP]::[DIRA:]DIRA"
24012# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24013# "DIRA[ DIRA]" will be appended to VARIABLE
24014# "DIR[:DIR]"
24015# VARIABLE will be replaced by "DIR[ DIR]"
24016func_munge_path_list ()
24017{
24018 case x$2 in
24019 x)
24020 ;;
24021 *:)
24022 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24023 ;;
24024 x:*)
24025 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24026 ;;
24027 *::*)
24028 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24029 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24030 ;;
24031 *)
24032 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24033 ;;
24034 esac
24035}
24036
24037
24038# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24039func_cc_basename ()
24040{
24041 for cc_temp in $*""; do
24042 case $cc_temp in
24043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24045 \-*) ;;
24046 *) break;;
24047 esac
24048 done
24049 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24050}
24051
24052
24053# ### END FUNCTIONS SHARED WITH CONFIGURE
24054
9c60689e
DWT
24055_LT_EOF
24056
24057 case $host_os in
24058 aix3*)
24059 cat <<\_LT_EOF >> "$cfgfile"
24060# AIX sometimes has problems with the GCC collect2 program. For some
24061# reason, if we set the COLLECT_NAMES environment variable, the problems
24062# vanish in a puff of smoke.
9d54db95 24063if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
24064 COLLECT_NAMES=
24065 export COLLECT_NAMES
6b66678a 24066fi
9c60689e
DWT
24067_LT_EOF
24068 ;;
24069 esac
6b66678a
DWT
24070
24071
9d54db95 24072ltmain=$ac_aux_dir/ltmain.sh
6b66678a 24073
9c60689e
DWT
24074
24075 # We use sed instead of cat because bash on DJGPP gets confused if
24076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24077 # text mode, it properly converts lines to CR/LF. This bash problem
24078 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
24079 sed '$q' "$ltmain" >> "$cfgfile" \
24080 || (rm -f "$cfgfile"; exit 1)
24081
ee134472 24082 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
24083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24084 chmod +x "$ofile"
24085
24086
24087 cat <<_LT_EOF >> "$ofile"
24088
24089# ### BEGIN LIBTOOL TAG CONFIG: CXX
24090
24091# The linker used to build libraries.
24092LD=$lt_LD_CXX
24093
ee134472
JF
24094# How to create reloadable object files.
24095reload_flag=$lt_reload_flag_CXX
24096reload_cmds=$lt_reload_cmds_CXX
24097
9c60689e
DWT
24098# Commands used to build an old-style archive.
24099old_archive_cmds=$lt_old_archive_cmds_CXX
24100
24101# A language specific compiler.
24102CC=$lt_compiler_CXX
24103
24104# Is the compiler the GNU compiler?
24105with_gcc=$GCC_CXX
24106
24107# Compiler flag to turn off builtin functions.
24108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 24109
9c60689e
DWT
24110# Additional compiler flags for building library objects.
24111pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 24112
ee134472
JF
24113# How to pass a linker flag through the compiler.
24114wl=$lt_lt_prog_compiler_wl_CXX
24115
9c60689e
DWT
24116# Compiler flag to prevent dynamic linking.
24117link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 24118
9c60689e
DWT
24119# Does compiler simultaneously support -c and -o options?
24120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 24121
9c60689e
DWT
24122# Whether or not to add -lc for building shared libraries.
24123build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 24124
9c60689e
DWT
24125# Whether or not to disallow shared libs when runtime libs are static.
24126allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 24127
9c60689e
DWT
24128# Compiler flag to allow reflexive dlopens.
24129export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 24130
9c60689e
DWT
24131# Compiler flag to generate shared objects directly from archives.
24132whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 24133
9c60689e
DWT
24134# Whether the compiler copes with passing no objects directly.
24135compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 24136
9c60689e
DWT
24137# Create an old-style archive from a shared archive.
24138old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 24139
9c60689e
DWT
24140# Create a temporary old-style archive to link instead of a shared archive.
24141old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 24142
9c60689e
DWT
24143# Commands used to build a shared archive.
24144archive_cmds=$lt_archive_cmds_CXX
24145archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 24146
9c60689e
DWT
24147# Commands used to build a loadable module if different from building
24148# a shared archive.
24149module_cmds=$lt_module_cmds_CXX
24150module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 24151
9c60689e
DWT
24152# Whether we are building with GNU ld or not.
24153with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 24154
9c60689e
DWT
24155# Flag that allows shared libraries with undefined symbols to be built.
24156allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 24157
9c60689e
DWT
24158# Flag that enforces no undefined symbols.
24159no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 24160
9c60689e
DWT
24161# Flag to hardcode \$libdir into a binary during linking.
24162# This must work even if \$libdir does not exist
24163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 24164
9c60689e
DWT
24165# Whether we need a single "-rpath" flag with a separated argument.
24166hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 24167
9d54db95 24168# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
24169# DIR into the resulting binary.
24170hardcode_direct=$hardcode_direct_CXX
6b66678a 24171
9d54db95 24172# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 24173# DIR into the resulting binary and the resulting library dependency is
9d54db95 24174# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
24175# library is relocated.
24176hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 24177
9c60689e
DWT
24178# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24179# into the resulting binary.
24180hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 24181
9c60689e
DWT
24182# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24183# into the resulting binary.
24184hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 24185
9c60689e
DWT
24186# Set to "yes" if building a shared library automatically hardcodes DIR
24187# into the library and all subsequent libraries and executables linked
24188# against it.
24189hardcode_automatic=$hardcode_automatic_CXX
6b66678a 24190
9c60689e
DWT
24191# Set to yes if linker adds runtime paths of dependent libraries
24192# to runtime path list.
24193inherit_rpath=$inherit_rpath_CXX
6b66678a 24194
9c60689e
DWT
24195# Whether libtool must link a program against all its dependency libraries.
24196link_all_deplibs=$link_all_deplibs_CXX
6b66678a 24197
9c60689e
DWT
24198# Set to "yes" if exported symbols are required.
24199always_export_symbols=$always_export_symbols_CXX
6b66678a 24200
9c60689e
DWT
24201# The commands to list exported symbols.
24202export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 24203
9c60689e
DWT
24204# Symbols that should not be listed in the preloaded symbols.
24205exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 24206
9c60689e
DWT
24207# Symbols that must always be exported.
24208include_expsyms=$lt_include_expsyms_CXX
6b66678a 24209
9c60689e
DWT
24210# Commands necessary for linking programs (against libraries) with templates.
24211prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 24212
ee134472
JF
24213# Commands necessary for finishing linking programs.
24214postlink_cmds=$lt_postlink_cmds_CXX
24215
9c60689e
DWT
24216# Specify filename containing input files.
24217file_list_spec=$lt_file_list_spec_CXX
dbadc56a 24218
9c60689e
DWT
24219# How to hardcode a shared library path into an executable.
24220hardcode_action=$hardcode_action_CXX
309b0535 24221
9c60689e
DWT
24222# The directories searched by this compiler when creating a shared library.
24223compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 24224
9c60689e
DWT
24225# Dependencies to place before and after the objects being linked to
24226# create a shared library.
24227predep_objects=$lt_predep_objects_CXX
24228postdep_objects=$lt_postdep_objects_CXX
24229predeps=$lt_predeps_CXX
24230postdeps=$lt_postdeps_CXX
309b0535 24231
9c60689e
DWT
24232# The library search path used internally by the compiler when linking
24233# a shared library.
24234compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24235
24236# ### END LIBTOOL TAG CONFIG: CXX
24237_LT_EOF
24238
24239 ;;
24240
24241 esac
24242done # for ac_tag
24243
24244
24245as_fn_exit 0
24246_ACEOF
24247ac_clean_files=$ac_clean_files_save
24248
24249test $ac_write_fail = 0 ||
12833ad8 24250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24251
24252
24253# configure is writing to config.log, and then calls config.status.
24254# config.status does its own redirection, appending to config.log.
24255# Unfortunately, on DOS this fails, as config.log is still kept open
24256# by configure, so config.status won't be able to write to it; its
24257# output is simply discarded. So we exec the FD to /dev/null,
24258# effectively closing config.log, so it can be properly (re)opened and
24259# appended to by config.status. When coming back to configure, we
24260# need to make the FD available again.
24261if test "$no_create" != yes; then
24262 ac_cs_success=:
24263 ac_config_status_args=
24264 test "$silent" = yes &&
24265 ac_config_status_args="$ac_config_status_args --quiet"
24266 exec 5>/dev/null
24267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24268 exec 5>>config.log
24269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24270 # would make configure fail if this is the last instruction.
12833ad8 24271 $ac_cs_success || as_fn_exit 1
309b0535 24272fi
9c60689e
DWT
24273if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24275$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24276fi
24277